Name | Lookup | Parameters | |
---|---|---|---|
register_main_account | 2300 | 1 | |
add_proxy_account | 2301 | 1 | |
close_trading_pair | 2302 | 2 | |
open_trading_pair | 2303 | 2 | |
register_trading_pair | 2304 | 6 | |
update_trading_pair | 2305 | 6 | |
deposit | 2306 | 2 | |
remove_proxy_account | 2307 | 1 | |
set_snapshot | 2308 | 1 | |
set_exchange_state | 230c | 1 | |
claim_withdraw | 230e | 2 | |
allowlist_token | 230f | 1 | |
remove_allowlisted_token | 2310 | 1 | |
submit_snapshot | 2311 | 2 | |
whitelist_orderbook_operator | 2312 | 1 | |
claim_lmp_rewards | 2313 | 2 | |
set_lmp_epoch_config | 2314 | 5 | |
set_fee_distribution | 2315 | 1 | |
start_new_epoch_lmp | 2317 | - |
Name | Lookup | Attributes | |
---|---|---|---|
SnapshotProcessed | 2300 | ["u64"] | |
UserActionsBatchSubmitted | 2301 | ["u64"] | |
FeesClaims | 2302 | ["AccountId","u64"] | |
MainAccountRegistered | 2303 | ["AccountId","AccountId"] | |
TradingPairRegistered | 2304 | ["AssetId","AssetId"] | |
TradingPairUpdated | 2305 | ["AssetId","AssetId"] | |
DepositSuccessful | 2306 | ["AccountId","AssetId","BalanceOf"] | |
ShutdownTradingPair | 2307 | ["TradingPairConfig"] | |
OpenTradingPair | 2308 | ["TradingPairConfig"] | |
EnclaveRegistered | 2309 | ["AccountId"] | |
EnclaveAllowlisted | 230a | ["AccountId"] | |
EnclaveCleanup | 230b | ["Vec<AccountId>"] | |
TradingPairIsNotOperational | 230c | ||
WithdrawalClaimed | 230d | ["u64","AccountId","Vec<Withdrawal<AccountId>>"] | |
NewProxyAdded | 230e | ["AccountId","AccountId"] | |
ProxyRemoved | 230f | ["AccountId","AccountId"] | |
TokenAllowlisted | 2310 | ["AssetId"] | |
AllowlistedTokenRemoved | 2311 | ["AssetId"] | |
WithdrawalReady | 2312 | ["u64","Withdrawal<AccountId>"] | |
ExchangeStateUpdated | 2313 | ["bool"] | |
DisputePeriodUpdated | 2314 | ["BlockNumberFor"] | |
WithdrawFromOrderbook | 2315 | ["AccountId","AssetId","BalanceOf"] | |
OrderbookOperatorKeyWhitelisted | 2316 | ["sp_core::ecdsa::Public"] | |
FailedToConsumeAuction | 2317 | ||
FailedToCreateAuction | 2318 | ||
TradingFeesBurned | 2319 | ["AssetId","Compact<BalanceOf>"] | |
AuctionClosed | 231a | ["AccountId","Compact<BalanceOf>","Compact<BalanceOf>"] | |
LMPScoresUpdated | 231b | ["u16"] | |
LMPRewardClaimed | 231c | ["u16","TradingPair","AccountId","u128"] |
Name | Type | |
---|---|---|
AllowlistedToken | {"origin":"PlainType","plain_type":"Vec<polkadex_primitives:assets:AssetId>","PlainTypeValue":575} | |
Accounts | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"orderbook_primitives:ocex:AccountInfo","keys_id":0,"value_id":577}} | |
Proxies | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"AccountId","keys_id":0,"value_id":0}} | |
TradingPairs | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat","Blake2_128Concat"],"key_vec":["polkadex_primitives:assets:AssetId","polkadex_primitives:assets:AssetId"],"value":"orderbook_primitives:ocex:TradingPairConfig","keys_id":116,"value_id":98}} | |
Snapshots | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"orderbook_primitives:SnapshotSummary","keys_id":11,"value_id":325}} | |
SnapshotNonce | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
ExchangeState | {"origin":"PlainType","plain_type":"Bool","PlainTypeValue":40} | |
Withdrawals | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<Tuple:AccountIdVec<polkadex_primitives:withdrawal:Withdrawal>>","keys_id":11,"value_id":584}} | |
IngressMessages | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U32"],"value":"Vec<orderbook_primitives:ingress:IngressMessages>","keys_id":4,"value_id":587}} | |
OnChainEvents | {"origin":"PlainType","plain_type":"Vec<orderbook_primitives:ocex:OnChainEvents>","PlainTypeValue":594} | |
TotalAssets | {"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["polkadex_primitives:assets:AssetId"],"value":"rust_decimal:decimal:Decimal","keys_id":97,"value_id":99}} | |
Authorities | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U64"],"value":"orderbook_primitives:ValidatorSet","keys_id":11,"value_id":596}} | |
NextAuthorities | {"origin":"PlainType","plain_type":"orderbook_primitives:ValidatorSet","PlainTypeValue":596} | |
ValidatorSetId | {"origin":"PlainType","plain_type":"U64","PlainTypeValue":11} | |
OrderbookOperatorPublicKey | {"origin":"PlainType","plain_type":"[U8; 33]","PlainTypeValue":103} | |
LMPEpoch | {"origin":"PlainType","plain_type":"U16","PlainTypeValue":81} | |
TraderMetrics | {"origin":"Map","n_map_type":{"hashers":["Identity","Identity","Identity"],"key_vec":["U16","orderbook_primitives:types:TradingPair","AccountId"],"value":"Tuple:rust_decimal:decimal:Decimalrust_decimal:decimal:DecimalBool","keys_id":598,"value_id":599}} | |
TotalScores | {"origin":"Map","n_map_type":{"hashers":["Identity","Identity"],"key_vec":["U16","orderbook_primitives:types:TradingPair"],"value":"Tuple:rust_decimal:decimal:Decimalrust_decimal:decimal:Decimal","keys_id":600,"value_id":338}} | |
FinalizeLMPScore | {"origin":"PlainType","plain_type":"U16","PlainTypeValue":81} | |
LMPConfig | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U16"],"value":"orderbook_primitives:lmp:LMPEpochConfig","keys_id":81,"value_id":589}} | |
ExpectedLMPConfig | {"origin":"PlainType","plain_type":"orderbook_primitives:lmp:LMPEpochConfig","PlainTypeValue":589} | |
LMPClaimBlk | {"origin":"Map","n_map_type":{"hashers":["Identity"],"key_vec":["U16"],"value":"U32","keys_id":81,"value_id":4}} | |
PriceOracle | {"origin":"PlainType","plain_type":"Vec<Tuple:Tuple:polkadex_primitives:assets:AssetIdpolkadex_primitives:assets:AssetIdTuple:rust_decimal:decimal:Decimalrust_decimal:decimal:Decimal>","PlainTypeValue":601} | |
FeeDistributionConfig | {"origin":"PlainType","plain_type":"polkadex_primitives:auction:FeeDistribution","PlainTypeValue":350} | |
AuctionBlockNumber | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
Auction | {"origin":"PlainType","plain_type":"polkadex_primitives:auction:AuctionInfo","PlainTypeValue":604} |
Name | Type | Value | |
---|---|---|---|
PalletId | [U8; 8] | 4f4345585f4c4d50 | |
TreasuryPalletId | [U8; 8] | 70792f7472737279 | |
LMPRewardsPalletId | [U8; 8] | 4c4d505245574152 | |
OBWithdrawalLimit | U32 | 32000000 |
Name | Docs |
---|---|
FailedToConvertDecimaltoBalance | Unable to convert given balance to internal Decimal data type |
RegisterationShouldBeSignedByMainAccount | |
SenderNotAuthorizedToWithdraw | Caller is not authorized to claim the withdrawal.Normally, when Sender != main_account. |
AccountNotRegistered | Account is not registered with the exchange |
InvalidWithdrawalIndex | |
InvalidWithdrawalAmount | Amount within withdrawal can not be converted to Decimal |
TradingPairIsNotOperational | The trading pair is not currently Operational |
TradingPairIsNotClosed | the trading pair is currently in operation |
MainAccountAlreadyRegistered | |
SnapshotNonceError | |
ProxyAlreadyRegistered | Proxy is already in use |
EnclaveSignatureVerificationFailed | |
MainAccountNotFound | |
ProxyLimitExceeded | |
TradingPairAlreadyRegistered | |
BothAssetsCannotBeSame | |
TradingPairNotFound | |
AmountOverflow | Storage overflow ocurred |
ProxyNotFound | ProxyNotFound |
MinimumOneProxyRequired | MinimumOneProxyRequried |
OnchainEventsBoundedVecOverflow | Onchain Events vector is full |
DepositOverflow | Overflow of Deposit amount |
TradingPairNotRegistered | Trading Pair is not registed for updating |
TradingPairConfigCannotBeZero | Trading Pair config value cannot be set to zero |
AllowlistedTokenLimitReached | Limit reached to add allowlisted token |
TokenNotAllowlisted | Given token is not allowlisted |
AllowlistedTokenRemoved | Given allowlisted token is removed |
TradingPairConfigUnderflow | Trading Pair config value cannot be set to zero |
ExchangeNotOperational | Exchange is down |
UnableToTransferFee | Unable to transfer fee |
FeesNotCollectedFully | Unable to execute collect fees fully |
ExchangeOperational | Exchange is up |
WithdrawalBoundOverflow | Can not write into withdrawal bounded structurelimit reached |
InvalidSignatureAggregation | Unable to aggregrate the signature |
SignerIndexNotFound | Unable to get signer index |
InvalidSnapshotState | Snapshot in invalid state |
AccountIdCannotBeDecoded | AccountId cannot be decoded |
WithdrawStillInDisputationPeriod | Withdrawal called with in disputation period is live |
WithdrawBelongsToDisputedSnapshot | Snapshot is disputed by validators |
SnapshotDisputeCloseBlockStorageQueryError | Cannot query SnapshotDisputeCloseBlockMap |
CannotFindCloseBlockForSnapshot | Cannot find close block for snapshot |
DisputeIntervalNotSet | Dispute Interval not set |
WorkerNotIdle | Worker not Idle |
InvalidMarketWeightage | Invalid reward weightage for markets |
LMPConfigNotFound | LMPConfig is not defined for this epoch |
RewardsNotReady | LMP Rewards is still in Safety period |
InvalidLMPConfig | Invalid LMP config |
RewardAlreadyClaimed | Rewards are already claimed |
BaseNotAllowlisted | Base token not allowlisted for deposits |
QuoteNotAllowlisted | Quote token not allowlisted for deposits |
MinVolGreaterThanMaxVolume | Min volume cannot be greater than Max volume |
FeeDistributionConfigNotFound | Fee Distribution Config Not Found |
AuctionNotFound | Auction not found |
InvalidBidAmount | Invalid bid amount |
InsufficientBalance | InsufficientBalance |
WithdrawalFeeBurnFailed | Withdrawal fee burn failed |
TradingFeesBurnFailed | Trading fees burn failed |