Name | Lookup | Parameters | |
|---|---|---|---|
| add_to_create_whitelist | 5100 | 1 | |
| remove_from_create_whitelist | 5101 | 1 | |
| create_merkle_distributor | 5102 | 4 | |
| claim | 5103 | 5 | |
| charge | 5104 | 1 | |
| emergency_withdraw | 5105 | 3 |
Name | Lookup | Attributes | |
|---|---|---|---|
| Create | 5100 | ["MerkleDistributorId","H256","Balance"] | |
| Claim | 5101 | ["MerkleDistributorId","AccountId","u128"] | |
| Withdraw | 5102 | ["MerkleDistributorId","AccountId","Balance"] | |
| AddToWhiteList | 5103 | ["AccountId"] | |
| RemoveFromWhiteList | 5104 | ["AccountId"] |
Name | Type | |
|---|---|---|
| MerkleDistributorMetadata | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U32"],"value":"merkle_distributor:MerkleMetadata","keys_id":4,"value_id":565}} | |
| NextMerkleDistributorId | {"origin":"PlainType","plain_type":"U32","PlainTypeValue":4} | |
| ClaimedBitMap | {"origin":"Map","n_map_type":{"hashers":["Twox64Concat","Twox64Concat"],"key_vec":["U32","U32"],"value":"U32","keys_id":98,"value_id":4}} | |
| CreateWhiteSet | {"origin":"PlainType","plain_type":"Vec<AccountId>","PlainTypeValue":567} |
Name | Type | Value | |
|---|---|---|---|
| PalletId | [U8; 8] | 62662f6d6b6c6473 | |
| StringLimit | U32 | 32000000 |
Name | Docs |
|---|---|
| BadDescription | Invalid metadata given. |
| InvalidMerkleDistributorId | The id is not exist. |
| MerkleVerifyFailed | The proof is invalid |
| Claimed | The reward is already distributed. |
| Charged | The reward is already charged. |
| WithdrawAmountExceed | Withdraw amount exceed charge amount. |
| BadChargeAccount | |
| AlreadyInWhiteList | Account has already in the set who can create merkle distributor |
| NotInWhiteList | Account is no in the set who can create merkle distributor |