TWAccountFactory

TWAccountFactory capabilities: - deploy a clone pointing to a TWAccount implementation.

Methods

accountImplementation

function accountImplementation() external view returns (address)

Returns the implementation of the Account.

Returns

Name
Type
Description

_0

address

undefined

createAccount

function createAccount(bytes32 _salt, bytes _initData) external nonpayable returns (address account)

Deploys a new Account with the given salt and initialization data.

Parameters

Name
Type
Description

_salt

bytes32

undefined

_initData

bytes

undefined

Returns

Name
Type
Description

account

address

undefined

getAddress

function getAddress(bytes32 _salt) external view returns (address)

Returns the address of an Account that would be deployed with the given salt.

Parameters

Name
Type
Description

_salt

bytes32

undefined

Returns

Name
Type
Description

_0

address

undefined

multicall

function multicall(bytes[] data) external nonpayable returns (bytes[] results)

Receives and executes a batch of function calls on this contract.

Receives and executes a batch of function calls on this contract.

Parameters

Name
Type
Description

data

bytes[]

The bytes data that makes up the batch of function calls to execute.

Returns

Name
Type
Description

results

bytes[]

The bytes data that makes up the result of the batch of function calls executed.

Events

AccountCreated

event AccountCreated(address indexed account, bytes32 salt)

Parameters

Name
Type
Description

account indexed

address

undefined

salt

bytes32

undefined

Last updated