eosio.system.abi 8.0 KB
Newer Older
1
{
2
  "types": [],
3
  "structs": [{
K
Khaled Al-Hassanieh 已提交
4 5 6 7 8 9
      "name": "nonce",
       "base": "",
       "fields": [
          {"name":"value", "type":"string"}
      ]
    },{
10
      "name": "buyram",
11 12
      "base": "",
      "fields": [
13 14 15
         {"name":"payer", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
         {"name":"quant", "type":"asset"}
16 17 18
      ]
    },{
      "name": "delegatebw",
19 20
      "base": "",
      "fields": [
21 22
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
23
         {"name":"stake_net_quantity", "type":"asset"},
A
arhag 已提交
24
         {"name":"stake_cpu_quantity", "type":"asset"}
25 26 27 28 29 30 31
      ]
    },{
      "name": "undelegatebw",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"receiver", "type":"account_name"},
32
         {"name":"unstake_net_quantity", "type":"asset"},
A
arhag 已提交
33
         {"name":"unstake_cpu_quantity", "type":"asset"}
34
      ]
A
Anton Perkov 已提交
35 36 37 38 39 40
    },{
      "name": "refund",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"}
      ]
41 42 43 44 45 46
    },{
      "name": "delegated_bandwidth",
      "base": "",
      "fields": [
         {"name":"from", "type":"account_name"},
         {"name":"to", "type":"account_name"},
47 48
         {"name":"net_weight", "type":"uint64"},
         {"name":"cpu_weight", "type":"uint64"},
49 50
         {"name":"storage_bytes", "type":"uint64"}
      ]
51 52 53 54 55
    },{
      "name": "total_resources",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
56 57
         {"name":"net_weight", "type":"asset"},
         {"name":"cpu_weight", "type":"asset"},
58
         {"name":"storage_bytes", "type":"uint64"}
59
      ]
60 61 62 63 64 65 66 67
    },{
      "name": "refund_request",
      "base": "",
      "fields": [
         {"name":"owner", "type":"account_name"},
         {"name":"request_time", "type":"time"},
         {"name":"amount", "type":"uint64"}
      ]
A
Anton Perkov 已提交
68
    },{
69
      "name": "blockchain_parameters",
A
Anton Perkov 已提交
70 71
      "base": "",
      "fields": [
72
         {"name":"max_block_net_usage", "type": "uint32"},
A
arhag 已提交
73 74
         {"name":"target_block_net_usage_pct", "type": "uint32"},
         {"name":"max_transaction_net_usage", "type":"uint32"},
75
         {"name":"base_per_transaction_net_usage", "type":"uint32"},
76 77
         {"name":"context_free_discount_net_usage_num", "type":"uint32"},
         {"name":"context_free_discount_net_usage_den", "type":"uint32"},
A
arhag 已提交
78 79 80
         {"name":"max_block_cpu_usage", "type": "uint64"},
         {"name":"target_block_cpu_usage_pct", "type": "uint32"},
         {"name":"max_transaction_cpu_usage", "type":"uint32"},
81 82 83 84
         {"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"},
85 86
         {"name":"context_free_discount_cpu_usage_num", "type":"uint32"},
         {"name":"context_free_discount_cpu_usage_den", "type":"uint32"},
A
Anton Perkov 已提交
87
         {"name":"max_transaction_lifetime", "type":"uint32"},
A
arhag 已提交
88 89
         {"name":"deferred_trx_expiration_window", "type":"uint32"},
         {"name":"max_transaction_delay", "type":"uint32"},
A
Anton Perkov 已提交
90
         {"name":"max_inline_action_size", "type":"uint32"},
A
arhag 已提交
91 92 93
         {"name":"max_inline_action_depth", "type":"uint16"},
         {"name":"max_authority_depth", "type":"uint16"},
         {"name":"max_generated_transaction_count", "type":"uint32"}
94 95 96 97 98
      ]
    },{
      "name": "eosio_parameters",
      "base": "blockchain_parameters",
      "fields": [
99
         {"name":"max_storage_size", "type":"uint64"},
100
         {"name":"percent_of_max_inflation_rate", "type":"uint32"},
A
Anton Perkov 已提交
101
         {"name":"storage_reserve_ratio", "type":"uint32"}
A
Anton Perkov 已提交
102
      ]
103
    },{
A
Anton Perkov 已提交
104 105 106 107
      "name": "eosio_global_state",
      "base": "eosio_parameters",
      "fields": [
         {"name":"total_storage_bytes_reserved", "type":"uint64"},
108 109
         {"name":"total_storage_stake", "type":"uint64"},
         {"name":"payment_per_block", "type":"uint64"}
A
Anton Perkov 已提交
110
      ]
111 112 113 114
    },{
      "name": "producer_info",
      "base": "",
      "fields": [
115
         {"name":"owner",              "type":"account_name"},
116
         {"name":"total_votes",        "type":"uint128"},
117
         {"name":"packed_key",         "type":"public_key"},
118
         {"name":"per_block_payments", "type":"uint64"},
119
         {"name":"last_claim_time",    "type":"time"}
120
      ]
D
Daniel Larimer 已提交
121 122 123 124
    },{
      "name": "regproducer",
      "base": "",
      "fields": [
A
Anton Perkov 已提交
125
        {"name":"producer",     "type":"account_name"},
126 127
        {"name":"producer_key", "type":"public_key"},
        {"name":"url",          "type":"string"}
D
Daniel Larimer 已提交
128
      ]
129 130 131 132 133 134
    },{
      "name": "unregprod",
      "base": "",
      "fields": [
        {"name":"producer",     "type":"account_name"}
      ]
135 136 137 138
    },{
      "name": "setparams",
      "base": "",
      "fields": [
K
Kevin Heifner 已提交
139
        {"name":"max_ram_size",     "type":"uint64"},
140 141
        {"name":"ram_reserve_ratio", "type":"uint32"}
      ]
142 143 144 145
    },{
      "name": "regproxy",
      "base": "",
      "fields": [
A
arhag 已提交
146
        {"name":"proxy",     "type":"account_name"},
147
        {"name":"isproxy",   "type":"bool"}
148
      ]
A
Anton Perkov 已提交
149 150 151 152 153 154 155
    },{
      "name": "voteproducer",
      "base": "",
      "fields": [
        {"name":"voter",     "type":"account_name"},
        {"name":"proxy",     "type":"account_name"},
        {"name":"producers", "type":"account_name[]"}
D
Daniel Larimer 已提交
156 157
      ]
    },{
158
      "name": "voter_info",
D
Daniel Larimer 已提交
159 160
      "base": "",
      "fields": [
161 162 163 164 165 166 167 168 169
        {"name":"owner",                "type":"account_name"},
        {"name":"proxy",                "type":"account_name"},
        {"name":"producers",            "type":"account_name[]"},
        {"name":"staked",               "type":"uint64"},
        {"name":"last_vote_weight",     "type":"float64"},
        {"name":"proxied_vote_weight",  "type":"float64"},
        {"name":"is_proxy",             "type":"bool"},
        {"name":"deferred_trx_id",      "type":"uint32"},
        {"name":"last_unstake_time",    "type":"time"},
A
arhag 已提交
170
        {"name":"unstaking",            "type":"asset"}
171
      ]
172 173 174 175 176
    },{
      "name": "claimrewards",
      "base": "",
      "fields": [
        {"name":"owner",   "type":"account_name"}
D
Daniel Larimer 已提交
177
      ]
178 179
    }
  ],
180 181 182 183
  "actions": [
    {
      "name": "buyram",
      "type": "buyram",
184
      "ricardian_contract": ""
185
    },{
186
      "name": "delegatebw",
187 188
      "type": "delegatebw",
      "ricardian_contract": ""
189 190
    },{
      "name": "undelegatebw",
191 192
      "type": "undelegatebw",
      "ricardian_contract": ""
A
Anton Perkov 已提交
193 194
    },{
      "name": "refund",
195 196
      "type": "refund",
      "ricardian_contract": ""
D
Daniel Larimer 已提交
197 198
    },{
      "name": "regproducer",
199 200
      "type": "regproducer",
      "ricardian_contract": ""
201 202 203 204
    },{
      "name": "setparams",
      "type": "setparams",
      "ricardian_contract": ""
D
Daniel Larimer 已提交
205
    },{
206
      "name": "unregprod",
207 208
      "type": "unregprod",
      "ricardian_contract": ""
209 210
    },{
      "name": "regproxy",
211 212
      "type": "regproxy",
      "ricardian_contract": ""
A
Anton Perkov 已提交
213 214
    },{
      "name": "voteproducer",
215 216
      "type": "voteproducer",
      "ricardian_contract": ""
217 218
    },{
      "name": "claimrewards",
219 220
      "type": "claimrewards",
      "ricardian_contract": ""
K
Khaled Al-Hassanieh 已提交
221 222
    },{
      "name": "nonce",
223 224
      "type": "nonce",
      "ricardian_contract": ""
225 226
    }
  ],
227 228 229 230 231 232
  "tables": [{
      "name": "producerinfo",
      "type": "producer_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["uint64"]
233 234 235 236 237 238
    },{
      "name": "global",
      "type": "eosio_global_state",
      "index_type": "i64",
      "key_names" : [],
      "key_types" : []
239 240 241 242 243 244
    },{
      "name": "voters",
      "type": "voter_info",
      "index_type": "i64",
      "key_names" : ["owner"],
      "key_types" : ["account_name"]
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262
    },{
      "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"]
263
    }
264
  ],
265
  "ricardian_clauses": []
D
Daniel Larimer 已提交
266
}