Skip to content

Commit

Permalink
Update eosio token and system ABIs EOSIO#157
Browse files Browse the repository at this point in the history
  • Loading branch information
James Calfee committed Jun 1, 2018
1 parent 07cd151 commit 8bf47a6
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 13 deletions.
42 changes: 30 additions & 12 deletions src/schema/eosio_system.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,13 @@
"owner": "account_name"
}
},
"connector": {
"base": "",
"fields": {
"balance": "asset",
"weight": "float64"
}
},
"delegatebw": {
"base": "",
"action": {
Expand Down Expand Up @@ -124,27 +131,29 @@
}
},
"eosio_global_state": {
"base": "eosio_parameters",
"base": "blockchain_parameters",
"fields": {
"max_ram_size": "uint64",
"total_ram_bytes_reserved": "uint64",
"total_ram_stake": "int64",
"last_producer_schedule_update": "time_point_sec",
"last_pervote_bucket_fill": "uint64",
"pervote_bucket": "int64",
"perblock_bucket": "int64",
"savings": "int64",
"total_unpaid_blocks": "uint32",
"total_activated_stake": "int64",
"thresh_activated_stake_time": "uint64",
"last_producer_schedule_id": "checksum160",
"last_producer_schedule_size": "uint16",
"total_producer_vote_weight": "float64",
"last_name_close": "block_timestamp_type"
}
},
"eosio_parameters": {
"base": "blockchain_parameters",
"exchange_state": {
"base": "",
"fields": {
"max_ram_size": "uint64"
"supply": "asset",
"base": "connector",
"quote": "connector"
}
},
"key_weight": {
Expand Down Expand Up @@ -212,12 +221,11 @@
"owner": "account_name",
"total_votes": "float64",
"producer_key": "public_key",
"is_active": "bool",
"url": "string",
"unpaid_blocks": "uint32",
"last_claim_time": "uint64",
"location": "uint16",
"time_became_active": "uint32",
"last_produced_block_time": "uint32"
"location": "uint16"
}
},
"producer_key": {
Expand Down Expand Up @@ -280,6 +288,16 @@
"from": "account_name"
}
},
"rmvproducer": {
"base": "",
"action": {
"name": "rmvproducer",
"account": "eosio"
},
"fields": {
"producer": "account_name"
}
},
"sellram": {
"base": "",
"action": {
Expand Down Expand Up @@ -332,7 +350,7 @@
},
"fields": {
"account": "account_name",
"abi": "abi_def"
"abi": "bytes"
}
},
"setcode": {
Expand All @@ -355,7 +373,7 @@
"account": "eosio"
},
"fields": {
"params": "eosio_parameters"
"params": "blockchain_parameters"
}
},
"setpriv": {
Expand Down Expand Up @@ -481,4 +499,4 @@
}
},
"weight_type": "uint16"
}
}
7 changes: 6 additions & 1 deletion src/schema/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
module.exports = Object.assign(
const schema = Object.assign(
{},
require('./chain_types.json'),
require('./eosio_system.json'),
require('./eosio_token.json')
)

// change "bytes" to "abi_def"
schema.setabi.fields.abi = 'abi_def'

module.exports = schema

0 comments on commit 8bf47a6

Please sign in to comment.