Skip to content

Commit

Permalink
slim branch updates (work in progress) EOSIO/eosjs#71
Browse files Browse the repository at this point in the history
  • Loading branch information
James Calfee committed May 9, 2018
1 parent 5224755 commit bb2ea80
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 34 deletions.
13 changes: 5 additions & 8 deletions src/api/v1/account_history.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
"get_transaction": {
"brief": "Retrieve a transaction from the blockchain.",
"params": {
"transaction_id": "fixed_bytes32"
"transaction_id": "transaction_id"
},
"results": {
"transaction_id": "fixed_bytes32",
"transaction": "Transaction"
}
"results": "packed_transaction"
},

"get_transactions": {
Expand All @@ -29,17 +26,17 @@
"public_key": "public_key"
},
"results": {
"account_names": "vector[name]"
"account_names": "vector[account_name]"
}
},

"get_controlled_accounts": {
"brief": "Retrieve accounts which are created by the given account.",
"params": {
"controlling_account": "name"
"controlling_account": "account_name"
},
"results": {
"controlled_accounts": "vector[name]"
"controlled_accounts": "vector[account_name]"
}
}
}
61 changes: 35 additions & 26 deletions src/api/v1/chain.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,29 @@
"get_currency_stats": {
"params": {
"code": "name",
"symbol": "optional<string>"
"symbol": "string"
},
"results": {
"supply": "asset"
"supply": "asset",
"max_supply": "asset",
"issuer": "account_name"
}
},
"get_info": {
"brief": "Return general network information.",
"params": null,
"results": {
"head_block_num": "uint32",
"last_irreversible_block_num": "uint32",
"head_block_id": "fixed_bytes32",
"head_block_time": "time",
"head_block_producer": {"_id": "uint16"},
"recent_slots": "string",
"participation_rate": "double"
"server_version" : "string",
"head_block_num" : "uint32",
"last_irreversible_block_num" : "uint32",
"last_irreversible_block_id" : "block_id",
"head_block_id" : "block_id",
"head_block_time" : "time_point_sec",
"head_block_producer" : "account_name",
"virtual_block_cpu_limit" : "uint64",
"virtual_block_net_limit" : "uint64",
"block_cpu_limit" : "uint64",
"block_net_limit" : "uint64"
}
},

Expand All @@ -36,13 +42,14 @@
"block_num_or_id": "string"
},
"results": {
"previous":"uint32",
"previous":"block_id",
"timestamp":"time",
"transaction_merkle_root":"uint32",
"producer": "uint16",
"producer_changes":"map<account_name, account_name>[]",
"transaction_mroot":"checksum256",
"action_mroot":"checksum256",
"producer": "account_name",
"schedule_version":"uint32",
"producer_signature":"signature",
"cycles": "thread[]",
"transactions": "transaction[]",
"id": "fixed_bytes33",
"block_num": "uint32",
"ref_block_prefix": "uint32"
Expand All @@ -59,12 +66,16 @@
},
"results": {
"account_name": "name",
"eos_balance": "uint64",
"staked_balance": "uint64",
"unstaking_balance": "uint64",
"last_unstaking_time": "time",
"permissions": "vector<permission>",
"producer": "optional<producer_info>"
"privileged": "bool",
"last_code_update": "time_point",
"created": "time_point",
"ram_quota": "int64",
"net_weight": "int64",
"cpu_weight": "int64",
"net_limit": "int64",
"cpu_limit": "int64",
"ram_usage": "int64",
"permissions": "vector<permission>"
}
},

Expand All @@ -76,7 +87,7 @@
"results": {
"account_name": "name",
"wast": "string",
"code_hash": "fixed_bytes32",
"code_hash": "sha256",
"abi": "optional<abi_def>"
}
},
Expand All @@ -89,8 +100,8 @@
"scope": "name",
"table": "name",
"table_key": "string",
"lower_bound": {"type": "uint64", "default": "0"},
"upper_bound": {"type": "uint64", "default": "-1"},
"lower_bound": {"type": "string", "default": "0"},
"upper_bound": {"type": "string", "default": "-1"},
"limit": {"type": "uint32", "default": "10"}
},
"results": {
Expand All @@ -113,9 +124,7 @@
"args": "bytes"
},
"results": {
"binargs": "bytes",
"required_scope": "name[]",
"required_auth": "name[]"
"binargs": "bytes"
}
},

Expand Down

0 comments on commit bb2ea80

Please sign in to comment.