swap.defi
Contract
{ "version": "eosio::abi/1.2", "types": [], "structs": [ { "name": "bidnext", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "contract", "type": "name" }, { "name": "quantity", "type": "asset" }, { "name": "memo", "type": "string" } ] }, { "name": "buyrex", "base": "", "fields": [ { "name": "buy_pct", "type": "uint8" } ] }, { "name": "buyrexlog", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "quantity", "type": "asset" }, { "name": "rex_value", "type": "asset" } ] }, { "name": "cancel", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "pair_id", "type": "uint64" } ] }, { "name": "config", "base": "", "fields": [ { "name": "status", "type": "uint8" }, { "name": "pair_id", "type": "uint64" }, { "name": "trade_fee", "type": "uint8" }, { "name": "protocol_fee", "type": "uint8" }, { "name": "fee_account", "type": "name" } ] }, { "name": "contract_balance", "base": "", "fields": [ { "name": "balance", "type": "asset" } ] }, { "name": "createlog", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "creator", "type": "name" }, { "name": "token0", "type": "token" }, { "name": "token1", "type": "token" } ] }, { "name": "createpair", "base": "", "fields": [ { "name": "creator", "type": "name" }, { "name": "token0", "type": "token" }, { "name": "token1", "type": "token" } ] }, { "name": "deposit", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "pair_id", "type": "uint64" } ] }, { "name": "liquiditylog", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "liquidity", "type": "uint64" }, { "name": "quantity0", "type": "asset" }, { "name": "quantity1", "type": "asset" }, { "name": "total_liquidity", "type": "uint64" }, { "name": "reserve0", "type": "asset" }, { "name": "reserve1", "type": "asset" } ] }, { "name": "order", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "quantity0", "type": "asset" }, { "name": "quantity1", "type": "asset" } ] }, { "name": "pair", "base": "", "fields": [ { "name": "id", "type": "uint64" }, { "name": "token0", "type": "token" }, { "name": "token1", "type": "token" }, { "name": "reserve0", "type": "asset" }, { "name": "reserve1", "type": "asset" }, { "name": "liquidity_token", "type": "uint64" }, { "name": "price0_last", "type": "float64" }, { "name": "price1_last", "type": "float64" }, { "name": "price0_cumulative_last", "type": "uint64" }, { "name": "price1_cumulative_last", "type": "uint64" }, { "name": "block_time_last", "type": "time_point_sec" } ] }, { "name": "proxyto", "base": "", "fields": [ { "name": "proxy", "type": "name" } ] }, { "name": "removepair", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" } ] }, { "name": "sellallrex", "base": "", "fields": [] }, { "name": "sellnext", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "quantity", "type": "asset" }, { "name": "total_quantity", "type": "asset" }, { "name": "memo", "type": "string" } ] }, { "name": "sellpartrex", "base": "", "fields": [ { "name": "sell_pct", "type": "uint8" } ] }, { "name": "sellrex", "base": "", "fields": [] }, { "name": "sellrexlog", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "quantity", "type": "asset" }, { "name": "rex_value", "type": "asset" } ] }, { "name": "stat", "base": "", "fields": [ { "name": "available", "type": "asset" } ] }, { "name": "swaplog", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "quantity_in", "type": "asset" }, { "name": "quantity_out", "type": "asset" }, { "name": "fee", "type": "asset" }, { "name": "trade_price", "type": "float64" }, { "name": "reserve0", "type": "asset" }, { "name": "reserve1", "type": "asset" } ] }, { "name": "token", "base": "", "fields": [ { "name": "contract", "type": "name" }, { "name": "symbol", "type": "symbol" } ] }, { "name": "updatefees", "base": "", "fields": [ { "name": "trade_fee", "type": "uint8" }, { "name": "protocol_fee", "type": "uint8" }, { "name": "fee_account", "type": "name" } ] }, { "name": "updatestatus", "base": "", "fields": [ { "name": "status", "type": "uint8" } ] } ], "actions": [ { "name": "bidnext", "type": "bidnext", "ricardian_contract": "" }, { "name": "buyrex", "type": "buyrex", "ricardian_contract": "" }, { "name": "buyrexlog", "type": "buyrexlog", "ricardian_contract": "" }, { "name": "cancel", "type": "cancel", "ricardian_contract": "" }, { "name": "createlog", "type": "createlog", "ricardian_contract": "" }, { "name": "createpair", "type": "createpair", "ricardian_contract": "" }, { "name": "deposit", "type": "deposit", "ricardian_contract": "" }, { "name": "liquiditylog", "type": "liquiditylog", "ricardian_contract": "" }, { "name": "proxyto", "type": "proxyto", "ricardian_contract": "" }, { "name": "removepair", "type": "removepair", "ricardian_contract": "" }, { "name": "sellallrex", "type": "sellallrex", "ricardian_contract": "" }, { "name": "sellnext", "type": "sellnext", "ricardian_contract": "" }, { "name": "sellpartrex", "type": "sellpartrex", "ricardian_contract": "" }, { "name": "sellrex", "type": "sellrex", "ricardian_contract": "" }, { "name": "sellrexlog", "type": "sellrexlog", "ricardian_contract": "" }, { "name": "swaplog", "type": "swaplog", "ricardian_contract": "" }, { "name": "updatefees", "type": "updatefees", "ricardian_contract": "" }, { "name": "updatestatus", "type": "updatestatus", "ricardian_contract": "" } ], "tables": [ { "name": "balances", "index_type": "i64", "key_names": [], "key_types": [], "type": "contract_balance" }, { "name": "config", "index_type": "i64", "key_names": [], "key_types": [], "type": "config" }, { "name": "orders", "index_type": "i64", "key_names": [], "key_types": [], "type": "order" }, { "name": "pairs", "index_type": "i64", "key_names": [], "key_types": [], "type": "pair" }, { "name": "stat", "index_type": "i64", "key_names": [], "key_types": [], "type": "stat" } ], "ricardian_clauses": [], "error_messages": [], "abi_extensions": [], "variants": [], "action_results": [] }