abstractionkit 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Bundler.d.ts +3 -3
- package/dist/Bundler.d.ts.map +1 -1
- package/dist/abstractionkit.d.ts +7 -4
- package/dist/abstractionkit.d.ts.map +1 -1
- package/dist/account/Safe/SafeAccount.d.ts +114 -0
- package/dist/account/Safe/SafeAccount.d.ts.map +1 -0
- package/dist/account/Safe/SafeAccountV0_2_0.d.ts +28 -42
- package/dist/account/Safe/SafeAccountV0_2_0.d.ts.map +1 -1
- package/dist/account/Safe/SafeAccountV0_3_0.d.ts +31 -0
- package/dist/account/Safe/SafeAccountV0_3_0.d.ts.map +1 -0
- package/dist/account/Safe/modules/SafeModule.d.ts +7 -0
- package/dist/account/Safe/modules/SafeModule.d.ts.map +1 -0
- package/dist/account/Safe/modules/SocialRecoveryModule.d.ts +34 -0
- package/dist/account/Safe/modules/SocialRecoveryModule.d.ts.map +1 -0
- package/dist/account/Safe/types.d.ts +83 -7
- package/dist/account/Safe/types.d.ts.map +1 -1
- package/dist/constants.d.ts +15 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/factory/SafeAccountFactory.d.ts +1 -0
- package/dist/factory/SafeAccountFactory.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.modern.mjs +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/paymaster/CandidePaymaster.d.ts +19 -14
- package/dist/paymaster/CandidePaymaster.d.ts.map +1 -1
- package/dist/paymaster/Paymaster.d.ts +2 -2
- package/dist/paymaster/Paymaster.d.ts.map +1 -1
- package/dist/types.d.ts +55 -11
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +16 -4
- package/dist/utils.d.ts.map +1 -1
- package/package.json +7 -4
package/dist/Bundler.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UserOperationV6, UserOperationV7, GasEstimationResult, UserOperationByHashResult, UserOperationReceiptResult, StateOverrideSet } from "./types";
|
|
2
2
|
export declare class Bundler {
|
|
3
3
|
readonly rpcUrl: string;
|
|
4
4
|
constructor(rpcUrl: string);
|
|
5
5
|
chainId(): Promise<string>;
|
|
6
6
|
supportedEntryPoints(): Promise<string[]>;
|
|
7
|
-
estimateUserOperationGas(useroperation:
|
|
8
|
-
sendUserOperation(useroperation:
|
|
7
|
+
estimateUserOperationGas(useroperation: UserOperationV6 | UserOperationV7, entrypointAddress: string, state_override_set?: StateOverrideSet): Promise<GasEstimationResult>;
|
|
8
|
+
sendUserOperation(useroperation: UserOperationV6 | UserOperationV7, entrypointAddress: string): Promise<string>;
|
|
9
9
|
getUserOperationReceipt(useroperationhash: string): Promise<UserOperationReceiptResult>;
|
|
10
10
|
getUserOperationByHash(useroperationhash: string): Promise<UserOperationByHashResult>;
|
|
11
11
|
}
|
package/dist/Bundler.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bundler.d.ts","sourceRoot":"","sources":["../src/Bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,
|
|
1
|
+
{"version":3,"file":"Bundler.d.ts","sourceRoot":"","sources":["../src/Bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAEzB,0BAA0B,EAC1B,gBAAgB,EAEhB,MAAM,SAAS,CAAC;AAIjB,qBAAa,OAAO;IACnB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;gBAEZ,MAAM,EAAE,MAAM;IAQpB,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC;IAgC1B,oBAAoB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IA4BzC,wBAAwB,CAC7B,aAAa,EAAE,eAAe,GAAG,eAAe,EAChD,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,CAAC,EAAE,gBAAgB,GACnC,OAAO,CAAC,mBAAmB,CAAC;IA2CzB,iBAAiB,CACtB,aAAa,EAAE,eAAe,GAAG,eAAe,EAChD,iBAAiB,EAAE,MAAM,GACvB,OAAO,CAAC,MAAM,CAAC;IA0BZ,uBAAuB,CAC5B,iBAAiB,EAAE,MAAM,GACvB,OAAO,CAAC,0BAA0B,CAAC;IAyDhC,sBAAsB,CAC3B,iBAAiB,EAAE,MAAM,GACvB,OAAO,CAAC,yBAAyB,CAAC;CA+BrC"}
|
package/dist/abstractionkit.d.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export { SmartAccount } from "./account/SmartAccount";
|
|
2
|
+
export { SocialRecoveryModule, RecoveryRequest } from "./account/Safe/modules/SocialRecoveryModule";
|
|
2
3
|
export { SafeAccountV0_2_0 } from "./account/Safe/SafeAccountV0_2_0";
|
|
4
|
+
export { SafeAccountV0_3_0 } from "./account/Safe/SafeAccountV0_3_0";
|
|
3
5
|
export { SendUseroperationResponse } from "./account/SendUseroperationResponse";
|
|
4
6
|
export { SmartAccountFactory } from "./factory/SmartAccountFactory";
|
|
5
7
|
export { SafeAccountFactory } from "./factory/SafeAccountFactory";
|
|
6
8
|
export { Bundler } from "./Bundler";
|
|
7
9
|
export { CandidePaymaster } from "./paymaster/CandidePaymaster";
|
|
8
|
-
export { createUserOperationHash, createCallData, getFunctionSelector, fetchAccountNonce, calculateUserOperationMaxGasCost, } from "./utils";
|
|
9
|
-
export {
|
|
10
|
+
export { createUserOperationHash, createCallData, getFunctionSelector, fetchAccountNonce, calculateUserOperationMaxGasCost, sendJsonRpcRequest } from "./utils";
|
|
11
|
+
export { CreateUserOperationV6Overrides, CreateUserOperationV7Overrides, InitCodeOverrides, SafeModuleExecutorFunctionSelector, SafeUserOperationTypedDataDomain, WebauthPublicKey, EOADummySignature, WebauthDummySignerSignaturePair, WebauthSignatureData, SignerSignaturePair } from "./account/Safe/types";
|
|
10
12
|
export { CandidePaymasterContext, PrependTokenPaymasterApproveAccount, } from "./paymaster/types";
|
|
11
|
-
export {
|
|
12
|
-
export { ZeroAddress,
|
|
13
|
+
export { UserOperationV6, UserOperationV7, AbiInputValue, JsonRpcParam, JsonRpcResponse, JsonRpcResult, GasEstimationResult, UserOperationByHashResult, UserOperationReceipt, UserOperationReceiptResult, JsonRpcError, StateOverrideSet, Operation, MetaTransaction, } from "./types";
|
|
14
|
+
export { ZeroAddress, BaseUserOperationDummyValues } from "./constants";
|
|
15
|
+
export { AbstractionKitError } from "./errors";
|
|
13
16
|
//# sourceMappingURL=abstractionkit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abstractionkit.d.ts","sourceRoot":"","sources":["../src/abstractionkit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EACN,uBAAuB,EACvB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,gCAAgC,
|
|
1
|
+
{"version":3,"file":"abstractionkit.d.ts","sourceRoot":"","sources":["../src/abstractionkit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EACN,uBAAuB,EACvB,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,gCAAgC,EAC7B,kBAAkB,EACrB,MAAM,SAAS,CAAC;AAEjB,OAAO,EACN,8BAA8B,EAC9B,8BAA8B,EAC9B,iBAAiB,EACjB,kCAAkC,EAClC,gCAAgC,EAChC,gBAAgB,EACb,iBAAiB,EACpB,+BAA+B,EAC/B,oBAAoB,EACpB,mBAAmB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACN,uBAAuB,EACvB,mCAAmC,GACnC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACN,eAAe,EACf,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,YAAY,EACZ,gBAAgB,EAChB,SAAS,EACT,eAAe,GACf,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { SmartAccount } from "../SmartAccount";
|
|
2
|
+
import { MetaTransaction, Operation, StateOverrideSet, BaseUserOperation, UserOperationV6, UserOperationV7 } from "../../types";
|
|
3
|
+
import { CreateBaseUserOperationOverrides, Signer, SignerSignaturePair, WebauthSignatureData, SafeModuleExecutorFunctionSelector, WebAuthnSignatureOverrides, BaseInitOverrides } from "./types";
|
|
4
|
+
import { SendUseroperationResponse } from "../SendUseroperationResponse";
|
|
5
|
+
export declare class SafeAccount extends SmartAccount {
|
|
6
|
+
static readonly DEFAULT_SAFE_SINGLETON: import("./types").SafeAccountSingleton;
|
|
7
|
+
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
8
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
|
|
9
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
|
|
10
|
+
static readonly DEFAULT_WEB_AUTHN_FCLP256_VERIFIER: string;
|
|
11
|
+
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
12
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x61010060405234801561001157600080fd5b506040516101ee3803806101ee83398101604081905261003091610058565b6001600160a01b0390931660805260a09190915260c0526001600160b01b031660e0526100bc565b6000806000806080858703121561006e57600080fd5b84516001600160a01b038116811461008557600080fd5b60208601516040870151606088015192965090945092506001600160b01b03811681146100b157600080fd5b939692955090935050565b60805160a05160c05160e05160ff6100ef60003960006008015260006031015260006059015260006080015260ff6000f3fe608060408190527f00000000000000000000000000000000000000000000000000000000000000003660b681018290527f000000000000000000000000000000000000000000000000000000000000000060a082018190527f00000000000000000000000000000000000000000000000000000000000000008285018190527f00000000000000000000000000000000000000000000000000000000000000009490939192600082376000806056360183885af490503d6000803e8060c3573d6000fd5b503d6000f3fea2646970667358221220ddd9bb059ba7a6497d560ca97aadf4dbf0476f578378554a50d41c6bb654beae64736f6c63430008180033";
|
|
13
|
+
static readonly DEFAULT_MULTISEND_CONTRACT_ADDRESS = "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526";
|
|
14
|
+
static readonly initializerFunctionSelector: string;
|
|
15
|
+
static readonly initializerFunctionInputAbi: string[];
|
|
16
|
+
static readonly DEFAULT_EXECUTOR_FUCNTION_SELECTOR = SafeModuleExecutorFunctionSelector.executeUserOpWithErrorString;
|
|
17
|
+
static readonly executorFunctionInputAbi: string[];
|
|
18
|
+
protected isInitWebAuthn: boolean;
|
|
19
|
+
protected x: bigint | null;
|
|
20
|
+
protected y: bigint | null;
|
|
21
|
+
readonly entrypointAddress: string;
|
|
22
|
+
readonly safe4337ModuleAddress: string;
|
|
23
|
+
protected factoryAddress: string | null;
|
|
24
|
+
protected factoryData: string | null;
|
|
25
|
+
constructor(accountAddress: string, safe4337ModuleAddress: string, entrypointAddress: string);
|
|
26
|
+
static createProxyAddress(initializerCallData: string, overrides?: {
|
|
27
|
+
c2Nonce?: bigint;
|
|
28
|
+
safeFactoryAddress?: string;
|
|
29
|
+
singletonInitHash?: string;
|
|
30
|
+
}): string;
|
|
31
|
+
static createAccountCallDataSingleTransaction(metaTransaction: MetaTransaction, safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector): string;
|
|
32
|
+
static createAccountCallDataBatchTransactions(metaTransactions: MetaTransaction[], overrides: {
|
|
33
|
+
safeModuleExecutorFunctionSelector: SafeModuleExecutorFunctionSelector;
|
|
34
|
+
multisendContractAddress: string;
|
|
35
|
+
}): string;
|
|
36
|
+
static createAccountCallData(to: string, value: bigint, data: string, operation: Operation, safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector): string;
|
|
37
|
+
static decodeAccountCallData(callData: string): [MetaTransaction, SafeModuleExecutorFunctionSelector];
|
|
38
|
+
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, multisendContractAddress?: string): string;
|
|
39
|
+
static formatEip712SignaturesToUseroperationSignature(signersAddresses: string[], signatures: string[], overrides?: {
|
|
40
|
+
validAfter?: bigint;
|
|
41
|
+
validUntil?: bigint;
|
|
42
|
+
}): string;
|
|
43
|
+
protected static getUserOperationEip712Hash(useroperation: UserOperationV6 | UserOperationV7, chainId: bigint, overrides?: {
|
|
44
|
+
validAfter?: bigint;
|
|
45
|
+
validUntil?: bigint;
|
|
46
|
+
entrypointAddress?: string;
|
|
47
|
+
safe4337ModuleAddress?: string;
|
|
48
|
+
}): string;
|
|
49
|
+
static getUserOperationEip712Hash_V6(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
50
|
+
validAfter?: bigint;
|
|
51
|
+
validUntil?: bigint;
|
|
52
|
+
entrypointAddress?: string;
|
|
53
|
+
safe4337ModuleAddress?: string;
|
|
54
|
+
}): string;
|
|
55
|
+
static getUserOperationEip712Hash_V7(useroperation: UserOperationV7, chainId: bigint, overrides?: {
|
|
56
|
+
validAfter?: bigint;
|
|
57
|
+
validUntil?: bigint;
|
|
58
|
+
entrypointAddress?: string;
|
|
59
|
+
safe4337ModuleAddress?: string;
|
|
60
|
+
}): string;
|
|
61
|
+
static formatEip712SingleSignatureToUseroperationSignature(signature: string, overrides?: {
|
|
62
|
+
validAfter?: bigint;
|
|
63
|
+
validUntil?: bigint;
|
|
64
|
+
}): string;
|
|
65
|
+
sendUserOperation(userOperation: UserOperationV6 | UserOperationV7, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
66
|
+
protected static createAccountAddressAndFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides, safe4337ModuleAddress: string, safeModuleSetupddress: string): [string, string, string];
|
|
67
|
+
protected static createBaseInitializerCallData(owners: Signer[], threshold: number, safe4337ModuleAddress: string, safeModuleSetupddress: string, multisendContractAddress?: string, webAuthnSharedSigner?: string, eip7212WebAuthPrecompileVerifierForSharedSigner?: string, eip7212WebAuthContractVerifierForSharedSigner?: string): string;
|
|
68
|
+
protected static createFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides | undefined, safe4337ModuleAddress: string, safeModuleSetupddress: string): [string, string];
|
|
69
|
+
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, multisendContractAddress?: string): string;
|
|
70
|
+
estimateUserOperationGas(userOperation: UserOperationV6 | UserOperationV7, bundlerRpc: string, overrides?: {
|
|
71
|
+
stateOverrideSet?: StateOverrideSet;
|
|
72
|
+
dummySignatures?: SignerSignaturePair[];
|
|
73
|
+
}): Promise<[bigint, bigint, bigint]>;
|
|
74
|
+
protected createBaseUserOperationAndFactoryAddressAndFactoryData(transactions: MetaTransaction[], isV06: boolean, providerRpc?: string, bundlerRpc?: string, overrides?: CreateBaseUserOperationOverrides): Promise<[BaseUserOperation, string | null, string | null]>;
|
|
75
|
+
signUserOperation(useroperation: UserOperationV6 | UserOperationV7, privateKeys: string[], chainId: bigint, overrides?: {
|
|
76
|
+
validAfter?: bigint;
|
|
77
|
+
validUntil?: bigint;
|
|
78
|
+
}): string;
|
|
79
|
+
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
80
|
+
eip7212WebAuthPrecompileVerifier?: string;
|
|
81
|
+
eip7212WebAuthContractVerifier?: string;
|
|
82
|
+
webAuthnSignerFactory?: string;
|
|
83
|
+
webAuthnSignerSingleton?: string;
|
|
84
|
+
}): string;
|
|
85
|
+
static formatSignaturesToUseroperationSignature(signatures: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): string;
|
|
86
|
+
static getLowerCaseAddress(signer: Signer, webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): string;
|
|
87
|
+
static sortSignatures(signatures: SignerSignaturePair[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): void;
|
|
88
|
+
static buildSignaturesFromSingerSignaturePairs(signatures: SignerSignaturePair[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): string;
|
|
89
|
+
static createWebAuthnSignature(signatureData: WebauthSignatureData): string;
|
|
90
|
+
createSwapOwnerMetaTransactions(nodeRpcUrl: string, newOwner: Signer, oldOwner: Signer, overrides?: {
|
|
91
|
+
prevOwner?: string;
|
|
92
|
+
eip7212WebAuthPrecompileVerifier?: string;
|
|
93
|
+
eip7212WebAuthContractVerifier?: string;
|
|
94
|
+
webAuthnSignerFactory?: string;
|
|
95
|
+
webAuthnSignerSingleton?: string;
|
|
96
|
+
}): Promise<MetaTransaction[]>;
|
|
97
|
+
createRemoveOwnerMetaTransaction(nodeRpcUrl: string, ownerToDelete: Signer, threshold: number, overrides?: {
|
|
98
|
+
prevOwner?: string;
|
|
99
|
+
eip7212WebAuthPrecompileVerifier?: string;
|
|
100
|
+
eip7212WebAuthContractVerifier?: string;
|
|
101
|
+
webAuthnSignerFactory?: string;
|
|
102
|
+
webAuthnSignerSingleton?: string;
|
|
103
|
+
}): Promise<MetaTransaction>;
|
|
104
|
+
createAddOwnerWithThresholdMetaTransaction(newOwner: string, threshold: number): MetaTransaction;
|
|
105
|
+
createStandardSwapOwnerMetaTransaction(newOwner: string, oldOwner: string, prevOwner: string): MetaTransaction;
|
|
106
|
+
createStandardRemoveOwnerMetaTransaction(ownerToDelete: string, threshold: number, prevOwner: string): MetaTransaction;
|
|
107
|
+
static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
|
|
108
|
+
eip7212WebAuthPrecompileVerifier?: string;
|
|
109
|
+
eip7212WebAuthContractVerifier?: string;
|
|
110
|
+
webAuthnSignerFactory?: string;
|
|
111
|
+
}): MetaTransaction;
|
|
112
|
+
getOwners(nodeRpcUrl: string): Promise<string[]>;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=SafeAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeAccount.d.ts","sourceRoot":"","sources":["../../../src/account/Safe/SafeAccount.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAO/C,OAAO,EACN,eAAe,EACf,SAAS,EACT,gBAAgB,EACb,iBAAiB,EACpB,eAAe,EACf,eAAe,EACf,MAAM,aAAa,CAAC;AAUrB,OAAO,EACH,gCAAgC,EACnC,MAAM,EAIN,mBAAmB,EACnB,oBAAoB,EACpB,kCAAkC,EAE/B,0BAA0B,EAC1B,iBAAiB,EACpB,MAAM,SAAS,CAAC;AAIjB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,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GACnB,eAAe;IAuBV,wCAAwC,CAC3C,aAAa,EAAE,MAAM,EACrB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GACnB,eAAe;WAuBH,2CAA2C,CACrD,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,SAAS,GAAC;QACN,gCAAgC,CAAC,EAAC,MAAM,CAAC;QACzC,8BAA8B,CAAC,EAAC,MAAM,CAAC;QACvC,qBAAqB,CAAC,EAAC,MAAM,CAAC;KAC5B,GACR,eAAe;IAiCJ,SAAS,CAAC,UAAU,EAAE,MAAM,GAAE,OAAO,CAAC,MAAM,EAAE,CAAC;CAoB/D"}
|
|
@@ -1,46 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { SendUseroperationResponse } from "../SendUseroperationResponse";
|
|
6
|
-
export declare class SafeAccountV0_2_0 extends SmartAccount {
|
|
1
|
+
import { SafeAccount } from "./SafeAccount";
|
|
2
|
+
import { InitCodeOverrides, Signer, CreateUserOperationV6Overrides } from "./types";
|
|
3
|
+
import { UserOperationV6, MetaTransaction } from "../../types";
|
|
4
|
+
export declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
7
5
|
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
8
6
|
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
|
|
9
|
-
static readonly
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
static
|
|
15
|
-
static
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
static createInitCode(owners:
|
|
32
|
-
|
|
33
|
-
static createAccountCallDataSingleTransaction(metaTransaction: MetaTransaction): string;
|
|
34
|
-
static createAccountCallDataBatchTransactions(metaTransactions: MetaTransaction[], multisendContractAddress?: string): string;
|
|
35
|
-
static createAccountCallData(to: string, value: bigint, data: string, operation: Operation, safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector): string;
|
|
36
|
-
static decodeAccountCallData(callData: string): [string, bigint, string, number];
|
|
37
|
-
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, multisendContractAddress?: string): string;
|
|
38
|
-
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, multisendContractAddress?: string): string;
|
|
39
|
-
estimateUserOperationGas(userOperation: UserOperation, bundlerRpc: string, state_override_set?: StateOverrideSet, numberOfSigners?: number): Promise<[bigint, bigint, bigint]>;
|
|
40
|
-
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrids?: CreateUserOperationOverrides): Promise<UserOperation>;
|
|
41
|
-
signUserOperation(useroperation: UserOperation, privateKeys: string[], chainId: bigint, validAfter?: bigint, validUntil?: bigint): string;
|
|
42
|
-
static formatEip712SignaturesToUseroperationSignature(signersAddresses: string[], signatures: string[], validAfter?: bigint, validUntil?: bigint): string;
|
|
43
|
-
static formatEip712SingleSignatureToUseroperationSignature(signature: string, validAfter?: bigint, validUntil?: bigint): string;
|
|
44
|
-
sendUserOperation(userOperation: UserOperation, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
7
|
+
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
|
|
8
|
+
constructor(accountAddress: string, overrides?: {
|
|
9
|
+
safe4337ModuleAddress?: string;
|
|
10
|
+
entrypointAddress?: string;
|
|
11
|
+
});
|
|
12
|
+
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
13
|
+
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
14
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
15
|
+
validAfter?: bigint;
|
|
16
|
+
validUntil?: bigint;
|
|
17
|
+
entrypointAddress?: string;
|
|
18
|
+
safe4337ModuleAddress?: string;
|
|
19
|
+
}): string;
|
|
20
|
+
static createAccountAddressAndInitCode(owners: Signer[], overrides: InitCodeOverrides): [string, string];
|
|
21
|
+
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
22
|
+
safe4337ModuleAddress?: string;
|
|
23
|
+
safeModuleSetupddress?: string;
|
|
24
|
+
multisendContractAddress?: string;
|
|
25
|
+
webAuthnSharedSigner?: string;
|
|
26
|
+
eip7212WebAuthPrecompileVerifierForSharedSigner?: string;
|
|
27
|
+
eip7212WebAuthContractVerifierForSharedSigner?: string;
|
|
28
|
+
}): string;
|
|
29
|
+
static createInitCode(owners: Signer[], overrides: InitCodeOverrides): string;
|
|
30
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV6Overrides): Promise<UserOperationV6>;
|
|
45
31
|
}
|
|
46
32
|
//# sourceMappingURL=SafeAccountV0_2_0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeAccountV0_2_0.d.ts","sourceRoot":"","sources":["../../../src/account/Safe/SafeAccountV0_2_0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SafeAccountV0_2_0.d.ts","sourceRoot":"","sources":["../../../src/account/Safe/SafeAccountV0_2_0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACN,iBAAiB,EACjB,MAAM,EACH,8BAA8B,EACjC,MAAM,SAAS,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D,GACV,MAAM;WAwBK,cAAc,CAC3B,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,iBAAiB,GACvB,MAAM;IAuBC,mBAAmB,CAC/B,YAAY,EAAE,eAAe,EAAE,EAC/B,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,GAAE,8BAAmC,GAC5C,OAAO,CAAC,eAAe,CAAC;CAmC3B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { SafeAccount } from "./SafeAccount";
|
|
2
|
+
import { InitCodeOverrides, Signer, CreateUserOperationV7Overrides } from "./types";
|
|
3
|
+
import { UserOperationV7, MetaTransaction } from "../../types";
|
|
4
|
+
export declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
5
|
+
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
6
|
+
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226";
|
|
7
|
+
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
|
|
8
|
+
constructor(accountAddress: string, overrides?: {
|
|
9
|
+
safe4337ModuleAddress?: string;
|
|
10
|
+
entrypointAddress?: string;
|
|
11
|
+
});
|
|
12
|
+
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
13
|
+
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
|
|
14
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: {
|
|
15
|
+
validAfter?: bigint;
|
|
16
|
+
validUntil?: bigint;
|
|
17
|
+
entrypointAddress?: string;
|
|
18
|
+
safe4337ModuleAddress?: string;
|
|
19
|
+
}): string;
|
|
20
|
+
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
21
|
+
safe4337ModuleAddress?: string;
|
|
22
|
+
safeModuleSetupddress?: string;
|
|
23
|
+
multisendContractAddress?: string;
|
|
24
|
+
webAuthnSharedSigner?: string;
|
|
25
|
+
eip7212WebAuthPrecompileVerifierForSharedSigner?: string;
|
|
26
|
+
eip7212WebAuthContractVerifierForSharedSigner?: string;
|
|
27
|
+
}): string;
|
|
28
|
+
static createFactoryAddressAndData(owners: Signer[], overrides: InitCodeOverrides): [string, string];
|
|
29
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=SafeAccountV0_3_0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeAccountV0_3_0.d.ts","sourceRoot":"","sources":["../../../src/account/Safe/SafeAccountV0_3_0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EACN,iBAAiB,EACjB,MAAM,EACH,8BAA8B,EACjC,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAG/D,qBAAa,iBAAkB,SAAQ,WAAW;IAC9C,MAAM,CAAC,QAAQ,CAAC,0BAA0B,gDAAiB;IAC9D,MAAM,CAAC,QAAQ,CAAC,gCAAgC,gDACF;IAC3C,MAAM,CAAC,QAAQ,CAAC,iCAAiC,gDACN;gBAG7C,cAAc,EAAE,MAAM,EAChB,SAAS,GAAC;QACN,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;KACzB;WAgBC,oBAAoB,CACjC,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,GAAE,iBAAsB,GAC/B,MAAM;WAsBK,oBAAoB,CACjC,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,GAAE,iBAAsB,GAC/B,iBAAiB;WA0CH,0BAA0B,CAC1C,aAAa,EAAE,eAAe,EAC9B,OAAO,EAAC,MAAM,EACR,SAAS,GAAC;QACN,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;QAC3B,qBAAqB,CAAC,EAAE,MAAM,CAAC;KAC7B,GACP,MAAM;WAsBK,yBAAyB,CACzC,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,MAAM,EACX,SAAS,GAAC;QACN,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;QAC/B,wBAAwB,CAAC,EAAE,MAAM,CAAC;QAClC,oBAAoB,CAAC,EAAC,MAAM,CAAC;QAC7B,+CAA+C,CAAC,EAAC,MAAM,CAAC;QACxD,6CAA6C,CAAC,EAAC,MAAM,CAAC;KACpD,GACV,MAAM;WAwBK,2BAA2B,CACxC,MAAM,EAAE,MAAM,EAAE,EAChB,SAAS,EAAE,iBAAiB,GACvB,CAAC,MAAM,EAAE,MAAM,CAAC;IAmBT,mBAAmB,CAC/B,YAAY,EAAE,eAAe,EAAE,EAC/B,WAAW,CAAC,EAAE,MAAM,EACpB,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,GAAE,8BAAmC,GAC5C,OAAO,CAAC,eAAe,CAAC;CAyB3B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MetaTransaction } from "../../../types";
|
|
2
|
+
export declare abstract class SafeModule {
|
|
3
|
+
readonly moduleAddress: string;
|
|
4
|
+
constructor(moduleAddress: string);
|
|
5
|
+
createEnableModuleMetaTransaction(accountAddress: string): MetaTransaction;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=SafeModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeModule.d.ts","sourceRoot":"","sources":["../../../../src/account/Safe/modules/SafeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAOjD,8BAAsB,UAAU;IAC/B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;gBAEnB,aAAa,EAAE,MAAM;IASvB,iCAAiC,CACpC,cAAc,EAAE,MAAM,GACxB,eAAe;CAgBpB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { SafeModule } from "./SafeModule";
|
|
2
|
+
import { MetaTransaction } from "../../../types";
|
|
3
|
+
export declare class SocialRecoveryModule extends SafeModule {
|
|
4
|
+
static readonly DEFAULT_SOCIAL_RECOVERY_ADDRESS = "0x4Aa5Bf7D840aC607cb5BD3249e6Af6FC86C04897";
|
|
5
|
+
constructor(moduleAddress?: string);
|
|
6
|
+
createConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, execute: boolean): MetaTransaction;
|
|
7
|
+
createMultiConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, signatureData: RecoverySignatureData, execute: boolean): MetaTransaction;
|
|
8
|
+
createExecuteRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number): MetaTransaction;
|
|
9
|
+
createFinalizeRecoveryMetaTransaction(accountAddress: string): MetaTransaction;
|
|
10
|
+
createCancelRecoveryMetaTransaction(): MetaTransaction;
|
|
11
|
+
createAddGuardianWithThresholdMetaTransaction(guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
12
|
+
createRevokeGuardianWithThresholdMetaTransaction(prevGuardianAddress: string, guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
13
|
+
createChangeThresholdMetaTransaction(threshold: bigint): MetaTransaction;
|
|
14
|
+
getRecoveryHash(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number, nonce: bigint): Promise<string>;
|
|
15
|
+
getRecoveryRequest(nodeRpcUrl: string, accountAddress: string): Promise<RecoveryRequest>;
|
|
16
|
+
getRecoveryApprovals(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number): Promise<bigint>;
|
|
17
|
+
hasGuardianApproved(nodeRpcUrl: string, accountAddress: string, guardian: string, newOwners: string[], newThreshold: number): Promise<boolean>;
|
|
18
|
+
isGuardian(nodeRpcUrl: string, accountAddress: string, guardian: string): Promise<boolean>;
|
|
19
|
+
guardiansCount(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
20
|
+
threshold(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
21
|
+
getGuardians(nodeRpcUrl: string, accountAddress: string): Promise<string[]>;
|
|
22
|
+
nonce(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
23
|
+
}
|
|
24
|
+
export type RecoveryRequest = {
|
|
25
|
+
guardiansApprovalCount: bigint;
|
|
26
|
+
newThreshold: bigint;
|
|
27
|
+
executeAfter: bigint;
|
|
28
|
+
newOwners: string[];
|
|
29
|
+
};
|
|
30
|
+
export type RecoverySignatureData = {
|
|
31
|
+
signer: bigint;
|
|
32
|
+
signature: string[];
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=SocialRecoveryModule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SocialRecoveryModule.d.ts","sourceRoot":"","sources":["../../../../src/account/Safe/modules/SocialRecoveryModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGjD,qBAAa,oBAAqB,SAAQ,UAAU;IAChD,MAAM,CAAC,QAAQ,CAAC,+BAA+B,gDACE;gBAGnD,aAAa,GAAE,MAA6D;IAenE,oCAAoC,CACvC,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EAAE,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,OAAO,GAClB,eAAe;IA0BV,yCAAyC,CAC5C,cAAc,EAAE,MAAM,EACtB,SAAS,EA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L,cAAc,CACvB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,CAAC;IA6BJ,SAAS,CAClB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,CAAC;IA6BJ,YAAY,CACrB,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IA6BN,KAAK,CACd,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,CAAC;CAsBpB;AAED,MAAM,MAAM,eAAe,GAAI;IAC3B,sBAAsB,EAAC,MAAM,CAAC;IAC9B,YAAY,EAAC,MAAM,CAAC;IACpB,YAAY,EAAC,MAAM,CAAC;IACpB,SAAS,EAAC,MAAM,EAAE,CAAC;CACtB,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAI;IACjC,MAAM,EAAC,MAAM,CAAC;IACd,SAAS,EAAC,MAAM,EAAE,CAAC;CACtB,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { StateOverrideSet } from "../../types";
|
|
2
|
-
export interface
|
|
2
|
+
export interface CreateBaseUserOperationOverrides {
|
|
3
3
|
nonce?: bigint;
|
|
4
|
-
initCode?: string;
|
|
5
4
|
callData?: string;
|
|
6
5
|
callGasLimit?: bigint;
|
|
7
6
|
verificationGasLimit?: bigint;
|
|
@@ -13,16 +12,59 @@ export interface CreateUserOperationOverrides {
|
|
|
13
12
|
preVerificationGasPercentageMultiplier?: number;
|
|
14
13
|
maxFeePerGasPercentageMultiplier?: number;
|
|
15
14
|
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
16
|
-
numberOfSigners?: number;
|
|
17
15
|
state_override_set?: StateOverrideSet;
|
|
16
|
+
dummySignatures?: SignerSignaturePair[];
|
|
17
|
+
webAuthnSharedSigner?: string;
|
|
18
|
+
webAuthnSignerFactory?: string;
|
|
19
|
+
webAuthnSignerSingleton?: string;
|
|
20
|
+
eip7212WebAuthPrecompileVerifier?: string;
|
|
21
|
+
eip7212WebAuthContractVerifier?: string;
|
|
22
|
+
safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
|
|
23
|
+
multisendContractAddress?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface CreateUserOperationV6Overrides extends CreateBaseUserOperationOverrides {
|
|
26
|
+
initCode?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface CreateUserOperationV7Overrides extends CreateBaseUserOperationOverrides {
|
|
29
|
+
factory?: string;
|
|
30
|
+
factoryData?: string;
|
|
31
|
+
}
|
|
32
|
+
export interface SafeAccountSingleton {
|
|
33
|
+
singletonAddress: string;
|
|
34
|
+
singletonInitHash: string;
|
|
18
35
|
}
|
|
19
36
|
export interface InitCodeOverrides {
|
|
20
37
|
threshold?: number;
|
|
21
38
|
c2Nonce?: bigint;
|
|
22
|
-
singletonAddress?: string;
|
|
23
|
-
safeAccountFactoryAddress?: string;
|
|
24
39
|
safe4337ModuleAddress?: string;
|
|
25
|
-
|
|
40
|
+
safeModuleSetupddress?: string;
|
|
41
|
+
entrypointAddress?: string;
|
|
42
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
43
|
+
safeAccountFactoryAddress?: string;
|
|
44
|
+
multisendContractAddress?: string;
|
|
45
|
+
webAuthnSharedSigner?: string;
|
|
46
|
+
eip7212WebAuthPrecompileVerifierForSharedSigner?: string;
|
|
47
|
+
eip7212WebAuthContractVerifierForSharedSigner?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface BaseInitOverrides {
|
|
50
|
+
threshold?: number;
|
|
51
|
+
c2Nonce?: bigint;
|
|
52
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
53
|
+
safeAccountFactoryAddress?: string;
|
|
54
|
+
multisendContractAddress?: string;
|
|
55
|
+
webAuthnSharedSigner?: string;
|
|
56
|
+
eip7212WebAuthPrecompileVerifierForSharedSigner?: string;
|
|
57
|
+
eip7212WebAuthContractVerifierForSharedSigner?: string;
|
|
58
|
+
}
|
|
59
|
+
export interface WebAuthnSignatureOverrides {
|
|
60
|
+
isInit?: boolean;
|
|
61
|
+
webAuthnSharedSigner?: string;
|
|
62
|
+
eip7212WebAuthPrecompileVerifier?: string;
|
|
63
|
+
eip7212WebAuthContractVerifier?: string;
|
|
64
|
+
webAuthnSignerFactory?: string;
|
|
65
|
+
webAuthnSignerSingleton?: string;
|
|
66
|
+
validAfter?: bigint;
|
|
67
|
+
validUntil?: bigint;
|
|
26
68
|
}
|
|
27
69
|
export declare enum SafeModuleExecutorFunctionSelector {
|
|
28
70
|
executeUserOpWithErrorString = "0x541d63c8",
|
|
@@ -32,7 +74,7 @@ export interface SafeUserOperationTypedDataDomain {
|
|
|
32
74
|
chainId: bigint;
|
|
33
75
|
verifyingContract: string;
|
|
34
76
|
}
|
|
35
|
-
export interface
|
|
77
|
+
export interface SafeUserOperationV6TypedDataValues {
|
|
36
78
|
safe: string;
|
|
37
79
|
nonce: bigint;
|
|
38
80
|
initCode: string;
|
|
@@ -47,4 +89,38 @@ export interface SafeUserOperationTypedDataValues {
|
|
|
47
89
|
validUntil: bigint;
|
|
48
90
|
entryPoint: string;
|
|
49
91
|
}
|
|
92
|
+
export interface SafeUserOperationV7TypedDataValues {
|
|
93
|
+
safe: string;
|
|
94
|
+
nonce: bigint;
|
|
95
|
+
initCode: string;
|
|
96
|
+
callData: string;
|
|
97
|
+
verificationGasLimit: bigint;
|
|
98
|
+
callGasLimit: bigint;
|
|
99
|
+
preVerificationGas: bigint;
|
|
100
|
+
maxPriorityFeePerGas: bigint;
|
|
101
|
+
maxFeePerGas: bigint;
|
|
102
|
+
paymasterAndData: string;
|
|
103
|
+
validAfter: bigint;
|
|
104
|
+
validUntil: bigint;
|
|
105
|
+
entryPoint: string;
|
|
106
|
+
}
|
|
107
|
+
export type ECDSAPublicAddress = string;
|
|
108
|
+
export interface WebauthPublicKey {
|
|
109
|
+
x: bigint;
|
|
110
|
+
y: bigint;
|
|
111
|
+
}
|
|
112
|
+
export type Signer = ECDSAPublicAddress | WebauthPublicKey;
|
|
113
|
+
export type ECDSASignature = string;
|
|
114
|
+
export interface WebauthSignatureData {
|
|
115
|
+
authenticatorData: ArrayBuffer;
|
|
116
|
+
clientDataFields: string;
|
|
117
|
+
rs: [bigint, bigint];
|
|
118
|
+
}
|
|
119
|
+
export interface SignerSignaturePair {
|
|
120
|
+
signer: Signer;
|
|
121
|
+
signature: string;
|
|
122
|
+
isContractSignature?: boolean;
|
|
123
|
+
}
|
|
124
|
+
export declare const EOADummySignature: SignerSignaturePair;
|
|
125
|
+
export declare const WebauthDummySignerSignaturePair: SignerSignaturePair;
|
|
50
126
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/account/Safe/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/account/Safe/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD,MAAM,WAAW,gCAAgC;IAEhD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAE9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAG9B,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAE1C,wCAAwC,CAAC,EAAE,MAAM,CAAC;IAElD,sCAAsC,CAAC,EAAE,MAAM,CAAC;IAEhD,gCAAgC,CAAC,EAAE,M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AAED,MAAM,WAAW,kCAAkC;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACd,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAA;AAEvC,MAAM,WAAW,gBAAgB;IAC7B,CAAC,EAAC,MAAM,CAAC;IACT,CAAC,EAAC,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,MAAM,GAAG,kBAAkB,GAAG,gBAAgB,CAAA;AAE1D,MAAM,MAAM,cAAc,GAAG,MAAM,CAAA;AAEnC,MAAM,WAAW,oBAAoB;IACjC,iBAAiB,EAAE,WAAW,CAAA;IAC9B,gBAAgB,EAAE,MAAM,CAAA;IACxB,EAAE,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACvB;AAED,MAAM,WAAW,mBAAmB;IACnC,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC7B;AAED,eAAO,MAAM,iBAAiB,EAAG,mBAIhC,CAAA;AAED,eAAO,MAAM,+BAA+B,EAAE,mBAI7C,CAAA"}
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SafeAccountSingleton } from "./account/Safe/types";
|
|
2
2
|
export declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
4
|
+
export declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
5
|
+
export declare const Safe_L2_V1_4_1: SafeAccountSingleton;
|
|
6
|
+
export declare const BaseUserOperationDummyValues: {
|
|
7
|
+
sender: string;
|
|
8
|
+
nonce: bigint;
|
|
9
|
+
callData: string;
|
|
10
|
+
callGasLimit: bigint;
|
|
11
|
+
verificationGasLimit: bigint;
|
|
12
|
+
preVerificationGas: bigint;
|
|
13
|
+
maxFeePerGas: bigint;
|
|
14
|
+
maxPriorityFeePerGas: bigint;
|
|
15
|
+
signature: string;
|
|
16
|
+
};
|
|
4
17
|
//# sourceMappingURL=constants.d.ts.map
|
package/dist/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,eAAO,MAAM,WAAW,+CAA+C,CAAC;AAExE,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAC1E,eAAO,MAAM,aAAa,+CAA+C,CAAC;AAE1E,eAAO,MAAM,cAAc,EAAE,oBAG5B,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;CAWxC,CAAC"}
|
package/dist/errors.d.ts
CHANGED
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,MAAM,MAAM,cAAc,GACvB,eAAe,GACf,SAAS,GACT,UAAU,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 -1,5 +1,6 @@
|
|
|
1
1
|
import { SmartAccountFactory } from "./SmartAccountFactory";
|
|
2
2
|
export declare class SafeAccountFactory extends SmartAccountFactory {
|
|
3
|
+
static readonly DEFAULT_FACTORY_ADDRESS = "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67";
|
|
3
4
|
constructor(address?: string);
|
|
4
5
|
}
|
|
5
6
|
//# sourceMappingURL=SafeAccountFactory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SafeAccountFactory.d.ts","sourceRoot":"","sources":["../../src/factory/SafeAccountFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,qBAAa,kBAAmB,SAAQ,mBAAmB;
|
|
1
|
+
{"version":3,"file":"SafeAccountFactory.d.ts","sourceRoot":"","sources":["../../src/factory/SafeAccountFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,qBAAa,kBAAmB,SAAQ,mBAAmB;IACvD,MAAM,CAAC,QAAQ,CAAC,uBAAuB,gDAA+C;gBAC7E,OAAO,GAAE,MAAmD;CASxE"}
|