Vaulta

vault.defi

Contract

The data structures defined by this contract.

  • Action parameter in colupadtelog

    {
      "name": "colupadtelog",
      "base": "",
      "fields": [
        {
          "name": "collateral_id",
          "type": "uint64"
        },
        {
          "name": "deposit_contract",
          "type": "name"
        },
        {
          "name": "deposit_symbol",
          "type": "symbol"
        },
        {
          "name": "issue_symbol",
          "type": "symbol"
        },
        {
          "name": "income_account",
          "type": "name"
        },
        {
          "name": "fees_account",
          "type": "name"
        },
        {
          "name": "min_quantity",
          "type": "asset"
        },
        {
          "name": "income_ratio",
          "type": "uint16"
        },
        {
          "name": "release_fees",
          "type": "uint16"
        },
        {
          "name": "refund_ratio",
          "type": "uint16"
        }
      ]
    }
  • Table row type of config

    {
      "name": "config",
      "base": "",
      "fields": [
        {
          "name": "last_income_time",
          "type": "uint64"
        },
        {
          "name": "transfer_status",
          "type": "uint8"
        },
        {
          "name": "deposit_status",
          "type": "uint8"
        },
        {
          "name": "withdraw_status",
          "type": "uint8"
        },
        {
          "name": "log_id",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in createcoll

    {
      "name": "createcoll",
      "base": "",
      "fields": [
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "income_account",
          "type": "name"
        },
        {
          "name": "fees_account",
          "type": "name"
        },
        {
          "name": "min_quantity",
          "type": "asset"
        },
        {
          "name": "income_ratio",
          "type": "uint16"
        },
        {
          "name": "release_fees",
          "type": "uint16"
        },
        {
          "name": "refund_ratio",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in depositlog

    {
      "name": "depositlog",
      "base": "",
      "fields": [
        {
          "name": "collateral_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "rate",
          "type": "uint64"
        },
        {
          "name": "time",
          "type": "block_timestamp_type"
        }
      ]
    }
  • Action parameter in income

    {
      "name": "income",
      "base": "",
      "fields": [
        {
          "name": "bank",
          "type": "name"
        }
      ]
    }
  • Struct property of withdraw2_row

    {
      "name": "maturities2_row",
      "base": "",
      "fields": [
        {
          "name": "maturity",
          "type": "time_point_sec"
        },
        {
          "name": "rex",
          "type": "uint64"
        },
        {
          "name": "banks",
          "type": "name[]"
        },
        {
          "name": "token_type",
          "type": "name"
        }
      ]
    }
  • Struct property of withdraw_row

    {
      "name": "maturities_row",
      "base": "",
      "fields": [
        {
          "name": "maturity",
          "type": "time_point_sec"
        },
        {
          "name": "rex",
          "type": "uint64"
        },
        {
          "name": "banks",
          "type": "name[]"
        }
      ]
    }
  • Action parameter in migrate

    {
      "name": "migrate",
      "base": "",
      "fields": []
    }
  • Action parameter in proxyto

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

    {
      "name": "release",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        }
      ]
    }
  • Action parameter in releaselog

    {
      "name": "releaselog",
      "base": "",
      "fields": [
        {
          "name": "collateral_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "maturity",
          "type": "time_point_sec"
        },
        {
          "name": "rex",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in remaintofee

    {
      "name": "remaintofee",
      "base": "",
      "fields": [
        {
          "name": "fees_account",
          "type": "name"
        }
      ]
    }
  • Table row type of rexprice

    {
      "name": "rex_price_row",
      "base": "",
      "fields": [
        {
          "name": "date",
          "type": "time_point_sec"
        },
        {
          "name": "price",
          "type": "uint64"
        }
      ]
    }
  • Table row type of collaterals

    {
      "name": "s_collateral",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "deposit_contract",
          "type": "name"
        },
        {
          "name": "deposit_symbol",
          "type": "symbol"
        },
        {
          "name": "issue_symbol",
          "type": "symbol"
        },
        {
          "name": "last_income",
          "type": "asset"
        },
        {
          "name": "total_income",
          "type": "asset"
        },
        {
          "name": "income_ratio",
          "type": "uint16"
        },
        {
          "name": "income_account",
          "type": "name"
        },
        {
          "name": "min_quantity",
          "type": "asset"
        },
        {
          "name": "fees_account",
          "type": "name"
        },
        {
          "name": "release_fees",
          "type": "uint16"
        },
        {
          "name": "refund_ratio",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in trans

    {
      "name": "trans",
      "base": "",
      "fields": [
        {
          "name": "code",
          "type": "name"
        },
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "to",
          "type": "name"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in updatecoll

    {
      "name": "updatecoll",
      "base": "",
      "fields": [
        {
          "name": "collateral_id",
          "type": "uint64"
        },
        {
          "name": "income_account",
          "type": "name"
        },
        {
          "name": "fees_account",
          "type": "name"
        },
        {
          "name": "min_quantity",
          "type": "asset"
        },
        {
          "name": "income_ratio",
          "type": "uint16"
        },
        {
          "name": "release_fees",
          "type": "uint16"
        },
        {
          "name": "refund_ratio",
          "type": "uint16"
        }
      ]
    }
  • Action parameter in updatestatus

    {
      "name": "updatestatus",
      "base": "",
      "fields": [
        {
          "name": "transfer_status",
          "type": "uint8"
        },
        {
          "name": "deposit_status",
          "type": "uint8"
        },
        {
          "name": "withdraw_status",
          "type": "uint8"
        }
      ]
    }
  • Table row type of withdraws2

    {
      "name": "withdraw2_row",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "rex_maturities",
          "type": "maturities2_row[]"
        }
      ]
    }
  • Table row type of withdraws

    {
      "name": "withdraw_row",
      "base": "",
      "fields": [
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "rex_maturities",
          "type": "maturities_row[]"
        }
      ]
    }
  • Action parameter in withdrawlog

    {
      "name": "withdrawlog",
      "base": "",
      "fields": [
        {
          "name": "maturity",
          "type": "time_point_sec"
        },
        {
          "name": "collateral_id",
          "type": "uint64"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "rex_price",
          "type": "uint64"
        },
        {
          "name": "withdraw_quantity",
          "type": "asset"
        },
        {
          "name": "withdraw_award_fees",
          "type": "asset"
        },
        {
          "name": "withdraw_sys_fees",
          "type": "asset"
        },
        {
          "name": "time",
          "type": "time_point_sec"
        }
      ]
    }