subscan
Runtime Modules / OCEX
Spec Version:
Events
Name
Lookup
Attributes
SnapshotProcessed2300["u64"]
UserActionsBatchSubmitted2301["u64"]
FeesClaims2302["AccountId","u64"]
MainAccountRegistered2303["AccountId","AccountId"]
TradingPairRegistered2304["AssetId","AssetId"]
TradingPairUpdated2305["AssetId","AssetId"]
DepositSuccessful2306["AccountId","AssetId","BalanceOf"]
ShutdownTradingPair2307["TradingPairConfig"]
OpenTradingPair2308["TradingPairConfig"]
EnclaveRegistered2309["AccountId"]
EnclaveAllowlisted230a["AccountId"]
EnclaveCleanup230b["Vec<AccountId>"]
TradingPairIsNotOperational230c
WithdrawalClaimed230d["u64","AccountId","Vec<Withdrawal<AccountId>>"]
NewProxyAdded230e["AccountId","AccountId"]
ProxyRemoved230f["AccountId","AccountId"]
TokenAllowlisted2310["AssetId"]
AllowlistedTokenRemoved2311["AssetId"]
WithdrawalReady2312["u64","Withdrawal<AccountId>"]
ExchangeStateUpdated2313["bool"]
DisputePeriodUpdated2314["BlockNumberFor"]
WithdrawFromOrderbook2315["AccountId","AssetId","BalanceOf"]
OrderbookOperatorKeyWhitelisted2316["sp_core::ecdsa::Public"]
FailedToConsumeAuction2317
FailedToCreateAuction2318
TradingFeesBurned2319["AssetId","Compact<BalanceOf>"]
AuctionClosed231a["AccountId","Compact<BalanceOf>","Compact<BalanceOf>"]
LMPScoresUpdated231b["u16"]
LMPRewardClaimed231c["u16","TradingPair","AccountId","u128"]
Storage Functions
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}
Constants
Name
Type
Value
PalletId[U8; 8]4f4345585f4c4d50
TreasuryPalletId[U8; 8]70792f7472737279
LMPRewardsPalletId[U8; 8]4c4d505245574152
OBWithdrawalLimitU3232000000
Error Types
Name
Docs
FailedToConvertDecimaltoBalanceUnable to convert given balance to internal Decimal data type
RegisterationShouldBeSignedByMainAccount
SenderNotAuthorizedToWithdrawCaller is not authorized to claim the withdrawal.Normally, when Sender != main_account.
AccountNotRegisteredAccount is not registered with the exchange
InvalidWithdrawalIndex
InvalidWithdrawalAmountAmount within withdrawal can not be converted to Decimal
TradingPairIsNotOperationalThe trading pair is not currently Operational
TradingPairIsNotClosedthe trading pair is currently in operation
MainAccountAlreadyRegistered
SnapshotNonceError
ProxyAlreadyRegisteredProxy is already in use
EnclaveSignatureVerificationFailed
MainAccountNotFound
ProxyLimitExceeded
TradingPairAlreadyRegistered
BothAssetsCannotBeSame
TradingPairNotFound
AmountOverflowStorage overflow ocurred
ProxyNotFoundProxyNotFound
MinimumOneProxyRequiredMinimumOneProxyRequried
OnchainEventsBoundedVecOverflowOnchain Events vector is full
DepositOverflowOverflow of Deposit amount
TradingPairNotRegisteredTrading Pair is not registed for updating
TradingPairConfigCannotBeZeroTrading Pair config value cannot be set to zero
AllowlistedTokenLimitReachedLimit reached to add allowlisted token
TokenNotAllowlistedGiven token is not allowlisted
AllowlistedTokenRemovedGiven allowlisted token is removed
TradingPairConfigUnderflowTrading Pair config value cannot be set to zero
ExchangeNotOperationalExchange is down
UnableToTransferFeeUnable to transfer fee
FeesNotCollectedFullyUnable to execute collect fees fully
ExchangeOperationalExchange is up
WithdrawalBoundOverflowCan not write into withdrawal bounded structurelimit reached
InvalidSignatureAggregationUnable to aggregrate the signature
SignerIndexNotFoundUnable to get signer index
InvalidSnapshotStateSnapshot in invalid state
AccountIdCannotBeDecodedAccountId cannot be decoded
WithdrawStillInDisputationPeriodWithdrawal called with in disputation period is live
WithdrawBelongsToDisputedSnapshotSnapshot is disputed by validators
SnapshotDisputeCloseBlockStorageQueryErrorCannot query SnapshotDisputeCloseBlockMap
CannotFindCloseBlockForSnapshotCannot find close block for snapshot
DisputeIntervalNotSetDispute Interval not set
WorkerNotIdleWorker not Idle
InvalidMarketWeightageInvalid reward weightage for markets
LMPConfigNotFoundLMPConfig is not defined for this epoch
RewardsNotReadyLMP Rewards is still in Safety period
InvalidLMPConfigInvalid LMP config
RewardAlreadyClaimedRewards are already claimed
BaseNotAllowlistedBase token not allowlisted for deposits
QuoteNotAllowlistedQuote token not allowlisted for deposits
MinVolGreaterThanMaxVolumeMin volume cannot be greater than Max volume
FeeDistributionConfigNotFoundFee Distribution Config Not Found
AuctionNotFoundAuction not found
InvalidBidAmountInvalid bid amount
InsufficientBalanceInsufficientBalance
WithdrawalFeeBurnFailedWithdrawal fee burn failed
TradingFeesBurnFailedTrading fees burn failed