Vaulta

app.1dex

Contract

{
  "version": "eosio::abi/1.2",
  "types": [
    {
      "new_type_name": "subaccount",
      "type": "permission_level"
    }
  ],
  "structs": [
    {
      "name": "cancelorder",
      "base": "",
      "fields": [
        {
          "name": "trader",
          "type": "subaccount"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "is_bid",
          "type": "bool"
        }
      ]
    },
    {
      "name": "cancelorders",
      "base": "",
      "fields": [
        {
          "name": "trader",
          "type": "subaccount"
        },
        {
          "name": "order_ids",
          "type": "order_id[]"
        }
      ]
    },
    {
      "name": "claim_config",
      "base": "",
      "fields": [
        {
          "name": "claimer",
          "type": "name"
        },
        {
          "name": "fee_receiver",
          "type": "name"
        }
      ]
    },
    {
      "name": "claimfee",
      "base": "",
      "fields": [
        {
          "name": "pool_ids",
          "type": "uint64[]"
        }
      ]
    },
    {
      "name": "global_state",
      "base": "",
      "fields": [
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "evm_helper",
          "type": "name"
        }
      ]
    },
    {
      "name": "order_id",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "id",
          "type": "uint64"
        },
        {
          "name": "is_bid",
          "type": "bool"
        }
      ]
    },
    {
      "name": "permission_level",
      "base": "",
      "fields": [
        {
          "name": "actor",
          "type": "name"
        },
        {
          "name": "permission",
          "type": "name"
        }
      ]
    },
    {
      "name": "pool_state",
      "base": "",
      "fields": [
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "putlimorder",
      "base": "",
      "fields": [
        {
          "name": "trader",
          "type": "subaccount"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "cid",
          "type": "string"
        },
        {
          "name": "type",
          "type": "uint8"
        },
        {
          "name": "price",
          "type": "uint64"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "is_bid",
          "type": "bool"
        }
      ]
    },
    {
      "name": "putmktorder",
      "base": "",
      "fields": [
        {
          "name": "trader",
          "type": "subaccount"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "cid",
          "type": "string"
        },
        {
          "name": "quantity",
          "type": "asset"
        },
        {
          "name": "is_bid",
          "type": "bool"
        }
      ]
    },
    {
      "name": "rmpfeerate",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "rmpufeerate",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "rmufeerate",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        }
      ]
    },
    {
      "name": "setclaimconf",
      "base": "",
      "fields": [
        {
          "name": "claimer",
          "type": "name"
        },
        {
          "name": "fee_receiver",
          "type": "name"
        }
      ]
    },
    {
      "name": "setevmhelper",
      "base": "",
      "fields": [
        {
          "name": "evm_helper",
          "type": "name"
        }
      ]
    },
    {
      "name": "setfeerate",
      "base": "",
      "fields": [
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "setpfeerate",
      "base": "",
      "fields": [
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "setpufeerate",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "pool_id",
          "type": "uint64"
        },
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "setufeerate",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        }
      ]
    },
    {
      "name": "user_state",
      "base": "",
      "fields": [
        {
          "name": "account",
          "type": "name"
        },
        {
          "name": "taker_fee_rate",
          "type": "uint64"
        },
        {
          "name": "maker_fee_rate",
          "type": "uint64"
        }
      ]
    }
  ],
  "actions": [
    {
      "name": "cancelorder",
      "type": "cancelorder",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Cancel a order\nsummary: 'Cancel a order'\n---\n\n{{trader}} cancels order for the pool with id {{pool_id}}, order ID is {{id}}."
    },
    {
      "name": "cancelorders",
      "type": "cancelorders",
      "ricardian_contract": ""
    },
    {
      "name": "claimfee",
      "type": "claimfee",
      "ricardian_contract": ""
    },
    {
      "name": "putlimorder",
      "type": "putlimorder",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Place a limit order\nsummary: 'Place a limit order'\n---\n\n\n{{trader}} places a limit order for the pool with id {{pool_id}}, with unit price {{price}} and quantity {{quantity}}."
    },
    {
      "name": "putmktorder",
      "type": "putmktorder",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Place a market order\nsummary: 'Place a market order'\n---\n\n{{trader}} places a market order for the pool with id {{pool_id}}, with the quantity or amount {{quantity}}."
    },
    {
      "name": "rmpfeerate",
      "type": "rmpfeerate",
      "ricardian_contract": ""
    },
    {
      "name": "rmpufeerate",
      "type": "rmpufeerate",
      "ricardian_contract": ""
    },
    {
      "name": "rmufeerate",
      "type": "rmufeerate",
      "ricardian_contract": ""
    },
    {
      "name": "setclaimconf",
      "type": "setclaimconf",
      "ricardian_contract": ""
    },
    {
      "name": "setevmhelper",
      "type": "setevmhelper",
      "ricardian_contract": ""
    },
    {
      "name": "setfeerate",
      "type": "setfeerate",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Set global transaction fee rate\nsummary: 'Set global transaction fee rate'\n---\n\nSet global transaction fee rate, including taker fee rate and maker fee rate."
    },
    {
      "name": "setpfeerate",
      "type": "setpfeerate",
      "ricardian_contract": "---\nspec_version: \"0.2.0\"\ntitle: Set the transaction fee rate for the specified pool\nsummary: 'Set the transaction fee rate for the specified pool'\n---\n\nSet the transaction fee rate of the pool with id {{pool_id}}, including taker fee rate and maker fee rate."
    },
    {
      "name": "setpufeerate",
      "type": "setpufeerate",
      "ricardian_contract": ""
    },
    {
      "name": "setufeerate",
      "type": "setufeerate",
      "ricardian_contract": ""
    }
  ],
  "tables": [
    {
      "name": "claimconfig",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "claim_config"
    },
    {
      "name": "globalstate",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "global_state"
    },
    {
      "name": "poolstate",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "pool_state"
    },
    {
      "name": "userpstate",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "user_state"
    },
    {
      "name": "userstate",
      "index_type": "i64",
      "key_names": [],
      "key_types": [],
      "type": "user_state"
    }
  ],
  "ricardian_clauses": [],
  "error_messages": [],
  "abi_extensions": [],
  "variants": [],
  "action_results": []
}