Skip to content

LiquidityPoolsAxelarGateway


Calls


set_converter

Attributes

Name Type
id_hash H256
converter SourceConverter

Python

call = substrate.compose_call(
    'LiquidityPoolsAxelarGateway', 'set_converter', {
    'converter': {
        'domain': {
            'Centrifuge': None,
            'EVM': 'u64',
        },
    },
    'id_hash': 'scale_info::12',
}
)

set_gateway

Attributes

Name Type
address H160

Python

call = substrate.compose_call(
    'LiquidityPoolsAxelarGateway', 'set_gateway', {'address': '[u8; 20]'}
)

Events


ConverterSet

Attributes

Name Type Composition
id_hash H256 scale_info::12
converter SourceConverter {'domain': {'Centrifuge': None, 'EVM': 'u64'}}

GatewaySet

Attributes

Name Type Composition
address H160 [u8; 20]

Storage functions


GatewayContract

Python

result = substrate.query(
    'LiquidityPoolsAxelarGateway', 'GatewayContract', []
)

Return value

'[u8; 20]'

SourceConversion

SourceConversion is a hash_of(Vec<u8>) where the Vec<u8> is the blake256-hash of the source-chain identifier used by the Axelar network.

Python

result = substrate.query(
    'LiquidityPoolsAxelarGateway', 'SourceConversion', ['scale_info::12']
)

Return value

{'domain': {'Centrifuge': None, 'EVM': 'u64'}}

Errors


AccountBytesMismatchForDomain

A given domain expects a given structure for account bytes and it was not given here.


NoConverterForSource

The given domain is not yet allowlisted, as we have no converter yet