提交 2469de31 编写于 作者: D Daniel Larimer

adding upmargin to exchange abi

上级 be56430c
...@@ -21,6 +21,16 @@ ...@@ -21,6 +21,16 @@
{"name":"contract", "type":"account_name"} {"name":"contract", "type":"account_name"}
] ]
}, },
{
"name": "upmargin",
"base": "",
"fields": [
{"name":"borrower", "type":"account_name"},
{"name":"market", "type":"symbol"}
{"name":"delta_borrow", "type":"extended_asset"}
{"name":"delta_collateral", "type":"extended_asset"}
]
},
{ {
"name": "lend", "name": "lend",
"base": "", "base": "",
...@@ -123,6 +133,7 @@ ...@@ -123,6 +133,7 @@
{ "name": "issue", "type": "issue" }, { "name": "issue", "type": "issue" },
{ "name": "lend", "type": "lend" }, { "name": "lend", "type": "lend" },
{ "name": "unlend", "type": "unlend" }, { "name": "unlend", "type": "unlend" },
{ "name": "upmargin", "type": "upmargin" },
{ "name": "create", "type": "create" } { "name": "create", "type": "create" }
], ],
"tables": [{ "tables": [{
......
...@@ -82,12 +82,12 @@ namespace eosio { ...@@ -82,12 +82,12 @@ namespace eosio {
}; };
struct upmargin { struct upmargin {
symbol_type market;
account_name borrower; account_name borrower;
symbol_type market;
extended_asset delta_borrow; extended_asset delta_borrow;
extended_asset delta_collateral; extended_asset delta_collateral;
EOSLIB_SERIALIZE( upmargin, (market)(borrower)(delta_borrow)(delta_collateral) ) EOSLIB_SERIALIZE( upmargin, (borrower)(market)(delta_borrow)(delta_collateral) )
}; };
struct trade { struct trade {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册