Vaulta

eosunitswaps

Contract

The data structures defined by this contract.

  • Action parameter in addconfig

    {
      "name": "addconfig",
      "base": "",
      "fields": [
        {
          "name": "fee",
          "type": "uint32"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "minLiquidity",
          "type": "uint32"
        },
        {
          "name": "priceBase",
          "type": "uint64"
        },
        {
          "name": "minTimeElapsed",
          "type": "uint64"
        },
        {
          "name": "openProtocolFee",
          "type": "uint8"
        },
        {
          "name": "protocolFee",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in addtoken

    {
      "name": "addtoken",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "status",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in cancledeposi

    {
      "name": "cancledeposi",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in clear

    {
      "name": "clear",
      "base": "",
      "fields": []
    }
  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "fee",
          "type": "uint32"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "minLiquidity",
          "type": "uint32"
        },
        {
          "name": "priceBase",
          "type": "uint64"
        },
        {
          "name": "minTimeElapsed",
          "type": "uint64"
        },
        {
          "name": "openProtocolFee",
          "type": "uint8"
        },
        {
          "name": "protocolFee",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in createpair

    {
      "name": "createpair",
      "base": "",
      "fields": [
        {
          "name": "creator",
          "type": "name"
        },
        {
          "name": "tokenA",
          "type": "name"
        },
        {
          "name": "tokenB",
          "type": "name"
        }
      ]
    }
  • Action parameter in deltoken

    {
      "name": "deltoken",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }
  • Table row type of deposit

    {
      "name": "deposit",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        },
        {
          "name": "quantityA",
          "type": "asset"
        },
        {
          "name": "quantityB",
          "type": "asset"
        },
        {
          "name": "updateTime",
          "type": "time_point_sec"
        },
        {
          "name": "createTime",
          "type": "time_point_sec"
        }
      ]
    }
  • Action parameter in depositing

    {
      "name": "depositing",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        }
      ]
    }
  • Table row type of liquidity

    {
      "name": "liquidity",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        },
        {
          "name": "token",
          "type": "uint64"
        },
        {
          "name": "quantityA",
          "type": "asset"
        },
        {
          "name": "quantityB",
          "type": "asset"
        },
        {
          "name": "tokenA",
          "type": "name"
        },
        {
          "name": "tokenB",
          "type": "name"
        },
        {
          "name": "createTime",
          "type": "time_point_sec"
        }
      ]
    }
  • Table row type of pairs

    {
      "name": "pairs",
      "base": "",
      "fields": [
        {
          "name": "pid",
          "type": "uint64"
        },
        {
          "name": "tokenA",
          "type": "name"
        },
        {
          "name": "tokenB",
          "type": "name"
        },
        {
          "name": "symA",
          "type": "symbol"
        },
        {
          "name": "symB",
          "type": "symbol"
        },
        {
          "name": "reserveA",
          "type": "asset"
        },
        {
          "name": "reserveB",
          "type": "asset"
        },
        {
          "name": "liquidityToken",
          "type": "uint64"
        },
        {
          "name": "priceALast",
          "type": "float64"
        },
        {
          "name": "priceBLast",
          "type": "float64"
        },
        {
          "name": "priceACumulativeLast",
          "type": "uint64"
        },
        {
          "name": "priceBCumulativeLast",
          "type": "uint64"
        },
        {
          "name": "updateTime",
          "type": "time_point_sec"
        },
        {
          "name": "createTime",
          "type": "time_point_sec"
        }
      ]
    }
  • Action parameter in rmpair

    {
      "name": "rmpair",
      "base": "",
      "fields": [
        {
          "name": "pairid",
          "type": "uint64"
        }
      ]
    }
  • Table row type of tokens

    {
      "name": "tokens",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "createTime",
          "type": "time_point_sec"
        },
        {
          "name": "updateTime",
          "type": "time_point_sec"
        }
      ]
    }
  • Action parameter in updateconfig

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

    {
      "name": "updatetoken",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "status",
          "type": "uint8"
        }
      ]
    }
  • Action parameter in withdraw

    {
      "name": "withdraw",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "pairid",
          "type": "uint64"
        },
        {
          "name": "amount",
          "type": "uint64"
        }
      ]
    }