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
_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
_salt
bytes32
undefined
_initData
bytes
undefined
Returns
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
_salt
bytes32
undefined
Returns
_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
data
bytes[]
The bytes data that makes up the batch of function calls to execute.
Returns
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
account indexed
address
undefined
salt
bytes32
undefined
Last updated