DmpQueue¶
Calls¶
service_overweight¶
Service a single overweight message.
origin
: Must passExecuteOverweightOrigin
.index
: The index of the overweight message to service.weight_limit
: The amount of weight that message execution may take.
Errors:
- Unknown
: Message of index
is unknown.
- OverLimit
: Message execution may use greater than weight_limit
.
Events:
- OverweightServiced
: On success.
Attributes¶
Name | Type |
---|---|
index | OverweightIndex |
weight_limit | Weight |
Python¶
call = substrate.compose_call(
'DmpQueue', 'service_overweight', {
'index': 'u64',
'weight_limit': 'u64',
}
)
Events¶
ExecutedDownward¶
Downward message executed with the given outcome.
Attributes¶
Name | Type | Composition |
---|---|---|
message_id | MessageId |
[u8; 32] |
outcome | Outcome |
{'Complete': 'u64', 'Incomplete': ('u64', {'Overflow': None, 'Unimplemented': None, 'UntrustedReserveLocation': None, 'UntrustedTeleportLocation': None, 'MultiLocationFull': None, 'MultiLocationNotInvertible': None, 'BadOrigin': None, 'InvalidLocation': None, 'AssetNotFound': None, 'FailedToTransactAsset': None, 'NotWithdrawable': None, 'LocationCannotHold': None, 'ExceedsMaxMessageSize': None, 'DestinationUnsupported': None, 'Transport': None, 'Unroutable': None, 'UnknownClaim': None, 'FailedToDecode': None, 'MaxWeightInvalid': None, 'NotHoldingFees': None, 'TooExpensive': None, 'Trap': 'u64', 'UnhandledXcmVersion': None, 'WeightLimitReached': 'u64', 'Barrier': None, 'WeightNotComputable': None}), 'Error': {'Overflow': None, 'Unimplemented': None, 'UntrustedReserveLocation': None, 'UntrustedTeleportLocation': None, 'MultiLocationFull': None, 'MultiLocationNotInvertible': None, 'BadOrigin': None, 'InvalidLocation': None, 'AssetNotFound': None, 'FailedToTransactAsset': None, 'NotWithdrawable': None, 'LocationCannotHold': None, 'ExceedsMaxMessageSize': None, 'DestinationUnsupported': None, 'Transport': None, 'Unroutable': None, 'UnknownClaim': None, 'FailedToDecode': None, 'MaxWeightInvalid': None, 'NotHoldingFees': None, 'TooExpensive': None, 'Trap': 'u64', 'UnhandledXcmVersion': None, 'WeightLimitReached': 'u64', 'Barrier': None, 'WeightNotComputable': None}} |
InvalidFormat¶
Downward message is invalid XCM.
Attributes¶
Name | Type | Composition |
---|---|---|
message_id | MessageId |
[u8; 32] |
OverweightEnqueued¶
Downward message is overweight and was placed in the overweight queue.
Attributes¶
Name | Type | Composition |
---|---|---|
message_id | MessageId |
[u8; 32] |
overweight_index | OverweightIndex |
u64 |
required_weight | Weight |
u64 |
OverweightServiced¶
Downward message from the overweight queue was executed.
Attributes¶
Name | Type | Composition |
---|---|---|
overweight_index | OverweightIndex |
u64 |
weight_used | Weight |
u64 |
UnsupportedVersion¶
Downward message is unsupported version of XCM.
Attributes¶
Name | Type | Composition |
---|---|---|
message_id | MessageId |
[u8; 32] |
WeightExhausted¶
The weight limit for handling downward messages was reached.
Attributes¶
Name | Type | Composition |
---|---|---|
message_id | MessageId |
[u8; 32] |
remaining_weight | Weight |
u64 |
required_weight | Weight |
u64 |
Storage functions¶
Configuration¶
The configuration.
Python¶
result = substrate.query(
'DmpQueue', 'Configuration', []
)
Return value¶
{'max_individual': 'u64'}
Overweight¶
The overweight messages.
Python¶
result = substrate.query(
'DmpQueue', 'Overweight', ['u64']
)
Return value¶
('u32', 'Bytes')
PageIndex¶
The page index.
Python¶
result = substrate.query(
'DmpQueue', 'PageIndex', []
)
Return value¶
{'begin_used': 'u32', 'end_used': 'u32', 'overweight_count': 'u64'}
Pages¶
The queue pages.
Python¶
result = substrate.query(
'DmpQueue', 'Pages', ['u32']
)
Return value¶
[('u32', 'Bytes')]
Errors¶
OverLimit¶
The amount of weight given is possibly not enough for executing the message.
Unknown¶
The message index given is unknown.