Vaulta

swap.defi

Contract

The data structures defined by this contract.

  • Action parameter in bidnext

    {
      "name": "bidnext",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in buypartrex

    {
      "name": "buypartrex",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "asset"
        }
      ]
    }
  • Action parameter in buyrex

    {
      "name": "buyrex",
      "base": "",
      "fields": [
        {
          "name": "buy_pct",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in buyrexlog

    {
      "name": "buyrexlog",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "rex_value",
          "type": "asset"
        }
      ]
    }
  • Action parameter in cancel

    {
      "name": "cancel",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pair_id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of config

    {
      "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"
        }
      ]
    }
  • Table row type of balances

    {
      "name": "contract_balance",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    }
  • Action parameter in createlog

    {
      "name": "createlog",
      "base": "",
      "fields": [
        {
          "name": "pair_id",
          "type": "uint64"
        },
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "token0",
          "type": "token"
        },
        {
          "name": "token1",
          "type": "token"
        }
      ]
    }
  • Action parameter in createpair

    {
      "name": "createpair",
      "base": "",
      "fields": [
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "token0",
          "type": "token"
        },
        {
          "name": "token1",
          "type": "token"
        }
      ]
    }
  • Action parameter in deposit

    {
      "name": "deposit",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pair_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in liquiditylog

    {
      "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"
        }
      ]
    }
  • Action parameter in mvfrsavings

    {
      "name": "mvfrsavings",
      "base": "",
      "fields": [
        {
          "name": "rex_value",
          "type": "asset"
        }
      ]
    }
  • Action parameter in mvtosavings

    {
      "name": "mvtosavings",
      "base": "",
      "fields": [
        {
          "name": "rex_value",
          "type": "asset"
        }
      ]
    }
  • Table row type of orders

    {
      "name": "order",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity0",
          "type": "asset"
        },
        {
          "name": "quantity1",
          "type": "asset"
        }
      ]
    }
  • Table row type of pairs

    {
      "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"
        }
      ]
    }
  • Action parameter in proxyto

    {
      "name": "proxyto",
      "base": "",
      "fields": [
        {
          "name": "proxy",
          "type": "name"
        }
      ]
    }
  • Action parameter in removepair

    {
      "name": "removepair",
      "base": "",
      "fields": [
        {
          "name": "pair_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in sellallrex

    {
      "name": "sellallrex",
      "base": "",
      "fields": []
    }
  • Action parameter in sellnext

    {
      "name": "sellnext",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "to_user_quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in sellrex2user

    {
      "name": "sellrex2user",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "to_user_quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in sellrexlog

    {
      "name": "sellrexlog",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "rex_value",
          "type": "asset"
        }
      ]
    }
  • Table row type of stat

    {
      "name": "stat",
      "base": "",
      "fields": [
        {
          "name": "available",
          "type": "asset"
        }
      ]
    }
  • Action parameter in swaplog

    {
      "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"
        }
      ]
    }
  • Struct property of createlog

    Struct property of createpair

    Struct property of pair

    {
      "name": "token",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        }
      ]
    }
  • Action parameter in updatefees

    {
      "name": "updatefees",
      "base": "",
      "fields": [
        {
          "name": "trade_fee",
          "type": "uint8"
        },
        {
          "name": "protocol_fee",
          "type": "uint8"
        },
        {
          "name": "fee_account",
          "type": "name"
        }
      ]
    }
  • Action parameter in updatestatus

    {
      "name": "updatestatus",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in withdrawfund

    {
      "name": "withdrawfund",
      "base": "",
      "fields": [
        {
          "name": "quantity",
          "type": "asset"
        }
      ]
    }