Wallet

Functions

call

function call(
    address to,
    bytes calldata data,
) external returns (bool, bytes memory);
Parameter
Description

to

transaction recipient

data

transaction data

call

function call(
    address to,
    bytes calldata data,
    bytes32 relayersRoot,
    address feeToken,
    uint feeAmount,
    bytes calldata signature,
    bytes32[] calldata relayerProof
) external returns (bool, bytes memory);

Meta transaction version of call, executed by trusted relayer.

Parameter
Description

to

transaction recipient

data

transaction data

relayersRoot

merkle tree root of trusted relayers' addresses

feeToken

token that's send to relayer as a fee

feeAmount

amount of fee token

signature

EIP712 message signature

relayerProof

merkle tree proof of msg.sender

CALL_TYPEHASH

nonce

Used for preventing replay attacks.

owner

Returns wallet owner, set on initialization.

factory

Returns contract deployer (WalletFactory), set in constructor.

initialize

Initializes wallet by setting an owner. Can only be called by contract deployer (WalletFactory). Initialization can't happen in constructor, because wallets use EIP1167 (Clones).

Last updated