UNPKG

abstractionkit

Version:

Account Abstraction 4337 SDK by Candidelabs

46 lines 2.52 kB
import { SafeAccount } from "./SafeAccount"; import { InitCodeOverrides, Signer, CreateUserOperationV7Overrides, SafeUserOperationTypedDataDomain, SafeUserOperationV7TypedMessageValue } from "./types"; import { UserOperationV7, MetaTransaction, OnChainIdentifierParamsType } from "../../types"; export declare class SafeAccountV0_3_0 extends SafeAccount { static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032"; static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226"; static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47"; constructor(accountAddress: string, overrides?: { safe4337ModuleAddress?: string; entrypointAddress?: string; onChainIdentifierParams?: OnChainIdentifierParamsType; onChainIdentifier?: string; }); static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string; static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_3_0; static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: { validAfter?: bigint; validUntil?: bigint; entrypointAddress?: string; safe4337ModuleAddress?: string; }): string; static getUserOperationEip712Data(useroperation: UserOperationV7, chainId: bigint, overrides?: { validAfter?: bigint; validUntil?: bigint; entrypointAddress?: string; safe4337ModuleAddress?: string; }): { domain: SafeUserOperationTypedDataDomain; types: Record<string, { name: string; type: string; }[]>; messageValue: SafeUserOperationV7TypedMessageValue; }; static createInitializerCallData(owners: Signer[], threshold: number, overrides?: { safe4337ModuleAddress?: string; safeModuleSetupddress?: string; multisendContractAddress?: string; webAuthnSharedSigner?: string; eip7212WebAuthnPrecompileVerifierForSharedSigner?: string; eip7212WebAuthnContractVerifierForSharedSigner?: string; }): string; static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string]; createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>; } //# sourceMappingURL=SafeAccountV0_3_0.d.ts.map