Name | Lookup | Parameters | |
---|---|---|---|
create_campaign | 4400 | 6 | |
create_nft_campaign | 4401 | 5 | |
claim_reward | 4402 | 1 | |
claim_reward_root | 4403 | 3 | |
claim_nft_reward | 4404 | 2 | |
claim_nft_reward_root | 4405 | 3 | |
set_reward | 4406 | 2 | |
set_reward_root | 4407 | 3 | |
set_nft_reward | 4408 | 3 | |
set_nft_reward_root | 4409 | 2 | |
close_campaign | 440a | 2 | |
close_nft_campaign | 440b | 2 | |
cancel_campaign | 440c | 1 | |
cancel_nft_campaign | 440d | 2 | |
add_set_reward_origin | 440e | 1 | |
remove_set_reward_origin | 440f | 1 |
Name | Lookup | Attributes | |
---|---|---|---|
NewRewardCampaignCreated | 4400 | ["CampaignId","AccountId"] | |
RewardClaimed | 4401 | ["CampaignId","AccountId","BalanceOf"] | |
NftRewardClaimed | 4402 | ["CampaignId","AccountId","Vec<(ClassId, TokenId)>"] | |
SetRewardRoot | 4403 | ["CampaignId","BalanceOf","Hash"] | |
SetNftRewardRoot | 4404 | ["CampaignId","Hash"] | |
SetReward | 4405 | ["CampaignId","Vec<(AccountId, BalanceOf)>"] | |
SetNftReward | 4406 | ["CampaignId","Vec<(AccountId, Vec<(ClassId, TokenId)>)>"] | |
RewardCampaignEnded | 4407 | ["CampaignId"] | |
RewardCampaignClosed | 4408 | ["CampaignId"] | |
RewardCampaignRootClosed | 4409 | ["CampaignId"] | |
RewardCampaignCanceled | 440a | ["CampaignId"] | |
SetRewardOriginAdded | 440b | ["AccountId"] | |
SetRewardOriginRemoved | 440c | ["AccountId"] |
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}} |
Name | Type | Value | |
---|---|---|---|
PalletId | [U8; 8] | 6269742f74727379 | |
MiningCurrencyId | bit_country_primitives:FungibleTokenId | 030000000000000000 | |
MinimumRewardPool | U128 | 0000a0dec5adc9353600000000000000 | |
CampaignDeposit | U128 | 0000a0dec5adc9353600000000000000 | |
MinimumCampaignDuration | U32 | 96000000 | |
MinimumCampaignCoolingOffPeriod | U32 | e0c40000 | |
MaxLeafNodes | U64 | 1e00000000000000 | |
MaxSetRewardsListLength | U64 | c800000000000000 |
Name | Docs |
---|---|
CampaignIsNotFound | Campaign has ended or not valid |
NoRewardFound | No reward found in this account |
CampaignExpired | Campaign already expired |
RewardExceedCap | Reward exceed the cap reward |
InvalidRewardAccount | Invalid reward account |
RewardPoolBelowMinimum | Campaign reward pool is below the set minimum |
CampaignDurationBelowMinimum | Campaign duration is below minimum |
CoolingOffPeriodBelowMinimum | Campaign cooling-off duration is below minimum |
CampaignStillActive | Campaign is still active |
NotCampaignCreator | Not campaign creator |
CampaignEnded | Campaign period for setting rewards is over |
SetRewardOriginAlreadyAdded | Reward origin already added |
SetRewardOriginDoesNotExist | Reward origin does not exist |
InvalidSetRewardOrigin | Invalid set reward origin |
InvalidRewardType | Invalid reward type |
NoPermissionToUseNftInRewardPool | Cannot use an NFT token for a reward pool |
NftTokenCannotBeRewarded | Nft token reward is already assigned |
InvalidNftQuantity | Invalid left NFT quantity |
InvalidCampaignType | Invalid campaign type |
RewardAlreadySet | Reward is already set |
InvalidRewardLeafAmount | Reward leaf amount is larger then maximum |
MerkleRootNotRelatedToCampaign | Merkle root is not related to a campaign |
NoMerkleRootsFound | No merkle roots found |
InvalidMerkleRootsQuantity | Invalid merkle roots quantity |
AccountAlreadyRewarded | The account is already rewarded for this campaign |
InvalidTotalNftRewardAmountParameter | Invalid total NFT rewards amount parameter |
RewardsListSizeAboveMaximum | Rewards list size is above maximum permited size |
ArithmeticOverflow | Arthimetic operation overflow |