toSoladySmartAccount simple Smart Account Implementation that references Solady’s ERC4337.sol Smart Account contract.
::::warning
This implementation is unaudited. It is intended to be used for testing purposes or as a reference to implement a Custom Account.
::::
Usage
::::code-group[example.ts]
[config.ts]
Returns
SmartAccount<SoladySmartAccountImplementation>
Parameters
entryPoint (optional)
- Type:
{ abi: Abi, address: Address, version: EntryPointVersion }
- Determine the target EntryPoint address for the User Operation
- Compute User Operation hashes
- Retrieve the Smart Account nonce
- Distinguish which type of
UserOperationstructure to use
factoryAddress
- Type:
Address
owner
- Type:
Address | Account
salt (optional)
- Type:
Hex