Vaulta

dragonexchng

Contract

The data structures defined by this contract.

  • Action parameter in eraserates

    {
      "name": "eraserates",
      "base": "",
      "fields": [
        {
          "name": "sym_codes",
          "type": "symbol_code[]"
        }
      ]
    }
  • Table row type of exchrates

    {
      "name": "exchange_rate",
      "base": "",
      "fields": [
        {
          "name": "token_code",
          "type": "symbol_code"
        },
        {
          "name": "base_rate",
          "type": "uint64"
        },
        {
          "name": "buy_value",
          "type": "uint64"
        },
        {
          "name": "sell_value",
          "type": "uint64"
        }
      ]
    }
  • Table row type of exchspreads

    {
      "name": "exchange_spread",
      "base": "",
      "fields": [
        {
          "name": "token_code",
          "type": "symbol_code"
        },
        {
          "name": "spread",
          "type": "uint64"
        }
      ]
    }
  • Struct property of updaterates

    {
      "name": "token_exchange_rate",
      "base": "",
      "fields": [
        {
          "name": "token_code",
          "type": "symbol_code"
        },
        {
          "name": "rate_value",
          "type": "uint64"
        }
      ]
    }
  • Action parameter in updaterates

    {
      "name": "updaterates",
      "base": "",
      "fields": [
        {
          "name": "rates",
          "type": "token_exchange_rate[]"
        }
      ]
    }
  • Action parameter in updatespread

    {
      "name": "updatespread",
      "base": "",
      "fields": [
        {
          "name": "token_code",
          "type": "symbol_code"
        },
        {
          "name": "spread",
          "type": "uint64"
        }
      ]
    }