提交 422a8352 编写于 作者: B Bucky Kittinger

Fully added back the abi_def stuff to system contract, will work on the errors later

上级 bf2b3fa7
......@@ -190,42 +190,55 @@
],
"actions": [{
"name": "transfer",
"type": "transfer"
"type": "transfer",
"ricardian_contract": ""
},{
"name": "issue",
"type": "issue"
"type": "issue",
"ricardian_contract": ""
},{
"name": "delegatebw",
"type": "delegatebw"
"type": "delegatebw",
"ricardian_contract": ""
},{
"name": "undelegatebw",
"type": "undelegatebw"
"type": "undelegatebw",
"ricardian_contract": ""
},{
"name": "refund",
"type": "refund"
"type": "refund",
"ricardian_contract": ""
},{
"name": "regproducer",
"type": "regproducer"
"type": "regproducer",
"ricardian_contract": ""
},{
"name": "unregprod",
"type": "unregprod"
"type": "unregprod",
"ricardian_contract": ""
},{
"name": "regproxy",
"type": "regproxy"
"type": "regproxy",
"ricardian_contract": ""
},{
"name": "unregproxy",
"type": "unregproxy"
"type": "unregproxy",
"ricardian_contract": ""
},{
"name": "voteproducer",
"type": "voteproducer"
"type": "voteproducer",
"ricardian_contract": ""
},{
"name": "claimrewards",
"type": "claimrewards"
"type": "claimrewards",
"ricardian_contract": ""
},{
"name": "nonce",
"type": "nonce"
"type": "nonce",
"ricardian_contract": ""
}
],
"tables": [
]
],
"clauses": [{}]
}
......@@ -58,8 +58,8 @@ namespace eosiosystem {
struct action_def {
action_name name;
type_name type;
EOSLIB_SERIALIZE(action_def, (name)(type) )
std::string ricardian_contract;
EOSLIB_SERIALIZE(action_def, (name)(type)(ricardian_contract) )
};
struct table_def {
......@@ -71,14 +71,20 @@ namespace eosiosystem {
EOSLIB_SERIALIZE(table_def, (name)(index_type)(key_names)(key_types)(type) )
};
struct clause_pair {
std::string id;
std::string body;
EOSLIB_SERIALIZE( clause_pair, (id)(body) )
};
struct abi_def {
std::vector<type_def> types;
std::vector<struct_def> structs;
std::vector<action_def> actions;
std::vector<table_def> tables;
std::vector<clause_pair> clauses;
EOSLIB_SERIALIZE( abi_def, (types)(structs)(actions)(tables) )
EOSLIB_SERIALIZE( abi_def, (types)(structs)(actions)(tables)(clauses) )
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册