@owlprotocol/contracts-account-abstraction
Version:
ERC4337 Account Abstraction support for deploying relevant smart contracts and interacting with UserOps.
16 lines (15 loc) • 507 B
TypeScript
import { Address } from "viem";
import { Hex } from "viem";
/**
* Compute SimpleAccount address without any network calls
* This should match the result of SimpleAccountFactory.getAddress(owner, salt)
* @param args
* @param options factoryAddress and ERC1967Proxy bytecode. This can vary depending on compilation settings.
*/
export declare function getSimpleAccountAddress(args: {
owner: Address;
salt?: bigint;
}, options?: {
factoryAddress: Address;
proxyBytecode: Hex;
}): Address;