Vaulta

bank.pink

Contract

The data structures defined by this contract.

  • Table row type of global

    {
      "name": "global",
      "base": "",
      "fields": [
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in init

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

    {
      "name": "orders",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "apy",
          "type": "uint64"
        },
        {
          "name": "deposit_time",
          "type": "time_point_sec"
        }
      ]
    }
  • Table row type of symbols

    {
      "name": "symbols",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "oracle",
          "type": "name"
        },
        {
          "name": "oracleParam",
          "type": "uint64"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "buffer",
          "type": "asset"
        },
        {
          "name": "min_amount",
          "type": "asset"
        },
        {
          "name": "apy",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in updateglobal

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

    {
      "name": "updatesymbol",
      "base": "",
      "fields": [
        {
          "name": "symbol",
          "type": "symbol_code"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "buffer",
          "type": "asset"
        },
        {
          "name": "min_amount",
          "type": "asset"
        },
        {
          "name": "apy",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in withdraw

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