Vaulta

zhuang.x

Contract

The data structures defined by this contract.

  • Table row type of accounts

    {
      "name": "account",
      "base": "",
      "fields": [
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    }
  • Table row type of boxstatus

    {
      "name": "boxstatus",
      "base": "",
      "fields": [
        {
          "name": "current_amount",
          "type": "asset"
        },
        {
          "name": "total_amount",
          "type": "asset"
        }
      ]
    }
  • Action parameter in claim

    {
      "name": "claim",
      "base": "",
      "fields": []
    }
  • Action parameter in clear

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

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "is_paused",
          "type": "bool"
        },
        {
          "name": "last_harvest_time",
          "type": "uint64"
        }
      ]
    }
  • Table row type of eosstatus

    {
      "name": "eosstatus",
      "base": "",
      "fields": [
        {
          "name": "current_amount",
          "type": "asset"
        },
        {
          "name": "total_amount",
          "type": "asset"
        }
      ]
    }
  • Action parameter in fixbalance

    {
      "name": "fixbalance",
      "base": "",
      "fields": []
    }
  • Table row type of flow

    {
      "name": "flow",
      "base": "",
      "fields": [
        {
          "name": "flow_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in getclear

    {
      "name": "getclear",
      "base": "",
      "fields": []
    }
  • Table row type of historys

    {
      "name": "history",
      "base": "",
      "fields": [
        {
          "name": "claim_amount",
          "type": "asset"
        },
        {
          "name": "harvest_time",
          "type": "uint64"
        }
      ]
    }
  • Table row type of loansetting

    {
      "name": "loansetting",
      "base": "",
      "fields": [
        {
          "name": "fee",
          "type": "uint8"
        }
      ]
    }
  • 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 setflow

    {
      "name": "setflow",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in setting

    {
      "name": "setting",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "bool"
        }
      ]
    }
  • Table row type of auctions

    {
      "name": "st_auction",
      "base": "",
      "fields": [
        {
          "name": "aid",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "price",
          "type": "uint64"
        },
        {
          "name": "pledge",
          "type": "asset"
        },
        {
          "name": "issue",
          "type": "asset"
        },
        {
          "name": "remain_pledge",
          "type": "asset"
        },
        {
          "name": "remain_issue",
          "type": "asset"
        },
        {
          "name": "create_time",
          "type": "time_point_sec"
        }
      ]
    }
  • Table row type of swapconfig

    {
      "name": "swapconfig",
      "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"
        }
      ]
    }
  • Struct property of pair

    {
      "name": "token",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "symbol",
          "type": "symbol"
        }
      ]
    }
  • Table row type of usninfo

    {
      "name": "usninfo",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "clear_amount",
          "type": "asset"
        },
        {
          "name": "require_eos",
          "type": "asset"
        },
        {
          "name": "loan_fee",
          "type": "uint64"
        }
      ]
    }
  • Table row type of usnstatus

    {
      "name": "usnstatus",
      "base": "",
      "fields": [
        {
          "name": "swap_amount",
          "type": "asset"
        },
        {
          "name": "total_amount",
          "type": "asset"
        }
      ]
    }