eosio.system.abi 9.8 KB
Newer Older
1
{
2
  "types": [],
3
  "structs": [{
4 5 6 7 8 9 10 11 12 13 14 15
      "name": "buyrambytes",
      "base": "",
      "fields": [
         {"name":"payer", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
         {"name":"bytes", "type":"uint32"}
      ]
    },{
      "name": "sellram",
      "base": "",
      "fields": [
         {"name":"account", "type":"account_name"},
D
Daniel Larimer 已提交
16
         {"name":"bytes", "type":"uint64"}
17
      ]
K
Khaled Al-Hassanieh 已提交
18
    },{
19
      "name": "buyram",
20 21
      "base": "",
      "fields": [
22 23 24
         {"name":"payer", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
         {"name":"quant", "type":"asset"}
25 26 27
      ]
    },{
      "name": "delegatebw",
28 29
      "base": "",
      "fields": [
30 31
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
32
         {"name":"stake_net_quantity", "type":"asset"},
33 34
         {"name":"stake_cpu_quantity", "type":"asset"},
         {"name":"transfer", "type":"bool"}
35 36 37 38 39 40 41
      ]
    },{
      "name": "undelegatebw",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
42
         {"name":"unstake_net_quantity", "type":"asset"},
A
arhag 已提交
43
         {"name":"unstake_cpu_quantity", "type":"asset"}
44
      ]
A
Anton Perkov 已提交
45 46 47 48 49 50
    },{
      "name": "refund",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"}
      ]
51 52 53 54 55 56
    },{
      "name": "delegated_bandwidth",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"to", "type":"account_name"},
57
         {"name":"net_weight", "type":"asset"},
58
         {"name":"cpu_weight", "type":"asset"}
59
      ]
60 61 62 63 64 65 66
    },{
      "name": "user_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
67
         {"name":"ram_bytes", "type":"uint64"}
68
      ]
69 70 71 72 73
    },{
      "name": "total_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
74 75
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
76
         {"name":"ram_bytes", "type":"uint64"}
77
      ]
78 79 80 81 82
    },{
      "name": "refund_request",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
B
Bucky Kittinger 已提交
83
         {"name":"request_time", "type":"time_point_sec"},
84 85
         {"name":"amount", "type":"uint64"}
      ]
A
Anton Perkov 已提交
86
    },{
87
      "name": "blockchain_parameters",
A
Anton Perkov 已提交
88 89
      "base": "",
      "fields": [
90 91 92 93 94
         {"name":"max_block_net_usage",                 "type":"uint64"},
         {"name":"target_block_net_usage_pct",          "type":"uint32"},
         {"name":"max_transaction_net_usage",           "type":"uint32"},
         {"name":"base_per_transaction_net_usage",      "type":"uint32"},
         {"name":"net_usage_leeway",                    "type":"uint32"},
95 96
         {"name":"context_free_discount_net_usage_num", "type":"uint32"},
         {"name":"context_free_discount_net_usage_den", "type":"uint32"},
97 98 99 100 101 102 103 104
         {"name":"max_block_cpu_usage",                 "type":"uint32"},
         {"name":"target_block_cpu_usage_pct",          "type":"uint32"},
         {"name":"max_transaction_cpu_usage",           "type":"uint32"},
         {"name":"base_per_transaction_cpu_usage",      "type":"uint32"},
         {"name":"base_per_action_cpu_usage",           "type":"uint32"},
         {"name":"base_setcode_cpu_usage",              "type":"uint32"},
         {"name":"per_signature_cpu_usage",             "type":"uint32"},
         {"name":"cpu_usage_leeway",                    "type":"uint32"},
105 106
         {"name":"context_free_discount_cpu_usage_num", "type":"uint32"},
         {"name":"context_free_discount_cpu_usage_den", "type":"uint32"},
107 108 109 110 111 112 113
         {"name":"max_transaction_lifetime",            "type":"uint32"},
         {"name":"deferred_trx_expiration_window",      "type":"uint32"},
         {"name":"max_transaction_delay",               "type":"uint32"},
         {"name":"max_inline_action_size",              "type":"uint32"},
         {"name":"max_inline_action_depth",             "type":"uint16"},
         {"name":"max_authority_depth",                 "type":"uint16"},
         {"name":"max_generated_transaction_count",     "type":"uint32"}
114 115 116 117 118
      ]
    },{
      "name": "eosio_parameters",
      "base": "blockchain_parameters",
      "fields": [
119
         {"name":"max_ram_size", "type":"uint64"}
A
Anton Perkov 已提交
120
      ]
121
    },{
A
Anton Perkov 已提交
122 123 124
      "name": "eosio_global_state",
      "base": "eosio_parameters",
      "fields": [
K
Khaled Al-Hassanieh 已提交
125
         {"name":"total_ram_bytes_reserved",      "type":"uint64"},
K
Khaled Al-Hassanieh 已提交
126
         {"name":"total_ram_stake",               "type":"int64"},
B
Bucky Kittinger 已提交
127
         {"name":"last_producer_schedule_update", "type":"time_point_sec"},
128
         {"name":"last_pervote_bucket_fill",      "type":"uint64"},
D
Daniel Larimer 已提交
129 130 131
         {"name":"pervote_bucket",                "type":"int64"},
         {"name":"perblock_bucket",               "type":"int64"},
         {"name":"savings",                       "type":"int64"},
132
         {"name":"total_unpaid_blocks",           "type":"uint32"},
133 134 135
         {"name":"total_activated_stake",         "type":"int64"},
         {"name":"last_producer_schedule_id",     "type":"checksum160"},
         {"name":"total_producer_vote_weight",    "type":"float64"}
A
Anton Perkov 已提交
136
      ]
137 138 139 140
    },{
      "name": "producer_info",
      "base": "",
      "fields": [
141 142 143
         {"name":"owner",                    "type":"account_name"},
         {"name":"total_votes",              "type":"float64"},
         {"name":"producer_key",             "type":"public_key"},
144
         {"name":"url",                      "type":"string"},
145
         {"name":"produced_blocks",          "type":"uint32"},
146
         {"name":"last_claim_time",          "type":"uint64"},
147
         {"name":"location",                 "type":"uint16"},
148 149
         {"name":"time_became_active",       "type":"uint32"},
         {"name":"last_produced_block_time", "type":"uint32"}
150
      ]
D
Daniel Larimer 已提交
151 152 153 154
    },{
      "name": "regproducer",
      "base": "",
      "fields": [
A
Anton Perkov 已提交
155
        {"name":"producer",     "type":"account_name"},
156
        {"name":"producer_key", "type":"public_key"},
157
        {"name":"url",          "type":"string"},
158
        {"name":"location",     "type":"uint16"}
D
Daniel Larimer 已提交
159
      ]
160 161 162 163 164 165
    },{
      "name": "unregprod",
      "base": "",
      "fields": [
        {"name":"producer",     "type":"account_name"}
      ]
166
    },{
167
      "name": "setram",
168 169
      "base": "",
      "fields": [
170
        {"name":"max_ram_size",     "type":"uint64"}
171
      ]
172 173 174 175
    },{
      "name": "regproxy",
      "base": "",
      "fields": [
A
arhag 已提交
176
        {"name":"proxy",     "type":"account_name"},
177
        {"name":"isproxy",   "type":"bool"}
178
      ]
A
Anton Perkov 已提交
179 180 181 182 183 184 185
    },{
      "name": "voteproducer",
      "base": "",
      "fields": [
        {"name":"voter",     "type":"account_name"},
        {"name":"proxy",     "type":"account_name"},
        {"name":"producers", "type":"account_name[]"}
D
Daniel Larimer 已提交
186 187
      ]
    },{
188
      "name": "voter_info",
D
Daniel Larimer 已提交
189 190
      "base": "",
      "fields": [
191 192 193
        {"name":"owner",                "type":"account_name"},
        {"name":"proxy",                "type":"account_name"},
        {"name":"producers",            "type":"account_name[]"},
K
Khaled Al-Hassanieh 已提交
194
        {"name":"staked",               "type":"int64"},
195 196 197 198
        {"name":"last_vote_weight",     "type":"float64"},
        {"name":"proxied_vote_weight",  "type":"float64"},
        {"name":"is_proxy",             "type":"bool"},
        {"name":"deferred_trx_id",      "type":"uint32"},
B
Bucky Kittinger 已提交
199
        {"name":"last_unstake_time",    "type":"time_point_sec"},
A
arhag 已提交
200
        {"name":"unstaking",            "type":"asset"}
201
      ]
202 203 204 205 206
    },{
      "name": "claimrewards",
      "base": "",
      "fields": [
        {"name":"owner",   "type":"account_name"}
D
Daniel Larimer 已提交
207
      ]
208 209
    }
  ],
210 211
  "actions": [
    {
212 213 214 215
      "name": "buyrambytes",
      "type": "buyrambytes",
      "ricardian_contract": ""
    },{
216 217
      "name": "buyram",
      "type": "buyram",
218
      "ricardian_contract": ""
219 220 221 222
    },{
      "name": "sellram",
      "type": "sellram",
      "ricardian_contract": ""
223
    },{
224
      "name": "delegatebw",
225 226
      "type": "delegatebw",
      "ricardian_contract": ""
227 228
    },{
      "name": "undelegatebw",
229 230
      "type": "undelegatebw",
      "ricardian_contract": ""
A
Anton Perkov 已提交
231 232
    },{
      "name": "refund",
233 234
      "type": "refund",
      "ricardian_contract": ""
D
Daniel Larimer 已提交
235 236
    },{
      "name": "regproducer",
237 238
      "type": "regproducer",
      "ricardian_contract": ""
239
    },{
240 241
      "name": "setram",
      "type": "setram",
242
      "ricardian_contract": ""
D
Daniel Larimer 已提交
243
    },{
244
      "name": "unregprod",
245 246
      "type": "unregprod",
      "ricardian_contract": ""
247 248
    },{
      "name": "regproxy",
249 250
      "type": "regproxy",
      "ricardian_contract": ""
A
Anton Perkov 已提交
251 252
    },{
      "name": "voteproducer",
253 254
      "type": "voteproducer",
      "ricardian_contract": ""
255 256
    },{
      "name": "claimrewards",
257 258
      "type": "claimrewards",
      "ricardian_contract": ""
259 260
    }
  ],
261
  "tables": [{
A
Anton Perkov 已提交
262
      "name": "producers",
263 264 265 266
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
267 268 269 270 271 272
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
273 274 275 276 277 278
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
279 280 281 282 283 284
    },{
      "name": "userres",
      "type": "user_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302
    },{
      "name": "totalband",
      "type": "total_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
    },{
      "name": "delband",
      "type": "delegated_bandwidth",
      "index_type": "i64",
      "key_names" : ["to"],
      "key_types" : ["uint64"]
    },{
      "name": "refunds",
      "type": "refund_request",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
303
    }
304
  ],
305
  "ricardian_clauses": []
D
Daniel Larimer 已提交
306
}