Skip to content

MultisigVerifier


Calls


add_peer

Attributes

Name Type
peer ecdsa::Public

Python

call = substrate.compose_call(
    'MultisigVerifier', 'add_peer', {'peer': '[u8; 33]'}
)

initialize

Attributes

Name Type
network_id GenericNetworkId
peers BoundedVec<ecdsa::Public, T::MaxPeers>

Python

call = substrate.compose_call(
    'MultisigVerifier', 'initialize', {
    'network_id': {
        'EVM': 'scale_info::111',
        'EVMLegacy': 'u32',
        'Sub': (
            'Mainnet',
            'Kusama',
            'Polkadot',
            'Rococo',
            'Alphanet',
            'Liberland',
        ),
    },
    'peers': ['[u8; 33]'],
}
)

remove_peer

Attributes

Name Type
peer ecdsa::Public

Python

call = substrate.compose_call(
    'MultisigVerifier', 'remove_peer', {'peer': '[u8; 33]'}
)

Events


NetworkInitialized

Attributes

Name Type Composition
None GenericNetworkId {'EVM': 'scale_info::111', 'Sub': ('Mainnet', 'Kusama', 'Polkadot', 'Rococo', 'Alphanet', 'Liberland'), 'EVMLegacy': 'u32'}

PeerAdded

Attributes

Name Type Composition
None ecdsa::Public [u8; 33]

PeerRemoved

Attributes

Name Type Composition
None ecdsa::Public [u8; 33]

VerificationSuccessful

Attributes

Name Type Composition
None GenericNetworkId {'EVM': 'scale_info::111', 'Sub': ('Mainnet', 'Kusama', 'Polkadot', 'Rococo', 'Alphanet', 'Liberland'), 'EVMLegacy': 'u32'}

Storage functions


PeerKeys

Python

result = substrate.query(
    'MultisigVerifier', 'PeerKeys', [
    {
        'EVM': 'scale_info::111',
        'EVMLegacy': 'u32',
        'Sub': (
            'Mainnet',
            'Kusama',
            'Polkadot',
            'Rococo',
            'Alphanet',
            'Liberland',
        ),
    },
]
)

Return value

'scale_info::304'

Constants


MaxPeers

Value

50

Python

constant = substrate.get_constant('MultisigVerifier', 'MaxPeers')

ThisNetworkId

Value

{'Sub': 'Kusama'}

Python

constant = substrate.get_constant('MultisigVerifier', 'ThisNetworkId')

Errors


CommitmentNotFoundInDigest


DuplicatedPeer


InvalidInitParams


InvalidNetworkId


InvalidNumberOfSignatures


InvalidSignature


NetworkNotInitialized


NoSuchPeer


NotTrustedPeerSignature


PeerExists


TooMuchPeers