simpledb.abi 2.4 KB
Newer Older
M
Matias Romeo 已提交
1
{
M
Matias Romeo 已提交
2
  "types": [],
3
  "structs": [{
M
Matias Romeo 已提交
4
      "name": "record1",
5
      "base": "",
M
Matias Romeo 已提交
6
      "fields": {
7 8 9 10 11 12 13 14 15 16 17 18
        "key": "uint64",
        "u256": "uint256",
        "u128": "uint128",
        "u64": "uint64",
        "u32": "uint32",
        "u16": "uint16",
        "u8": "uint8",
        "i64": "int64",
        "i32": "int32",
        "i16": "int16",
        "i8": "int8",
        "price": "price"
M
Matias Romeo 已提交
19
      }
20
    },{
M
Matias Romeo 已提交
21
      "name": "record2",
22
      "base": "",
M
Matias Romeo 已提交
23
      "fields": {
24 25
        "key1": "uint128",
        "key2": "uint128"
M
Matias Romeo 已提交
26
      }
27
    },{
M
Matias Romeo 已提交
28
      "name": "record3",
29
      "base": "",
M
Matias Romeo 已提交
30
      "fields": {
31 32 33
        "key1": "uint64",
        "key2": "uint64",
        "key3": "uint64"
34
      }
35
    },{
36
      "name": "key_value1",
37
      "base": "",
M
Matias Romeo 已提交
38
      "fields": {
39 40
        "key": "string",
        "value": "string"
M
Matias Romeo 已提交
41
      }
42
    },{
43
      "name": "complex_type",
44
      "base": "",
45
      "fields": {
46 47
        "name": "string",
        "age": "uint64"
48
      }
49
    },{
50
      "name": "key_value2",
51
      "base": "",
52
      "fields": {
53
        "key": "string",
54
        "value": "complex_type"
55
      }
M
Matias Romeo 已提交
56 57
    }
  ],
58
  "actions": [{
59
      "action_name": "insert1",
M
Matias Romeo 已提交
60
      "type": "record1"
61
    },{
62
      "action_name": "insert2",
M
Matias Romeo 已提交
63
      "type": "record2"
64
    },{
65
      "action_name": "insert3",
M
Matias Romeo 已提交
66
      "type": "record3"
67 68 69 70
    },{
      "action_name": "insertkv1",
      "type": "key_value1"
    },{
71
      "action_name": "insertkv2",
72
      "type": "key_value2"
M
Matias Romeo 已提交
73 74
    }
  ],
75
  "tables": [{
76 77 78
      "table_name": "record1",
      "index_type": "i64",
      "key_names": [
79
        "key"
M
Matias Romeo 已提交
80
      ],
81 82
      "key_types": [
        "uint64"
83 84 85
      ],
      "type": "record1"
    },{
86 87 88
      "table_name": "record2",
      "index_type": "i128i128",
      "key_names": [
M
Matias Romeo 已提交
89 90 91
        "key1",
        "key2"
      ],
92 93 94
      "key_types": [
        "uint128",
        "uint128"
95 96 97
      ],
      "type": "record2"
    },{
98 99 100
      "table_name": "record3",
      "index_type": "i64i64i64",
      "key_names": [
M
Matias Romeo 已提交
101 102 103 104
        "key1",
        "key2",
        "key3"
      ],
105 106 107 108
      "key_types": [
        "uint64",
        "uint64",
        "uint64"
109 110 111
      ],
      "type": "record3"
    },{
112 113 114
      "table_name": "keyvalue1",
      "index_type": "str",
      "key_names": [
115 116
        "key"
      ],
117 118
      "key_types": [
        "string"
119 120 121
      ],
      "type": "key_value1"
    },{
122 123 124
      "table_name": "keyvalue2",
      "index_type": "str",
      "key_names": [
M
Matias Romeo 已提交
125 126
        "key"
      ],
127 128
      "key_types": [
        "string"
129 130
      ],
      "type": "key_value2"
M
Matias Romeo 已提交
131 132 133
    }
  ]
}