eosio.system.abi 16.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
    },{
A
Anton Perkov 已提交
246
      "name": "eosio_global_state",
A
arhag 已提交
247
      "base": "blockchain_parameters",
A
Anton Perkov 已提交
248
      "fields": [
A
arhag 已提交
249
         {"name":"max_ram_size",                  "type":"uint64"},
K
Khaled Al-Hassanieh 已提交
250
         {"name":"total_ram_bytes_reserved",      "type":"uint64"},
K
Khaled Al-Hassanieh 已提交
251
         {"name":"total_ram_stake",               "type":"int64"},
K
Khaled Al-Hassanieh 已提交
252
         {"name":"last_producer_schedule_update", "type":"block_timestamp_type"},
253
         {"name":"last_pervote_bucket_fill",      "type":"uint64"},
D
Daniel Larimer 已提交
254 255
         {"name":"pervote_bucket",                "type":"int64"},
         {"name":"perblock_bucket",               "type":"int64"},
256
         {"name":"total_unpaid_blocks",           "type":"uint32"},
257
         {"name":"total_activated_stake",         "type":"int64"},
258
         {"name":"thresh_activated_stake_time",   "type":"uint64"},
259
         {"name":"last_producer_schedule_size",   "type":"uint16"},
260 261
         {"name":"total_producer_vote_weight",    "type":"float64"},
         {"name":"last_name_close",               "type":"block_timestamp_type"}
A
Anton Perkov 已提交
262
      ]
263 264 265 266
    },{
      "name": "producer_info",
      "base": "",
      "fields": [
267 268 269 270 271 272 273 274
         {"name":"owner",           "type":"account_name"},
         {"name":"total_votes",     "type":"float64"},
         {"name":"producer_key",    "type":"public_key"},
         {"name":"is_active",       "type":"bool"},
         {"name":"url",             "type":"string"},
         {"name":"unpaid_blocks",   "type":"uint32"},
         {"name":"last_claim_time", "type":"uint64"},
         {"name":"location",        "type":"uint16"}
275
      ]
D
Daniel Larimer 已提交
276 277 278 279
    },{
      "name": "regproducer",
      "base": "",
      "fields": [
A
Anton Perkov 已提交
280
        {"name":"producer",     "type":"account_name"},
281
        {"name":"producer_key", "type":"public_key"},
282
        {"name":"url",          "type":"string"},
283
        {"name":"location",     "type":"uint16"}
D
Daniel Larimer 已提交
284
      ]
285 286 287 288 289 290
    },{
      "name": "unregprod",
      "base": "",
      "fields": [
        {"name":"producer",     "type":"account_name"}
      ]
291
    },{
292
      "name": "setram",
293 294
      "base": "",
      "fields": [
295
        {"name":"max_ram_size",     "type":"uint64"}
296
      ]
297 298 299 300
    },{
      "name": "regproxy",
      "base": "",
      "fields": [
A
arhag 已提交
301
        {"name":"proxy",     "type":"account_name"},
302
        {"name":"isproxy",   "type":"bool"}
303
      ]
A
Anton Perkov 已提交
304 305 306 307 308 309 310
    },{
      "name": "voteproducer",
      "base": "",
      "fields": [
        {"name":"voter",     "type":"account_name"},
        {"name":"proxy",     "type":"account_name"},
        {"name":"producers", "type":"account_name[]"}
D
Daniel Larimer 已提交
311 312
      ]
    },{
313
      "name": "voter_info",
D
Daniel Larimer 已提交
314 315
      "base": "",
      "fields": [
316 317 318
        {"name":"owner",                "type":"account_name"},
        {"name":"proxy",                "type":"account_name"},
        {"name":"producers",            "type":"account_name[]"},
K
Khaled Al-Hassanieh 已提交
319
        {"name":"staked",               "type":"int64"},
320 321 322 323
        {"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 已提交
324
        {"name":"last_unstake_time",    "type":"time_point_sec"},
A
arhag 已提交
325
        {"name":"unstaking",            "type":"asset"}
326
      ]
327 328 329 330 331
    },{
      "name": "claimrewards",
      "base": "",
      "fields": [
        {"name":"owner",   "type":"account_name"}
D
Daniel Larimer 已提交
332
      ]
333
    },{
334 335 336 337 338 339
      "name": "setpriv",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"is_priv",    "type":"int8"}
      ]
340 341 342 343 344 345
    },{
      "name": "rmvproducer",
      "base": "",
      "fields": [
        {"name":"producer", "type":"account_name"}
      ]
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
    },{
      "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"}
      ]
380 381 382 383
    },{
      "name": "setparams",
      "base": "",
      "fields": [
A
arhag 已提交
384
        {"name":"params", "type":"blockchain_parameters"}
385
      ]
K
Kevin Heifner 已提交
386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
    },{
      "name": "connector",
      "base": "",
      "fields": [
        {"name":"balance", "type":"asset"},
        {"name":"weight", "type":"float64"}
      ]
    },{
      "name": "exchange_state",
      "base": "",
      "fields": [
        {"name":"supply", "type":"asset"},
        {"name":"base", "type":"connector"},
        {"name":"quote", "type":"connector"}
      ]
K
Kayan 已提交
401 402 403 404 405 406 407 408 409
    }, {
       "name": "namebid_info",
       "base": "",
       "fields": [
          {"name":"newname", "type":"account_name"},
          {"name":"high_bidder", "type":"account_name"},
          {"name":"high_bid", "type":"int64"},
          {"name":"last_bid_time", "type":"uint64"}
       ]
410
    }
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448
   ],
   "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": ""
   },{
449 450 451
      "name": "buyrambytes",
      "type": "buyrambytes",
      "ricardian_contract": ""
452
   },{
453 454
      "name": "buyram",
      "type": "buyram",
455
      "ricardian_contract": ""
456
   },{
457 458 459
      "name": "sellram",
      "type": "sellram",
      "ricardian_contract": ""
460
   },{
461
      "name": "delegatebw",
462 463
      "type": "delegatebw",
      "ricardian_contract": ""
464
   },{
465
      "name": "undelegatebw",
466 467
      "type": "undelegatebw",
      "ricardian_contract": ""
468
   },{
A
Anton Perkov 已提交
469
      "name": "refund",
470 471
      "type": "refund",
      "ricardian_contract": ""
472
   },{
D
Daniel Larimer 已提交
473
      "name": "regproducer",
474 475
      "type": "regproducer",
      "ricardian_contract": ""
476
   },{
477 478
      "name": "setram",
      "type": "setram",
479
      "ricardian_contract": ""
480 481 482 483
   },{
      "name": "bidname",
      "type": "bidname",
      "ricardian_contract": ""
484
   },{
485
      "name": "unregprod",
486 487
      "type": "unregprod",
      "ricardian_contract": ""
488
   },{
489
      "name": "regproxy",
490 491
      "type": "regproxy",
      "ricardian_contract": ""
492
   },{
A
Anton Perkov 已提交
493
      "name": "voteproducer",
494 495
      "type": "voteproducer",
      "ricardian_contract": ""
496
   },{
497
      "name": "claimrewards",
498 499
      "type": "claimrewards",
      "ricardian_contract": ""
500 501 502 503
   },{
      "name": "setpriv",
      "type": "setpriv",
      "ricardian_contract": ""
504 505 506 507
   },{
      "name": "rmvproducer",
      "type": "rmvproducer",
      "ricardian_contract": ""
508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523
   },{
      "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": ""
524 525 526 527
    },{
      "name": "setparams",
      "type": "setparams",
      "ricardian_contract": ""
528
    }],
529
   "tables": [{
A
Anton Perkov 已提交
530
      "name": "producers",
531 532 533 534
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
535 536 537 538 539 540
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
541 542 543 544 545 546
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
547 548 549 550 551 552
    },{
      "name": "userres",
      "type": "user_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
553 554 555 556 557 558
    },{
      "name": "delband",
      "type": "delegated_bandwidth",
      "index_type": "i64",
      "key_names" : ["to"],
      "key_types" : ["uint64"]
K
Kevin Heifner 已提交
559 560 561 562 563 564
    },{
      "name": "rammarket",
      "type": "exchange_state",
      "index_type": "i64",
      "key_names" : ["supply"],
      "key_types" : ["uint64"]
565 566 567 568 569 570
    },{
      "name": "refunds",
      "type": "refund_request",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
K
Kayan 已提交
571 572 573 574 575 576
    },{
       "name": "namebids",
       "type": "namebid_info",
       "index_type": "i64",
       "key_names" : ["newname"],
       "key_types" : ["account_name"]
577
    }
578 579 580
   ],
   "ricardian_clauses": [],
   "abi_extensions": []
D
Daniel Larimer 已提交
581
}