提交 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 @@ ...@@ -190,42 +190,55 @@
], ],
"actions": [{ "actions": [{
"name": "transfer", "name": "transfer",
"type": "transfer" "type": "transfer",
"ricardian_contract": ""
},{ },{
"name": "issue", "name": "issue",
"type": "issue" "type": "issue",
"ricardian_contract": ""
},{ },{
"name": "delegatebw", "name": "delegatebw",
"type": "delegatebw" "type": "delegatebw",
"ricardian_contract": ""
},{ },{
"name": "undelegatebw", "name": "undelegatebw",
"type": "undelegatebw" "type": "undelegatebw",
"ricardian_contract": ""
},{ },{
"name": "refund", "name": "refund",
"type": "refund" "type": "refund",
"ricardian_contract": ""
},{ },{
"name": "regproducer", "name": "regproducer",
"type": "regproducer" "type": "regproducer",
"ricardian_contract": ""
},{ },{
"name": "unregprod", "name": "unregprod",
"type": "unregprod" "type": "unregprod",
"ricardian_contract": ""
},{ },{
"name": "regproxy", "name": "regproxy",
"type": "regproxy" "type": "regproxy",
"ricardian_contract": ""
},{ },{
"name": "unregproxy", "name": "unregproxy",
"type": "unregproxy" "type": "unregproxy",
"ricardian_contract": ""
},{ },{
"name": "voteproducer", "name": "voteproducer",
"type": "voteproducer" "type": "voteproducer",
"ricardian_contract": ""
},{ },{
"name": "claimrewards", "name": "claimrewards",
"type": "claimrewards" "type": "claimrewards",
"ricardian_contract": ""
},{ },{
"name": "nonce", "name": "nonce",
"type": "nonce" "type": "nonce",
"ricardian_contract": ""
} }
], ],
"tables": [ "tables": [
] ],
"clauses": [{}]
} }
...@@ -58,8 +58,8 @@ namespace eosiosystem { ...@@ -58,8 +58,8 @@ namespace eosiosystem {
struct action_def { struct action_def {
action_name name; action_name name;
type_name type; type_name type;
std::string ricardian_contract;
EOSLIB_SERIALIZE(action_def, (name)(type) ) EOSLIB_SERIALIZE(action_def, (name)(type)(ricardian_contract) )
}; };
struct table_def { struct table_def {
...@@ -71,14 +71,20 @@ namespace eosiosystem { ...@@ -71,14 +71,20 @@ namespace eosiosystem {
EOSLIB_SERIALIZE(table_def, (name)(index_type)(key_names)(key_types)(type) ) 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 { struct abi_def {
std::vector<type_def> types; std::vector<type_def> types;
std::vector<struct_def> structs; std::vector<struct_def> structs;
std::vector<action_def> actions; std::vector<action_def> actions;
std::vector<table_def> tables; 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.
先完成此消息的编辑!
想要评论请 注册