Skip to content

XcmpQueue


Calls


resume_xcm_execution

Attributes

No attributes

Python

call = substrate.compose_call(
    'XcmpQueue', 'resume_xcm_execution', {}
)

suspend_xcm_execution

Attributes

No attributes

Python

call = substrate.compose_call(
    'XcmpQueue', 'suspend_xcm_execution', {}
)

update_drop_threshold

Attributes

Name Type
new u32

Python

call = substrate.compose_call(
    'XcmpQueue', 'update_drop_threshold', {'new': 'u32'}
)

update_resume_threshold

Attributes

Name Type
new u32

Python

call = substrate.compose_call(
    'XcmpQueue', 'update_resume_threshold', {'new': 'u32'}
)

update_suspend_threshold

Attributes

Name Type
new u32

Python

call = substrate.compose_call(
    'XcmpQueue', 'update_suspend_threshold', {'new': 'u32'}
)

Events


XcmpMessageSent

Attributes

Name Type Composition
message_hash XcmHash [u8; 32]

Storage functions


DeliveryFeeFactor

Python

result = substrate.query(
    'XcmpQueue', 'DeliveryFeeFactor', ['u32']
)

Return value

'u128'

InboundXcmpSuspended

Python

result = substrate.query(
    'XcmpQueue', 'InboundXcmpSuspended', []
)

Return value

'scale_info::467'

OutboundXcmpMessages

Python

result = substrate.query(
    'XcmpQueue', 'OutboundXcmpMessages', ['u32', 'u16']
)

Return value

'Bytes'

OutboundXcmpStatus

Python

result = substrate.query(
    'XcmpQueue', 'OutboundXcmpStatus', []
)

Return value

[
    {
        'first_index': 'u16',
        'last_index': 'u16',
        'recipient': 'u32',
        'signals_exist': 'bool',
        'state': ('Ok', 'Suspended'),
    },
]

QueueConfig

Python

result = substrate.query(
    'XcmpQueue', 'QueueConfig', []
)

Return value

{
    'drop_threshold': 'u32',
    'resume_threshold': 'u32',
    'suspend_threshold': 'u32',
}

QueueSuspended

Python

result = substrate.query(
    'XcmpQueue', 'QueueSuspended', []
)

Return value

'bool'

SignalMessages

Python

result = substrate.query(
    'XcmpQueue', 'SignalMessages', ['u32']
)

Return value

'Bytes'

Constants


MaxInboundSuspended

Value

1000

Python

constant = substrate.get_constant('XcmpQueue', 'MaxInboundSuspended')

Errors


AlreadyResumed


AlreadySuspended


BadQueueConfig