eosio.system.abi 15.8 KB
Newer Older
1
{
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
   "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"
   }],
19
   "____comment": "eosio.bios structs: set_account_limits, setpriv, set_global_limits, producer_key, set_producers, require_auth are provided so abi available for deserialization in future.",
20 21 22 23 24 25 26 27 28 29 30 31 32 33
   "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"}
      ]
34 35 36 37 38 39 40 41
    },{
      "name": "bidname",
      "base": "",
      "fields": [
        {"name":"bidder",  "type":"account_name"},
        {"name":"newname", "type":"account_name"},
        {"name":"bid", "type":"asset"}
      ]
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 137
    },{
      "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"}
      ]
    },{
138 139 140 141 142 143 144 145 146 147 148 149
      "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 已提交
150
         {"name":"bytes", "type":"uint64"}
151
      ]
K
Khaled Al-Hassanieh 已提交
152
    },{
153
      "name": "buyram",
154 155
      "base": "",
      "fields": [
156 157 158
         {"name":"payer", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
         {"name":"quant", "type":"asset"}
159 160 161
      ]
    },{
      "name": "delegatebw",
162 163
      "base": "",
      "fields": [
164 165
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
166
         {"name":"stake_net_quantity", "type":"asset"},
167 168
         {"name":"stake_cpu_quantity", "type":"asset"},
         {"name":"transfer", "type":"bool"}
169 170 171 172 173 174 175
      ]
    },{
      "name": "undelegatebw",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
176
         {"name":"unstake_net_quantity", "type":"asset"},
A
arhag 已提交
177
         {"name":"unstake_cpu_quantity", "type":"asset"}
178
      ]
A
Anton Perkov 已提交
179 180 181 182 183 184
    },{
      "name": "refund",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"}
      ]
185 186 187 188 189 190
    },{
      "name": "delegated_bandwidth",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"to", "type":"account_name"},
191
         {"name":"net_weight", "type":"asset"},
192
         {"name":"cpu_weight", "type":"asset"}
193
      ]
194 195 196 197 198 199 200
    },{
      "name": "user_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
201
         {"name":"ram_bytes", "type":"uint64"}
202
      ]
203 204 205 206 207
    },{
      "name": "total_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
208 209
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
210
         {"name":"ram_bytes", "type":"uint64"}
211
      ]
212 213 214 215 216
    },{
      "name": "refund_request",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
B
Bucky Kittinger 已提交
217
         {"name":"request_time", "type":"time_point_sec"},
218 219
         {"name":"net_amount", "type":"asset"},
         {"name":"cpu_amount", "type":"asset"}
220
      ]
A
Anton Perkov 已提交
221
    },{
222
      "name": "blockchain_parameters",
A
Anton Perkov 已提交
223 224
      "base": "",
      "fields": [
K
Khaled Al-Hassanieh 已提交
225

226 227 228 229 230
         {"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"},
231 232
         {"name":"context_free_discount_net_usage_num", "type":"uint32"},
         {"name":"context_free_discount_net_usage_den", "type":"uint32"},
233 234 235
         {"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 已提交
236
         {"name":"min_transaction_cpu_usage",           "type":"uint32"},
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"},
242
         {"name":"max_authority_depth",                 "type":"uint16"}
243

244 245 246 247 248
      ]
    },{
      "name": "eosio_parameters",
      "base": "blockchain_parameters",
      "fields": [
249
         {"name":"max_ram_size", "type":"uint64"}
A
Anton Perkov 已提交
250
      ]
251
    },{
A
Anton Perkov 已提交
252 253 254
      "name": "eosio_global_state",
      "base": "eosio_parameters",
      "fields": [
K
Khaled Al-Hassanieh 已提交
255
         {"name":"total_ram_bytes_reserved",      "type":"uint64"},
K
Khaled Al-Hassanieh 已提交
256
         {"name":"total_ram_stake",               "type":"int64"},
B
Bucky Kittinger 已提交
257
         {"name":"last_producer_schedule_update", "type":"time_point_sec"},
258
         {"name":"last_pervote_bucket_fill",      "type":"uint64"},
D
Daniel Larimer 已提交
259 260 261
         {"name":"pervote_bucket",                "type":"int64"},
         {"name":"perblock_bucket",               "type":"int64"},
         {"name":"savings",                       "type":"int64"},
262
         {"name":"total_unpaid_blocks",           "type":"uint32"},
263
         {"name":"total_activated_stake",         "type":"int64"},
264
         {"name":"thresh_activated_stake_time",   "type":"uint64"},
K
Khaled Al-Hassanieh 已提交
265
         {"name":"last_producer_schedule_id",     "type":"checksum160"},
266 267
         {"name":"total_producer_vote_weight",    "type":"float64"},
         {"name":"last_name_close",               "type":"block_timestamp_type"}
A
Anton Perkov 已提交
268
      ]
269 270 271 272
    },{
      "name": "producer_info",
      "base": "",
      "fields": [
273 274 275
         {"name":"owner",                    "type":"account_name"},
         {"name":"total_votes",              "type":"float64"},
         {"name":"producer_key",             "type":"public_key"},
276
         {"name":"url",                      "type":"string"},
277
         {"name":"unpaid_blocks",            "type":"uint32"},
278
         {"name":"last_claim_time",          "type":"uint64"},
279
         {"name":"location",                 "type":"uint16"},
280 281
         {"name":"time_became_active",       "type":"uint32"},
         {"name":"last_produced_block_time", "type":"uint32"}
282
      ]
D
Daniel Larimer 已提交
283 284 285 286
    },{
      "name": "regproducer",
      "base": "",
      "fields": [
A
Anton Perkov 已提交
287
        {"name":"producer",     "type":"account_name"},
288
        {"name":"producer_key", "type":"public_key"},
289
        {"name":"url",          "type":"string"},
290
        {"name":"location",     "type":"uint16"}
D
Daniel Larimer 已提交
291
      ]
292 293 294 295 296 297
    },{
      "name": "unregprod",
      "base": "",
      "fields": [
        {"name":"producer",     "type":"account_name"}
      ]
298
    },{
299
      "name": "setram",
300 301
      "base": "",
      "fields": [
302
        {"name":"max_ram_size",     "type":"uint64"}
303
      ]
304 305 306 307
    },{
      "name": "regproxy",
      "base": "",
      "fields": [
A
arhag 已提交
308
        {"name":"proxy",     "type":"account_name"},
309
        {"name":"isproxy",   "type":"bool"}
310
      ]
A
Anton Perkov 已提交
311 312 313 314 315 316 317
    },{
      "name": "voteproducer",
      "base": "",
      "fields": [
        {"name":"voter",     "type":"account_name"},
        {"name":"proxy",     "type":"account_name"},
        {"name":"producers", "type":"account_name[]"}
D
Daniel Larimer 已提交
318 319
      ]
    },{
320
      "name": "voter_info",
D
Daniel Larimer 已提交
321 322
      "base": "",
      "fields": [
323 324 325
        {"name":"owner",                "type":"account_name"},
        {"name":"proxy",                "type":"account_name"},
        {"name":"producers",            "type":"account_name[]"},
K
Khaled Al-Hassanieh 已提交
326
        {"name":"staked",               "type":"int64"},
327 328 329 330
        {"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 已提交
331
        {"name":"last_unstake_time",    "type":"time_point_sec"},
A
arhag 已提交
332
        {"name":"unstaking",            "type":"asset"}
333
      ]
334 335 336 337 338
    },{
      "name": "claimrewards",
      "base": "",
      "fields": [
        {"name":"owner",   "type":"account_name"}
D
Daniel Larimer 已提交
339
      ]
340
    },{
341 342 343 344 345 346
      "name": "setpriv",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"is_priv",    "type":"int8"}
      ]
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
    },{
      "name": "set_account_limits",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"ram_bytes",  "type":"int64"},
        {"name":"net_weight", "type":"int64"},
        {"name":"cpu_weight", "type":"int64"}
      ]
    },{
      "name": "set_global_limits",
      "base": "",
      "fields": [
        {"name":"cpu_usec_per_period",    "type":"int64"}
      ]
    },{
      "name": "producer_key",
      "base": "",
      "fields": [
        {"name":"producer_name",      "type":"account_name"},
        {"name":"block_signing_key",  "type":"public_key"}
      ]
    },{
      "name": "set_producers",
      "base": "",
      "fields": [
        {"name":"schedule",   "type":"producer_key[]"}
      ]
    },{
      "name": "require_auth",
      "base": "",
      "fields": [
        {"name":"from", "type":"account_name"}
      ]
381
    }
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
   ],
   "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": ""
   },{
420 421 422
      "name": "buyrambytes",
      "type": "buyrambytes",
      "ricardian_contract": ""
423
   },{
424 425
      "name": "buyram",
      "type": "buyram",
426
      "ricardian_contract": ""
427
   },{
428 429 430
      "name": "sellram",
      "type": "sellram",
      "ricardian_contract": ""
431
   },{
432
      "name": "delegatebw",
433 434
      "type": "delegatebw",
      "ricardian_contract": ""
435
   },{
436
      "name": "undelegatebw",
437 438
      "type": "undelegatebw",
      "ricardian_contract": ""
439
   },{
A
Anton Perkov 已提交
440
      "name": "refund",
441 442
      "type": "refund",
      "ricardian_contract": ""
443
   },{
D
Daniel Larimer 已提交
444
      "name": "regproducer",
445 446
      "type": "regproducer",
      "ricardian_contract": ""
447
   },{
448 449
      "name": "setram",
      "type": "setram",
450
      "ricardian_contract": ""
451 452 453 454
   },{
      "name": "bidname",
      "type": "bidname",
      "ricardian_contract": ""
455
   },{
456
      "name": "unregprod",
457 458
      "type": "unregprod",
      "ricardian_contract": ""
459
   },{
460
      "name": "regproxy",
461 462
      "type": "regproxy",
      "ricardian_contract": ""
463
   },{
A
Anton Perkov 已提交
464
      "name": "voteproducer",
465 466
      "type": "voteproducer",
      "ricardian_contract": ""
467
   },{
468
      "name": "claimrewards",
469 470
      "type": "claimrewards",
      "ricardian_contract": ""
471 472 473 474
   },{
      "name": "setpriv",
      "type": "setpriv",
      "ricardian_contract": ""
475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491
   },{
      "name": "setalimits",
      "type": "set_account_limits",
      "ricardian_contract": ""
    },{
      "name": "setglimits",
      "type": "set_global_limits",
      "ricardian_contract": ""
    },{
      "name": "setprods",
      "type": "set_producers",
      "ricardian_contract": ""
    },{
      "name": "reqauth",
      "type": "require_auth",
      "ricardian_contract": ""
    }],
492
   "tables": [{
A
Anton Perkov 已提交
493
      "name": "producers",
494 495 496 497
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
498 499 500 501 502 503
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
504 505 506 507 508 509
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
510 511 512 513 514 515
    },{
      "name": "userres",
      "type": "user_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533
    },{
      "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"]
534
    }
535 536 537
   ],
   "ricardian_clauses": [],
   "abi_extensions": []
D
Daniel Larimer 已提交
538
}