subscan
Runtime Modules / Market
Spec Version:
Storage Functions
Name
Type
FileBaseFee{"origin":"PlainType","plain_type":"BalanceOf"}
MerchantLedgers{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"MerchantLedger<BalanceOf>","isLinked":false}}
Bonded{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Blake2_128Concat","value":"AccountId","isLinked":false}}
Files{"origin":"MapType","map_type":{"key":"MerkleRoot","hasher":"Twox64Concat","value":"(FileInfo<AccountId, BalanceOf>, UsedInfo)","isLinked":false}}
FilesCount{"origin":"PlainType","plain_type":"u32"}
FilePrice{"origin":"PlainType","plain_type":"BalanceOf"}
FilesCountPrice{"origin":"PlainType","plain_type":"BalanceOf"}
UsedTrashI{"origin":"MapType","map_type":{"key":"MerkleRoot","hasher":"Twox64Concat","value":"UsedInfo","isLinked":false}}
UsedTrashII{"origin":"MapType","map_type":{"key":"MerkleRoot","hasher":"Twox64Concat","value":"UsedInfo","isLinked":false}}
UsedTrashSizeI{"origin":"PlainType","plain_type":"u128"}
UsedTrashSizeII{"origin":"PlainType","plain_type":"u128"}
UsedTrashMappingI{"origin":"MapType","map_type":{"key":"SworkerAnchor","hasher":"Blake2_128Concat","value":"u64","isLinked":false}}
UsedTrashMappingII{"origin":"MapType","map_type":{"key":"SworkerAnchor","hasher":"Blake2_128Concat","value":"u64","isLinked":false}}
MarketSwitch{"origin":"PlainType","plain_type":"bool"}
FreeOrderAccounts{"origin":"MapType","map_type":{"key":"AccountId","hasher":"Twox64Concat","value":"u32","isLinked":false}}
FreeCountsLimit{"origin":"PlainType","plain_type":"u32"}
TotalFreeFeeLimit{"origin":"PlainType","plain_type":"BalanceOf"}
FreeFee{"origin":"PlainType","plain_type":"BalanceOf"}
NewOrder{"origin":"PlainType","plain_type":"bool"}
PendingFiles{"origin":"PlainType","plain_type":"BTreeSet<MerkleRoot>"}
FreeOrderAdmin{"origin":"PlainType","plain_type":"AccountId"}
Constants
Name
Type
Value
ModuleIdModuleId0x63726d61726b6574
FileDurationBlockNumber0x008d2700
FileReplicau320x04000000
FileInitPriceBalanceOf0x10270000000000000000000000000000
StorageReferenceRatio(u128, u128)0x1900000000000000000000000000000064000000000000000000000000000000
StorageIncreaseRatioPerbill0x60ea0000
StorageDecreaseRatioPerbill0x50c30000
StakingRatioPerbill0x0054ea2a
RenewRewardRatioPerbill0x80f0fa02
StorageRatioPerbill0x0095ba0a
UsedTrashMaxSizeu1280xe8030000000000000000000000000000
MaximumFileSizeu640x0000000020000000
Error Types
Name
Docs
InsufficientCurrency Don't have enough currency(CRU) to finish the extrinsic(transaction). Please transfer some CRU into this account.
InsufficientValue Can not choose the value less than the minimum balance. Please increase the value to be larger than the minimu balance.
NotRegister Didn't register as a merchant before and cannot finish the extrinsic(transaction). Please register as a merchant first.
AlreadyRegistered Already registered before and cannot register again.
FileSizeNotCorrect The file size is not correct. The same file is already on chain and the file size should be same. Please check the file size again.
FileNotExist The file does not exist. Please check the cid again.
NotInRewardPeriod The file is not in the reward period. Please wait until the file is expired.
NotEnoughReward The reward is not enough.
FileTooLarge The file is too large. Please check the MaximumFileSize value.
PlaceOrderNotAvailable Place order is not available right now. Please wait for a while.
IllegalFreeOrderAdmin FreeOrderAdmin not exist or it's illegal.
AlreadyInFreeAccounts The account already in free accounts
ExceedFreeCountsLimit The free count exceed the upper limit
ExceedTotalFreeFeeLimit The total free fee limit is exceeded
InvalidTip Free account cannot assign tips