eosio.system.abi 14.2 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
         {"name":"total_producer_vote_weight",    "type":"float64"}
A
Anton Perkov 已提交
265
      ]
266 267 268 269
    },{
      "name": "producer_info",
      "base": "",
      "fields": [
270 271 272
         {"name":"owner",                    "type":"account_name"},
         {"name":"total_votes",              "type":"float64"},
         {"name":"producer_key",             "type":"public_key"},
273
         {"name":"url",                      "type":"string"},
274
         {"name":"unpaid_blocks",            "type":"uint32"},
275
         {"name":"last_claim_time",          "type":"uint64"},
276
         {"name":"location",                 "type":"uint16"},
277 278
         {"name":"time_became_active",       "type":"uint32"},
         {"name":"last_produced_block_time", "type":"uint32"}
279
      ]
D
Daniel Larimer 已提交
280 281 282 283
    },{
      "name": "regproducer",
      "base": "",
      "fields": [
A
Anton Perkov 已提交
284
        {"name":"producer",     "type":"account_name"},
285
        {"name":"producer_key", "type":"public_key"},
286
        {"name":"url",          "type":"string"},
287
        {"name":"location",     "type":"uint16"}
D
Daniel Larimer 已提交
288
      ]
289 290 291 292 293 294
    },{
      "name": "unregprod",
      "base": "",
      "fields": [
        {"name":"producer",     "type":"account_name"}
      ]
295
    },{
296
      "name": "setram",
297 298
      "base": "",
      "fields": [
299
        {"name":"max_ram_size",     "type":"uint64"}
300
      ]
301 302 303 304
    },{
      "name": "regproxy",
      "base": "",
      "fields": [
A
arhag 已提交
305
        {"name":"proxy",     "type":"account_name"},
306
        {"name":"isproxy",   "type":"bool"}
307
      ]
A
Anton Perkov 已提交
308 309 310 311 312 313 314
    },{
      "name": "voteproducer",
      "base": "",
      "fields": [
        {"name":"voter",     "type":"account_name"},
        {"name":"proxy",     "type":"account_name"},
        {"name":"producers", "type":"account_name[]"}
D
Daniel Larimer 已提交
315 316
      ]
    },{
317
      "name": "voter_info",
D
Daniel Larimer 已提交
318 319
      "base": "",
      "fields": [
320 321 322
        {"name":"owner",                "type":"account_name"},
        {"name":"proxy",                "type":"account_name"},
        {"name":"producers",            "type":"account_name[]"},
K
Khaled Al-Hassanieh 已提交
323
        {"name":"staked",               "type":"int64"},
324 325 326 327
        {"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 已提交
328
        {"name":"last_unstake_time",    "type":"time_point_sec"},
A
arhag 已提交
329
        {"name":"unstaking",            "type":"asset"}
330
      ]
331 332 333 334 335
    },{
      "name": "claimrewards",
      "base": "",
      "fields": [
        {"name":"owner",   "type":"account_name"}
D
Daniel Larimer 已提交
336
      ]
337
    },{
338 339 340 341 342 343
      "name": "setpriv",
      "base": "",
      "fields": [
        {"name":"account",    "type":"account_name"},
        {"name":"is_priv",    "type":"int8"}
      ]
344
    }
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
   ],
   "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": ""
   },{
383 384 385
      "name": "buyrambytes",
      "type": "buyrambytes",
      "ricardian_contract": ""
386
   },{
387 388
      "name": "buyram",
      "type": "buyram",
389
      "ricardian_contract": ""
390
   },{
391 392 393
      "name": "sellram",
      "type": "sellram",
      "ricardian_contract": ""
394
   },{
395
      "name": "delegatebw",
396 397
      "type": "delegatebw",
      "ricardian_contract": ""
398
   },{
399
      "name": "undelegatebw",
400 401
      "type": "undelegatebw",
      "ricardian_contract": ""
402
   },{
A
Anton Perkov 已提交
403
      "name": "refund",
404 405
      "type": "refund",
      "ricardian_contract": ""
406
   },{
D
Daniel Larimer 已提交
407
      "name": "regproducer",
408 409
      "type": "regproducer",
      "ricardian_contract": ""
410
   },{
411 412
      "name": "setram",
      "type": "setram",
413
      "ricardian_contract": ""
414 415 416 417
   },{
      "name": "bidname",
      "type": "bidname",
      "ricardian_contract": ""
418
   },{
419
      "name": "unregprod",
420 421
      "type": "unregprod",
      "ricardian_contract": ""
422
   },{
423
      "name": "regproxy",
424 425
      "type": "regproxy",
      "ricardian_contract": ""
426
   },{
A
Anton Perkov 已提交
427
      "name": "voteproducer",
428 429
      "type": "voteproducer",
      "ricardian_contract": ""
430
   },{
431
      "name": "claimrewards",
432 433
      "type": "claimrewards",
      "ricardian_contract": ""
434 435 436 437
   },{
      "name": "setpriv",
      "type": "setpriv",
      "ricardian_contract": ""
438 439
   }],
   "tables": [{
A
Anton Perkov 已提交
440
      "name": "producers",
441 442 443 444
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
445 446 447 448 449 450
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
451 452 453 454 455 456
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
457 458 459 460 461 462
    },{
      "name": "userres",
      "type": "user_resources",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480
    },{
      "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"]
481
    }
482 483 484
   ],
   "ricardian_clauses": [],
   "abi_extensions": []
D
Daniel Larimer 已提交
485
}