EOS

defisswapcnt

Contract

The data structures defined by this contract.

  • Action parameter in cancel

    { "name": "cancel", "base": "", "fields": [ { "name": "user", "type": "name" } ] }
  • Action parameter in deposit

    { "name": "deposit", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "mid", "type": "uint64" } ] }
  • Table row type of liquidity

    { "name": "liquidity", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "token", "type": "uint64" } ] }
  • Table row type of markets

    { "name": "market", "base": "", "fields": [ { "name": "mid", "type": "uint64" }, { "name": "contract0", "type": "name" }, { "name": "contract1", "type": "name" }, { "name": "sym0", "type": "symbol" }, { "name": "sym1", "type": "symbol" }, { "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": "last_update", "type": "time_point_sec" } ] }
  • Action parameter in newmarket

    { "name": "newmarket", "base": "", "fields": [ { "name": "mid", "type": "uint64" }, { "name": "contract0", "type": "name" }, { "name": "contract1", "type": "name" }, { "name": "sym0", "type": "symbol" }, { "name": "sym1", "type": "symbol" } ] }
  • Table row type of orders

    { "name": "order", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "mid", "type": "uint64" }, { "name": "quantity0", "type": "asset" }, { "name": "quantity1", "type": "asset" } ] }
  • Action parameter in withdraw

    { "name": "withdraw", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "mid", "type": "uint64" }, { "name": "amount", "type": "uint64" } ] }