eosio.system.abi 14.3 KB
Newer Older
1
{
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
   "version": "eosio::abi/1.0",
   "types": [{
      "new_type_name": "account_name",
      "type": "name"
   },{
      "new_type_name": "permission_name",
      "type": "name"
   },{
      "new_type_name": "action_name",
      "type": "name"
   },{
      "new_type_name": "transaction_id_type",
      "type": "checksum256"
   },{
      "new_type_name": "weight_type",
      "type": "uint16"
   }],
   "structs": [{
      "name": "permission_level",
      "base": "",
      "fields": [
        {"name":"actor",      "type":"account_name"},
        {"name":"permission", "type":"permission_name"}
      ]
    },{
      "name": "key_weight",
      "base": "",
      "fields": [
        {"name":"key",    "type":"public_key"},
        {"name":"weight", "type":"weight_type"}
      ]
33 34 35 36 37 38 39 40
    },{
      "name": "bidname",
      "base": "",
      "fields": [
        {"name":"bidder",  "type":"account_name"},
        {"name":"newname", "type":"account_name"},
        {"name":"bid", "type":"asset"}
      ]
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
    },{
      "name": "permission_level_weight",
      "base": "",
      "fields": [
        {"name":"permission", "type":"permission_level"},
        {"name":"weight",     "type":"weight_type"}
      ]
    },{
      "name": "wait_weight",
      "base": "",
      "fields": [
        {"name":"wait_sec", "type":"uint32"},
        {"name":"weight",   "type":"weight_type"}
      ]
    },{
      "name": "authority",
      "base": "",
      "fields": [
        {"name":"threshold", "type":"uint32"},
        {"name":"keys",      "type":"key_weight[]"},
        {"name":"accounts",  "type":"permission_level_weight[]"},
        {"name":"waits",     "type":"wait_weight[]"}
      ]
    },{
      "name": "newaccount",
      "base": "",
      "fields": [
        {"name":"creator", "type":"account_name"},
        {"name":"name",    "type":"account_name"},
        {"name":"owner",   "type":"authority"},
        {"name":"active",  "type":"authority"}
      ]
    },{
      "name": "setcode",
      "base": "",
      "fields": [
        {"name":"account",   "type":"account_name"},
        {"name":"vmtype",    "type":"uint8"},
        {"name":"vmversion", "type":"uint8"},
        {"name":"code",      "type":"bytes"}
      ]
    },{
      "name": "setabi",
      "base": "",
      "fields": [
        {"name":"account", "type":"account_name"},
        {"name":"abi",     "type":"bytes"}
      ]
    },{
      "name": "updateauth",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"permission", "type":"permission_name"},
        {"name":"parent",     "type":"permission_name"},
        {"name":"auth",       "type":"authority"}
      ]
    },{
      "name": "deleteauth",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"permission", "type":"permission_name"}
      ]
    },{
      "name": "linkauth",
      "base": "",
      "fields": [
        {"name":"account",     "type":"account_name"},
        {"name":"code",        "type":"account_name"},
        {"name":"type",        "type":"action_name"},
        {"name":"requirement", "type":"permission_name"}
      ]
    },{
      "name": "unlinkauth",
      "base": "",
      "fields": [
        {"name":"account",     "type":"account_name"},
        {"name":"code",        "type":"account_name"},
        {"name":"type",        "type":"action_name"}
      ]
    },{
      "name": "canceldelay",
      "base": "",
      "fields": [
        {"name":"canceling_auth", "type":"permission_level"},
        {"name":"trx_id",         "type":"transaction_id_type"}
      ]
    },{
      "name": "onerror",
      "base": "",
      "fields": [
        {"name":"sender_id", "type":"uint128"},
        {"name":"sent_trx",  "type":"bytes"}
      ]
    },{
137 138 139 140 141 142 143 144 145 146 147 148
      "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 已提交
149
         {"name":"bytes", "type":"uint64"}
150
      ]
K
Khaled Al-Hassanieh 已提交
151
    },{
152
      "name": "buyram",
153 154
      "base": "",
      "fields": [
155 156 157
         {"name":"payer", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
         {"name":"quant", "type":"asset"}
158 159 160
      ]
    },{
      "name": "delegatebw",
161 162
      "base": "",
      "fields": [
163 164
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
165
         {"name":"stake_net_quantity", "type":"asset"},
166 167
         {"name":"stake_cpu_quantity", "type":"asset"},
         {"name":"transfer", "type":"bool"}
168 169 170 171 172 173 174
      ]
    },{
      "name": "undelegatebw",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
175
         {"name":"unstake_net_quantity", "type":"asset"},
A
arhag 已提交
176
         {"name":"unstake_cpu_quantity", "type":"asset"}
177
      ]
A
Anton Perkov 已提交
178 179 180 181 182 183
    },{
      "name": "refund",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"}
      ]
184 185 186 187 188 189
    },{
      "name": "delegated_bandwidth",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"to", "type":"account_name"},
190
         {"name":"net_weight", "type":"asset"},
191
         {"name":"cpu_weight", "type":"asset"}
192
      ]
193 194 195 196 197 198 199
    },{
      "name": "user_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
200
         {"name":"ram_bytes", "type":"uint64"}
201
      ]
202 203 204 205 206
    },{
      "name": "total_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
207 208
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
209
         {"name":"ram_bytes", "type":"uint64"}
210
      ]
211 212 213 214 215
    },{
      "name": "refund_request",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
B
Bucky Kittinger 已提交
216
         {"name":"request_time", "type":"time_point_sec"},
217 218
         {"name":"amount", "type":"uint64"}
      ]
A
Anton Perkov 已提交
219
    },{
220
      "name": "blockchain_parameters",
A
Anton Perkov 已提交
221 222
      "base": "",
      "fields": [
K
Khaled Al-Hassanieh 已提交
223

224 225 226 227 228
         {"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"},
229 230
         {"name":"context_free_discount_net_usage_num", "type":"uint32"},
         {"name":"context_free_discount_net_usage_den", "type":"uint32"},
231 232 233
         {"name":"max_block_cpu_usage",                 "type":"uint32"},
         {"name":"target_block_cpu_usage_pct",          "type":"uint32"},
         {"name":"max_transaction_cpu_usage",           "type":"uint32"},
K
Khaled Al-Hassanieh 已提交
234
         {"name":"min_transaction_cpu_usage",           "type":"uint32"},
235 236 237 238 239 240 241
         {"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"}
242

243 244 245 246 247
      ]
    },{
      "name": "eosio_parameters",
      "base": "blockchain_parameters",
      "fields": [
248
         {"name":"max_ram_size", "type":"uint64"}
A
Anton Perkov 已提交
249
      ]
250
    },{
A
Anton Perkov 已提交
251 252 253
      "name": "eosio_global_state",
      "base": "eosio_parameters",
      "fields": [
K
Khaled Al-Hassanieh 已提交
254
         {"name":"total_ram_bytes_reserved",      "type":"uint64"},
K
Khaled Al-Hassanieh 已提交
255
         {"name":"total_ram_stake",               "type":"int64"},
B
Bucky Kittinger 已提交
256
         {"name":"last_producer_schedule_update", "type":"time_point_sec"},
257
         {"name":"last_pervote_bucket_fill",      "type":"uint64"},
D
Daniel Larimer 已提交
258 259 260
         {"name":"pervote_bucket",                "type":"int64"},
         {"name":"perblock_bucket",               "type":"int64"},
         {"name":"savings",                       "type":"int64"},
261
         {"name":"total_unpaid_blocks",           "type":"uint32"},
262
         {"name":"total_activated_stake",         "type":"int64"},
K
Khaled Al-Hassanieh 已提交
263
         {"name":"last_producer_schedule_id",     "type":"checksum160"},
264 265
         {"name":"total_producer_vote_weight",    "type":"float64"},
         {"name":"last_name_close",               "type":"block_timestamp_type"}
A
Anton Perkov 已提交
266
      ]
267 268 269 270
    },{
      "name": "producer_info",
      "base": "",
      "fields": [
271 272 273
         {"name":"owner",                    "type":"account_name"},
         {"name":"total_votes",              "type":"float64"},
         {"name":"producer_key",             "type":"public_key"},
274
         {"name":"url",                      "type":"string"},
275
         {"name":"unpaid_blocks",            "type":"uint32"},
276
         {"name":"last_claim_time",          "type":"uint64"},
277
         {"name":"location",                 "type":"uint16"},
278 279
         {"name":"time_became_active",       "type":"uint32"},
         {"name":"last_produced_block_time", "type":"uint32"}
280
      ]
D
Daniel Larimer 已提交
281 282 283 284
    },{
      "name": "regproducer",
      "base": "",
      "fields": [
A
Anton Perkov 已提交
285
        {"name":"producer",     "type":"account_name"},
286
        {"name":"producer_key", "type":"public_key"},
287
        {"name":"url",          "type":"string"},
288
        {"name":"location",     "type":"uint16"}
D
Daniel Larimer 已提交
289
      ]
290 291 292 293 294 295
    },{
      "name": "unregprod",
      "base": "",
      "fields": [
        {"name":"producer",     "type":"account_name"}
      ]
296
    },{
297
      "name": "setram",
298 299
      "base": "",
      "fields": [
300
        {"name":"max_ram_size",     "type":"uint64"}
301
      ]
302 303 304 305
    },{
      "name": "regproxy",
      "base": "",
      "fields": [
A
arhag 已提交
306
        {"name":"proxy",     "type":"account_name"},
307
        {"name":"isproxy",   "type":"bool"}
308
      ]
A
Anton Perkov 已提交
309 310 311 312 313 314 315
    },{
      "name": "voteproducer",
      "base": "",
      "fields": [
        {"name":"voter",     "type":"account_name"},
        {"name":"proxy",     "type":"account_name"},
        {"name":"producers", "type":"account_name[]"}
D
Daniel Larimer 已提交
316 317
      ]
    },{
318
      "name": "voter_info",
D
Daniel Larimer 已提交
319 320
      "base": "",
      "fields": [
321 322 323
        {"name":"owner",                "type":"account_name"},
        {"name":"proxy",                "type":"account_name"},
        {"name":"producers",            "type":"account_name[]"},
K
Khaled Al-Hassanieh 已提交
324
        {"name":"staked",               "type":"int64"},
325 326 327 328
        {"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 已提交
329
        {"name":"last_unstake_time",    "type":"time_point_sec"},
A
arhag 已提交
330
        {"name":"unstaking",            "type":"asset"}
331
      ]
332 333 334 335 336
    },{
      "name": "claimrewards",
      "base": "",
      "fields": [
        {"name":"owner",   "type":"account_name"}
D
Daniel Larimer 已提交
337
      ]
338
    },{
339 340 341 342 343 344
      "name": "setpriv",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"is_priv",    "type":"int8"}
      ]
345
    }
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383
   ],
   "actions": [{
     "name": "newaccount",
     "type": "newaccount",
     "ricardian_contract": ""
   },{
     "name": "setcode",
     "type": "setcode",
     "ricardian_contract": ""
   },{
     "name": "setabi",
     "type": "setabi",
     "ricardian_contract": ""
   },{
     "name": "updateauth",
     "type": "updateauth",
     "ricardian_contract": ""
   },{
     "name": "deleteauth",
     "type": "deleteauth",
     "ricardian_contract": ""
   },{
     "name": "linkauth",
     "type": "linkauth",
     "ricardian_contract": ""
   },{
     "name": "unlinkauth",
     "type": "unlinkauth",
     "ricardian_contract": ""
   },{
     "name": "canceldelay",
     "type": "canceldelay",
     "ricardian_contract": ""
   },{
     "name": "onerror",
     "type": "onerror",
     "ricardian_contract": ""
   },{
384 385 386
      "name": "buyrambytes",
      "type": "buyrambytes",
      "ricardian_contract": ""
387
   },{
388 389
      "name": "buyram",
      "type": "buyram",
390
      "ricardian_contract": ""
391
   },{
392 393 394
      "name": "sellram",
      "type": "sellram",
      "ricardian_contract": ""
395
   },{
396
      "name": "delegatebw",
397 398
      "type": "delegatebw",
      "ricardian_contract": ""
399
   },{
400
      "name": "undelegatebw",
401 402
      "type": "undelegatebw",
      "ricardian_contract": ""
403
   },{
A
Anton Perkov 已提交
404
      "name": "refund",
405 406
      "type": "refund",
      "ricardian_contract": ""
407
   },{
D
Daniel Larimer 已提交
408
      "name": "regproducer",
409 410
      "type": "regproducer",
      "ricardian_contract": ""
411
   },{
412 413
      "name": "setram",
      "type": "setram",
414
      "ricardian_contract": ""
415 416 417 418
   },{
      "name": "bidname",
      "type": "bidname",
      "ricardian_contract": ""
419
   },{
420
      "name": "unregprod",
421 422
      "type": "unregprod",
      "ricardian_contract": ""
423
   },{
424
      "name": "regproxy",
425 426
      "type": "regproxy",
      "ricardian_contract": ""
427
   },{
A
Anton Perkov 已提交
428
      "name": "voteproducer",
429 430
      "type": "voteproducer",
      "ricardian_contract": ""
431
   },{
432
      "name": "claimrewards",
433 434
      "type": "claimrewards",
      "ricardian_contract": ""
435 436 437 438
   },{
      "name": "setpriv",
      "type": "setpriv",
      "ricardian_contract": ""
439 440
   }],
   "tables": [{
A
Anton Perkov 已提交
441
      "name": "producers",
442 443 444 445
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
446 447 448 449 450 451
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
452 453 454 455 456 457
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
458 459 460 461 462 463
    },{
      "name": "userres",
      "type": "user_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481
    },{
      "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"]
482
    }
483 484 485
   ],
   "ricardian_clauses": [],
   "abi_extensions": []
D
Daniel Larimer 已提交
486
}