subscan
Runtime Modules / Reward
Spec Version:
Events
Name
Lookup
Attributes
NewRewardCampaignCreated4400["CampaignId","AccountId"]
RewardClaimed4401["CampaignId","AccountId","BalanceOf"]
NftRewardClaimed4402["CampaignId","AccountId","Vec<(ClassId, TokenId)>"]
SetRewardRoot4403["CampaignId","BalanceOf","Hash"]
SetNftRewardRoot4404["CampaignId","Hash"]
SetReward4405["CampaignId","Vec<(AccountId, BalanceOf)>"]
SetNftReward4406["CampaignId","Vec<(AccountId, Vec<(ClassId, TokenId)>)>"]
RewardCampaignEnded4407["CampaignId"]
RewardCampaignClosed4408["CampaignId"]
RewardCampaignRootClosed4409["CampaignId"]
RewardCampaignCanceled440a["CampaignId"]
SetRewardOriginAdded440b["AccountId"]
SetRewardOriginRemoved440c["AccountId"]
Storage Functions
Name
Type
Campaigns{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"bit_country_primitives:CampaignInfo","keys_id":4,"value_id":464}}
CampaignMerkleRoots{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"Vec<H256>","keys_id":4,"value_id":147}}
CampaignClaimedAccounts{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"Vec<AccountId>","keys_id":4,"value_id":51}}
NextTrieIndex{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
NextCampaignId{"origin":"PlainType","plain_type":"U32","PlainTypeValue":4}
SetRewardOrigins{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"NULL","keys_id":0,"value_id":32}}
Constants
Name
Type
Value
PalletId[U8; 8]6269742f74727379
MiningCurrencyIdbit_country_primitives:FungibleTokenId030000000000000000
MinimumRewardPoolU1280000a0dec5adc9353600000000000000
CampaignDepositU1280000a0dec5adc9353600000000000000
MinimumCampaignDurationU3296000000
MinimumCampaignCoolingOffPeriodU32e0c40000
MaxLeafNodesU641e00000000000000
MaxSetRewardsListLengthU64c800000000000000
Error Types
Name
Docs
CampaignIsNotFoundCampaign has ended or not valid
NoRewardFoundNo reward found in this account
CampaignExpiredCampaign already expired
RewardExceedCapReward exceed the cap reward
InvalidRewardAccountInvalid reward account
RewardPoolBelowMinimumCampaign reward pool is below the set minimum
CampaignDurationBelowMinimumCampaign duration is below minimum
CoolingOffPeriodBelowMinimumCampaign cooling-off duration is below minimum
CampaignStillActiveCampaign is still active
NotCampaignCreatorNot campaign creator
CampaignEndedCampaign period for setting rewards is over
SetRewardOriginAlreadyAddedReward origin already added
SetRewardOriginDoesNotExistReward origin does not exist
InvalidSetRewardOriginInvalid set reward origin
InvalidRewardTypeInvalid reward type
NoPermissionToUseNftInRewardPoolCannot use an NFT token for a reward pool
NftTokenCannotBeRewardedNft token reward is already assigned
InvalidNftQuantityInvalid left NFT quantity
InvalidCampaignTypeInvalid campaign type
RewardAlreadySetReward is already set
InvalidRewardLeafAmountReward leaf amount is larger then maximum
MerkleRootNotRelatedToCampaignMerkle root is not related to a campaign
NoMerkleRootsFoundNo merkle roots found
InvalidMerkleRootsQuantityInvalid merkle roots quantity
AccountAlreadyRewardedThe account is already rewarded for this campaign
InvalidTotalNftRewardAmountParameterInvalid total NFT rewards amount parameter
RewardsListSizeAboveMaximumRewards list size is above maximum permited size
ArithmeticOverflowArthimetic operation overflow