abstractionkit 0.2.39 → 0.2.41

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.
Files changed (82) hide show
  1. package/dist/chunk-CfYAbeIz.mjs +13 -0
  2. package/dist/index.cjs +7234 -0
  3. package/dist/index.d.cts +1561 -0
  4. package/dist/index.d.cts.map +1 -0
  5. package/dist/index.d.mts +1559 -0
  6. package/dist/index.d.mts.map +1 -0
  7. package/dist/index.iife.js +7236 -0
  8. package/dist/index.mjs +7148 -0
  9. package/dist/index.mjs.map +1 -0
  10. package/package.json +26 -13
  11. package/dist/Bundler.d.ts +0 -12
  12. package/dist/Bundler.d.ts.map +0 -1
  13. package/dist/abstractionkit.d.ts +0 -28
  14. package/dist/abstractionkit.d.ts.map +0 -1
  15. package/dist/account/Calibur/Calibur7702Account.d.ts +0 -44
  16. package/dist/account/Calibur/Calibur7702Account.d.ts.map +0 -1
  17. package/dist/account/Calibur/types.d.ts +0 -62
  18. package/dist/account/Calibur/types.d.ts.map +0 -1
  19. package/dist/account/Safe/MerkleTree.d.ts +0 -3
  20. package/dist/account/Safe/MerkleTree.d.ts.map +0 -1
  21. package/dist/account/Safe/SafeAccount.d.ts +0 -251
  22. package/dist/account/Safe/SafeAccount.d.ts.map +0 -1
  23. package/dist/account/Safe/SafeAccountV0_2_0.d.ts +0 -79
  24. package/dist/account/Safe/SafeAccountV0_2_0.d.ts.map +0 -1
  25. package/dist/account/Safe/SafeAccountV0_3_0.d.ts +0 -64
  26. package/dist/account/Safe/SafeAccountV0_3_0.d.ts.map +0 -1
  27. package/dist/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts +0 -54
  28. package/dist/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts.map +0 -1
  29. package/dist/account/Safe/SafeMultiChainSigAccount.d.ts +0 -87
  30. package/dist/account/Safe/SafeMultiChainSigAccount.d.ts.map +0 -1
  31. package/dist/account/Safe/modules/AllowanceModule.d.ts +0 -38
  32. package/dist/account/Safe/modules/AllowanceModule.d.ts.map +0 -1
  33. package/dist/account/Safe/modules/SafeModule.d.ts +0 -10
  34. package/dist/account/Safe/modules/SafeModule.d.ts.map +0 -1
  35. package/dist/account/Safe/modules/SocialRecoveryModule.d.ts +0 -72
  36. package/dist/account/Safe/modules/SocialRecoveryModule.d.ts.map +0 -1
  37. package/dist/account/Safe/multisend.d.ts +0 -4
  38. package/dist/account/Safe/multisend.d.ts.map +0 -1
  39. package/dist/account/Safe/safeMessage.d.ts +0 -23
  40. package/dist/account/Safe/safeMessage.d.ts.map +0 -1
  41. package/dist/account/Safe/types.d.ts +0 -159
  42. package/dist/account/Safe/types.d.ts.map +0 -1
  43. package/dist/account/SendUseroperationResponse.d.ts +0 -11
  44. package/dist/account/SendUseroperationResponse.d.ts.map +0 -1
  45. package/dist/account/SmartAccount.d.ts +0 -10
  46. package/dist/account/SmartAccount.d.ts.map +0 -1
  47. package/dist/account/simple/Simple7702Account.d.ts +0 -86
  48. package/dist/account/simple/Simple7702Account.d.ts.map +0 -1
  49. package/dist/account/simple/Simple7702AccountV09.d.ts +0 -18
  50. package/dist/account/simple/Simple7702AccountV09.d.ts.map +0 -1
  51. package/dist/constants.d.ts +0 -43
  52. package/dist/constants.d.ts.map +0 -1
  53. package/dist/errors.d.ts +0 -25
  54. package/dist/errors.d.ts.map +0 -1
  55. package/dist/factory/SafeAccountFactory.d.ts +0 -6
  56. package/dist/factory/SafeAccountFactory.d.ts.map +0 -1
  57. package/dist/factory/SmartAccountFactory.d.ts +0 -9
  58. package/dist/factory/SmartAccountFactory.d.ts.map +0 -1
  59. package/dist/index.d.ts +0 -4
  60. package/dist/index.d.ts.map +0 -1
  61. package/dist/index.js +0 -1
  62. package/dist/index.m.js +0 -1
  63. package/dist/index.modern.mjs +0 -1
  64. package/dist/index.umd.js +0 -1
  65. package/dist/paymaster/AllowAllPaymaster.d.ts +0 -9
  66. package/dist/paymaster/AllowAllPaymaster.d.ts.map +0 -1
  67. package/dist/paymaster/CandidePaymaster.d.ts +0 -39
  68. package/dist/paymaster/CandidePaymaster.d.ts.map +0 -1
  69. package/dist/paymaster/Paymaster.d.ts +0 -3
  70. package/dist/paymaster/Paymaster.d.ts.map +0 -1
  71. package/dist/paymaster/WorldIdPermissionlessPaymaster.d.ts +0 -16
  72. package/dist/paymaster/WorldIdPermissionlessPaymaster.d.ts.map +0 -1
  73. package/dist/paymaster/types.d.ts +0 -23
  74. package/dist/paymaster/types.d.ts.map +0 -1
  75. package/dist/types.d.ts +0 -219
  76. package/dist/types.d.ts.map +0 -1
  77. package/dist/utils.d.ts +0 -37
  78. package/dist/utils.d.ts.map +0 -1
  79. package/dist/utils7702.d.ts +0 -30
  80. package/dist/utils7702.d.ts.map +0 -1
  81. package/dist/utilsTenderly.d.ts +0 -75
  82. package/dist/utilsTenderly.d.ts.map +0 -1
@@ -0,0 +1,1561 @@
1
+ import { AbiCoder } from "ethers";
2
+
3
+ //#region \0rolldown/runtime.js
4
+ //#endregion
5
+ //#region src/account/SmartAccount.d.ts
6
+ declare abstract class SmartAccount {
7
+ readonly accountAddress: string;
8
+ static readonly proxyByteCode: string;
9
+ static readonly initializerFunctionSelector: string;
10
+ static readonly initializerFunctionInputAbi: string[];
11
+ static readonly executorFunctionSelector: string;
12
+ static readonly executorFunctionInputAbi: string[];
13
+ constructor(accountAddress: string);
14
+ }
15
+ //#endregion
16
+ //#region src/utils7702.d.ts
17
+ type Authorization7702 = {
18
+ chainId: bigint;
19
+ address: string;
20
+ nonce: bigint;
21
+ yParity: 0 | 1;
22
+ r: bigint;
23
+ s: bigint;
24
+ };
25
+ type Authorization7702Hex = {
26
+ chainId: string;
27
+ address: string;
28
+ nonce: string;
29
+ yParity: string;
30
+ r: string;
31
+ s: string;
32
+ };
33
+ declare function createAndSignLegacyRawTransaction(chainId: bigint, nonce: bigint, gas_price: bigint, gas_limit: bigint, destination: string, value: bigint, data: string, eoaPrivateKey: string): string;
34
+ declare function createAndSignEip7702DelegationAuthorization(chainId: bigint, address: string, nonce: bigint, signer: string): Authorization7702Hex;
35
+ declare function createAndSignEip7702DelegationAuthorization(chainId: bigint, address: string, nonce: bigint, signer: (hash: string) => Promise<string>): Promise<Authorization7702Hex>;
36
+ declare function createEip7702DelegationAuthorizationHash(chainId: bigint, address: string, nonce: bigint): string;
37
+ declare function signHash(authHash: string, eoaPrivateKey: string): {
38
+ yParity: 0 | 1;
39
+ r: bigint;
40
+ s: bigint;
41
+ };
42
+ declare function createAndSignEip7702RawTransaction(chainId: bigint, nonce: bigint, max_priority_fee_per_gas: bigint, max_fee_per_gas: bigint, gas_limit: bigint, destination: string, value: bigint, data: string, access_list: [string, string[]][], authorization_list: Authorization7702[], eoaPrivateKey: string): string;
43
+ declare function createEip7702TransactionHash(chainId: bigint, nonce: bigint, max_priority_fee_per_gas: bigint, max_fee_per_gas: bigint, gas_limit: bigint, destination: string, value: bigint, data: string, access_list: [string, string[]][], authorization_list: Authorization7702[]): string;
44
+ //#endregion
45
+ //#region src/types.d.ts
46
+ interface BaseUserOperation {
47
+ sender: string;
48
+ nonce: bigint;
49
+ callData: string;
50
+ callGasLimit: bigint;
51
+ verificationGasLimit: bigint;
52
+ preVerificationGas: bigint;
53
+ maxFeePerGas: bigint;
54
+ maxPriorityFeePerGas: bigint;
55
+ signature: string;
56
+ }
57
+ interface UserOperationV6 extends BaseUserOperation {
58
+ initCode: string;
59
+ paymasterAndData: string;
60
+ }
61
+ interface UserOperationV7 extends BaseUserOperation {
62
+ factory: string | null;
63
+ factoryData: string | null;
64
+ paymaster: string | null;
65
+ paymasterVerificationGasLimit: bigint | null;
66
+ paymasterPostOpGasLimit: bigint | null;
67
+ paymasterData: string | null;
68
+ }
69
+ interface UserOperationV8 extends BaseUserOperation {
70
+ factory: string | null;
71
+ factoryData: string | null;
72
+ paymaster: string | null;
73
+ paymasterVerificationGasLimit: bigint | null;
74
+ paymasterPostOpGasLimit: bigint | null;
75
+ paymasterData: string | null;
76
+ eip7702Auth: Authorization7702Hex | null;
77
+ }
78
+ interface UserOperationV9 extends UserOperationV8 {}
79
+ type AbiInputValue = string | bigint | number | boolean | AbiInputValue[];
80
+ type JsonRpcParam = string | bigint | boolean | object | JsonRpcParam[];
81
+ type JsonRpcResponse = {
82
+ id: number | null;
83
+ jsonrpc: string;
84
+ result?: JsonRpcResult;
85
+ simulation_results?: JsonRpcResult;
86
+ error?: JsonRpcError;
87
+ };
88
+ type ChainIdResult = string;
89
+ type SupportedEntryPointsResult = string[];
90
+ type SingleTransactionTenderlySimulationResult = {
91
+ transaction: any;
92
+ simulation: any;
93
+ };
94
+ type TenderlySimulationResult = SingleTransactionTenderlySimulationResult[];
95
+ type JsonRpcResult = ChainIdResult | SupportedEntryPointsResult | GasEstimationResult | UserOperationByHashResult | UserOperationReceipt | UserOperationReceiptResult | SupportedERC20TokensAndMetadata | PmUserOperationV7Result | PmUserOperationV6Result | TenderlySimulationResult;
96
+ type JsonRpcError = {
97
+ code: number;
98
+ message: string;
99
+ data: object;
100
+ };
101
+ type GasEstimationResult = {
102
+ callGasLimit: bigint;
103
+ preVerificationGas: bigint;
104
+ verificationGasLimit: bigint;
105
+ };
106
+ type UserOperationByHashResult = {
107
+ userOperation: UserOperationV6 | UserOperationV7;
108
+ entryPoint: string;
109
+ blockNumber: bigint | null;
110
+ blockHash: string | null;
111
+ transactionHash: string | null;
112
+ } | null;
113
+ type UserOperationReceipt = {
114
+ blockHash: string;
115
+ blockNumber: bigint;
116
+ from: string;
117
+ cumulativeGasUsed: bigint;
118
+ gasUsed: bigint;
119
+ logs: string;
120
+ logsBloom: string;
121
+ transactionHash: string;
122
+ transactionIndex: bigint;
123
+ effectiveGasPrice?: bigint;
124
+ };
125
+ type UserOperationReceiptResult = {
126
+ userOpHash: string;
127
+ entryPoint: string;
128
+ sender: string;
129
+ nonce: bigint;
130
+ paymaster: string;
131
+ actualGasCost: bigint;
132
+ actualGasUsed: bigint;
133
+ success: boolean;
134
+ logs: string;
135
+ receipt: UserOperationReceipt;
136
+ } | null;
137
+ type SponsorMetadata = {
138
+ name: string;
139
+ description: string;
140
+ url: string;
141
+ icons: string[];
142
+ };
143
+ type PmUserOperationV7Result = {
144
+ paymaster: string;
145
+ paymasterVerificationGasLimit: bigint;
146
+ paymasterPostOpGasLimit: bigint;
147
+ paymasterData: string;
148
+ callGasLimit?: bigint;
149
+ verificationGasLimit?: bigint;
150
+ preVerificationGas?: bigint;
151
+ maxFeePerGas?: bigint;
152
+ maxPriorityFeePerGas?: bigint;
153
+ sponsorMetadata?: SponsorMetadata;
154
+ };
155
+ type PmUserOperationV6Result = {
156
+ paymasterAndData: string;
157
+ callGasLimit?: bigint;
158
+ preVerificationGas?: bigint;
159
+ verificationGasLimit?: bigint;
160
+ maxFeePerGas?: bigint;
161
+ maxPriorityFeePerGas?: bigint;
162
+ sponsorMetadata?: SponsorMetadata;
163
+ };
164
+ declare enum Operation {
165
+ Call = 0,
166
+ Delegate = 1
167
+ }
168
+ interface MetaTransaction {
169
+ to: string;
170
+ value: bigint;
171
+ data: string;
172
+ operation?: Operation;
173
+ }
174
+ interface ERC20Token {
175
+ name: string;
176
+ symbol: string;
177
+ address: string;
178
+ decimals: number;
179
+ }
180
+ interface ERC20TokenWithExchangeRate extends ERC20Token {
181
+ exchangeRate: bigint;
182
+ }
183
+ interface PaymasterMetadata {
184
+ name: string;
185
+ description: string;
186
+ icons: string[];
187
+ address: string;
188
+ sponsoredEventTopic: string;
189
+ dummyPaymasterAndData: {
190
+ paymaster: string;
191
+ paymasterVerificationGasLimit: bigint;
192
+ paymasterPostOpGasLimit: bigint;
193
+ paymasterData: string;
194
+ } | string;
195
+ }
196
+ interface SupportedERC20TokensAndMetadata {
197
+ paymasterMetadata: PaymasterMetadata;
198
+ tokens: ERC20Token[];
199
+ }
200
+ interface SupportedERC20TokensAndMetadataWithExchangeRate {
201
+ paymasterMetadata: PaymasterMetadata;
202
+ tokens: ERC20TokenWithExchangeRate[];
203
+ }
204
+ interface Dictionary<T> {
205
+ [Key: string]: T;
206
+ }
207
+ type AddressToState = {
208
+ balance?: bigint;
209
+ nonce?: bigint;
210
+ code?: string;
211
+ state?: Dictionary<string>;
212
+ stateDiff?: Dictionary<string>;
213
+ };
214
+ type StateOverrideSet = {
215
+ [key: string]: AddressToState;
216
+ };
217
+ declare enum GasOption {
218
+ Slow = 1,
219
+ Medium = 1.2,
220
+ Fast = 1.5
221
+ }
222
+ declare enum PolygonChain {
223
+ Mainnet = "v2",
224
+ ZkMainnet = "zkevm",
225
+ Amoy = "amoy",
226
+ Cardona = "cardona"
227
+ }
228
+ type OnChainIdentifierParamsType = {
229
+ project: string;
230
+ platform?: "Web" | "Mobile" | "Safe App" | "Widget";
231
+ tool?: string;
232
+ toolVersion?: string;
233
+ };
234
+ interface ParallelPaymasterInitValues {
235
+ paymaster: string;
236
+ paymasterVerificationGasLimit: bigint;
237
+ paymasterPostOpGasLimit: bigint;
238
+ paymasterData: string;
239
+ }
240
+ //#endregion
241
+ //#region src/Bundler.d.ts
242
+ declare class Bundler {
243
+ readonly rpcUrl: string;
244
+ constructor(rpcUrl: string);
245
+ chainId(): Promise<string>;
246
+ supportedEntryPoints(): Promise<string[]>;
247
+ estimateUserOperationGas(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, entrypointAddress: string, state_override_set?: StateOverrideSet): Promise<GasEstimationResult>;
248
+ sendUserOperation(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, entrypointAddress: string): Promise<string>;
249
+ getUserOperationReceipt(useroperationhash: string): Promise<UserOperationReceiptResult>;
250
+ getUserOperationByHash(useroperationhash: string): Promise<UserOperationByHashResult>;
251
+ }
252
+ //#endregion
253
+ //#region src/account/SendUseroperationResponse.d.ts
254
+ declare class SendUseroperationResponse {
255
+ readonly userOperationHash: string;
256
+ readonly bundler: Bundler;
257
+ readonly entrypointAddress: string;
258
+ constructor(userOperationHash: string, bundler: Bundler, entrypointAddress: string);
259
+ private delay;
260
+ included(timeoutInSeconds?: number, requestIntervalInSeconds?: number): Promise<UserOperationReceiptResult>;
261
+ }
262
+ //#endregion
263
+ //#region src/account/simple/Simple7702Account.d.ts
264
+ interface SimpleMetaTransaction {
265
+ to: string;
266
+ value: bigint;
267
+ data: string;
268
+ }
269
+ interface CreateUserOperationOverrides {
270
+ nonce?: bigint;
271
+ callData?: string;
272
+ callGasLimit?: bigint;
273
+ verificationGasLimit?: bigint;
274
+ preVerificationGas?: bigint;
275
+ maxFeePerGas?: bigint;
276
+ maxPriorityFeePerGas?: bigint;
277
+ callGasLimitPercentageMultiplier?: number;
278
+ verificationGasLimitPercentageMultiplier?: number;
279
+ preVerificationGasPercentageMultiplier?: number;
280
+ maxFeePerGasPercentageMultiplier?: number;
281
+ maxPriorityFeePerGasPercentageMultiplier?: number;
282
+ state_override_set?: StateOverrideSet;
283
+ dummySignature?: string;
284
+ gasLevel?: GasOption;
285
+ polygonGasStation?: PolygonChain;
286
+ eip7702Auth?: {
287
+ chainId: bigint;
288
+ address?: string;
289
+ nonce?: bigint;
290
+ yParity?: string;
291
+ r?: string;
292
+ s?: string;
293
+ };
294
+ parallelPaymasterInitValues?: {
295
+ paymaster: string;
296
+ paymasterVerificationGasLimit: bigint;
297
+ paymasterPostOpGasLimit: bigint;
298
+ paymasterData: string;
299
+ };
300
+ }
301
+ declare class BaseSimple7702Account extends SmartAccount {
302
+ static readonly executorFunctionSelector = "0xb61d27f6";
303
+ static readonly executorFunctionInputAbi: string[];
304
+ static readonly batchExecutorFunctionSelector = "0x34fcd5be";
305
+ static readonly batchExecutorFunctionInputAbi: string[];
306
+ static readonly dummySignature = "0xd2614025fc173b86704caf37b2fb447f7618101a0d31f5f304c777024cef38a060a29ee43fcf0c46f9107d4f670b8a85c2c017a1fe9e4af891f24f0be6ba5d671c";
307
+ readonly entrypointAddress: string;
308
+ readonly delegateeAddress: string;
309
+ constructor(accountAddress: string, entrypointAddress: string, delegateeAddress: string);
310
+ isDelegatedToThisAccount(providerRpc: string): Promise<boolean>;
311
+ createRevokeDelegationTransaction(eoaPrivateKey: string, providerRpc: string, overrides?: {
312
+ nonce?: bigint;
313
+ authorizationNonce?: bigint;
314
+ maxFeePerGas?: bigint;
315
+ maxPriorityFeePerGas?: bigint;
316
+ gasLimit?: bigint;
317
+ chainId?: bigint;
318
+ }): Promise<string>;
319
+ static createAccountCallData(to: string, value: bigint, data: string): string;
320
+ static createAccountCallDataSingleTransaction(metaTransaction: SimpleMetaTransaction): string;
321
+ static createAccountCallDataBatchTransactions(transactions: SimpleMetaTransaction[]): string;
322
+ protected baseCreateUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV8 | UserOperationV9>;
323
+ protected baseEstimateUserOperationGas(userOperation: UserOperationV8 | UserOperationV9, bundlerRpc: string, overrides?: {
324
+ stateOverrideSet?: StateOverrideSet;
325
+ dummySignature?: string;
326
+ }): Promise<[bigint, bigint, bigint]>;
327
+ protected baseSignUserOperation(useroperation: UserOperationV8 | UserOperationV9, privateKey: string, chainId: bigint): string;
328
+ protected baseSendUserOperation(userOperation: UserOperationV8 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
329
+ prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
330
+ static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
331
+ }
332
+ declare class Simple7702Account extends BaseSimple7702Account {
333
+ static readonly DEFAULT_DELEGATEE_ADDRESS = "0xe6Cae83BdE06E4c305530e199D7217f42808555B";
334
+ constructor(accountAddress: string, overrides?: {
335
+ entrypointAddress?: string;
336
+ delegateeAddress?: string;
337
+ });
338
+ createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV8>;
339
+ estimateUserOperationGas(userOperation: UserOperationV8, bundlerRpc: string, overrides?: {
340
+ stateOverrideSet?: StateOverrideSet;
341
+ dummySignature?: string;
342
+ }): Promise<[bigint, bigint, bigint]>;
343
+ signUserOperation(useroperation: UserOperationV8, privateKey: string, chainId: bigint): string;
344
+ sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
345
+ }
346
+ //#endregion
347
+ //#region src/account/simple/Simple7702AccountV09.d.ts
348
+ declare class Simple7702AccountV09 extends BaseSimple7702Account {
349
+ static readonly DEFAULT_DELEGATEE_ADDRESS = "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5";
350
+ constructor(accountAddress: string, overrides?: {
351
+ entrypointAddress?: string;
352
+ delegateeAddress?: string;
353
+ });
354
+ createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
355
+ estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
356
+ stateOverrideSet?: StateOverrideSet;
357
+ dummySignature?: string;
358
+ }): Promise<[bigint, bigint, bigint]>;
359
+ signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
360
+ sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
361
+ }
362
+ //#endregion
363
+ //#region src/account/Safe/types.d.ts
364
+ interface CreateBaseUserOperationOverrides {
365
+ nonce?: bigint;
366
+ callData?: string;
367
+ callGasLimit?: bigint;
368
+ verificationGasLimit?: bigint;
369
+ preVerificationGas?: bigint;
370
+ maxFeePerGas?: bigint;
371
+ maxPriorityFeePerGas?: bigint;
372
+ callGasLimitPercentageMultiplier?: number;
373
+ verificationGasLimitPercentageMultiplier?: number;
374
+ preVerificationGasPercentageMultiplier?: number;
375
+ maxFeePerGasPercentageMultiplier?: number;
376
+ maxPriorityFeePerGasPercentageMultiplier?: number;
377
+ state_override_set?: StateOverrideSet;
378
+ dummySignerSignaturePairs?: SignerSignaturePair[];
379
+ webAuthnSharedSigner?: string;
380
+ webAuthnSignerFactory?: string;
381
+ webAuthnSignerSingleton?: string;
382
+ webAuthnSignerProxyCreationCode?: string;
383
+ eip7212WebAuthnPrecompileVerifier?: string;
384
+ eip7212WebAuthnContractVerifier?: string;
385
+ safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
386
+ multisendContractAddress?: string;
387
+ gasLevel?: GasOption;
388
+ polygonGasStation?: PolygonChain;
389
+ expectedSigners?: Signer[];
390
+ isMultiChainSignature?: boolean;
391
+ parallelPaymasterInitValues?: {
392
+ paymaster: string;
393
+ paymasterVerificationGasLimit: bigint;
394
+ paymasterPostOpGasLimit: bigint;
395
+ paymasterData: string;
396
+ };
397
+ }
398
+ interface CreateUserOperationV6Overrides extends CreateBaseUserOperationOverrides {
399
+ initCode?: string;
400
+ }
401
+ interface CreateUserOperationV7Overrides extends CreateBaseUserOperationOverrides {
402
+ factory?: string;
403
+ factoryData?: string;
404
+ }
405
+ interface CreateUserOperationV9Overrides extends CreateUserOperationV7Overrides {}
406
+ interface SafeAccountSingleton {
407
+ singletonAddress: string;
408
+ singletonInitHash: string;
409
+ }
410
+ interface InitCodeOverrides {
411
+ threshold?: number;
412
+ c2Nonce?: bigint;
413
+ safe4337ModuleAddress?: string;
414
+ safeModuleSetupAddress?: string;
415
+ entrypointAddress?: string;
416
+ safeAccountSingleton?: SafeAccountSingleton;
417
+ safeAccountFactoryAddress?: string;
418
+ multisendContractAddress?: string;
419
+ webAuthnSharedSigner?: string;
420
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
421
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
422
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
423
+ onChainIdentifier?: string;
424
+ }
425
+ interface BaseInitOverrides {
426
+ threshold?: number;
427
+ c2Nonce?: bigint;
428
+ safeAccountSingleton?: SafeAccountSingleton;
429
+ safeAccountFactoryAddress?: string;
430
+ multisendContractAddress?: string;
431
+ webAuthnSharedSigner?: string;
432
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
433
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
434
+ }
435
+ interface WebAuthnSignatureOverrides {
436
+ isInit?: boolean;
437
+ webAuthnSharedSigner?: string;
438
+ eip7212WebAuthnPrecompileVerifier?: string;
439
+ eip7212WebAuthnContractVerifier?: string;
440
+ webAuthnSignerFactory?: string;
441
+ webAuthnSignerSingleton?: string;
442
+ webAuthnSignerProxyCreationCode?: string;
443
+ validAfter?: bigint;
444
+ validUntil?: bigint;
445
+ isMultiChainSignature?: boolean;
446
+ multiChainMerkleProof?: string;
447
+ safe4337ModuleAddress?: string;
448
+ }
449
+ declare enum SafeModuleExecutorFunctionSelector {
450
+ executeUserOpWithErrorString = "0x541d63c8",
451
+ executeUserOp = "0x7bb37428"
452
+ }
453
+ interface SafeUserOperationTypedDataDomain {
454
+ chainId: number;
455
+ verifyingContract: string;
456
+ }
457
+ interface SafeUserOperationV6TypedMessageValue {
458
+ safe: string;
459
+ nonce: bigint;
460
+ initCode: string;
461
+ callData: string;
462
+ callGasLimit: bigint;
463
+ verificationGasLimit: bigint;
464
+ preVerificationGas: bigint;
465
+ maxFeePerGas: bigint;
466
+ maxPriorityFeePerGas: bigint;
467
+ paymasterAndData: string;
468
+ validAfter: bigint;
469
+ validUntil: bigint;
470
+ entryPoint: string;
471
+ }
472
+ interface SafeUserOperationV7TypedMessageValue {
473
+ safe: string;
474
+ nonce: bigint;
475
+ initCode: string;
476
+ callData: string;
477
+ verificationGasLimit: bigint;
478
+ callGasLimit: bigint;
479
+ preVerificationGas: bigint;
480
+ maxPriorityFeePerGas: bigint;
481
+ maxFeePerGas: bigint;
482
+ paymasterAndData: string;
483
+ validAfter: bigint;
484
+ validUntil: bigint;
485
+ entryPoint: string;
486
+ }
487
+ interface SafeUserOperationV9TypedMessageValue extends SafeUserOperationV7TypedMessageValue {}
488
+ type ECDSAPublicAddress = string;
489
+ interface WebauthnPublicKey {
490
+ x: bigint;
491
+ y: bigint;
492
+ }
493
+ type Signer = ECDSAPublicAddress | WebauthnPublicKey;
494
+ interface WebauthnSignatureData {
495
+ authenticatorData: ArrayBuffer;
496
+ clientDataFields: string;
497
+ rs: [bigint, bigint];
498
+ }
499
+ interface SignerSignaturePair {
500
+ signer: Signer;
501
+ signature: string;
502
+ isContractSignature?: boolean;
503
+ }
504
+ declare const EOADummySignerSignaturePair: SignerSignaturePair;
505
+ declare const WebauthnDummySignerSignaturePair: SignerSignaturePair;
506
+ interface UserOperationToSign {
507
+ chainId: bigint;
508
+ userOperation: UserOperationV9;
509
+ validAfter?: bigint;
510
+ validUntil?: bigint;
511
+ }
512
+ interface MultiChainSignatureMerkleTreeRootTypedDataDomain {
513
+ verifyingContract: string;
514
+ }
515
+ interface MultiChainSignatureMerkleTreeRootTypedMessageValue {
516
+ merkleTreeRoot: string;
517
+ }
518
+ //#endregion
519
+ //#region src/account/Safe/safeMessage.d.ts
520
+ declare const SAFE_MESSAGE_PRIMARY_TYPE = "SafeMessage";
521
+ declare const SAFE_MESSAGE_MODULE_TYPE: {
522
+ SafeMessage: {
523
+ type: string;
524
+ name: string;
525
+ }[];
526
+ };
527
+ type SafeMessageTypedDataDomain = {
528
+ chainId: number;
529
+ verifyingContract: string;
530
+ };
531
+ type SafeMessageTypedMessageValue = {
532
+ message: string;
533
+ };
534
+ declare function getSafeMessageEip712Data(accountAddress: string, chainId: bigint, message: string): {
535
+ domain: SafeMessageTypedDataDomain;
536
+ types: Record<string, {
537
+ name: string;
538
+ type: string;
539
+ }[]>;
540
+ messageValue: SafeMessageTypedMessageValue;
541
+ };
542
+ //#endregion
543
+ //#region src/account/Safe/SafeAccount.d.ts
544
+ declare class SafeAccount extends SmartAccount {
545
+ static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
546
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
547
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
548
+ static readonly DEFAULT_WEB_AUTHN_FCLP256_VERIFIER: string;
549
+ static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
550
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE: string;
551
+ static readonly DEFAULT_MULTISEND_CONTRACT_ADDRESS = "0x38869bf66a61cF6bDB996A6aE40D5853Fd43B526";
552
+ static readonly initializerFunctionSelector: string;
553
+ static readonly initializerFunctionInputAbi: string[];
554
+ static readonly DEFAULT_EXECUTOR_FUCNTION_SELECTOR = SafeModuleExecutorFunctionSelector.executeUserOpWithErrorString;
555
+ static readonly executorFunctionInputAbi: string[];
556
+ protected isInitWebAuthn: boolean;
557
+ protected x: bigint | null;
558
+ protected y: bigint | null;
559
+ readonly safeAccountSingleton: SafeAccountSingleton;
560
+ readonly entrypointAddress: string;
561
+ readonly safe4337ModuleAddress: string;
562
+ protected factoryAddress: string | null;
563
+ protected factoryData: string | null;
564
+ readonly onChainIdentifier: string | null;
565
+ constructor(accountAddress: string, safe4337ModuleAddress: string, entrypointAddress: string, overrides?: {
566
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
567
+ onChainIdentifier?: string;
568
+ safeAccountSingleton?: SafeAccountSingleton;
569
+ });
570
+ static createProxyAddress(initializerCallData: string, overrides?: {
571
+ c2Nonce?: bigint;
572
+ safeFactoryAddress?: string;
573
+ singletonInitHash?: string;
574
+ }): string;
575
+ static createAccountCallDataSingleTransaction(metaTransaction: MetaTransaction, overrides?: {
576
+ safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
577
+ }): string;
578
+ static createAccountCallDataBatchTransactions(metaTransactions: MetaTransaction[], overrides?: {
579
+ safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
580
+ multisendContractAddress?: string;
581
+ }): string;
582
+ static createAccountCallData(to: string, value: bigint, data: string, operation: Operation, overrides?: {
583
+ safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
584
+ }): string;
585
+ static decodeAccountCallData(callData: string): [MetaTransaction, SafeModuleExecutorFunctionSelector];
586
+ static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, overrides?: {
587
+ multisendContractAddress?: string;
588
+ }): string;
589
+ static formatEip712SignaturesToUseroperationSignature(signersAddresses: string[], signatures: string[], overrides?: {
590
+ validAfter?: bigint;
591
+ validUntil?: bigint;
592
+ isMultiChainSignature?: boolean;
593
+ merkleProof?: string;
594
+ }): string;
595
+ protected static getUserOperationEip712Hash(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV9, chainId: bigint, overrides?: {
596
+ validAfter?: bigint;
597
+ validUntil?: bigint;
598
+ entrypointAddress?: string;
599
+ safe4337ModuleAddress?: string;
600
+ }): string;
601
+ protected static getUserOperationEip712Data(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV9, chainId: bigint, overrides?: {
602
+ validAfter?: bigint;
603
+ validUntil?: bigint;
604
+ entrypointAddress?: string;
605
+ safe4337ModuleAddress?: string;
606
+ }): {
607
+ domain: SafeUserOperationTypedDataDomain;
608
+ types: Record<string, {
609
+ name: string;
610
+ type: string;
611
+ }[]>;
612
+ messageValue: SafeUserOperationV6TypedMessageValue | SafeUserOperationV6TypedMessageValue;
613
+ };
614
+ static getUserOperationEip712Data_V6(useroperation: UserOperationV6, chainId: bigint, overrides?: {
615
+ validAfter?: bigint;
616
+ validUntil?: bigint;
617
+ entrypointAddress?: string;
618
+ safe4337ModuleAddress?: string;
619
+ }): {
620
+ domain: SafeUserOperationTypedDataDomain;
621
+ types: Record<string, {
622
+ name: string;
623
+ type: string;
624
+ }[]>;
625
+ messageValue: SafeUserOperationV6TypedMessageValue;
626
+ };
627
+ static getUserOperationEip712Hash_V6(useroperation: UserOperationV6, chainId: bigint, overrides?: {
628
+ validAfter?: bigint;
629
+ validUntil?: bigint;
630
+ entrypointAddress?: string;
631
+ safe4337ModuleAddress?: string;
632
+ }): string;
633
+ private static baseGetUserOperationEip712DataV7V8V9;
634
+ static getUserOperationEip712Data_V7(useroperation: UserOperationV7, chainId: bigint, overrides?: {
635
+ validAfter?: bigint;
636
+ validUntil?: bigint;
637
+ entrypointAddress?: string;
638
+ safe4337ModuleAddress?: string;
639
+ }): {
640
+ domain: SafeUserOperationTypedDataDomain;
641
+ types: Record<string, {
642
+ name: string;
643
+ type: string;
644
+ }[]>;
645
+ messageValue: SafeUserOperationV6TypedMessageValue;
646
+ };
647
+ static getUserOperationEip712Hash_V7(useroperation: UserOperationV7, chainId: bigint, overrides?: {
648
+ validAfter?: bigint;
649
+ validUntil?: bigint;
650
+ entrypointAddress?: string;
651
+ safe4337ModuleAddress?: string;
652
+ }): string;
653
+ static getUserOperationEip712Data_V9(useroperation: UserOperationV9, chainId: bigint, overrides?: {
654
+ validAfter?: bigint;
655
+ validUntil?: bigint;
656
+ entrypointAddress?: string;
657
+ safe4337ModuleAddress?: string;
658
+ }): {
659
+ domain: SafeUserOperationTypedDataDomain;
660
+ types: Record<string, {
661
+ name: string;
662
+ type: string;
663
+ }[]>;
664
+ messageValue: SafeUserOperationV6TypedMessageValue;
665
+ };
666
+ static getUserOperationEip712Hash_V9(useroperation: UserOperationV9, chainId: bigint, overrides?: {
667
+ validAfter?: bigint;
668
+ validUntil?: bigint;
669
+ entrypointAddress?: string;
670
+ safe4337ModuleAddress?: string;
671
+ }): string;
672
+ static formatEip712SingleSignatureToUseroperationSignature(signature: string, overrides?: {
673
+ validAfter?: bigint;
674
+ validUntil?: bigint;
675
+ isMultiChainSignature?: boolean;
676
+ }): string;
677
+ sendUserOperation(userOperation: UserOperationV6 | UserOperationV7 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
678
+ protected static createAccountAddressAndFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string, string];
679
+ protected static createBaseInitializerCallData(owners: Signer[], threshold: number, safe4337ModuleAddress: string, safeModuleSetupAddress: string, multisendContractAddress?: string, webAuthnSharedSigner?: string, eip7212WebAuthnPrecompileVerifierForSharedSigner?: string, eip7212WebAuthnContractVerifierForSharedSigner?: string): string;
680
+ protected static createFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides | undefined, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string];
681
+ prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, overrides?: {
682
+ multisendContractAddress?: string;
683
+ }): string;
684
+ baseEstimateUserOperationGas(userOperation: UserOperationV6 | UserOperationV7, bundlerRpc: string, overrides?: {
685
+ stateOverrideSet?: StateOverrideSet;
686
+ dummySignerSignaturePairs?: SignerSignaturePair[];
687
+ expectedSigners?: Signer[];
688
+ webAuthnSharedSigner?: string;
689
+ webAuthnSignerFactory?: string;
690
+ webAuthnSignerSingleton?: string;
691
+ webAuthnSignerProxyCreationCode?: string;
692
+ eip7212WebAuthnPrecompileVerifier?: string;
693
+ eip7212WebAuthnContractVerifier?: string;
694
+ isMultiChainSignature?: boolean;
695
+ }): Promise<[bigint, bigint, bigint]>;
696
+ protected createBaseUserOperationAndFactoryAddressAndFactoryData(transactions: MetaTransaction[], isV06: boolean, providerRpc?: string, bundlerRpc?: string, overrides?: CreateBaseUserOperationOverrides): Promise<[BaseUserOperation, string | null, string | null]>;
697
+ static baseSignSingleUserOperation(useroperation: UserOperationV6 | UserOperationV7, privateKeys: string[], chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, overrides?: {
698
+ validAfter?: bigint;
699
+ validUntil?: bigint;
700
+ isMultiChainSignature?: boolean;
701
+ }): string;
702
+ static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
703
+ eip7212WebAuthnPrecompileVerifier?: string;
704
+ eip7212WebAuthnContractVerifier?: string;
705
+ webAuthnSignerFactory?: string;
706
+ webAuthnSignerSingleton?: string;
707
+ webAuthnSignerProxyCreationCode?: string;
708
+ }): string;
709
+ static formatSignaturesToUseroperationSignature(signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): string;
710
+ static getSignerLowerCaseAddress(signer: Signer, overrides?: WebAuthnSignatureOverrides): string;
711
+ static sortSignatures(signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): void;
712
+ static buildSignaturesFromSingerSignaturePairs(signerSignaturePairs: SignerSignaturePair[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): string;
713
+ static createWebAuthnSignature(signatureData: WebauthnSignatureData): string;
714
+ createSwapOwnerMetaTransactions(nodeRpcUrl: string, newOwner: Signer, oldOwner: Signer, overrides?: {
715
+ prevOwner?: string;
716
+ eip7212WebAuthnPrecompileVerifier?: string;
717
+ eip7212WebAuthnContractVerifier?: string;
718
+ webAuthnSignerFactory?: string;
719
+ webAuthnSignerSingleton?: string;
720
+ webAuthnSignerProxyCreationCode?: string;
721
+ }): Promise<MetaTransaction[]>;
722
+ createRemoveOwnerMetaTransaction(nodeRpcUrl: string, ownerToDelete: Signer, threshold: number, overrides?: {
723
+ prevOwner?: string;
724
+ eip7212WebAuthnPrecompileVerifier?: string;
725
+ eip7212WebAuthnContractVerifier?: string;
726
+ webAuthnSignerFactory?: string;
727
+ webAuthnSignerSingleton?: string;
728
+ webAuthnSignerProxyCreationCode?: string;
729
+ }): Promise<MetaTransaction>;
730
+ createAddOwnerWithThresholdMetaTransactions(newOwner: Signer, threshold: number, overrides?: {
731
+ nodeRpcUrl?: string;
732
+ eip7212WebAuthnPrecompileVerifier?: string;
733
+ eip7212WebAuthnContractVerifier?: string;
734
+ webAuthnSignerFactory?: string;
735
+ webAuthnSignerSingleton?: string;
736
+ webAuthnSignerProxyCreationCode?: string;
737
+ }): Promise<MetaTransaction[]>;
738
+ createStandardAddOwnerWithThresholdMetaTransaction(newOwner: string, threshold: number): MetaTransaction;
739
+ createStandardSwapOwnerMetaTransaction(newOwner: string, oldOwner: string, prevOwner: string): MetaTransaction;
740
+ createStandardRemoveOwnerMetaTransaction(ownerToDelete: string, threshold: number, prevOwner: string): MetaTransaction;
741
+ createChangeThresholdMetaTransaction(threshold: number): MetaTransaction;
742
+ createApproveHashMetaTransaction(hashToApprove: string): MetaTransaction;
743
+ static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
744
+ eip7212WebAuthnPrecompileVerifier?: string;
745
+ eip7212WebAuthnContractVerifier?: string;
746
+ webAuthnSignerFactory?: string;
747
+ }): MetaTransaction;
748
+ getOwners(nodeRpcUrl: string): Promise<string[]>;
749
+ getThreshold(nodeRpcUrl: string): Promise<number>;
750
+ getModules(nodeRpcUrl: string, overrides?: {
751
+ start?: string;
752
+ pageSize?: bigint;
753
+ }): Promise<[string[], string]>;
754
+ isModuleEnabled(nodeRpcUrl: string, moduleAddress: string): Promise<boolean>;
755
+ static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
756
+ static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
757
+ eip7212WebAuthnPrecompileVerifier?: string;
758
+ eip7212WebAuthnContractVerifier?: string;
759
+ webAuthnSignerSingleton?: string;
760
+ }): Promise<boolean>;
761
+ private static createSafeWebAuthnSignerProxyDeployedByteCode;
762
+ static createEnableModuleMetaTransaction(moduleAddress: string, accountAddress: string): MetaTransaction;
763
+ createDisableModuleMetaTransaction(nodeRpcUrl: string, moduleToDisableAddress: string, accountAddress: string, overrides?: {
764
+ prevModuleAddress?: string;
765
+ modulesStart?: string;
766
+ modulesPageSize?: bigint;
767
+ }): Promise<MetaTransaction>;
768
+ static createStandardDisableModuleMetaTransaction(moduleAddress: string, prevModuleAddress: string, accountAddress: string): MetaTransaction;
769
+ simulateCallDataWithTenderlyAndCreateShareLink(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, nodeRpcUrl: string | null | undefined, chainId: bigint, metaTransactions: MetaTransaction[], blockNumber?: number | null, overrides?: {
770
+ safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
771
+ multisendContractAddress?: string;
772
+ callData?: string;
773
+ createShareLink?: boolean;
774
+ isInit?: boolean;
775
+ }): Promise<{
776
+ simulation: TenderlySimulationResult;
777
+ callDataSimulationShareLink?: string;
778
+ accountDeploymentSimulationShareLink?: string;
779
+ }>;
780
+ getSafeMessageEip712Data(chainId: bigint, message: string): {
781
+ domain: SafeMessageTypedDataDomain;
782
+ types: Record<string, {
783
+ name: string;
784
+ type: string;
785
+ }[]>;
786
+ messageValue: SafeMessageTypedMessageValue;
787
+ };
788
+ }
789
+ //#endregion
790
+ //#region src/account/Safe/SafeMultiChainSigAccount.d.ts
791
+ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
792
+ static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
793
+ static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x22939E839e3c0F479B713eAF95e0df128554AEAd";
794
+ static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
795
+ static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
796
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
797
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
798
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x610100346100ad57601f6101b538819003918201601f19168301916001600160401b038311848410176100b2578084926080946040528339810103126100ad578051906001600160a01b03821682036100ad5760208101516040820151606090920151926001600160b01b03841684036100ad5760805260a05260c05260e05260405160ec90816100c98239608051816082015260a05181604d015260c051816027015260e0518160010152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe7f000000000000000000000000000000000000000000000000000000000000000060b63601527f000000000000000000000000000000000000000000000000000000000000000060a03601527f000000000000000000000000000000000000000000000000000000000000000036608001523660006080376000806056360160807f00000000000000000000000000000000000000000000000000000000000000005af43d600060803e60b1573d6080fd5b3d6080f3fea26469706673582212201660515548d15702d720bbc046b457ca85e941a4559ab9f9518488e4c82e5ee964736f6c634300081a0033";
799
+ static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
800
+ static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
801
+ constructor(accountAddress: string, overrides?: {
802
+ safe4337ModuleAddress?: string;
803
+ entrypointAddress?: string;
804
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
805
+ onChainIdentifier?: string;
806
+ safeAccountSingleton?: SafeAccountSingleton;
807
+ });
808
+ static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
809
+ static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeMultiChainSigAccountV1;
810
+ static getUserOperationEip712Hash(useroperation: UserOperationV9, chainId: bigint, overrides?: {
811
+ validAfter?: bigint;
812
+ validUntil?: bigint;
813
+ entrypointAddress?: string;
814
+ safe4337ModuleAddress?: string;
815
+ }): string;
816
+ static getUserOperationEip712Data(useroperation: UserOperationV9, chainId: bigint, overrides?: {
817
+ validAfter?: bigint;
818
+ validUntil?: bigint;
819
+ entrypointAddress?: string;
820
+ safe4337ModuleAddress?: string;
821
+ }): {
822
+ domain: SafeUserOperationTypedDataDomain;
823
+ types: Record<string, {
824
+ name: string;
825
+ type: string;
826
+ }[]>;
827
+ messageValue: SafeUserOperationV9TypedMessageValue;
828
+ };
829
+ static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
830
+ safe4337ModuleAddress?: string;
831
+ safeModuleSetupAddress?: string;
832
+ multisendContractAddress?: string;
833
+ webAuthnSharedSigner?: string;
834
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
835
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
836
+ }): string;
837
+ static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
838
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV9Overrides): Promise<UserOperationV9>;
839
+ signUserOperation(userOperation: UserOperationV9, privateKeys: string[], chainId: bigint, overrides?: {
840
+ validAfter?: bigint;
841
+ validUntil?: bigint;
842
+ }): string;
843
+ signUserOperations(userOperationsToSign: UserOperationToSign[], privateKeys: string[]): string[];
844
+ static getMultiChainSingleSignatureUserOperationsEip712Hash(userOperationsToSignsToSign: UserOperationToSign[], overrides?: {
845
+ safe4337ModuleAddress?: string;
846
+ }): string;
847
+ static getMultiChainSingleSignatureUserOperationsEip712Data(userOperationsToSign: UserOperationToSign[], overrides?: {
848
+ safe4337ModuleAddress?: string;
849
+ entrypointAddress?: string;
850
+ }): {
851
+ domain: MultiChainSignatureMerkleTreeRootTypedDataDomain;
852
+ types: Record<string, {
853
+ name: string;
854
+ type: string;
855
+ }[]>;
856
+ messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
857
+ };
858
+ static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSign[], signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): string[];
859
+ static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
860
+ eip7212WebAuthnPrecompileVerifier?: string;
861
+ eip7212WebAuthnContractVerifier?: string;
862
+ webAuthnSignerFactory?: string;
863
+ webAuthnSignerSingleton?: string;
864
+ webAuthnSignerProxyCreationCode?: string;
865
+ }): string;
866
+ static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
867
+ eip7212WebAuthnPrecompileVerifier?: string;
868
+ eip7212WebAuthnContractVerifier?: string;
869
+ webAuthnSignerFactory?: string;
870
+ }): MetaTransaction;
871
+ static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
872
+ static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
873
+ eip7212WebAuthnPrecompileVerifier?: string;
874
+ eip7212WebAuthnContractVerifier?: string;
875
+ webAuthnSignerSingleton?: string;
876
+ }): Promise<boolean>;
877
+ }
878
+ //#endregion
879
+ //#region src/paymaster/types.d.ts
880
+ type AnyUserOperation = UserOperationV9 | UserOperationV8 | UserOperationV7 | UserOperationV6;
881
+ type SameUserOp<T extends AnyUserOperation> = T extends UserOperationV9 ? UserOperationV9 : T extends UserOperationV8 ? UserOperationV8 : T extends UserOperationV7 ? UserOperationV7 : UserOperationV6;
882
+ interface CandidePaymasterContext {
883
+ token?: string;
884
+ sponsorshipPolicyId?: string;
885
+ signingPhase?: 'commit' | 'finalize';
886
+ }
887
+ interface SmartAccountWithEntrypoint {
888
+ readonly entrypointAddress: string;
889
+ }
890
+ interface PrependTokenPaymasterApproveAccount extends SmartAccountWithEntrypoint {
891
+ prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
892
+ }
893
+ interface BasePaymasterUserOperationOverrides {
894
+ entrypoint?: string;
895
+ resetApproval?: boolean;
896
+ }
897
+ interface GasPaymasterUserOperationOverrides extends BasePaymasterUserOperationOverrides {
898
+ callGasLimit?: bigint;
899
+ verificationGasLimit?: bigint;
900
+ preVerificationGas?: bigint;
901
+ callGasLimitPercentageMultiplier?: number;
902
+ verificationGasLimitPercentageMultiplier?: number;
903
+ preVerificationGasPercentageMultiplier?: number;
904
+ state_override_set?: StateOverrideSet;
905
+ context?: CandidePaymasterContext;
906
+ }
907
+ //#endregion
908
+ //#region src/account/Calibur/types.d.ts
909
+ declare enum CaliburKeyType {
910
+ P256 = 0,
911
+ WebAuthnP256 = 1,
912
+ Secp256k1 = 2
913
+ }
914
+ interface CaliburKey {
915
+ keyType: CaliburKeyType;
916
+ publicKey: string;
917
+ }
918
+ interface CaliburKeySettings {
919
+ hook?: string;
920
+ expiration?: number;
921
+ isAdmin?: boolean;
922
+ }
923
+ interface CaliburKeySettingsResult {
924
+ hook: string;
925
+ expiration: number;
926
+ isAdmin: boolean;
927
+ }
928
+ interface WebAuthnSignatureData {
929
+ authenticatorData: string;
930
+ clientDataJSON: string;
931
+ challengeIndex: bigint;
932
+ typeIndex: bigint;
933
+ r: bigint;
934
+ s: bigint;
935
+ }
936
+ interface CaliburCreateUserOperationOverrides {
937
+ nonce?: bigint;
938
+ callData?: string;
939
+ callGasLimit?: bigint;
940
+ verificationGasLimit?: bigint;
941
+ preVerificationGas?: bigint;
942
+ maxFeePerGas?: bigint;
943
+ maxPriorityFeePerGas?: bigint;
944
+ callGasLimitPercentageMultiplier?: number;
945
+ verificationGasLimitPercentageMultiplier?: number;
946
+ preVerificationGasPercentageMultiplier?: number;
947
+ maxFeePerGasPercentageMultiplier?: number;
948
+ maxPriorityFeePerGasPercentageMultiplier?: number;
949
+ state_override_set?: StateOverrideSet;
950
+ dummySignature?: string;
951
+ gasLevel?: GasOption;
952
+ polygonGasStation?: PolygonChain;
953
+ revertOnFailure?: boolean;
954
+ paymasterFields?: ParallelPaymasterInitValues;
955
+ eip7702Auth?: {
956
+ chainId: bigint;
957
+ address?: string;
958
+ nonce?: bigint;
959
+ yParity?: string;
960
+ r?: string;
961
+ s?: string;
962
+ };
963
+ }
964
+ interface CaliburSignatureOverrides {
965
+ hookData?: string;
966
+ keyHash?: string;
967
+ }
968
+ type SignerFunction = (hash: string) => Promise<string>;
969
+ //#endregion
970
+ //#region src/account/Calibur/Calibur7702Account.d.ts
971
+ declare class Calibur7702Account extends SmartAccount implements PrependTokenPaymasterApproveAccount {
972
+ static readonly executorFunctionSelector = "0x8dd7712f";
973
+ static readonly dummySignature: string;
974
+ static createDummyWebAuthnSignature(keyHash: string): string;
975
+ static wrapSignature(keyHash: string, rawSignature: string, hookData?: string): string;
976
+ readonly entrypointAddress: string;
977
+ readonly delegateeAddress: string;
978
+ constructor(accountAddress: string, overrides?: {
979
+ entrypointAddress?: string;
980
+ delegateeAddress?: string;
981
+ });
982
+ getUserOperationHash(userOperation: UserOperationV8, chainId: bigint): string;
983
+ static createAccountCallData(transactions: SimpleMetaTransaction[], revertOnFailure?: boolean): string;
984
+ createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CaliburCreateUserOperationOverrides): Promise<UserOperationV8>;
985
+ signUserOperation(userOperation: UserOperationV8, privateKey: string, chainId: bigint, overrides?: CaliburSignatureOverrides): string;
986
+ signUserOperationWithSigner(userOperation: UserOperationV8, signer: SignerFunction, chainId: bigint, overrides?: CaliburSignatureOverrides): Promise<string>;
987
+ formatWebAuthnSignature(keyHash: string, webAuthnAuth: WebAuthnSignatureData, overrides?: CaliburSignatureOverrides): string;
988
+ sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
989
+ static createSecp256k1Key(address: string): CaliburKey;
990
+ static createWebAuthnP256Key(x: bigint, y: bigint): CaliburKey;
991
+ static createP256Key(x: bigint, y: bigint): CaliburKey;
992
+ static getKeyHash(key: CaliburKey): string;
993
+ static packKeySettings(settings: CaliburKeySettings): bigint;
994
+ static unpackKeySettings(packed: bigint): CaliburKeySettingsResult;
995
+ static createRegisterKeyMetaTransactions(key: CaliburKey, settings?: CaliburKeySettings): [SimpleMetaTransaction, SimpleMetaTransaction];
996
+ static createRevokeKeyMetaTransaction(keyHash: string): SimpleMetaTransaction;
997
+ createRevokeAllKeysMetaTransactions(providerRpc: string): Promise<SimpleMetaTransaction[]>;
998
+ createRevokeDelegationRawTransaction(chainId: bigint, eoaPrivateKey: string, providerRpc: string, overrides?: {
999
+ nonce?: bigint;
1000
+ authorizationNonce?: bigint;
1001
+ maxFeePerGas?: bigint;
1002
+ maxPriorityFeePerGas?: bigint;
1003
+ gasLimit?: bigint;
1004
+ }): Promise<string>;
1005
+ static createUpdateKeySettingsMetaTransaction(keyHash: string, settings: CaliburKeySettings): SimpleMetaTransaction;
1006
+ static createInvalidateNonceMetaTransaction(newNonce: bigint): SimpleMetaTransaction;
1007
+ isDelegatedToThisAccount(providerRpc: string): Promise<boolean>;
1008
+ getNonce(providerRpc: string, sequenceKey?: number): Promise<bigint>;
1009
+ isKeyRegistered(providerRpc: string, keyHash: string): Promise<boolean>;
1010
+ getKeySettings(providerRpc: string, keyHash: string): Promise<CaliburKeySettingsResult>;
1011
+ getKey(providerRpc: string, keyHash: string): Promise<CaliburKey>;
1012
+ getKeys(providerRpc: string, overrides?: {
1013
+ blockNumber?: bigint;
1014
+ }): Promise<CaliburKey[]>;
1015
+ prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
1016
+ static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
1017
+ }
1018
+ //#endregion
1019
+ //#region src/account/Safe/modules/SafeModule.d.ts
1020
+ declare abstract class SafeModule {
1021
+ readonly moduleAddress: string;
1022
+ protected readonly abiCoder: AbiCoder;
1023
+ constructor(moduleAddress: string);
1024
+ createEnableModuleMetaTransaction(accountAddress: string): MetaTransaction;
1025
+ checkForEmptyResultAndRevert(result: string, requestName: string): void;
1026
+ }
1027
+ //#endregion
1028
+ //#region src/account/Safe/modules/SocialRecoveryModule.d.ts
1029
+ declare enum SocialRecoveryModuleGracePeriodSelector {
1030
+ After3Minutes = "0x949d01d424bE050D09C16025dd007CB59b3A8c66",
1031
+ After3Days = "0x38275826E1933303E508433dD5f289315Da2541c",
1032
+ After7Days = "0x088f6cfD8BB1dDb1BB069CCb3fc1A98927D233f2",
1033
+ After14Days = "0x9BacD92F4687Db306D7ded5d4513a51EA05df25b"
1034
+ }
1035
+ declare class SocialRecoveryModule extends SafeModule {
1036
+ static readonly DEFAULT_SOCIAL_RECOVERY_ADDRESS = SocialRecoveryModuleGracePeriodSelector.After3Days;
1037
+ constructor(moduleAddress?: string);
1038
+ createConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, execute: boolean): MetaTransaction;
1039
+ createMultiConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, signaturePairList: RecoverySignaturePair[], execute: boolean): MetaTransaction;
1040
+ createExecuteRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number): MetaTransaction;
1041
+ createFinalizeRecoveryMetaTransaction(accountAddress: string): MetaTransaction;
1042
+ createCancelRecoveryMetaTransaction(): MetaTransaction;
1043
+ createAddGuardianWithThresholdMetaTransaction(guardianAddress: string, threshold: bigint): MetaTransaction;
1044
+ createRevokeGuardianWithThresholdMetaTransaction(nodeRpcUrl: string, accountAddress: string, guardianAddress: string, threshold: bigint, overrides?: {
1045
+ prevGuardianAddress?: string;
1046
+ }): Promise<MetaTransaction>;
1047
+ createStandardRevokeGuardianWithThresholdMetaTransaction(prevGuardianAddress: string, guardianAddress: string, threshold: bigint): MetaTransaction;
1048
+ createChangeThresholdMetaTransaction(threshold: bigint): MetaTransaction;
1049
+ getRecoveryHash(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number, nonce: bigint): Promise<string>;
1050
+ getRecoveryRequest(nodeRpcUrl: string, accountAddress: string): Promise<RecoveryRequest>;
1051
+ getRecoveryApprovals(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number): Promise<bigint>;
1052
+ hasGuardianApproved(nodeRpcUrl: string, accountAddress: string, guardian: string, newOwners: string[], newThreshold: number): Promise<boolean>;
1053
+ isGuardian(nodeRpcUrl: string, accountAddress: string, guardian: string): Promise<boolean>;
1054
+ guardiansCount(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
1055
+ threshold(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
1056
+ getGuardians(nodeRpcUrl: string, accountAddress: string): Promise<string[]>;
1057
+ nonce(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
1058
+ getRecoveryRequestEip712Data(rpcNode: string, chainId: bigint, accountAddress: string, newOwners: string[], newThreshold: bigint, overrides?: {
1059
+ recoveryNonce?: bigint;
1060
+ }): Promise<{
1061
+ domain: RecoveryRequestTypedDataDomain;
1062
+ types: Record<string, {
1063
+ name: string;
1064
+ type: string;
1065
+ }[]>;
1066
+ messageValue: RecoveryRequestTypedMessageValue;
1067
+ }>;
1068
+ }
1069
+ type RecoveryRequest = {
1070
+ guardiansApprovalCount: bigint;
1071
+ newThreshold: bigint;
1072
+ executeAfter: bigint;
1073
+ newOwners: string[];
1074
+ };
1075
+ type RecoverySignaturePair = {
1076
+ signer: string;
1077
+ signature: string;
1078
+ };
1079
+ declare const EXECUTE_RECOVERY_PRIMARY_TYPE = "ExecuteRecovery";
1080
+ type RecoveryRequestTypedDataDomain = {
1081
+ name: string;
1082
+ version: string;
1083
+ chainId: number;
1084
+ verifyingContract: string;
1085
+ };
1086
+ type RecoveryRequestTypedMessageValue = {
1087
+ wallet: string;
1088
+ newOwners: string[];
1089
+ newThreshold: bigint;
1090
+ nonce: bigint;
1091
+ };
1092
+ declare const EIP712_RECOVERY_MODULE_TYPE: {
1093
+ ExecuteRecovery: {
1094
+ type: string;
1095
+ name: string;
1096
+ }[];
1097
+ };
1098
+ //#endregion
1099
+ //#region src/account/Safe/modules/AllowanceModule.d.ts
1100
+ declare const ALLOWANCE_MODULE_V0_1_0_ADDRESS = "0xAA46724893dedD72658219405185Fb0Fc91e091C";
1101
+ declare class AllowanceModule extends SafeModule {
1102
+ static readonly DEFAULT_ALLOWANCE_MODULE_ADDRESS = "0x691f59471Bfd2B7d639DCF74671a2d648ED1E331";
1103
+ constructor(moduleAddress?: string);
1104
+ createOneTimeAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, startAfterInMinutes: bigint): MetaTransaction;
1105
+ createRecurringAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, recurringAllowanceValidityPeriodInMinutes: bigint, startAfterInMinutes: bigint): MetaTransaction;
1106
+ createBaseSetAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, resetTimeMin: bigint, resetBaseMin: bigint): MetaTransaction;
1107
+ createRenewAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
1108
+ createDeleteAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
1109
+ createAllowanceTransferMetaTransaction(allowanceSourceSafeAddress: string, token: string, to: string, amount: bigint, delegate: string, overrides?: {
1110
+ delegateSignature?: string;
1111
+ paymentToken?: string;
1112
+ paymentAmount?: bigint;
1113
+ }): MetaTransaction;
1114
+ createBaseExecuteAllowanceTransferMetaTransaction(safeAddress: string, token: string, to: string, amount: bigint, paymentToken: string, payment: bigint, delegate: string, delegateSignature: string): MetaTransaction;
1115
+ createAddDelegateMetaTransaction(delegate: string): MetaTransaction;
1116
+ createRemoveDelegateMetaTransaction(delegate: string, removeAllowances: boolean): MetaTransaction;
1117
+ getTokens(nodeRpcUrl: string, safeAddress: string, delegate: string): Promise<string[]>;
1118
+ getTokensAllowance(nodeRpcUrl: string, safeAddress: string, delegate: string, token: string): Promise<Allowance>;
1119
+ getDelegates(nodeRpcUrl: string, safeAddress: string, overrides?: {
1120
+ start?: bigint;
1121
+ maxNumberOfResults?: bigint;
1122
+ }): Promise<string[]>;
1123
+ baseGetDelegates(nodeRpcUrl: string, safeAddress: string, start: bigint, pageSize: bigint): Promise<{
1124
+ results: string[];
1125
+ next: bigint;
1126
+ }>;
1127
+ }
1128
+ type Allowance = {
1129
+ amount: bigint;
1130
+ spent: bigint;
1131
+ resetTimeMin: bigint;
1132
+ lastResetMin: bigint;
1133
+ nonce: bigint;
1134
+ };
1135
+ //#endregion
1136
+ //#region src/account/Safe/SafeAccountV0_2_0.d.ts
1137
+ declare class SafeAccountV0_2_0 extends SafeAccount {
1138
+ static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
1139
+ static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
1140
+ static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
1141
+ constructor(accountAddress: string, overrides?: {
1142
+ safe4337ModuleAddress?: string;
1143
+ entrypointAddress?: string;
1144
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
1145
+ onChainIdentifier?: string;
1146
+ });
1147
+ static createAccountAddress(owners: Signer[], overrides?: {
1148
+ threshold?: number;
1149
+ c2Nonce?: bigint;
1150
+ safe4337ModuleAddress?: string;
1151
+ safeModuleSetupAddress?: string;
1152
+ safeAccountSingleton?: SafeAccountSingleton;
1153
+ safeAccountFactoryAddress?: string;
1154
+ multisendContractAddress?: string;
1155
+ webAuthnSharedSigner?: string;
1156
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
1157
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
1158
+ }): string;
1159
+ static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
1160
+ static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
1161
+ validAfter?: bigint;
1162
+ validUntil?: bigint;
1163
+ entrypointAddress?: string;
1164
+ safe4337ModuleAddress?: string;
1165
+ }): string;
1166
+ static getUserOperationEip712Data(useroperation: UserOperationV6, chainId: bigint, overrides?: {
1167
+ validAfter?: bigint;
1168
+ validUntil?: bigint;
1169
+ entrypointAddress?: string;
1170
+ safe4337ModuleAddress?: string;
1171
+ }): {
1172
+ domain: SafeUserOperationTypedDataDomain;
1173
+ types: Record<string, {
1174
+ name: string;
1175
+ type: string;
1176
+ }[]>;
1177
+ messageValue: SafeUserOperationV6TypedMessageValue;
1178
+ };
1179
+ static createAccountAddressAndInitCode(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
1180
+ static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
1181
+ safe4337ModuleAddress?: string;
1182
+ safeModuleSetupAddress?: string;
1183
+ multisendContractAddress?: string;
1184
+ webAuthnSharedSigner?: string;
1185
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
1186
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
1187
+ }): string;
1188
+ static createInitCode(owners: Signer[], overrides?: InitCodeOverrides): string;
1189
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV6Overrides): Promise<UserOperationV6>;
1190
+ createMigrateToSafeAccountV0_3_0MetaTransactions(nodeRpcUrl: string, overrides?: {
1191
+ safeV06ModuleAddress?: string;
1192
+ safeV07ModuleAddress?: string;
1193
+ pageSize?: bigint;
1194
+ modulesStart?: string;
1195
+ }): Promise<MetaTransaction[]>;
1196
+ estimateUserOperationGas(userOperation: UserOperationV6, bundlerRpc: string, overrides?: {
1197
+ stateOverrideSet?: StateOverrideSet;
1198
+ dummySignerSignaturePairs?: SignerSignaturePair[];
1199
+ expectedSigners?: Signer[];
1200
+ webAuthnSharedSigner?: string;
1201
+ webAuthnSignerFactory?: string;
1202
+ webAuthnSignerSingleton?: string;
1203
+ webAuthnSignerProxyCreationCode?: string;
1204
+ eip7212WebAuthnPrecompileVerifier?: string;
1205
+ eip7212WebAuthnContractVerifier?: string;
1206
+ }): Promise<[bigint, bigint, bigint]>;
1207
+ signUserOperation(useroperation: UserOperationV6, privateKeys: string[], chainId: bigint, overrides?: {
1208
+ validAfter?: bigint;
1209
+ validUntil?: bigint;
1210
+ }): string;
1211
+ }
1212
+ //#endregion
1213
+ //#region src/account/Safe/SafeAccountV0_3_0.d.ts
1214
+ declare class SafeAccountV0_3_0 extends SafeAccount {
1215
+ static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
1216
+ static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226";
1217
+ static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
1218
+ constructor(accountAddress: string, overrides?: {
1219
+ safe4337ModuleAddress?: string;
1220
+ entrypointAddress?: string;
1221
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
1222
+ onChainIdentifier?: string;
1223
+ safeAccountSingleton?: SafeAccountSingleton;
1224
+ });
1225
+ static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
1226
+ static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
1227
+ static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: {
1228
+ validAfter?: bigint;
1229
+ validUntil?: bigint;
1230
+ entrypointAddress?: string;
1231
+ safe4337ModuleAddress?: string;
1232
+ }): string;
1233
+ static getUserOperationEip712Data(useroperation: UserOperationV7, chainId: bigint, overrides?: {
1234
+ validAfter?: bigint;
1235
+ validUntil?: bigint;
1236
+ entrypointAddress?: string;
1237
+ safe4337ModuleAddress?: string;
1238
+ }): {
1239
+ domain: SafeUserOperationTypedDataDomain;
1240
+ types: Record<string, {
1241
+ name: string;
1242
+ type: string;
1243
+ }[]>;
1244
+ messageValue: SafeUserOperationV7TypedMessageValue;
1245
+ };
1246
+ static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
1247
+ safe4337ModuleAddress?: string;
1248
+ safeModuleSetupAddress?: string;
1249
+ multisendContractAddress?: string;
1250
+ webAuthnSharedSigner?: string;
1251
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
1252
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
1253
+ }): string;
1254
+ static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
1255
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
1256
+ estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
1257
+ stateOverrideSet?: StateOverrideSet;
1258
+ dummySignerSignaturePairs?: SignerSignaturePair[];
1259
+ expectedSigners?: Signer[];
1260
+ webAuthnSharedSigner?: string;
1261
+ webAuthnSignerFactory?: string;
1262
+ webAuthnSignerSingleton?: string;
1263
+ webAuthnSignerProxyCreationCode?: string;
1264
+ eip7212WebAuthnPrecompileVerifier?: string;
1265
+ eip7212WebAuthnContractVerifier?: string;
1266
+ }): Promise<[bigint, bigint, bigint]>;
1267
+ signUserOperation(useroperation: UserOperationV7, privateKeys: string[], chainId: bigint, overrides?: {
1268
+ validAfter?: bigint;
1269
+ validUntil?: bigint;
1270
+ }): string;
1271
+ }
1272
+ //#endregion
1273
+ //#region src/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts
1274
+ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
1275
+ static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
1276
+ static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
1277
+ constructor(accountAddress: string, overrides?: {
1278
+ safe4337ModuleAddress?: string;
1279
+ entrypointAddress?: string;
1280
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
1281
+ onChainIdentifier?: string;
1282
+ safeAccountSingleton?: SafeAccountSingleton;
1283
+ });
1284
+ static createProxyAddress(initializerCallData: string, overrides?: {
1285
+ c2Nonce?: bigint;
1286
+ safeFactoryAddress?: string;
1287
+ singletonInitHash?: string;
1288
+ }): string;
1289
+ static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
1290
+ static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
1291
+ static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
1292
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
1293
+ estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
1294
+ stateOverrideSet?: StateOverrideSet;
1295
+ dummySignerSignaturePairs?: SignerSignaturePair[];
1296
+ expectedSigners?: Signer[];
1297
+ webAuthnSharedSigner?: string;
1298
+ webAuthnSignerFactory?: string;
1299
+ webAuthnSignerSingleton?: string;
1300
+ webAuthnSignerProxyCreationCode?: string;
1301
+ eip7212WebAuthnPrecompileVerifier?: string;
1302
+ eip7212WebAuthnContractVerifier?: string;
1303
+ }): Promise<[bigint, bigint, bigint]>;
1304
+ static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
1305
+ eip7212WebAuthnPrecompileVerifier?: string;
1306
+ eip7212WebAuthnContractVerifier?: string;
1307
+ webAuthnSignerFactory?: string;
1308
+ webAuthnSignerSingleton?: string;
1309
+ webAuthnSignerProxyCreationCode?: string;
1310
+ }): string;
1311
+ static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
1312
+ eip7212WebAuthnPrecompileVerifier?: string;
1313
+ eip7212WebAuthnContractVerifier?: string;
1314
+ webAuthnSignerFactory?: string;
1315
+ }): MetaTransaction;
1316
+ static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
1317
+ static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
1318
+ eip7212WebAuthnPrecompileVerifier?: string;
1319
+ eip7212WebAuthnContractVerifier?: string;
1320
+ webAuthnSignerSingleton?: string;
1321
+ }): Promise<boolean>;
1322
+ }
1323
+ //#endregion
1324
+ //#region src/factory/SmartAccountFactory.d.ts
1325
+ declare class SmartAccountFactory {
1326
+ readonly address: string;
1327
+ readonly generatorFunctionSelector: string;
1328
+ readonly generatorFunctionInputAbi: string[];
1329
+ constructor(address: string, generatorFunctionSelector: string, generatorFunctionInputAbi: string[]);
1330
+ getFactoryGeneratorFunctionCallData(generatorFunctionInputParameters: AbiInputValue[]): string;
1331
+ }
1332
+ //#endregion
1333
+ //#region src/factory/SafeAccountFactory.d.ts
1334
+ declare class SafeAccountFactory extends SmartAccountFactory {
1335
+ static readonly DEFAULT_FACTORY_ADDRESS = "0x4e1DCf7AD4e460CfD30791CCC4F9c8a4f820ec67";
1336
+ constructor(address?: string);
1337
+ }
1338
+ //#endregion
1339
+ //#region src/paymaster/Paymaster.d.ts
1340
+ declare abstract class Paymaster {}
1341
+ //#endregion
1342
+ //#region src/paymaster/CandidePaymaster.d.ts
1343
+ declare class CandidePaymaster extends Paymaster {
1344
+ readonly rpcUrl: string;
1345
+ private entrypointData;
1346
+ private initPromises;
1347
+ private chainId;
1348
+ private chainIdPromise;
1349
+ constructor(rpcUrl: string);
1350
+ private static extractChainIdFromUrl;
1351
+ private getChainId;
1352
+ private fetchChainId;
1353
+ private resolveEntrypoint;
1354
+ private getEntrypointData;
1355
+ private static mapTokens;
1356
+ private static mapTokensWithExchangeRate;
1357
+ private static normalizePaymasterMetadata;
1358
+ private ensureInitialized;
1359
+ private doInitialize;
1360
+ private fetchAndTransformTokenData;
1361
+ private fetchSupportedTokensRpc;
1362
+ getSupportedEntrypoints(): Promise<string[]>;
1363
+ getPaymasterMetaData(entrypoint: string): Promise<PaymasterMetadata | null>;
1364
+ isSupportedERC20Token(erc20TokenAddress: string, entrypoint?: string): Promise<boolean>;
1365
+ getSupportedERC20TokenData(erc20TokenAddress: string, entrypoint?: string): Promise<ERC20Token | null>;
1366
+ private setDummyPaymasterFields;
1367
+ private estimateAndApplyGasLimits;
1368
+ private applyPaymasterResult;
1369
+ private createPaymasterUserOperation;
1370
+ createSponsorPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, sponsorshipPolicyId?: string, overrides?: GasPaymasterUserOperationOverrides): Promise<[SameUserOp<T>, SponsorMetadata | undefined]>;
1371
+ createTokenPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: PrependTokenPaymasterApproveAccount, userOperation: T, tokenAddress: string, bundlerRpc: string, overrides?: GasPaymasterUserOperationOverrides): Promise<SameUserOp<T>>;
1372
+ calculateUserOperationErc20TokenMaxGasCost(smartAccount: SmartAccountWithEntrypoint, userOperation: AnyUserOperation, erc20TokenAddress: string, overrides?: {
1373
+ entrypoint?: string | null;
1374
+ }): Promise<bigint>;
1375
+ fetchTokenPaymasterExchangeRate(erc20TokenAddress: string, entrypoint?: string): Promise<bigint>;
1376
+ fetchSupportedERC20TokensAndPaymasterMetadata(entrypoint?: string): Promise<SupportedERC20TokensAndMetadataWithExchangeRate>;
1377
+ }
1378
+ //#endregion
1379
+ //#region src/paymaster/AllowAllPaymaster.d.ts
1380
+ declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
1381
+ readonly address: string;
1382
+ constructor(address?: string);
1383
+ getPaymasterFieldsInitValues(chainId: bigint): Promise<ParallelPaymasterInitValues>;
1384
+ getApprovedPaymasterData(userOperation: UserOperationV9): Promise<string>;
1385
+ }
1386
+ //#endregion
1387
+ //#region src/paymaster/WorldIdPermissionlessPaymaster.d.ts
1388
+ declare class WorldIdPermissionlessPaymaster extends Paymaster {
1389
+ readonly address: string;
1390
+ constructor(address: string);
1391
+ createPaymasterUserOperation(userOperation: UserOperationV8, bundlerRpc: string, nullifierHash: bigint, root: bigint, proof: string, overrides?: {
1392
+ entrypoint?: string;
1393
+ state_override_set?: StateOverrideSet;
1394
+ }): Promise<UserOperationV8>;
1395
+ createPaymasterUserOperation(userOperation: UserOperationV7, bundlerRpc: string, nullifierHash: bigint, root: bigint, proof: string, overrides?: {
1396
+ entrypoint?: string;
1397
+ state_override_set?: StateOverrideSet;
1398
+ }): Promise<UserOperationV7>;
1399
+ }
1400
+ declare function createWorldIdSignal(accountAddress: string, accountNonce: bigint, chainId: bigint): string;
1401
+ //#endregion
1402
+ //#region src/utils.d.ts
1403
+ declare function createUserOperationHash(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, entrypointAddress: string, chainId: bigint): string;
1404
+ declare function createCallData(functionSelector: string, functionInputAbi: string[], functionInputParameters: AbiInputValue[]): string;
1405
+ declare function sendJsonRpcRequest(rpcUrl: string, method: string, params: JsonRpcParam, headers?: Record<string, string>, paramsKeyName?: string): Promise<JsonRpcResult>;
1406
+ declare function getFunctionSelector(functionSignature: string): string;
1407
+ declare function fetchAccountNonce(rpcUrl: string, entryPoint: string, account: string, key?: number): Promise<bigint>;
1408
+ declare function fetchGasPrice(provideRpc: string, gasLevel?: GasOption): Promise<[bigint, bigint]>;
1409
+ declare function calculateUserOperationMaxGasCost(useroperation: UserOperationV6 | UserOperationV7): bigint;
1410
+ type DepositInfo = {
1411
+ deposit: bigint;
1412
+ staked: boolean;
1413
+ stake: bigint;
1414
+ unstakeDelaySec: bigint;
1415
+ withdrawTime: bigint;
1416
+ };
1417
+ declare function getBalanceOf(nodeRpcUrl: string, address: string, entrypointAddress: string): Promise<bigint>;
1418
+ declare function getDepositInfo(nodeRpcUrl: string, address: string, entrypointAddress: string): Promise<DepositInfo>;
1419
+ declare function getDelegatedAddress(accountAddress: string, providerRpc: string): Promise<string | null>;
1420
+ //#endregion
1421
+ //#region src/utilsTenderly.d.ts
1422
+ type OverrideType = Record<string, Record<string, string | Record<string, string>>>;
1423
+ declare function shareTenderlySimulationAndCreateLink(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, tenderlySimulationId: string): Promise<void>;
1424
+ declare function simulateUserOperationWithTenderlyAndCreateShareLink(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, userOperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<{
1425
+ simulation: SingleTransactionTenderlySimulationResult;
1426
+ simulationShareLink: string;
1427
+ }>;
1428
+ declare function simulateUserOperationWithTenderly(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, userOperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<SingleTransactionTenderlySimulationResult>;
1429
+ interface BaseUserOperationToSimulate {
1430
+ sender: string;
1431
+ callData: string;
1432
+ nonce: any;
1433
+ callGasLimit: any;
1434
+ verificationGasLimit: any;
1435
+ preVerificationGas: any;
1436
+ maxFeePerGas: any;
1437
+ maxPriorityFeePerGas: any;
1438
+ signature: any;
1439
+ }
1440
+ interface UserOperationV6ToSimulate extends BaseUserOperationToSimulate {
1441
+ initCode: string | null;
1442
+ paymasterAndData: any;
1443
+ }
1444
+ interface UserOperationV7ToSimulate extends BaseUserOperationToSimulate {
1445
+ factory: string | null;
1446
+ factoryData: string | null;
1447
+ paymaster: any;
1448
+ paymasterVerificationGasLimit: any;
1449
+ paymasterPostOpGasLimit: any;
1450
+ paymasterData: any;
1451
+ }
1452
+ interface UserOperationV8ToSimulate extends BaseUserOperationToSimulate {
1453
+ factory: string | null;
1454
+ factoryData: string | null;
1455
+ paymaster: any;
1456
+ paymasterVerificationGasLimit: any;
1457
+ paymasterPostOpGasLimit: any;
1458
+ paymasterData: any;
1459
+ eip7702Auth: any;
1460
+ }
1461
+ interface UserOperationV9ToSimulate extends UserOperationV8ToSimulate {}
1462
+ declare function simulateUserOperationCallDataWithTenderlyAndCreateShareLink(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, userOperation: UserOperationV6ToSimulate | UserOperationV7ToSimulate | UserOperationV8ToSimulate | UserOperationV9ToSimulate, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<{
1463
+ simulation: TenderlySimulationResult;
1464
+ callDataSimulationShareLink: string;
1465
+ accountDeploymentSimulationShareLink?: string;
1466
+ }>;
1467
+ declare function simulateUserOperationCallDataWithTenderly(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, userOperation: UserOperationV6ToSimulate | UserOperationV7ToSimulate | UserOperationV8ToSimulate | UserOperationV9ToSimulate, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<TenderlySimulationResult>;
1468
+ declare function simulateSenderCallDataWithTenderlyAndCreateShareLink(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, sender: string, callData: string, factory?: string | null, factoryData?: string | null, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<{
1469
+ simulation: TenderlySimulationResult;
1470
+ callDataSimulationShareLink: string;
1471
+ accountDeploymentSimulationShareLink?: string;
1472
+ }>;
1473
+ declare function simulateSenderCallDataWithTenderly(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, sender: string, callData: string, factory?: string | null, factoryData?: string | null, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<TenderlySimulationResult>;
1474
+ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, transactions: {
1475
+ chainId: bigint;
1476
+ from: string;
1477
+ to: string;
1478
+ data: string;
1479
+ gas?: number | null;
1480
+ gasPrice?: number | null;
1481
+ value?: number | null;
1482
+ blockNumber?: number | null;
1483
+ simulationType?: 'full' | 'quick' | 'abi';
1484
+ stateOverrides?: OverrideType | null;
1485
+ transactionIndex?: number;
1486
+ save?: boolean;
1487
+ saveIfFails?: boolean;
1488
+ estimateGas?: boolean;
1489
+ generateAccessList?: boolean;
1490
+ accessList?: {
1491
+ address: string;
1492
+ }[];
1493
+ }[]): Promise<TenderlySimulationResult>;
1494
+ //#endregion
1495
+ //#region src/constants.d.ts
1496
+ declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
1497
+ declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
1498
+ declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
1499
+ declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
1500
+ declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
1501
+ declare const BaseUserOperationDummyValues: {
1502
+ sender: string;
1503
+ nonce: bigint;
1504
+ callData: string;
1505
+ callGasLimit: bigint;
1506
+ verificationGasLimit: bigint;
1507
+ preVerificationGas: bigint;
1508
+ maxFeePerGas: bigint;
1509
+ maxPriorityFeePerGas: bigint;
1510
+ signature: string;
1511
+ };
1512
+ declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
1513
+ declare const EIP712_SAFE_OPERATION_V6_TYPE: {
1514
+ SafeOp: {
1515
+ type: string;
1516
+ name: string;
1517
+ }[];
1518
+ };
1519
+ declare const EIP712_SAFE_OPERATION_V7_TYPE: {
1520
+ SafeOp: {
1521
+ type: string;
1522
+ name: string;
1523
+ }[];
1524
+ };
1525
+ declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
1526
+ declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
1527
+ MerkleTreeRoot: {
1528
+ type: string;
1529
+ name: string;
1530
+ }[];
1531
+ };
1532
+ declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
1533
+ declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
1534
+ declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
1535
+ //#endregion
1536
+ //#region src/errors.d.ts
1537
+ type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
1538
+ type BundlerErrorCode = "INVALID_FIELDS" | "SIMULATE_VALIDATION" | "SIMULATE_PAYMASTER_VALIDATION" | "OPCODE_VALIDATION" | "EXPIRE_SHORTLY" | "REPUTATION" | "INSUFFICIENT_STAKE" | "UNSUPPORTED_SIGNATURE_AGGREGATOR" | "INVALID_SIGNATURE" | "INVALID_USEROPERATION_HASH" | "EXECUTION_REVERTED";
1539
+ type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
1540
+ type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
1541
+ readonly [key: string]: Jsonable;
1542
+ } | {
1543
+ toJSON(): Jsonable;
1544
+ };
1545
+ declare class AbstractionKitError extends Error {
1546
+ readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
1547
+ readonly context?: Jsonable;
1548
+ readonly errno?: number;
1549
+ constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
1550
+ cause?: Error;
1551
+ errno?: number;
1552
+ context?: Jsonable;
1553
+ });
1554
+ stringify(): string;
1555
+ }
1556
+ declare namespace abstractionkit_d_exports {
1557
+ export { ALLOWANCE_MODULE_V0_1_0_ADDRESS, AbiInputValue, AbstractionKitError, Allowance, AllowanceModule, AnyUserOperation, Authorization7702, Authorization7702Hex, BaseUserOperationDummyValues, Bundler, CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS, CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS, Calibur7702Account, CaliburCreateUserOperationOverrides, CaliburKey, CaliburKeySettings, CaliburKeySettingsResult, CaliburKeyType, CaliburSignatureOverrides, CandidePaymaster, CandidePaymasterContext, CreateUserOperationV6Overrides, CreateUserOperationV7Overrides, CreateUserOperationV9Overrides, DEFAULT_SECP256R1_PRECOMPILE_ADDRESS, DepositInfo, ECDSAPublicAddress, EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE, EIP712_MULTI_CHAIN_OPERATIONS_TYPE, EIP712_RECOVERY_MODULE_TYPE, EIP712_SAFE_OPERATION_PRIMARY_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, EIP712_SAFE_OPERATION_V7_TYPE, ENTRYPOINT_V6, ENTRYPOINT_V7, ENTRYPOINT_V8, ENTRYPOINT_V9, EOADummySignerSignaturePair, EXECUTE_RECOVERY_PRIMARY_TYPE, ExperimentalAllowAllParallelPaymaster, GasEstimationResult, GasOption, InitCodeOverrides, JsonRpcError, JsonRpcParam, JsonRpcResponse, JsonRpcResult, MetaTransaction, Operation, ParallelPaymasterInitValues, PolygonChain, PrependTokenPaymasterApproveAccount, RecoveryRequest, RecoveryRequestTypedDataDomain, RecoveryRequestTypedMessageValue, RecoverySignaturePair, SAFE_MESSAGE_MODULE_TYPE, SAFE_MESSAGE_PRIMARY_TYPE, SafeAccountFactory, SafeAccountV0_2_0, SafeAccountV0_3_0, SafeAccountV1_5_0_M_0_3_0, SafeMessageTypedDataDomain, SafeMessageTypedMessageValue, SafeModuleExecutorFunctionSelector, SafeMultiChainSigAccountV1, SafeUserOperationTypedDataDomain, SameUserOp, SendUseroperationResponse, Signer, SignerFunction, SignerSignaturePair, Simple7702Account, Simple7702AccountV09, SmartAccount, SmartAccountFactory, SocialRecoveryModule, SocialRecoveryModuleGracePeriodSelector, SponsorMetadata, StateOverrideSet, UserOperationByHashResult, UserOperationReceipt, UserOperationReceiptResult, UserOperationV6, UserOperationV7, UserOperationV8, UserOperationV9, WebAuthnSignatureData, WebauthnDummySignerSignaturePair, WebauthnPublicKey, WebauthnSignatureData, WorldIdPermissionlessPaymaster, ZeroAddress, calculateUserOperationMaxGasCost, callTenderlySimulateBundle, createAndSignEip7702DelegationAuthorization, createAndSignEip7702RawTransaction, createAndSignLegacyRawTransaction, createCallData, createEip7702DelegationAuthorizationHash, createEip7702TransactionHash, createUserOperationHash, createWorldIdSignal, fetchAccountNonce, fetchGasPrice, getBalanceOf, getDelegatedAddress, getDepositInfo, getFunctionSelector, getSafeMessageEip712Data, sendJsonRpcRequest, shareTenderlySimulationAndCreateLink, signHash, simulateSenderCallDataWithTenderly, simulateSenderCallDataWithTenderlyAndCreateShareLink, simulateUserOperationCallDataWithTenderly, simulateUserOperationCallDataWithTenderlyAndCreateShareLink, simulateUserOperationWithTenderly, simulateUserOperationWithTenderlyAndCreateShareLink };
1558
+ }
1559
+ //#endregion
1560
+ export { ALLOWANCE_MODULE_V0_1_0_ADDRESS, type AbiInputValue, AbstractionKitError, type Allowance, AllowanceModule, type AnyUserOperation, type Authorization7702, type Authorization7702Hex, BaseUserOperationDummyValues, Bundler, CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS, CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS, Calibur7702Account, type CaliburCreateUserOperationOverrides, type CaliburKey, type CaliburKeySettings, type CaliburKeySettingsResult, CaliburKeyType, type CaliburSignatureOverrides, CandidePaymaster, type CandidePaymasterContext, type CreateUserOperationV6Overrides, type CreateUserOperationV7Overrides, type CreateUserOperationV9Overrides, DEFAULT_SECP256R1_PRECOMPILE_ADDRESS, type DepositInfo, type ECDSAPublicAddress, EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE, EIP712_MULTI_CHAIN_OPERATIONS_TYPE, EIP712_RECOVERY_MODULE_TYPE, EIP712_SAFE_OPERATION_PRIMARY_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, EIP712_SAFE_OPERATION_V7_TYPE, ENTRYPOINT_V6, ENTRYPOINT_V7, ENTRYPOINT_V8, ENTRYPOINT_V9, EOADummySignerSignaturePair, EXECUTE_RECOVERY_PRIMARY_TYPE, ExperimentalAllowAllParallelPaymaster, type GasEstimationResult, GasOption, type InitCodeOverrides, type JsonRpcError, type JsonRpcParam, type JsonRpcResponse, type JsonRpcResult, type MetaTransaction, Operation, type ParallelPaymasterInitValues, PolygonChain, type PrependTokenPaymasterApproveAccount, type RecoveryRequest, type RecoveryRequestTypedDataDomain, type RecoveryRequestTypedMessageValue, type RecoverySignaturePair, SAFE_MESSAGE_MODULE_TYPE, SAFE_MESSAGE_PRIMARY_TYPE, SafeAccountFactory, SafeAccountV0_2_0, SafeAccountV0_3_0, SafeAccountV1_5_0_M_0_3_0, type SafeMessageTypedDataDomain, type SafeMessageTypedMessageValue, SafeModuleExecutorFunctionSelector, SafeMultiChainSigAccountV1, type SafeUserOperationTypedDataDomain, type SameUserOp, SendUseroperationResponse, type Signer, type SignerFunction, type SignerSignaturePair, Simple7702Account, Simple7702AccountV09, SmartAccount, SmartAccountFactory, SocialRecoveryModule, SocialRecoveryModuleGracePeriodSelector, type SponsorMetadata, type StateOverrideSet, type UserOperationByHashResult, type UserOperationReceipt, type UserOperationReceiptResult, type UserOperationV6, type UserOperationV7, type UserOperationV8, type UserOperationV9, type WebAuthnSignatureData, WebauthnDummySignerSignaturePair, type WebauthnPublicKey, type WebauthnSignatureData, WorldIdPermissionlessPaymaster, ZeroAddress, abstractionkit_d_exports as abstractionkit, calculateUserOperationMaxGasCost, callTenderlySimulateBundle, createAndSignEip7702DelegationAuthorization, createAndSignEip7702RawTransaction, createAndSignLegacyRawTransaction, createCallData, createEip7702DelegationAuthorizationHash, createEip7702TransactionHash, createUserOperationHash, createWorldIdSignal, fetchAccountNonce, fetchGasPrice, getBalanceOf, getDelegatedAddress, getDepositInfo, getFunctionSelector, getSafeMessageEip712Data, sendJsonRpcRequest, shareTenderlySimulationAndCreateLink, signHash, simulateSenderCallDataWithTenderly, simulateSenderCallDataWithTenderlyAndCreateShareLink, simulateUserOperationCallDataWithTenderly, simulateUserOperationCallDataWithTenderlyAndCreateShareLink, simulateUserOperationWithTenderly, simulateUserOperationWithTenderlyAndCreateShareLink };
1561
+ //# sourceMappingURL=index.d.cts.map