Whitelist
Calls
dispatch_whitelisted_call
Attributes
| Name |
Type |
| call_hash |
PreimageHash |
| call_encoded_len |
u32 |
| call_weight_witness |
Weight |
Python
call = substrate.compose_call(
'Whitelist', 'dispatch_whitelisted_call', {
'call_encoded_len': 'u32',
'call_hash': 'scale_info::12',
'call_weight_witness': {
'proof_size': 'u64',
'ref_time': 'u64',
},
}
)
dispatch_whitelisted_call_with_preimage
Attributes
| Name |
Type |
| call |
Box<<T as Config>::RuntimeCall> |
Python
call = substrate.compose_call(
'Whitelist', 'dispatch_whitelisted_call_with_preimage', {'call': 'Call'}
)
remove_whitelisted_call
Attributes
| Name |
Type |
| call_hash |
PreimageHash |
Python
call = substrate.compose_call(
'Whitelist', 'remove_whitelisted_call', {'call_hash': 'scale_info::12'}
)
whitelist_call
Attributes
| Name |
Type |
| call_hash |
PreimageHash |
Python
call = substrate.compose_call(
'Whitelist', 'whitelist_call', {'call_hash': 'scale_info::12'}
)
Events
CallWhitelisted
Attributes
| Name |
Type |
Composition |
| call_hash |
PreimageHash |
scale_info::12 |
WhitelistedCallDispatched
Attributes
| Name |
Type |
Composition |
| call_hash |
PreimageHash |
scale_info::12 |
| result |
DispatchResultWithPostInfo |
{'Ok': {'actual_weight': (None, {'ref_time': 'u64', 'proof_size': 'u64'}), 'pays_fee': ('Yes', 'No')}, 'Err': {'post_info': {'actual_weight': (None, {'ref_time': 'u64', 'proof_size': 'u64'}), 'pays_fee': ('Yes', 'No')}, 'error': {'Other': None, 'CannotLookup': None, 'BadOrigin': None, 'Module': {'index': 'u8', 'error': '[u8; 4]'}, 'ConsumerRemaining': None, 'NoProviders': None, 'TooManyConsumers': None, 'Token': ('FundsUnavailable', 'OnlyProvider', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported', 'CannotCreateHold', 'NotExpendable', 'Blocked'), 'Arithmetic': ('Underflow', 'Overflow', 'DivisionByZero'), 'Transactional': ('LimitReached', 'NoLayer'), 'Exhausted': None, 'Corruption': None, 'Unavailable': None, 'RootNotAllowed': None}}} |
WhitelistedCallRemoved
Attributes
| Name |
Type |
Composition |
| call_hash |
PreimageHash |
scale_info::12 |
Storage functions
WhitelistedCall
Python
result = substrate.query(
'Whitelist', 'WhitelistedCall', ['scale_info::12']
)
Return value
()
Errors
CallAlreadyWhitelisted
The call was already whitelisted; No-Op.
CallIsNotWhitelisted
The call was not whitelisted.
InvalidCallWeightWitness
The weight of the decoded call was higher than the witness.
UnavailablePreImage
The preimage of the call hash could not be loaded.
UndecodableCall
The call could not be decoded.