Vaulta

marcopolo543

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 boxnews

    {
      "name": "boxnew",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        },
        {
          "name": "token_precision",
          "type": "float64"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "BOX_id",
          "type": "uint64"
        },
        {
          "name": "BOX_swap_memo",
          "type": "string"
        },
        {
          "name": "NEWDEX_id",
          "type": "uint64"
        },
        {
          "name": "NEWDEX_buy_memo",
          "type": "string"
        },
        {
          "name": "NEWDEX_sell_memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in detect

    {
      "name": "detect",
      "base": "",
      "fields": [
        {
          "name": "time",
          "type": "int64"
        }
      ]
    }
  • Table row type of dfsnews

    {
      "name": "dfsnew",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        },
        {
          "name": "token_precision",
          "type": "float64"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "DFS_id",
          "type": "uint64"
        },
        {
          "name": "DFS_swap_memo",
          "type": "string"
        },
        {
          "name": "NEWDEX_id",
          "type": "uint64"
        },
        {
          "name": "NEWDEX_buy_memo",
          "type": "string"
        },
        {
          "name": "NEWDEX_sell_memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in eosasset

    {
      "name": "eosasset",
      "base": "",
      "fields": [
        {
          "name": "now_after",
          "type": "uint64"
        },
        {
          "name": "token_contract_account",
          "type": "name"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        }
      ]
    }
  • Table row type of eoslefts

    {
      "name": "eosleft",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    }
  • Table row type of exchangepair

    {
      "name": "exchange_pair",
      "base": "",
      "fields": [
        {
          "name": "pair_id",
          "type": "uint64"
        },
        {
          "name": "price_precision",
          "type": "uint8"
        },
        {
          "name": "status",
          "type": "uint8"
        },
        {
          "name": "base_symbol",
          "type": "ndx_symbol"
        },
        {
          "name": "quote_symbol",
          "type": "ndx_symbol"
        },
        {
          "name": "manager",
          "type": "name"
        },
        {
          "name": "list_time",
          "type": "time_point_sec"
        },
        {
          "name": "pair_symbol",
          "type": "string"
        },
        {
          "name": "current_price",
          "type": "float64"
        },
        {
          "name": "base_currency_id",
          "type": "uint64"
        },
        {
          "name": "quote_currency_id",
          "type": "uint64"
        },
        {
          "name": "pair_fee",
          "type": "uint8"
        },
        {
          "name": "ext1",
          "type": "uint64"
        },
        {
          "name": "ext2",
          "type": "uint64"
        },
        {
          "name": "extstr",
          "type": "string"
        }
      ]
    }
  • Struct property of pairhbg

    {
      "name": "exsymbol",
      "base": "",
      "fields": [
        {
          "name": "sym",
          "type": "symbol"
        },
        {
          "name": "contract",
          "type": "name"
        }
      ]
    }
  • Action parameter in getdata

    {
      "name": "getdata",
      "base": "",
      "fields": [
        {
          "name": "pair_id",
          "type": "uint64"
        }
      ]
    }
  • Table row type of hbgboxs

    {
      "name": "hbgbox",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        },
        {
          "name": "token_precision",
          "type": "float64"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "BOX_id",
          "type": "uint64"
        },
        {
          "name": "BOX_swap_memo",
          "type": "string"
        },
        {
          "name": "HBG_id",
          "type": "uint64"
        },
        {
          "name": "HBG_swap_memo",
          "type": "string"
        }
      ]
    }
  • Action parameter in judge

    {
      "name": "judge",
      "base": "",
      "fields": []
    }
  • Table row type of markets

    Table row type of romemarkets

    {
      "name": "market",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "contract0",
          "type": "name"
        },
        {
          "name": "contract1",
          "type": "name"
        },
        {
          "name": "sym0",
          "type": "symbol"
        },
        {
          "name": "sym1",
          "type": "symbol"
        },
        {
          "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": "last_update",
          "type": "time_point_sec"
        }
      ]
    }
  • Struct property of exchange_pair

    {
      "name": "ndx_symbol",
      "base": "",
      "fields": [
        {
          "name": "contrat_name",
          "type": "name"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        }
      ]
    }
  • Action parameter in notify

    {
      "name": "notify",
      "base": "",
      "fields": [
        {
          "name": "user",
          "type": "name"
        },
        {
          "name": "msg",
          "type": "string"
        }
      ]
    }
  • Table row type of buyorder

    Table row type of sellorder

    {
      "name": "order",
      "base": "",
      "fields": [
        {
          "name": "order_id",
          "type": "uint64"
        },
        {
          "name": "pair_id",
          "type": "uint64"
        },
        {
          "name": "type",
          "type": "uint8"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "placed_time",
          "type": "time_point_sec"
        },
        {
          "name": "remain_quantity",
          "type": "asset"
        },
        {
          "name": "remain_convert",
          "type": "asset"
        },
        {
          "name": "price",
          "type": "float64"
        },
        {
          "name": "contract",
          "type": "name"
        },
        {
          "name": "count",
          "type": "uint8"
        },
        {
          "name": "crosschain",
          "type": "uint8"
        },
        {
          "name": "ext1",
          "type": "uint64"
        },
        {
          "name": "extstr",
          "type": "string"
        }
      ]
    }
  • 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"
        }
      ]
    }
  • Table row type of pairhbgs

    {
      "name": "pairhbg",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "code",
          "type": "symbol_code"
        },
        {
          "name": "token0",
          "type": "exsymbol"
        },
        {
          "name": "token1",
          "type": "exsymbol"
        },
        {
          "name": "reserve0",
          "type": "asset"
        },
        {
          "name": "reserve1",
          "type": "asset"
        },
        {
          "name": "total_liquidity",
          "type": "uint64"
        },
        {
          "name": "last_update_time",
          "type": "uint32"
        },
        {
          "name": "create_time",
          "type": "uint32"
        }
      ]
    }
  • Action parameter in rome

    {
      "name": "rome",
      "base": "",
      "fields": [
        {
          "name": "time",
          "type": "int64"
        }
      ]
    }
  • Table row type of romeboxs

    {
      "name": "romeboxs",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        },
        {
          "name": "token_precision",
          "type": "float64"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "BOX_id",
          "type": "uint64"
        },
        {
          "name": "BOX_swap_memo",
          "type": "string"
        },
        {
          "name": "ROME_id",
          "type": "uint64"
        },
        {
          "name": "ROME_swap_memo",
          "type": "string"
        }
      ]
    }
  • Table row type of romemarket

    {
      "name": "romemarket",
      "base": "",
      "fields": [
        {
          "name": "mid",
          "type": "uint64"
        },
        {
          "name": "contract0",
          "type": "name"
        },
        {
          "name": "contract1",
          "type": "name"
        },
        {
          "name": "sym0",
          "type": "symbol"
        },
        {
          "name": "sym1",
          "type": "symbol"
        },
        {
          "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": "last_update",
          "type": "time_point_sec"
        }
      ]
    }
  • Action parameter in selltoken

    {
      "name": "selltoken",
      "base": "",
      "fields": [
        {
          "name": "from",
          "type": "name"
        },
        {
          "name": "dex_contract_address",
          "type": "name"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "dex_swap_memo",
          "type": "string"
        }
      ]
    }
  • Table row type of targets

    {
      "name": "target",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        },
        {
          "name": "token_precision",
          "type": "float64"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "BOX_id",
          "type": "uint64"
        },
        {
          "name": "BOX_swap_memo",
          "type": "string"
        },
        {
          "name": "DFS_id",
          "type": "uint64"
        },
        {
          "name": "DFS_swap_memo",
          "type": "string"
        }
      ]
    }
  • Struct property of pair

    {
      "name": "token",
      "base": "",
      "fields": [
        {
          "name": "contrat_name",
          "type": "name"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        }
      ]
    }
  • Action parameter in tokenasset

    {
      "name": "tokenasset",
      "base": "",
      "fields": [
        {
          "name": "token_contract_account",
          "type": "name"
        },
        {
          "name": "owner",
          "type": "name"
        },
        {
          "name": "sym",
          "type": "symbol"
        }
      ]
    }
  • Table row type of tokenlefts

    {
      "name": "tokenleft",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "balance",
          "type": "asset"
        }
      ]
    }
  • Action parameter in upserttarget

    {
      "name": "upserttarget",
      "base": "",
      "fields": [
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "token_symbol",
          "type": "symbol"
        },
        {
          "name": "token_precision",
          "type": "float64"
        },
        {
          "name": "token_contract_address",
          "type": "name"
        },
        {
          "name": "BOX_id",
          "type": "uint64"
        },
        {
          "name": "BOX_swap_memo",
          "type": "string"
        },
        {
          "name": "DFS_id",
          "type": "uint64"
        },
        {
          "name": "DFS_swap_memo",
          "type": "string"
        }
      ]
    }