Skip to content

EVMSignatureCall


Calls


call

# <weight> - O(1). - Limited storage reads. - One DB write (event). - Weight of derivative call execution + 10_000_000. # </weight>

Attributes

Name Type
call Box<<T as Config>::RuntimeCall>
signer T::AccountId
signature Vec<u8>
nonce T::Index

Python

call = substrate.compose_call(
    'EVMSignatureCall', 'call', {
    'call': 'Call',
    'nonce': 'u32',
    'signature': 'Bytes',
    'signer': 'AccountId',
}
)

withdraw

Attributes

Name Type
asset AssetIdOf<T>
address H160
value AssetBalanceOf<T>

Python

call = substrate.compose_call(
    'EVMSignatureCall', 'withdraw', {
    'address': '[u8; 20]',
    'asset': 'u32',
    'value': 'u128',
}
)

Events


Executed

A call just executed. [result]

Attributes

Name Type Composition
None T::AccountId AccountId
None DispatchResult {'Ok': (), 'Err': {'Other': None, 'CannotLookup': None, 'BadOrigin': None, 'Module': {'index': 'u8', 'error': '[u8; 4]'}, 'ConsumerRemaining': None, 'NoProviders': None, 'TooManyConsumers': None, 'Token': ('NoFunds', 'WouldDie', 'BelowMinimum', 'CannotCreate', 'UnknownAsset', 'Frozen', 'Unsupported'), 'Arithmetic': ('Underflow', 'Overflow', 'DivisionByZero'), 'Transactional': ('LimitReached', 'NoLayer'), 'Exhausted': None, 'Corruption': None, 'Unavailable': None}}

Constants


CallFee

The call processing fee amount.

Value

100000000000

Python

constant = substrate.get_constant('EVMSignatureCall', 'CallFee')

CallMagicNumber

The call magic number.

Value

2085

Python

constant = substrate.get_constant('EVMSignatureCall', 'CallMagicNumber')

GetNativeCurrencyId

Value

0

Python

constant = substrate.get_constant('EVMSignatureCall', 'GetNativeCurrencyId')

VerifySignature

Enable signature verify or not

Value

False

Python

constant = substrate.get_constant('EVMSignatureCall', 'VerifySignature')

Errors


BadNonce

Bad nonce parameter.


DecodeFailure

Signature decode fails.


InvalidSignature

Signature and account mismatched.