abstractionkit 0.3.1 → 0.3.3
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/CHANGELOG.md +130 -0
- package/README.md +17 -14
- package/dist/index.cjs +4010 -3466
- package/dist/index.d.cts +711 -579
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +711 -579
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +4010 -3466
- package/dist/index.mjs +4008 -3468
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,5 @@
|
|
|
1
1
|
import { AbiCoder } from "ethers";
|
|
2
2
|
|
|
3
|
-
//#region src/account/SmartAccount.d.ts
|
|
4
|
-
declare abstract class SmartAccount {
|
|
5
|
-
readonly accountAddress: string;
|
|
6
|
-
static readonly proxyByteCode: string;
|
|
7
|
-
static readonly initializerFunctionSelector: string;
|
|
8
|
-
static readonly initializerFunctionInputAbi: string[];
|
|
9
|
-
static readonly executorFunctionSelector: string;
|
|
10
|
-
static readonly executorFunctionInputAbi: string[];
|
|
11
|
-
constructor(accountAddress: string);
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
3
|
//#region src/utils7702.d.ts
|
|
15
4
|
type Authorization7702 = {
|
|
16
5
|
chainId: bigint;
|
|
@@ -142,6 +131,15 @@ type SponsorMetadata = {
|
|
|
142
131
|
url: string;
|
|
143
132
|
icons: string[];
|
|
144
133
|
};
|
|
134
|
+
type TokenQuote = {
|
|
135
|
+
token: string;
|
|
136
|
+
exchangeRate: bigint;
|
|
137
|
+
tokenCost: bigint;
|
|
138
|
+
};
|
|
139
|
+
type SponsorInfo = {
|
|
140
|
+
name: string;
|
|
141
|
+
icon?: string;
|
|
142
|
+
};
|
|
145
143
|
type PmUserOperationV7Result = {
|
|
146
144
|
paymaster: string;
|
|
147
145
|
paymasterVerificationGasLimit: bigint;
|
|
@@ -152,7 +150,7 @@ type PmUserOperationV7Result = {
|
|
|
152
150
|
preVerificationGas?: bigint;
|
|
153
151
|
maxFeePerGas?: bigint;
|
|
154
152
|
maxPriorityFeePerGas?: bigint;
|
|
155
|
-
|
|
153
|
+
sponsor?: SponsorInfo;
|
|
156
154
|
};
|
|
157
155
|
type PmUserOperationV6Result = {
|
|
158
156
|
paymasterAndData: string;
|
|
@@ -161,7 +159,7 @@ type PmUserOperationV6Result = {
|
|
|
161
159
|
verificationGasLimit?: bigint;
|
|
162
160
|
maxFeePerGas?: bigint;
|
|
163
161
|
maxPriorityFeePerGas?: bigint;
|
|
164
|
-
|
|
162
|
+
sponsor?: SponsorInfo;
|
|
165
163
|
};
|
|
166
164
|
declare enum Operation {
|
|
167
165
|
Call = 0,
|
|
@@ -240,6 +238,81 @@ interface ParallelPaymasterInitValues {
|
|
|
240
238
|
paymasterData: string;
|
|
241
239
|
}
|
|
242
240
|
//#endregion
|
|
241
|
+
//#region src/paymaster/types.d.ts
|
|
242
|
+
type AnyUserOperation = UserOperationV9 | UserOperationV8 | UserOperationV7 | UserOperationV6;
|
|
243
|
+
type SameUserOp<T extends AnyUserOperation> = T extends UserOperationV9 ? UserOperationV9 : T extends UserOperationV8 ? UserOperationV8 : T extends UserOperationV7 ? UserOperationV7 : UserOperationV6;
|
|
244
|
+
interface CandidePaymasterContext {
|
|
245
|
+
token?: string;
|
|
246
|
+
sponsorshipPolicyId?: string;
|
|
247
|
+
signingPhase?: "commit" | "finalize";
|
|
248
|
+
}
|
|
249
|
+
interface SmartAccountWithEntrypoint {
|
|
250
|
+
readonly entrypointAddress: string;
|
|
251
|
+
}
|
|
252
|
+
interface PrependTokenPaymasterApproveAccount extends SmartAccountWithEntrypoint {
|
|
253
|
+
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
254
|
+
}
|
|
255
|
+
type Erc7677Provider = "pimlico" | "candide" | null;
|
|
256
|
+
interface Erc7677PaymasterConstructorOptions {
|
|
257
|
+
chainId?: bigint;
|
|
258
|
+
provider?: "auto" | Erc7677Provider;
|
|
259
|
+
}
|
|
260
|
+
interface BasePaymasterUserOperationOverrides {
|
|
261
|
+
entrypoint?: string;
|
|
262
|
+
resetApproval?: boolean;
|
|
263
|
+
}
|
|
264
|
+
interface GasPaymasterUserOperationOverrides extends BasePaymasterUserOperationOverrides {
|
|
265
|
+
callGasLimit?: bigint;
|
|
266
|
+
verificationGasLimit?: bigint;
|
|
267
|
+
preVerificationGas?: bigint;
|
|
268
|
+
callGasLimitPercentageMultiplier?: number;
|
|
269
|
+
verificationGasLimitPercentageMultiplier?: number;
|
|
270
|
+
preVerificationGasPercentageMultiplier?: number;
|
|
271
|
+
state_override_set?: StateOverrideSet;
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/signer/types.d.ts
|
|
275
|
+
interface TypedData {
|
|
276
|
+
domain: {
|
|
277
|
+
name?: string;
|
|
278
|
+
version?: string;
|
|
279
|
+
chainId?: number | bigint;
|
|
280
|
+
verifyingContract?: `0x${string}`;
|
|
281
|
+
salt?: `0x${string}`;
|
|
282
|
+
};
|
|
283
|
+
types: Record<string, Array<{
|
|
284
|
+
name: string;
|
|
285
|
+
type: string;
|
|
286
|
+
}>>;
|
|
287
|
+
primaryType: string;
|
|
288
|
+
message: Record<string, unknown>;
|
|
289
|
+
}
|
|
290
|
+
type SigningScheme = "hash" | "typedData";
|
|
291
|
+
interface SignContext<T extends BaseUserOperation = BaseUserOperation> {
|
|
292
|
+
readonly userOperation: T;
|
|
293
|
+
readonly chainId: bigint;
|
|
294
|
+
readonly entryPoint: string;
|
|
295
|
+
}
|
|
296
|
+
interface MultiOpSignContext<T extends BaseUserOperation = BaseUserOperation> {
|
|
297
|
+
readonly userOperations: ReadonlyArray<{
|
|
298
|
+
readonly userOperation: T;
|
|
299
|
+
readonly chainId: bigint;
|
|
300
|
+
}>;
|
|
301
|
+
readonly entryPoint: string;
|
|
302
|
+
}
|
|
303
|
+
interface SignerBase {
|
|
304
|
+
readonly address: `0x${string}`;
|
|
305
|
+
}
|
|
306
|
+
type SignHashFn<C = SignContext> = (hash: `0x${string}`, context: C) => Promise<`0x${string}`>;
|
|
307
|
+
type SignTypedDataFn<C = SignContext> = (data: TypedData, context: C) => Promise<`0x${string}`>;
|
|
308
|
+
type Signer<C = SignContext> = SignerBase & ({
|
|
309
|
+
signHash: SignHashFn<C>;
|
|
310
|
+
signTypedData?: SignTypedDataFn<C>;
|
|
311
|
+
} | {
|
|
312
|
+
signHash?: SignHashFn<C>;
|
|
313
|
+
signTypedData: SignTypedDataFn<C>;
|
|
314
|
+
});
|
|
315
|
+
//#endregion
|
|
243
316
|
//#region src/Bundler.d.ts
|
|
244
317
|
declare class Bundler {
|
|
245
318
|
readonly rpcUrl: string;
|
|
@@ -262,6 +335,17 @@ declare class SendUseroperationResponse {
|
|
|
262
335
|
included(timeoutInSeconds?: number, requestIntervalInSeconds?: number): Promise<UserOperationReceiptResult>;
|
|
263
336
|
}
|
|
264
337
|
//#endregion
|
|
338
|
+
//#region src/account/SmartAccount.d.ts
|
|
339
|
+
declare abstract class SmartAccount {
|
|
340
|
+
readonly accountAddress: string;
|
|
341
|
+
static readonly proxyByteCode: string;
|
|
342
|
+
static readonly initializerFunctionSelector: string;
|
|
343
|
+
static readonly initializerFunctionInputAbi: string[];
|
|
344
|
+
static readonly executorFunctionSelector: string;
|
|
345
|
+
static readonly executorFunctionInputAbi: string[];
|
|
346
|
+
constructor(accountAddress: string);
|
|
347
|
+
}
|
|
348
|
+
//#endregion
|
|
265
349
|
//#region src/account/simple/Simple7702Account.d.ts
|
|
266
350
|
interface SimpleMetaTransaction {
|
|
267
351
|
to: string;
|
|
@@ -282,6 +366,7 @@ interface CreateUserOperationOverrides {
|
|
|
282
366
|
maxFeePerGasPercentageMultiplier?: number;
|
|
283
367
|
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
284
368
|
state_override_set?: StateOverrideSet;
|
|
369
|
+
skipGasEstimation?: boolean;
|
|
285
370
|
dummySignature?: string;
|
|
286
371
|
gasLevel?: GasOption;
|
|
287
372
|
polygonGasStation?: PolygonChain;
|
|
@@ -327,6 +412,8 @@ declare class BaseSimple7702Account extends SmartAccount {
|
|
|
327
412
|
dummySignature?: string;
|
|
328
413
|
}): Promise<[bigint, bigint, bigint]>;
|
|
329
414
|
protected baseSignUserOperation(useroperation: UserOperationV8 | UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
415
|
+
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
416
|
+
protected baseSignUserOperationWithSigner<T extends UserOperationV8 | UserOperationV9>(useroperation: T, signer: Signer, chainId: bigint): Promise<string>;
|
|
330
417
|
protected baseSendUserOperation(userOperation: UserOperationV8 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
331
418
|
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
332
419
|
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
@@ -343,27 +430,39 @@ declare class Simple7702Account extends BaseSimple7702Account {
|
|
|
343
430
|
dummySignature?: string;
|
|
344
431
|
}): Promise<[bigint, bigint, bigint]>;
|
|
345
432
|
signUserOperation(useroperation: UserOperationV8, privateKey: string, chainId: bigint): string;
|
|
433
|
+
signUserOperationWithSigner(useroperation: UserOperationV8, signer: Signer, chainId: bigint): Promise<string>;
|
|
346
434
|
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
347
435
|
}
|
|
348
436
|
//#endregion
|
|
349
|
-
//#region src/account/
|
|
350
|
-
declare
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
delegateeAddress?: string;
|
|
355
|
-
});
|
|
356
|
-
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
|
|
357
|
-
estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
|
|
358
|
-
stateOverrideSet?: StateOverrideSet;
|
|
359
|
-
dummySignature?: string;
|
|
360
|
-
}): Promise<[bigint, bigint, bigint]>;
|
|
361
|
-
signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
362
|
-
sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
437
|
+
//#region src/account/Calibur/types.d.ts
|
|
438
|
+
declare enum CaliburKeyType {
|
|
439
|
+
P256 = 0,
|
|
440
|
+
WebAuthnP256 = 1,
|
|
441
|
+
Secp256k1 = 2
|
|
363
442
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
443
|
+
interface CaliburKey {
|
|
444
|
+
keyType: CaliburKeyType;
|
|
445
|
+
publicKey: string;
|
|
446
|
+
}
|
|
447
|
+
interface CaliburKeySettings {
|
|
448
|
+
hook?: string;
|
|
449
|
+
expiration?: number;
|
|
450
|
+
isAdmin?: boolean;
|
|
451
|
+
}
|
|
452
|
+
interface CaliburKeySettingsResult {
|
|
453
|
+
hook: string;
|
|
454
|
+
expiration: number;
|
|
455
|
+
isAdmin: boolean;
|
|
456
|
+
}
|
|
457
|
+
interface WebAuthnSignatureData {
|
|
458
|
+
authenticatorData: string;
|
|
459
|
+
clientDataJSON: string;
|
|
460
|
+
challengeIndex: bigint;
|
|
461
|
+
typeIndex: bigint;
|
|
462
|
+
r: bigint;
|
|
463
|
+
s: bigint;
|
|
464
|
+
}
|
|
465
|
+
interface CaliburCreateUserOperationOverrides {
|
|
367
466
|
nonce?: bigint;
|
|
368
467
|
callData?: string;
|
|
369
468
|
callGasLimit?: bigint;
|
|
@@ -377,62 +476,289 @@ interface CreateBaseUserOperationOverrides {
|
|
|
377
476
|
maxFeePerGasPercentageMultiplier?: number;
|
|
378
477
|
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
379
478
|
state_override_set?: StateOverrideSet;
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
webAuthnSignerFactory?: string;
|
|
383
|
-
webAuthnSignerSingleton?: string;
|
|
384
|
-
webAuthnSignerProxyCreationCode?: string;
|
|
385
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
386
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
387
|
-
safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
|
|
388
|
-
multisendContractAddress?: string;
|
|
479
|
+
skipGasEstimation?: boolean;
|
|
480
|
+
dummySignature?: string;
|
|
389
481
|
gasLevel?: GasOption;
|
|
390
482
|
polygonGasStation?: PolygonChain;
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
483
|
+
revertOnFailure?: boolean;
|
|
484
|
+
paymasterFields?: ParallelPaymasterInitValues;
|
|
485
|
+
eip7702Auth?: {
|
|
486
|
+
chainId: bigint;
|
|
487
|
+
address?: string;
|
|
488
|
+
nonce?: bigint;
|
|
489
|
+
yParity?: string;
|
|
490
|
+
r?: string;
|
|
491
|
+
s?: string;
|
|
398
492
|
};
|
|
399
493
|
}
|
|
400
|
-
interface
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
interface CreateUserOperationV7Overrides extends CreateBaseUserOperationOverrides {
|
|
404
|
-
factory?: string;
|
|
405
|
-
factoryData?: string;
|
|
494
|
+
interface CaliburSignatureOverrides {
|
|
495
|
+
hookData?: string;
|
|
496
|
+
keyHash?: string;
|
|
406
497
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
498
|
+
//#endregion
|
|
499
|
+
//#region src/account/Calibur/Calibur7702Account.d.ts
|
|
500
|
+
declare class Calibur7702Account extends SmartAccount implements PrependTokenPaymasterApproveAccount {
|
|
501
|
+
static readonly executorFunctionSelector = "0x8dd7712f";
|
|
502
|
+
static readonly dummySignature: string;
|
|
503
|
+
static createDummyWebAuthnSignature(keyHash: string): string;
|
|
504
|
+
static wrapSignature(keyHash: string, rawSignature: string, hookData?: string): string;
|
|
505
|
+
readonly entrypointAddress: string;
|
|
506
|
+
readonly delegateeAddress: string;
|
|
507
|
+
constructor(accountAddress: string, overrides?: {
|
|
508
|
+
entrypointAddress?: string;
|
|
509
|
+
delegateeAddress?: string;
|
|
510
|
+
});
|
|
511
|
+
getUserOperationHash(userOperation: UserOperationV8, chainId: bigint): string;
|
|
512
|
+
static createAccountCallData(transactions: SimpleMetaTransaction[], revertOnFailure?: boolean): string;
|
|
513
|
+
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CaliburCreateUserOperationOverrides): Promise<UserOperationV8>;
|
|
514
|
+
signUserOperation(userOperation: UserOperationV8, privateKey: string, chainId: bigint, overrides?: CaliburSignatureOverrides): string;
|
|
515
|
+
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
516
|
+
signUserOperationWithSigner(userOperation: UserOperationV8, signer: Signer, chainId: bigint, overrides?: CaliburSignatureOverrides): Promise<string>;
|
|
517
|
+
formatWebAuthnSignature(keyHash: string, webAuthnAuth: WebAuthnSignatureData, overrides?: CaliburSignatureOverrides): string;
|
|
518
|
+
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
519
|
+
static createSecp256k1Key(address: string): CaliburKey;
|
|
520
|
+
static createWebAuthnP256Key(x: bigint, y: bigint): CaliburKey;
|
|
521
|
+
static createP256Key(x: bigint, y: bigint): CaliburKey;
|
|
522
|
+
static getKeyHash(key: CaliburKey): string;
|
|
523
|
+
static packKeySettings(settings: CaliburKeySettings): bigint;
|
|
524
|
+
static unpackKeySettings(packed: bigint): CaliburKeySettingsResult;
|
|
525
|
+
static createRegisterKeyMetaTransactions(key: CaliburKey, settings?: CaliburKeySettings): [SimpleMetaTransaction, SimpleMetaTransaction];
|
|
526
|
+
static createRevokeKeyMetaTransaction(keyHash: string): SimpleMetaTransaction;
|
|
527
|
+
createRevokeAllKeysMetaTransactions(providerRpc: string): Promise<SimpleMetaTransaction[]>;
|
|
528
|
+
createRevokeDelegationRawTransaction(chainId: bigint, eoaPrivateKey: string, providerRpc: string, overrides?: {
|
|
529
|
+
nonce?: bigint;
|
|
530
|
+
authorizationNonce?: bigint;
|
|
531
|
+
maxFeePerGas?: bigint;
|
|
532
|
+
maxPriorityFeePerGas?: bigint;
|
|
533
|
+
gasLimit?: bigint;
|
|
534
|
+
}): Promise<string>;
|
|
535
|
+
static createUpdateKeySettingsMetaTransaction(keyHash: string, settings: CaliburKeySettings): SimpleMetaTransaction;
|
|
536
|
+
static createInvalidateNonceMetaTransaction(newNonce: bigint): SimpleMetaTransaction;
|
|
537
|
+
isDelegatedToThisAccount(providerRpc: string): Promise<boolean>;
|
|
538
|
+
getNonce(providerRpc: string, sequenceKey?: number): Promise<bigint>;
|
|
539
|
+
isKeyRegistered(providerRpc: string, keyHash: string): Promise<boolean>;
|
|
540
|
+
getKeySettings(providerRpc: string, keyHash: string): Promise<CaliburKeySettingsResult>;
|
|
541
|
+
getKey(providerRpc: string, keyHash: string): Promise<CaliburKey>;
|
|
542
|
+
getKeys(providerRpc: string, overrides?: {
|
|
543
|
+
blockNumber?: bigint;
|
|
544
|
+
}): Promise<CaliburKey[]>;
|
|
545
|
+
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
546
|
+
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
411
547
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
multisendContractAddress?: string;
|
|
421
|
-
webAuthnSharedSigner?: string;
|
|
422
|
-
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
423
|
-
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
424
|
-
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
425
|
-
onChainIdentifier?: string;
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region src/account/Safe/modules/SafeModule.d.ts
|
|
550
|
+
declare abstract class SafeModule {
|
|
551
|
+
readonly moduleAddress: string;
|
|
552
|
+
protected readonly abiCoder: AbiCoder;
|
|
553
|
+
constructor(moduleAddress: string);
|
|
554
|
+
createEnableModuleMetaTransaction(accountAddress: string): MetaTransaction;
|
|
555
|
+
checkForEmptyResultAndRevert(result: string, requestName: string): void;
|
|
426
556
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
557
|
+
//#endregion
|
|
558
|
+
//#region src/account/Safe/modules/AllowanceModule.d.ts
|
|
559
|
+
declare const ALLOWANCE_MODULE_V0_1_0_ADDRESS = "0xAA46724893dedD72658219405185Fb0Fc91e091C";
|
|
560
|
+
declare class AllowanceModule extends SafeModule {
|
|
561
|
+
static readonly DEFAULT_ALLOWANCE_MODULE_ADDRESS = "0x691f59471Bfd2B7d639DCF74671a2d648ED1E331";
|
|
562
|
+
constructor(moduleAddress?: string);
|
|
563
|
+
createOneTimeAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, startAfterInMinutes: bigint): MetaTransaction;
|
|
564
|
+
createRecurringAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, recurringAllowanceValidityPeriodInMinutes: bigint, startAfterInMinutes: bigint): MetaTransaction;
|
|
565
|
+
createBaseSetAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, resetTimeMin: bigint, resetBaseMin: bigint): MetaTransaction;
|
|
566
|
+
createRenewAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
|
|
567
|
+
createDeleteAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
|
|
568
|
+
createAllowanceTransferMetaTransaction(allowanceSourceSafeAddress: string, token: string, to: string, amount: bigint, delegate: string, overrides?: {
|
|
569
|
+
delegateSignature?: string;
|
|
570
|
+
paymentToken?: string;
|
|
571
|
+
paymentAmount?: bigint;
|
|
572
|
+
}): MetaTransaction;
|
|
573
|
+
createBaseExecuteAllowanceTransferMetaTransaction(safeAddress: string, token: string, to: string, amount: bigint, paymentToken: string, payment: bigint, delegate: string, delegateSignature: string): MetaTransaction;
|
|
574
|
+
createAddDelegateMetaTransaction(delegate: string): MetaTransaction;
|
|
575
|
+
createRemoveDelegateMetaTransaction(delegate: string, removeAllowances: boolean): MetaTransaction;
|
|
576
|
+
getTokens(nodeRpcUrl: string, safeAddress: string, delegate: string): Promise<string[]>;
|
|
577
|
+
getTokensAllowance(nodeRpcUrl: string, safeAddress: string, delegate: string, token: string): Promise<Allowance>;
|
|
578
|
+
getDelegates(nodeRpcUrl: string, safeAddress: string, overrides?: {
|
|
579
|
+
start?: bigint;
|
|
580
|
+
maxNumberOfResults?: bigint;
|
|
581
|
+
}): Promise<string[]>;
|
|
582
|
+
baseGetDelegates(nodeRpcUrl: string, safeAddress: string, start: bigint, pageSize: bigint): Promise<{
|
|
583
|
+
results: string[];
|
|
584
|
+
next: bigint;
|
|
585
|
+
}>;
|
|
586
|
+
}
|
|
587
|
+
type Allowance = {
|
|
588
|
+
amount: bigint;
|
|
589
|
+
spent: bigint;
|
|
590
|
+
resetTimeMin: bigint;
|
|
591
|
+
lastResetMin: bigint;
|
|
592
|
+
nonce: bigint;
|
|
593
|
+
};
|
|
594
|
+
//#endregion
|
|
595
|
+
//#region src/account/Safe/modules/SocialRecoveryModule.d.ts
|
|
596
|
+
declare enum SocialRecoveryModuleGracePeriodSelector {
|
|
597
|
+
After3Minutes = "0x949d01d424bE050D09C16025dd007CB59b3A8c66",
|
|
598
|
+
After3Days = "0x38275826E1933303E508433dD5f289315Da2541c",
|
|
599
|
+
After7Days = "0x088f6cfD8BB1dDb1BB069CCb3fc1A98927D233f2",
|
|
600
|
+
After14Days = "0x9BacD92F4687Db306D7ded5d4513a51EA05df25b"
|
|
601
|
+
}
|
|
602
|
+
declare class SocialRecoveryModule extends SafeModule {
|
|
603
|
+
static readonly DEFAULT_SOCIAL_RECOVERY_ADDRESS = SocialRecoveryModuleGracePeriodSelector.After3Days;
|
|
604
|
+
constructor(moduleAddress?: string);
|
|
605
|
+
createConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, execute: boolean): MetaTransaction;
|
|
606
|
+
createMultiConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, signaturePairList: RecoverySignaturePair[], execute: boolean): MetaTransaction;
|
|
607
|
+
createExecuteRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number): MetaTransaction;
|
|
608
|
+
createFinalizeRecoveryMetaTransaction(accountAddress: string): MetaTransaction;
|
|
609
|
+
createCancelRecoveryMetaTransaction(): MetaTransaction;
|
|
610
|
+
createAddGuardianWithThresholdMetaTransaction(guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
611
|
+
createRevokeGuardianWithThresholdMetaTransaction(nodeRpcUrl: string, accountAddress: string, guardianAddress: string, threshold: bigint, overrides?: {
|
|
612
|
+
prevGuardianAddress?: string;
|
|
613
|
+
}): Promise<MetaTransaction>;
|
|
614
|
+
createStandardRevokeGuardianWithThresholdMetaTransaction(prevGuardianAddress: string, guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
615
|
+
createChangeThresholdMetaTransaction(threshold: bigint): MetaTransaction;
|
|
616
|
+
getRecoveryHash(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number, nonce: bigint): Promise<string>;
|
|
617
|
+
getRecoveryRequest(nodeRpcUrl: string, accountAddress: string): Promise<RecoveryRequest>;
|
|
618
|
+
getRecoveryApprovals(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number): Promise<bigint>;
|
|
619
|
+
hasGuardianApproved(nodeRpcUrl: string, accountAddress: string, guardian: string, newOwners: string[], newThreshold: number): Promise<boolean>;
|
|
620
|
+
isGuardian(nodeRpcUrl: string, accountAddress: string, guardian: string): Promise<boolean>;
|
|
621
|
+
guardiansCount(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
622
|
+
threshold(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
623
|
+
getGuardians(nodeRpcUrl: string, accountAddress: string): Promise<string[]>;
|
|
624
|
+
nonce(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
625
|
+
getRecoveryRequestEip712Data(rpcNode: string, chainId: bigint, accountAddress: string, newOwners: string[], newThreshold: bigint, overrides?: {
|
|
626
|
+
recoveryNonce?: bigint;
|
|
627
|
+
}): Promise<{
|
|
628
|
+
domain: RecoveryRequestTypedDataDomain;
|
|
629
|
+
types: Record<string, {
|
|
630
|
+
name: string;
|
|
631
|
+
type: string;
|
|
632
|
+
}[]>;
|
|
633
|
+
messageValue: RecoveryRequestTypedMessageValue;
|
|
634
|
+
}>;
|
|
635
|
+
}
|
|
636
|
+
type RecoveryRequest = {
|
|
637
|
+
guardiansApprovalCount: bigint;
|
|
638
|
+
newThreshold: bigint;
|
|
639
|
+
executeAfter: bigint;
|
|
640
|
+
newOwners: string[];
|
|
641
|
+
};
|
|
642
|
+
type RecoverySignaturePair = {
|
|
643
|
+
signer: string;
|
|
644
|
+
signature: string;
|
|
645
|
+
};
|
|
646
|
+
declare const EXECUTE_RECOVERY_PRIMARY_TYPE = "ExecuteRecovery";
|
|
647
|
+
type RecoveryRequestTypedDataDomain = {
|
|
648
|
+
name: string;
|
|
649
|
+
version: string;
|
|
650
|
+
chainId: number;
|
|
651
|
+
verifyingContract: string;
|
|
652
|
+
};
|
|
653
|
+
type RecoveryRequestTypedMessageValue = {
|
|
654
|
+
wallet: string;
|
|
655
|
+
newOwners: string[];
|
|
656
|
+
newThreshold: bigint;
|
|
657
|
+
nonce: bigint;
|
|
658
|
+
};
|
|
659
|
+
declare const EIP712_RECOVERY_MODULE_TYPE: {
|
|
660
|
+
ExecuteRecovery: {
|
|
661
|
+
type: string;
|
|
662
|
+
name: string;
|
|
663
|
+
}[];
|
|
664
|
+
};
|
|
665
|
+
//#endregion
|
|
666
|
+
//#region src/account/Safe/safeMessage.d.ts
|
|
667
|
+
declare const SAFE_MESSAGE_PRIMARY_TYPE = "SafeMessage";
|
|
668
|
+
declare const SAFE_MESSAGE_MODULE_TYPE: {
|
|
669
|
+
SafeMessage: {
|
|
670
|
+
type: string;
|
|
671
|
+
name: string;
|
|
672
|
+
}[];
|
|
673
|
+
};
|
|
674
|
+
type SafeMessageTypedDataDomain = {
|
|
675
|
+
chainId: number;
|
|
676
|
+
verifyingContract: string;
|
|
677
|
+
};
|
|
678
|
+
type SafeMessageTypedMessageValue = {
|
|
679
|
+
message: string;
|
|
680
|
+
};
|
|
681
|
+
declare function getSafeMessageEip712Data(accountAddress: string, chainId: bigint, message: string): {
|
|
682
|
+
domain: SafeMessageTypedDataDomain;
|
|
683
|
+
types: Record<string, {
|
|
684
|
+
name: string;
|
|
685
|
+
type: string;
|
|
686
|
+
}[]>;
|
|
687
|
+
messageValue: SafeMessageTypedMessageValue;
|
|
688
|
+
};
|
|
689
|
+
//#endregion
|
|
690
|
+
//#region src/account/Safe/types.d.ts
|
|
691
|
+
interface CreateBaseUserOperationOverrides {
|
|
692
|
+
nonce?: bigint;
|
|
693
|
+
callData?: string;
|
|
694
|
+
callGasLimit?: bigint;
|
|
695
|
+
verificationGasLimit?: bigint;
|
|
696
|
+
preVerificationGas?: bigint;
|
|
697
|
+
maxFeePerGas?: bigint;
|
|
698
|
+
maxPriorityFeePerGas?: bigint;
|
|
699
|
+
callGasLimitPercentageMultiplier?: number;
|
|
700
|
+
verificationGasLimitPercentageMultiplier?: number;
|
|
701
|
+
preVerificationGasPercentageMultiplier?: number;
|
|
702
|
+
maxFeePerGasPercentageMultiplier?: number;
|
|
703
|
+
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
704
|
+
state_override_set?: StateOverrideSet;
|
|
705
|
+
skipGasEstimation?: boolean;
|
|
706
|
+
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
707
|
+
webAuthnSharedSigner?: string;
|
|
708
|
+
webAuthnSignerFactory?: string;
|
|
709
|
+
webAuthnSignerSingleton?: string;
|
|
710
|
+
webAuthnSignerProxyCreationCode?: string;
|
|
711
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
712
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
713
|
+
safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
|
|
714
|
+
multisendContractAddress?: string;
|
|
715
|
+
gasLevel?: GasOption;
|
|
716
|
+
polygonGasStation?: PolygonChain;
|
|
717
|
+
expectedSigners?: Signer$1[];
|
|
718
|
+
isMultiChainSignature?: boolean;
|
|
719
|
+
parallelPaymasterInitValues?: {
|
|
720
|
+
paymaster: string;
|
|
721
|
+
paymasterVerificationGasLimit: bigint;
|
|
722
|
+
paymasterPostOpGasLimit: bigint;
|
|
723
|
+
paymasterData: string;
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
interface CreateUserOperationV6Overrides extends CreateBaseUserOperationOverrides {
|
|
727
|
+
initCode?: string;
|
|
728
|
+
}
|
|
729
|
+
interface CreateUserOperationV7Overrides extends CreateBaseUserOperationOverrides {
|
|
730
|
+
factory?: string;
|
|
731
|
+
factoryData?: string;
|
|
732
|
+
}
|
|
733
|
+
interface CreateUserOperationV9Overrides extends CreateUserOperationV7Overrides {}
|
|
734
|
+
interface SafeAccountSingleton {
|
|
735
|
+
singletonAddress: string;
|
|
736
|
+
singletonInitHash: string;
|
|
737
|
+
}
|
|
738
|
+
interface InitCodeOverrides {
|
|
739
|
+
threshold?: number;
|
|
740
|
+
c2Nonce?: bigint;
|
|
741
|
+
safe4337ModuleAddress?: string;
|
|
742
|
+
safeModuleSetupAddress?: string;
|
|
743
|
+
entrypointAddress?: string;
|
|
744
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
745
|
+
safeAccountFactoryAddress?: string;
|
|
746
|
+
multisendContractAddress?: string;
|
|
747
|
+
webAuthnSharedSigner?: string;
|
|
748
|
+
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
749
|
+
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
750
|
+
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
751
|
+
onChainIdentifier?: string;
|
|
752
|
+
}
|
|
753
|
+
interface BaseInitOverrides {
|
|
754
|
+
threshold?: number;
|
|
755
|
+
c2Nonce?: bigint;
|
|
756
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
757
|
+
safeAccountFactoryAddress?: string;
|
|
758
|
+
multisendContractAddress?: string;
|
|
759
|
+
webAuthnSharedSigner?: string;
|
|
760
|
+
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
761
|
+
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
436
762
|
}
|
|
437
763
|
interface WebAuthnSignatureOverrides {
|
|
438
764
|
isInit?: boolean;
|
|
@@ -492,14 +818,14 @@ interface WebauthnPublicKey {
|
|
|
492
818
|
x: bigint;
|
|
493
819
|
y: bigint;
|
|
494
820
|
}
|
|
495
|
-
type Signer = ECDSAPublicAddress | WebauthnPublicKey;
|
|
821
|
+
type Signer$1 = ECDSAPublicAddress | WebauthnPublicKey;
|
|
496
822
|
interface WebauthnSignatureData {
|
|
497
823
|
authenticatorData: ArrayBuffer;
|
|
498
824
|
clientDataFields: string;
|
|
499
825
|
rs: [bigint, bigint];
|
|
500
826
|
}
|
|
501
827
|
interface SignerSignaturePair {
|
|
502
|
-
signer: Signer;
|
|
828
|
+
signer: Signer$1;
|
|
503
829
|
signature: string;
|
|
504
830
|
isContractSignature?: boolean;
|
|
505
831
|
}
|
|
@@ -530,30 +856,6 @@ interface MultiChainSignatureMerkleTreeRootTypedMessageValue {
|
|
|
530
856
|
merkleTreeRoot: string;
|
|
531
857
|
}
|
|
532
858
|
//#endregion
|
|
533
|
-
//#region src/account/Safe/safeMessage.d.ts
|
|
534
|
-
declare const SAFE_MESSAGE_PRIMARY_TYPE = "SafeMessage";
|
|
535
|
-
declare const SAFE_MESSAGE_MODULE_TYPE: {
|
|
536
|
-
SafeMessage: {
|
|
537
|
-
type: string;
|
|
538
|
-
name: string;
|
|
539
|
-
}[];
|
|
540
|
-
};
|
|
541
|
-
type SafeMessageTypedDataDomain = {
|
|
542
|
-
chainId: number;
|
|
543
|
-
verifyingContract: string;
|
|
544
|
-
};
|
|
545
|
-
type SafeMessageTypedMessageValue = {
|
|
546
|
-
message: string;
|
|
547
|
-
};
|
|
548
|
-
declare function getSafeMessageEip712Data(accountAddress: string, chainId: bigint, message: string): {
|
|
549
|
-
domain: SafeMessageTypedDataDomain;
|
|
550
|
-
types: Record<string, {
|
|
551
|
-
name: string;
|
|
552
|
-
type: string;
|
|
553
|
-
}[]>;
|
|
554
|
-
messageValue: SafeMessageTypedMessageValue;
|
|
555
|
-
};
|
|
556
|
-
//#endregion
|
|
557
859
|
//#region src/account/Safe/SafeAccount.d.ts
|
|
558
860
|
declare class SafeAccount extends SmartAccount {
|
|
559
861
|
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
@@ -623,7 +925,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
623
925
|
name: string;
|
|
624
926
|
type: string;
|
|
625
927
|
}[]>;
|
|
626
|
-
messageValue: SafeUserOperationV6TypedMessageValue |
|
|
928
|
+
messageValue: SafeUserOperationV6TypedMessageValue | SafeUserOperationV7TypedMessageValue | SafeUserOperationV9TypedMessageValue;
|
|
627
929
|
};
|
|
628
930
|
static getUserOperationEip712Data_V6(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
629
931
|
validAfter?: bigint;
|
|
@@ -675,7 +977,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
675
977
|
name: string;
|
|
676
978
|
type: string;
|
|
677
979
|
}[]>;
|
|
678
|
-
messageValue:
|
|
980
|
+
messageValue: SafeUserOperationV9TypedMessageValue;
|
|
679
981
|
};
|
|
680
982
|
static getUserOperationEip712Hash_V9(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
681
983
|
validAfter?: bigint;
|
|
@@ -689,16 +991,16 @@ declare class SafeAccount extends SmartAccount {
|
|
|
689
991
|
isMultiChainSignature?: boolean;
|
|
690
992
|
}): string;
|
|
691
993
|
sendUserOperation(userOperation: UserOperationV6 | UserOperationV7 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
692
|
-
protected static createAccountAddressAndFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string, string];
|
|
693
|
-
protected static createBaseInitializerCallData(owners: Signer[], threshold: number, safe4337ModuleAddress: string, safeModuleSetupAddress: string, multisendContractAddress?: string, webAuthnSharedSigner?: string, eip7212WebAuthnPrecompileVerifierForSharedSigner?: string, eip7212WebAuthnContractVerifierForSharedSigner?: string): string;
|
|
694
|
-
protected static createFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides | undefined, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string];
|
|
994
|
+
protected static createAccountAddressAndFactoryAddressAndData(owners: Signer$1[], overrides: BaseInitOverrides, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string, string];
|
|
995
|
+
protected static createBaseInitializerCallData(owners: Signer$1[], threshold: number, safe4337ModuleAddress: string, safeModuleSetupAddress: string, multisendContractAddress?: string, webAuthnSharedSigner?: string, eip7212WebAuthnPrecompileVerifierForSharedSigner?: string, eip7212WebAuthnContractVerifierForSharedSigner?: string): string;
|
|
996
|
+
protected static createFactoryAddressAndData(owners: Signer$1[], overrides: BaseInitOverrides | undefined, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string];
|
|
695
997
|
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, overrides?: {
|
|
696
998
|
multisendContractAddress?: string;
|
|
697
999
|
}): string;
|
|
698
1000
|
baseEstimateUserOperationGas(userOperation: UserOperationV6 | UserOperationV7, bundlerRpc: string, overrides?: {
|
|
699
1001
|
stateOverrideSet?: StateOverrideSet;
|
|
700
1002
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
701
|
-
expectedSigners?: Signer[];
|
|
1003
|
+
expectedSigners?: Signer$1[];
|
|
702
1004
|
webAuthnSharedSigner?: string;
|
|
703
1005
|
webAuthnSignerFactory?: string;
|
|
704
1006
|
webAuthnSignerSingleton?: string;
|
|
@@ -708,11 +1010,17 @@ declare class SafeAccount extends SmartAccount {
|
|
|
708
1010
|
isMultiChainSignature?: boolean;
|
|
709
1011
|
}): Promise<[bigint, bigint, bigint]>;
|
|
710
1012
|
protected createBaseUserOperationAndFactoryAddressAndFactoryData(transactions: MetaTransaction[], isV06: boolean, providerRpc?: string, bundlerRpc?: string, overrides?: CreateBaseUserOperationOverrides): Promise<[BaseUserOperation, string | null, string | null]>;
|
|
711
|
-
static baseSignSingleUserOperation(useroperation: UserOperationV6 | UserOperationV7, privateKeys: string[], chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, overrides?: {
|
|
1013
|
+
protected static baseSignSingleUserOperation(useroperation: UserOperationV6 | UserOperationV7, privateKeys: string[], chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, overrides?: {
|
|
712
1014
|
validAfter?: bigint;
|
|
713
1015
|
validUntil?: bigint;
|
|
714
1016
|
isMultiChainSignature?: boolean;
|
|
715
1017
|
}): string;
|
|
1018
|
+
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
1019
|
+
protected static baseSignUserOperationWithSigners<T extends UserOperationV6 | UserOperationV7 | UserOperationV9, C>(useroperation: T, signers: ReadonlyArray<Signer<C>>, chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, context: C, overrides?: {
|
|
1020
|
+
validAfter?: bigint;
|
|
1021
|
+
validUntil?: bigint;
|
|
1022
|
+
isMultiChainSignature?: boolean;
|
|
1023
|
+
}): Promise<string>;
|
|
716
1024
|
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
717
1025
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
718
1026
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -721,11 +1029,11 @@ declare class SafeAccount extends SmartAccount {
|
|
|
721
1029
|
webAuthnSignerProxyCreationCode?: string;
|
|
722
1030
|
}): string;
|
|
723
1031
|
static formatSignaturesToUseroperationSignature(signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): string;
|
|
724
|
-
static getSignerLowerCaseAddress(signer: Signer, overrides?: WebAuthnSignatureOverrides): string;
|
|
1032
|
+
static getSignerLowerCaseAddress(signer: Signer$1, overrides?: WebAuthnSignatureOverrides): string;
|
|
725
1033
|
static sortSignatures(signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): void;
|
|
726
1034
|
static buildSignaturesFromSingerSignaturePairs(signerSignaturePairs: SignerSignaturePair[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): string;
|
|
727
1035
|
static createWebAuthnSignature(signatureData: WebauthnSignatureData): string;
|
|
728
|
-
createSwapOwnerMetaTransactions(nodeRpcUrl: string, newOwner: Signer, oldOwner: Signer, overrides?: {
|
|
1036
|
+
createSwapOwnerMetaTransactions(nodeRpcUrl: string, newOwner: Signer$1, oldOwner: Signer$1, overrides?: {
|
|
729
1037
|
prevOwner?: string;
|
|
730
1038
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
731
1039
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -733,7 +1041,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
733
1041
|
webAuthnSignerSingleton?: string;
|
|
734
1042
|
webAuthnSignerProxyCreationCode?: string;
|
|
735
1043
|
}): Promise<MetaTransaction[]>;
|
|
736
|
-
createRemoveOwnerMetaTransaction(nodeRpcUrl: string, ownerToDelete: Signer, threshold: number, overrides?: {
|
|
1044
|
+
createRemoveOwnerMetaTransaction(nodeRpcUrl: string, ownerToDelete: Signer$1, threshold: number, overrides?: {
|
|
737
1045
|
prevOwner?: string;
|
|
738
1046
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
739
1047
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -741,7 +1049,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
741
1049
|
webAuthnSignerSingleton?: string;
|
|
742
1050
|
webAuthnSignerProxyCreationCode?: string;
|
|
743
1051
|
}): Promise<MetaTransaction>;
|
|
744
|
-
createAddOwnerWithThresholdMetaTransactions(newOwner: Signer, threshold: number, overrides?: {
|
|
1052
|
+
createAddOwnerWithThresholdMetaTransactions(newOwner: Signer$1, threshold: number, overrides?: {
|
|
745
1053
|
nodeRpcUrl?: string;
|
|
746
1054
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
747
1055
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -766,7 +1074,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
766
1074
|
pageSize?: bigint;
|
|
767
1075
|
}): Promise<[string[], string]>;
|
|
768
1076
|
isModuleEnabled(nodeRpcUrl: string, moduleAddress: string): Promise<boolean>;
|
|
769
|
-
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1077
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
770
1078
|
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
771
1079
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
772
1080
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -801,33 +1109,37 @@ declare class SafeAccount extends SmartAccount {
|
|
|
801
1109
|
};
|
|
802
1110
|
}
|
|
803
1111
|
//#endregion
|
|
804
|
-
//#region src/account/Safe/
|
|
805
|
-
declare class
|
|
806
|
-
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "
|
|
807
|
-
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "
|
|
808
|
-
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "
|
|
809
|
-
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
810
|
-
static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
|
|
811
|
-
static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
|
|
812
|
-
static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x610100346100ad57601f6101b538819003918201601f19168301916001600160401b038311848410176100b2578084926080946040528339810103126100ad578051906001600160a01b03821682036100ad5760208101516040820151606090920151926001600160b01b03841684036100ad5760805260a05260c05260e05260405160ec90816100c98239608051816082015260a05181604d015260c051816027015260e0518160010152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe7f000000000000000000000000000000000000000000000000000000000000000060b63601527f000000000000000000000000000000000000000000000000000000000000000060a03601527f000000000000000000000000000000000000000000000000000000000000000036608001523660006080376000806056360160807f00000000000000000000000000000000000000000000000000000000000000005af43d600060803e60b1573d6080fd5b3d6080f3fea26469706673582212201660515548d15702d720bbc046b457ca85e941a4559ab9f9518488e4c82e5ee964736f6c634300081a0033";
|
|
813
|
-
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
814
|
-
static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
|
|
1112
|
+
//#region src/account/Safe/SafeAccountV0_2_0.d.ts
|
|
1113
|
+
declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
1114
|
+
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1115
|
+
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
|
|
1116
|
+
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
|
|
815
1117
|
constructor(accountAddress: string, overrides?: {
|
|
816
1118
|
safe4337ModuleAddress?: string;
|
|
817
1119
|
entrypointAddress?: string;
|
|
818
1120
|
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
819
1121
|
onChainIdentifier?: string;
|
|
820
|
-
safeAccountSingleton?: SafeAccountSingleton;
|
|
821
1122
|
});
|
|
822
|
-
static createAccountAddress(owners: Signer[], overrides?:
|
|
823
|
-
|
|
824
|
-
|
|
1123
|
+
static createAccountAddress(owners: Signer$1[], overrides?: {
|
|
1124
|
+
threshold?: number;
|
|
1125
|
+
c2Nonce?: bigint;
|
|
1126
|
+
safe4337ModuleAddress?: string;
|
|
1127
|
+
safeModuleSetupAddress?: string;
|
|
1128
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
1129
|
+
safeAccountFactoryAddress?: string;
|
|
1130
|
+
multisendContractAddress?: string;
|
|
1131
|
+
webAuthnSharedSigner?: string;
|
|
1132
|
+
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1133
|
+
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1134
|
+
}): string;
|
|
1135
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
1136
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
825
1137
|
validAfter?: bigint;
|
|
826
1138
|
validUntil?: bigint;
|
|
827
1139
|
entrypointAddress?: string;
|
|
828
1140
|
safe4337ModuleAddress?: string;
|
|
829
1141
|
}): string;
|
|
830
|
-
static getUserOperationEip712Data(useroperation:
|
|
1142
|
+
static getUserOperationEip712Data(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
831
1143
|
validAfter?: bigint;
|
|
832
1144
|
validUntil?: bigint;
|
|
833
1145
|
entrypointAddress?: string;
|
|
@@ -838,9 +1150,10 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
838
1150
|
name: string;
|
|
839
1151
|
type: string;
|
|
840
1152
|
}[]>;
|
|
841
|
-
messageValue:
|
|
1153
|
+
messageValue: SafeUserOperationV6TypedMessageValue;
|
|
842
1154
|
};
|
|
843
|
-
static
|
|
1155
|
+
static createAccountAddressAndInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1156
|
+
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
844
1157
|
safe4337ModuleAddress?: string;
|
|
845
1158
|
safeModuleSetupAddress?: string;
|
|
846
1159
|
multisendContractAddress?: string;
|
|
@@ -848,363 +1161,7 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
848
1161
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
849
1162
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
850
1163
|
}): string;
|
|
851
|
-
static
|
|
852
|
-
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV9Overrides): Promise<UserOperationV9>;
|
|
853
|
-
signUserOperation(userOperation: UserOperationV9, privateKeys: string[], chainId: bigint, overrides?: {
|
|
854
|
-
validAfter?: bigint;
|
|
855
|
-
validUntil?: bigint;
|
|
856
|
-
}): string;
|
|
857
|
-
signUserOperations(userOperationsToSign: UserOperationToSign[], privateKeys: string[]): string[];
|
|
858
|
-
static getMultiChainSingleSignatureUserOperationsEip712Hash(userOperationsToSignsToSign: UserOperationToSign[], overrides?: {
|
|
859
|
-
safe4337ModuleAddress?: string;
|
|
860
|
-
}): string;
|
|
861
|
-
static getMultiChainSingleSignatureUserOperationsEip712Data(userOperationsToSign: UserOperationToSign[], overrides?: {
|
|
862
|
-
safe4337ModuleAddress?: string;
|
|
863
|
-
entrypointAddress?: string;
|
|
864
|
-
}): {
|
|
865
|
-
domain: MultiChainSignatureMerkleTreeRootTypedDataDomain;
|
|
866
|
-
types: Record<string, {
|
|
867
|
-
name: string;
|
|
868
|
-
type: string;
|
|
869
|
-
}[]>;
|
|
870
|
-
messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
|
|
871
|
-
};
|
|
872
|
-
static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSignWithOverrides[], signerSignaturePairs: SignerSignaturePair[]): string[];
|
|
873
|
-
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
874
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
875
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
876
|
-
webAuthnSignerFactory?: string;
|
|
877
|
-
webAuthnSignerSingleton?: string;
|
|
878
|
-
webAuthnSignerProxyCreationCode?: string;
|
|
879
|
-
}): string;
|
|
880
|
-
static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
|
|
881
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
882
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
883
|
-
webAuthnSignerFactory?: string;
|
|
884
|
-
}): MetaTransaction;
|
|
885
|
-
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
886
|
-
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
887
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
888
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
889
|
-
webAuthnSignerSingleton?: string;
|
|
890
|
-
}): Promise<boolean>;
|
|
891
|
-
}
|
|
892
|
-
//#endregion
|
|
893
|
-
//#region src/paymaster/types.d.ts
|
|
894
|
-
type AnyUserOperation = UserOperationV9 | UserOperationV8 | UserOperationV7 | UserOperationV6;
|
|
895
|
-
type SameUserOp<T extends AnyUserOperation> = T extends UserOperationV9 ? UserOperationV9 : T extends UserOperationV8 ? UserOperationV8 : T extends UserOperationV7 ? UserOperationV7 : UserOperationV6;
|
|
896
|
-
interface CandidePaymasterContext {
|
|
897
|
-
token?: string;
|
|
898
|
-
sponsorshipPolicyId?: string;
|
|
899
|
-
signingPhase?: 'commit' | 'finalize';
|
|
900
|
-
}
|
|
901
|
-
interface SmartAccountWithEntrypoint {
|
|
902
|
-
readonly entrypointAddress: string;
|
|
903
|
-
}
|
|
904
|
-
interface PrependTokenPaymasterApproveAccount extends SmartAccountWithEntrypoint {
|
|
905
|
-
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
906
|
-
}
|
|
907
|
-
type Erc7677Provider = "pimlico" | "candide" | null;
|
|
908
|
-
interface Erc7677PaymasterConstructorOptions {
|
|
909
|
-
chainId?: bigint;
|
|
910
|
-
provider?: "auto" | Erc7677Provider;
|
|
911
|
-
}
|
|
912
|
-
interface BasePaymasterUserOperationOverrides {
|
|
913
|
-
entrypoint?: string;
|
|
914
|
-
resetApproval?: boolean;
|
|
915
|
-
}
|
|
916
|
-
interface GasPaymasterUserOperationOverrides extends BasePaymasterUserOperationOverrides {
|
|
917
|
-
callGasLimit?: bigint;
|
|
918
|
-
verificationGasLimit?: bigint;
|
|
919
|
-
preVerificationGas?: bigint;
|
|
920
|
-
callGasLimitPercentageMultiplier?: number;
|
|
921
|
-
verificationGasLimitPercentageMultiplier?: number;
|
|
922
|
-
preVerificationGasPercentageMultiplier?: number;
|
|
923
|
-
state_override_set?: StateOverrideSet;
|
|
924
|
-
context?: CandidePaymasterContext;
|
|
925
|
-
}
|
|
926
|
-
//#endregion
|
|
927
|
-
//#region src/account/Calibur/types.d.ts
|
|
928
|
-
declare enum CaliburKeyType {
|
|
929
|
-
P256 = 0,
|
|
930
|
-
WebAuthnP256 = 1,
|
|
931
|
-
Secp256k1 = 2
|
|
932
|
-
}
|
|
933
|
-
interface CaliburKey {
|
|
934
|
-
keyType: CaliburKeyType;
|
|
935
|
-
publicKey: string;
|
|
936
|
-
}
|
|
937
|
-
interface CaliburKeySettings {
|
|
938
|
-
hook?: string;
|
|
939
|
-
expiration?: number;
|
|
940
|
-
isAdmin?: boolean;
|
|
941
|
-
}
|
|
942
|
-
interface CaliburKeySettingsResult {
|
|
943
|
-
hook: string;
|
|
944
|
-
expiration: number;
|
|
945
|
-
isAdmin: boolean;
|
|
946
|
-
}
|
|
947
|
-
interface WebAuthnSignatureData {
|
|
948
|
-
authenticatorData: string;
|
|
949
|
-
clientDataJSON: string;
|
|
950
|
-
challengeIndex: bigint;
|
|
951
|
-
typeIndex: bigint;
|
|
952
|
-
r: bigint;
|
|
953
|
-
s: bigint;
|
|
954
|
-
}
|
|
955
|
-
interface CaliburCreateUserOperationOverrides {
|
|
956
|
-
nonce?: bigint;
|
|
957
|
-
callData?: string;
|
|
958
|
-
callGasLimit?: bigint;
|
|
959
|
-
verificationGasLimit?: bigint;
|
|
960
|
-
preVerificationGas?: bigint;
|
|
961
|
-
maxFeePerGas?: bigint;
|
|
962
|
-
maxPriorityFeePerGas?: bigint;
|
|
963
|
-
callGasLimitPercentageMultiplier?: number;
|
|
964
|
-
verificationGasLimitPercentageMultiplier?: number;
|
|
965
|
-
preVerificationGasPercentageMultiplier?: number;
|
|
966
|
-
maxFeePerGasPercentageMultiplier?: number;
|
|
967
|
-
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
968
|
-
state_override_set?: StateOverrideSet;
|
|
969
|
-
dummySignature?: string;
|
|
970
|
-
gasLevel?: GasOption;
|
|
971
|
-
polygonGasStation?: PolygonChain;
|
|
972
|
-
revertOnFailure?: boolean;
|
|
973
|
-
paymasterFields?: ParallelPaymasterInitValues;
|
|
974
|
-
eip7702Auth?: {
|
|
975
|
-
chainId: bigint;
|
|
976
|
-
address?: string;
|
|
977
|
-
nonce?: bigint;
|
|
978
|
-
yParity?: string;
|
|
979
|
-
r?: string;
|
|
980
|
-
s?: string;
|
|
981
|
-
};
|
|
982
|
-
}
|
|
983
|
-
interface CaliburSignatureOverrides {
|
|
984
|
-
hookData?: string;
|
|
985
|
-
keyHash?: string;
|
|
986
|
-
}
|
|
987
|
-
type SignerFunction = (hash: string) => Promise<string>;
|
|
988
|
-
//#endregion
|
|
989
|
-
//#region src/account/Calibur/Calibur7702Account.d.ts
|
|
990
|
-
declare class Calibur7702Account extends SmartAccount implements PrependTokenPaymasterApproveAccount {
|
|
991
|
-
static readonly executorFunctionSelector = "0x8dd7712f";
|
|
992
|
-
static readonly dummySignature: string;
|
|
993
|
-
static createDummyWebAuthnSignature(keyHash: string): string;
|
|
994
|
-
static wrapSignature(keyHash: string, rawSignature: string, hookData?: string): string;
|
|
995
|
-
readonly entrypointAddress: string;
|
|
996
|
-
readonly delegateeAddress: string;
|
|
997
|
-
constructor(accountAddress: string, overrides?: {
|
|
998
|
-
entrypointAddress?: string;
|
|
999
|
-
delegateeAddress?: string;
|
|
1000
|
-
});
|
|
1001
|
-
getUserOperationHash(userOperation: UserOperationV8, chainId: bigint): string;
|
|
1002
|
-
static createAccountCallData(transactions: SimpleMetaTransaction[], revertOnFailure?: boolean): string;
|
|
1003
|
-
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CaliburCreateUserOperationOverrides): Promise<UserOperationV8>;
|
|
1004
|
-
signUserOperation(userOperation: UserOperationV8, privateKey: string, chainId: bigint, overrides?: CaliburSignatureOverrides): string;
|
|
1005
|
-
signUserOperationWithSigner(userOperation: UserOperationV8, signer: SignerFunction, chainId: bigint, overrides?: CaliburSignatureOverrides): Promise<string>;
|
|
1006
|
-
formatWebAuthnSignature(keyHash: string, webAuthnAuth: WebAuthnSignatureData, overrides?: CaliburSignatureOverrides): string;
|
|
1007
|
-
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
1008
|
-
static createSecp256k1Key(address: string): CaliburKey;
|
|
1009
|
-
static createWebAuthnP256Key(x: bigint, y: bigint): CaliburKey;
|
|
1010
|
-
static createP256Key(x: bigint, y: bigint): CaliburKey;
|
|
1011
|
-
static getKeyHash(key: CaliburKey): string;
|
|
1012
|
-
static packKeySettings(settings: CaliburKeySettings): bigint;
|
|
1013
|
-
static unpackKeySettings(packed: bigint): CaliburKeySettingsResult;
|
|
1014
|
-
static createRegisterKeyMetaTransactions(key: CaliburKey, settings?: CaliburKeySettings): [SimpleMetaTransaction, SimpleMetaTransaction];
|
|
1015
|
-
static createRevokeKeyMetaTransaction(keyHash: string): SimpleMetaTransaction;
|
|
1016
|
-
createRevokeAllKeysMetaTransactions(providerRpc: string): Promise<SimpleMetaTransaction[]>;
|
|
1017
|
-
createRevokeDelegationRawTransaction(chainId: bigint, eoaPrivateKey: string, providerRpc: string, overrides?: {
|
|
1018
|
-
nonce?: bigint;
|
|
1019
|
-
authorizationNonce?: bigint;
|
|
1020
|
-
maxFeePerGas?: bigint;
|
|
1021
|
-
maxPriorityFeePerGas?: bigint;
|
|
1022
|
-
gasLimit?: bigint;
|
|
1023
|
-
}): Promise<string>;
|
|
1024
|
-
static createUpdateKeySettingsMetaTransaction(keyHash: string, settings: CaliburKeySettings): SimpleMetaTransaction;
|
|
1025
|
-
static createInvalidateNonceMetaTransaction(newNonce: bigint): SimpleMetaTransaction;
|
|
1026
|
-
isDelegatedToThisAccount(providerRpc: string): Promise<boolean>;
|
|
1027
|
-
getNonce(providerRpc: string, sequenceKey?: number): Promise<bigint>;
|
|
1028
|
-
isKeyRegistered(providerRpc: string, keyHash: string): Promise<boolean>;
|
|
1029
|
-
getKeySettings(providerRpc: string, keyHash: string): Promise<CaliburKeySettingsResult>;
|
|
1030
|
-
getKey(providerRpc: string, keyHash: string): Promise<CaliburKey>;
|
|
1031
|
-
getKeys(providerRpc: string, overrides?: {
|
|
1032
|
-
blockNumber?: bigint;
|
|
1033
|
-
}): Promise<CaliburKey[]>;
|
|
1034
|
-
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
1035
|
-
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
1036
|
-
}
|
|
1037
|
-
//#endregion
|
|
1038
|
-
//#region src/account/Safe/modules/SafeModule.d.ts
|
|
1039
|
-
declare abstract class SafeModule {
|
|
1040
|
-
readonly moduleAddress: string;
|
|
1041
|
-
protected readonly abiCoder: AbiCoder;
|
|
1042
|
-
constructor(moduleAddress: string);
|
|
1043
|
-
createEnableModuleMetaTransaction(accountAddress: string): MetaTransaction;
|
|
1044
|
-
checkForEmptyResultAndRevert(result: string, requestName: string): void;
|
|
1045
|
-
}
|
|
1046
|
-
//#endregion
|
|
1047
|
-
//#region src/account/Safe/modules/SocialRecoveryModule.d.ts
|
|
1048
|
-
declare enum SocialRecoveryModuleGracePeriodSelector {
|
|
1049
|
-
After3Minutes = "0x949d01d424bE050D09C16025dd007CB59b3A8c66",
|
|
1050
|
-
After3Days = "0x38275826E1933303E508433dD5f289315Da2541c",
|
|
1051
|
-
After7Days = "0x088f6cfD8BB1dDb1BB069CCb3fc1A98927D233f2",
|
|
1052
|
-
After14Days = "0x9BacD92F4687Db306D7ded5d4513a51EA05df25b"
|
|
1053
|
-
}
|
|
1054
|
-
declare class SocialRecoveryModule extends SafeModule {
|
|
1055
|
-
static readonly DEFAULT_SOCIAL_RECOVERY_ADDRESS = SocialRecoveryModuleGracePeriodSelector.After3Days;
|
|
1056
|
-
constructor(moduleAddress?: string);
|
|
1057
|
-
createConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, execute: boolean): MetaTransaction;
|
|
1058
|
-
createMultiConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, signaturePairList: RecoverySignaturePair[], execute: boolean): MetaTransaction;
|
|
1059
|
-
createExecuteRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number): MetaTransaction;
|
|
1060
|
-
createFinalizeRecoveryMetaTransaction(accountAddress: string): MetaTransaction;
|
|
1061
|
-
createCancelRecoveryMetaTransaction(): MetaTransaction;
|
|
1062
|
-
createAddGuardianWithThresholdMetaTransaction(guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
1063
|
-
createRevokeGuardianWithThresholdMetaTransaction(nodeRpcUrl: string, accountAddress: string, guardianAddress: string, threshold: bigint, overrides?: {
|
|
1064
|
-
prevGuardianAddress?: string;
|
|
1065
|
-
}): Promise<MetaTransaction>;
|
|
1066
|
-
createStandardRevokeGuardianWithThresholdMetaTransaction(prevGuardianAddress: string, guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
1067
|
-
createChangeThresholdMetaTransaction(threshold: bigint): MetaTransaction;
|
|
1068
|
-
getRecoveryHash(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number, nonce: bigint): Promise<string>;
|
|
1069
|
-
getRecoveryRequest(nodeRpcUrl: string, accountAddress: string): Promise<RecoveryRequest>;
|
|
1070
|
-
getRecoveryApprovals(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number): Promise<bigint>;
|
|
1071
|
-
hasGuardianApproved(nodeRpcUrl: string, accountAddress: string, guardian: string, newOwners: string[], newThreshold: number): Promise<boolean>;
|
|
1072
|
-
isGuardian(nodeRpcUrl: string, accountAddress: string, guardian: string): Promise<boolean>;
|
|
1073
|
-
guardiansCount(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
1074
|
-
threshold(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
1075
|
-
getGuardians(nodeRpcUrl: string, accountAddress: string): Promise<string[]>;
|
|
1076
|
-
nonce(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
1077
|
-
getRecoveryRequestEip712Data(rpcNode: string, chainId: bigint, accountAddress: string, newOwners: string[], newThreshold: bigint, overrides?: {
|
|
1078
|
-
recoveryNonce?: bigint;
|
|
1079
|
-
}): Promise<{
|
|
1080
|
-
domain: RecoveryRequestTypedDataDomain;
|
|
1081
|
-
types: Record<string, {
|
|
1082
|
-
name: string;
|
|
1083
|
-
type: string;
|
|
1084
|
-
}[]>;
|
|
1085
|
-
messageValue: RecoveryRequestTypedMessageValue;
|
|
1086
|
-
}>;
|
|
1087
|
-
}
|
|
1088
|
-
type RecoveryRequest = {
|
|
1089
|
-
guardiansApprovalCount: bigint;
|
|
1090
|
-
newThreshold: bigint;
|
|
1091
|
-
executeAfter: bigint;
|
|
1092
|
-
newOwners: string[];
|
|
1093
|
-
};
|
|
1094
|
-
type RecoverySignaturePair = {
|
|
1095
|
-
signer: string;
|
|
1096
|
-
signature: string;
|
|
1097
|
-
};
|
|
1098
|
-
declare const EXECUTE_RECOVERY_PRIMARY_TYPE = "ExecuteRecovery";
|
|
1099
|
-
type RecoveryRequestTypedDataDomain = {
|
|
1100
|
-
name: string;
|
|
1101
|
-
version: string;
|
|
1102
|
-
chainId: number;
|
|
1103
|
-
verifyingContract: string;
|
|
1104
|
-
};
|
|
1105
|
-
type RecoveryRequestTypedMessageValue = {
|
|
1106
|
-
wallet: string;
|
|
1107
|
-
newOwners: string[];
|
|
1108
|
-
newThreshold: bigint;
|
|
1109
|
-
nonce: bigint;
|
|
1110
|
-
};
|
|
1111
|
-
declare const EIP712_RECOVERY_MODULE_TYPE: {
|
|
1112
|
-
ExecuteRecovery: {
|
|
1113
|
-
type: string;
|
|
1114
|
-
name: string;
|
|
1115
|
-
}[];
|
|
1116
|
-
};
|
|
1117
|
-
//#endregion
|
|
1118
|
-
//#region src/account/Safe/modules/AllowanceModule.d.ts
|
|
1119
|
-
declare const ALLOWANCE_MODULE_V0_1_0_ADDRESS = "0xAA46724893dedD72658219405185Fb0Fc91e091C";
|
|
1120
|
-
declare class AllowanceModule extends SafeModule {
|
|
1121
|
-
static readonly DEFAULT_ALLOWANCE_MODULE_ADDRESS = "0x691f59471Bfd2B7d639DCF74671a2d648ED1E331";
|
|
1122
|
-
constructor(moduleAddress?: string);
|
|
1123
|
-
createOneTimeAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, startAfterInMinutes: bigint): MetaTransaction;
|
|
1124
|
-
createRecurringAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, recurringAllowanceValidityPeriodInMinutes: bigint, startAfterInMinutes: bigint): MetaTransaction;
|
|
1125
|
-
createBaseSetAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, resetTimeMin: bigint, resetBaseMin: bigint): MetaTransaction;
|
|
1126
|
-
createRenewAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
|
|
1127
|
-
createDeleteAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
|
|
1128
|
-
createAllowanceTransferMetaTransaction(allowanceSourceSafeAddress: string, token: string, to: string, amount: bigint, delegate: string, overrides?: {
|
|
1129
|
-
delegateSignature?: string;
|
|
1130
|
-
paymentToken?: string;
|
|
1131
|
-
paymentAmount?: bigint;
|
|
1132
|
-
}): MetaTransaction;
|
|
1133
|
-
createBaseExecuteAllowanceTransferMetaTransaction(safeAddress: string, token: string, to: string, amount: bigint, paymentToken: string, payment: bigint, delegate: string, delegateSignature: string): MetaTransaction;
|
|
1134
|
-
createAddDelegateMetaTransaction(delegate: string): MetaTransaction;
|
|
1135
|
-
createRemoveDelegateMetaTransaction(delegate: string, removeAllowances: boolean): MetaTransaction;
|
|
1136
|
-
getTokens(nodeRpcUrl: string, safeAddress: string, delegate: string): Promise<string[]>;
|
|
1137
|
-
getTokensAllowance(nodeRpcUrl: string, safeAddress: string, delegate: string, token: string): Promise<Allowance>;
|
|
1138
|
-
getDelegates(nodeRpcUrl: string, safeAddress: string, overrides?: {
|
|
1139
|
-
start?: bigint;
|
|
1140
|
-
maxNumberOfResults?: bigint;
|
|
1141
|
-
}): Promise<string[]>;
|
|
1142
|
-
baseGetDelegates(nodeRpcUrl: string, safeAddress: string, start: bigint, pageSize: bigint): Promise<{
|
|
1143
|
-
results: string[];
|
|
1144
|
-
next: bigint;
|
|
1145
|
-
}>;
|
|
1146
|
-
}
|
|
1147
|
-
type Allowance = {
|
|
1148
|
-
amount: bigint;
|
|
1149
|
-
spent: bigint;
|
|
1150
|
-
resetTimeMin: bigint;
|
|
1151
|
-
lastResetMin: bigint;
|
|
1152
|
-
nonce: bigint;
|
|
1153
|
-
};
|
|
1154
|
-
//#endregion
|
|
1155
|
-
//#region src/account/Safe/SafeAccountV0_2_0.d.ts
|
|
1156
|
-
declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
1157
|
-
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1158
|
-
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
|
|
1159
|
-
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
|
|
1160
|
-
constructor(accountAddress: string, overrides?: {
|
|
1161
|
-
safe4337ModuleAddress?: string;
|
|
1162
|
-
entrypointAddress?: string;
|
|
1163
|
-
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
1164
|
-
onChainIdentifier?: string;
|
|
1165
|
-
});
|
|
1166
|
-
static createAccountAddress(owners: Signer[], overrides?: {
|
|
1167
|
-
threshold?: number;
|
|
1168
|
-
c2Nonce?: bigint;
|
|
1169
|
-
safe4337ModuleAddress?: string;
|
|
1170
|
-
safeModuleSetupAddress?: string;
|
|
1171
|
-
safeAccountSingleton?: SafeAccountSingleton;
|
|
1172
|
-
safeAccountFactoryAddress?: string;
|
|
1173
|
-
multisendContractAddress?: string;
|
|
1174
|
-
webAuthnSharedSigner?: string;
|
|
1175
|
-
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1176
|
-
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1177
|
-
}): string;
|
|
1178
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
1179
|
-
static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
1180
|
-
validAfter?: bigint;
|
|
1181
|
-
validUntil?: bigint;
|
|
1182
|
-
entrypointAddress?: string;
|
|
1183
|
-
safe4337ModuleAddress?: string;
|
|
1184
|
-
}): string;
|
|
1185
|
-
static getUserOperationEip712Data(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
1186
|
-
validAfter?: bigint;
|
|
1187
|
-
validUntil?: bigint;
|
|
1188
|
-
entrypointAddress?: string;
|
|
1189
|
-
safe4337ModuleAddress?: string;
|
|
1190
|
-
}): {
|
|
1191
|
-
domain: SafeUserOperationTypedDataDomain;
|
|
1192
|
-
types: Record<string, {
|
|
1193
|
-
name: string;
|
|
1194
|
-
type: string;
|
|
1195
|
-
}[]>;
|
|
1196
|
-
messageValue: SafeUserOperationV6TypedMessageValue;
|
|
1197
|
-
};
|
|
1198
|
-
static createAccountAddressAndInitCode(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
1199
|
-
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
1200
|
-
safe4337ModuleAddress?: string;
|
|
1201
|
-
safeModuleSetupAddress?: string;
|
|
1202
|
-
multisendContractAddress?: string;
|
|
1203
|
-
webAuthnSharedSigner?: string;
|
|
1204
|
-
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1205
|
-
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1206
|
-
}): string;
|
|
1207
|
-
static createInitCode(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
1164
|
+
static createInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1208
1165
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV6Overrides): Promise<UserOperationV6>;
|
|
1209
1166
|
createMigrateToSafeAccountV0_3_0MetaTransactions(nodeRpcUrl: string, overrides?: {
|
|
1210
1167
|
safeV06ModuleAddress?: string;
|
|
@@ -1215,7 +1172,7 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1215
1172
|
estimateUserOperationGas(userOperation: UserOperationV6, bundlerRpc: string, overrides?: {
|
|
1216
1173
|
stateOverrideSet?: StateOverrideSet;
|
|
1217
1174
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1218
|
-
expectedSigners?: Signer[];
|
|
1175
|
+
expectedSigners?: Signer$1[];
|
|
1219
1176
|
webAuthnSharedSigner?: string;
|
|
1220
1177
|
webAuthnSignerFactory?: string;
|
|
1221
1178
|
webAuthnSignerSingleton?: string;
|
|
@@ -1227,6 +1184,11 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1227
1184
|
validAfter?: bigint;
|
|
1228
1185
|
validUntil?: bigint;
|
|
1229
1186
|
}): string;
|
|
1187
|
+
signUserOperationWithSigners(useroperation: UserOperationV6, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1188
|
+
validAfter?: bigint;
|
|
1189
|
+
validUntil?: bigint;
|
|
1190
|
+
isMultiChainSignature?: boolean;
|
|
1191
|
+
}): Promise<string>;
|
|
1230
1192
|
}
|
|
1231
1193
|
//#endregion
|
|
1232
1194
|
//#region src/account/Safe/SafeAccountV0_3_0.d.ts
|
|
@@ -1241,8 +1203,8 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1241
1203
|
onChainIdentifier?: string;
|
|
1242
1204
|
safeAccountSingleton?: SafeAccountSingleton;
|
|
1243
1205
|
});
|
|
1244
|
-
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
1245
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
|
|
1206
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1207
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
|
|
1246
1208
|
static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: {
|
|
1247
1209
|
validAfter?: bigint;
|
|
1248
1210
|
validUntil?: bigint;
|
|
@@ -1262,7 +1224,7 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1262
1224
|
}[]>;
|
|
1263
1225
|
messageValue: SafeUserOperationV7TypedMessageValue;
|
|
1264
1226
|
};
|
|
1265
|
-
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
1227
|
+
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
1266
1228
|
safe4337ModuleAddress?: string;
|
|
1267
1229
|
safeModuleSetupAddress?: string;
|
|
1268
1230
|
multisendContractAddress?: string;
|
|
@@ -1270,12 +1232,12 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1270
1232
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1271
1233
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1272
1234
|
}): string;
|
|
1273
|
-
static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
1235
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1274
1236
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
1275
1237
|
estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
|
|
1276
1238
|
stateOverrideSet?: StateOverrideSet;
|
|
1277
1239
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1278
|
-
expectedSigners?: Signer[];
|
|
1240
|
+
expectedSigners?: Signer$1[];
|
|
1279
1241
|
webAuthnSharedSigner?: string;
|
|
1280
1242
|
webAuthnSignerFactory?: string;
|
|
1281
1243
|
webAuthnSignerSingleton?: string;
|
|
@@ -1287,6 +1249,11 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1287
1249
|
validAfter?: bigint;
|
|
1288
1250
|
validUntil?: bigint;
|
|
1289
1251
|
}): string;
|
|
1252
|
+
signUserOperationWithSigners(useroperation: UserOperationV7, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1253
|
+
validAfter?: bigint;
|
|
1254
|
+
validUntil?: bigint;
|
|
1255
|
+
isMultiChainSignature?: boolean;
|
|
1256
|
+
}): Promise<string>;
|
|
1290
1257
|
}
|
|
1291
1258
|
//#endregion
|
|
1292
1259
|
//#region src/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts
|
|
@@ -1305,14 +1272,14 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
|
1305
1272
|
safeFactoryAddress?: string;
|
|
1306
1273
|
singletonInitHash?: string;
|
|
1307
1274
|
}): string;
|
|
1308
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
|
|
1309
|
-
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
1310
|
-
static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
1275
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
|
|
1276
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1277
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1311
1278
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
1312
1279
|
estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
|
|
1313
1280
|
stateOverrideSet?: StateOverrideSet;
|
|
1314
1281
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1315
|
-
expectedSigners?: Signer[];
|
|
1282
|
+
expectedSigners?: Signer$1[];
|
|
1316
1283
|
webAuthnSharedSigner?: string;
|
|
1317
1284
|
webAuthnSignerFactory?: string;
|
|
1318
1285
|
webAuthnSignerSingleton?: string;
|
|
@@ -1332,7 +1299,101 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
|
1332
1299
|
eip7212WebAuthnContractVerifier?: string;
|
|
1333
1300
|
webAuthnSignerFactory?: string;
|
|
1334
1301
|
}): MetaTransaction;
|
|
1335
|
-
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1302
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1303
|
+
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
1304
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1305
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1306
|
+
webAuthnSignerSingleton?: string;
|
|
1307
|
+
}): Promise<boolean>;
|
|
1308
|
+
}
|
|
1309
|
+
//#endregion
|
|
1310
|
+
//#region src/account/Safe/SafeMultiChainSigAccount.d.ts
|
|
1311
|
+
declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
1312
|
+
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
|
|
1313
|
+
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x22939E839e3c0F479B713eAF95e0df128554AEAd";
|
|
1314
|
+
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
|
|
1315
|
+
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
1316
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
|
|
1317
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
|
|
1318
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x610100346100ad57601f6101b538819003918201601f19168301916001600160401b038311848410176100b2578084926080946040528339810103126100ad578051906001600160a01b03821682036100ad5760208101516040820151606090920151926001600160b01b03841684036100ad5760805260a05260c05260e05260405160ec90816100c98239608051816082015260a05181604d015260c051816027015260e0518160010152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe7f000000000000000000000000000000000000000000000000000000000000000060b63601527f000000000000000000000000000000000000000000000000000000000000000060a03601527f000000000000000000000000000000000000000000000000000000000000000036608001523660006080376000806056360160807f00000000000000000000000000000000000000000000000000000000000000005af43d600060803e60b1573d6080fd5b3d6080f3fea26469706673582212201660515548d15702d720bbc046b457ca85e941a4559ab9f9518488e4c82e5ee964736f6c634300081a0033";
|
|
1319
|
+
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
1320
|
+
static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
|
|
1321
|
+
constructor(accountAddress: string, overrides?: {
|
|
1322
|
+
safe4337ModuleAddress?: string;
|
|
1323
|
+
entrypointAddress?: string;
|
|
1324
|
+
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
1325
|
+
onChainIdentifier?: string;
|
|
1326
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
1327
|
+
});
|
|
1328
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1329
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeMultiChainSigAccountV1;
|
|
1330
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
1331
|
+
validAfter?: bigint;
|
|
1332
|
+
validUntil?: bigint;
|
|
1333
|
+
entrypointAddress?: string;
|
|
1334
|
+
safe4337ModuleAddress?: string;
|
|
1335
|
+
}): string;
|
|
1336
|
+
static getUserOperationEip712Data(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
1337
|
+
validAfter?: bigint;
|
|
1338
|
+
validUntil?: bigint;
|
|
1339
|
+
entrypointAddress?: string;
|
|
1340
|
+
safe4337ModuleAddress?: string;
|
|
1341
|
+
}): {
|
|
1342
|
+
domain: SafeUserOperationTypedDataDomain;
|
|
1343
|
+
types: Record<string, {
|
|
1344
|
+
name: string;
|
|
1345
|
+
type: string;
|
|
1346
|
+
}[]>;
|
|
1347
|
+
messageValue: SafeUserOperationV9TypedMessageValue;
|
|
1348
|
+
};
|
|
1349
|
+
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
1350
|
+
safe4337ModuleAddress?: string;
|
|
1351
|
+
safeModuleSetupAddress?: string;
|
|
1352
|
+
multisendContractAddress?: string;
|
|
1353
|
+
webAuthnSharedSigner?: string;
|
|
1354
|
+
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1355
|
+
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1356
|
+
}): string;
|
|
1357
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1358
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV9Overrides): Promise<UserOperationV9>;
|
|
1359
|
+
signUserOperation(userOperation: UserOperationV9, privateKeys: string[], chainId: bigint, overrides?: {
|
|
1360
|
+
validAfter?: bigint;
|
|
1361
|
+
validUntil?: bigint;
|
|
1362
|
+
}): string;
|
|
1363
|
+
signUserOperationWithSigners(userOperation: UserOperationV9, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1364
|
+
validAfter?: bigint;
|
|
1365
|
+
validUntil?: bigint;
|
|
1366
|
+
}): Promise<string>;
|
|
1367
|
+
signUserOperations(userOperationsToSign: UserOperationToSign[], privateKeys: string[]): string[];
|
|
1368
|
+
signUserOperationsWithSigners(userOperationsToSign: UserOperationToSign[], signers: ReadonlyArray<Signer<MultiOpSignContext<UserOperationV9>>>): Promise<string[]>;
|
|
1369
|
+
static getMultiChainSingleSignatureUserOperationsEip712Hash(userOperationsToSignsToSign: UserOperationToSign[], overrides?: {
|
|
1370
|
+
safe4337ModuleAddress?: string;
|
|
1371
|
+
}): string;
|
|
1372
|
+
static getMultiChainSingleSignatureUserOperationsEip712Data(userOperationsToSign: UserOperationToSign[], overrides?: {
|
|
1373
|
+
safe4337ModuleAddress?: string;
|
|
1374
|
+
entrypointAddress?: string;
|
|
1375
|
+
}): {
|
|
1376
|
+
domain: MultiChainSignatureMerkleTreeRootTypedDataDomain;
|
|
1377
|
+
types: Record<string, {
|
|
1378
|
+
name: string;
|
|
1379
|
+
type: string;
|
|
1380
|
+
}[]>;
|
|
1381
|
+
messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
|
|
1382
|
+
};
|
|
1383
|
+
static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSignWithOverrides[], signerSignaturePairs: SignerSignaturePair[]): string[];
|
|
1384
|
+
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
1385
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1386
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1387
|
+
webAuthnSignerFactory?: string;
|
|
1388
|
+
webAuthnSignerSingleton?: string;
|
|
1389
|
+
webAuthnSignerProxyCreationCode?: string;
|
|
1390
|
+
}): string;
|
|
1391
|
+
static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
|
|
1392
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1393
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1394
|
+
webAuthnSignerFactory?: string;
|
|
1395
|
+
}): MetaTransaction;
|
|
1396
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1336
1397
|
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
1337
1398
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1338
1399
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -1340,6 +1401,85 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
|
1340
1401
|
}): Promise<boolean>;
|
|
1341
1402
|
}
|
|
1342
1403
|
//#endregion
|
|
1404
|
+
//#region src/account/simple/Simple7702AccountV09.d.ts
|
|
1405
|
+
declare class Simple7702AccountV09 extends BaseSimple7702Account {
|
|
1406
|
+
static readonly DEFAULT_DELEGATEE_ADDRESS = "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5";
|
|
1407
|
+
constructor(accountAddress: string, overrides?: {
|
|
1408
|
+
entrypointAddress?: string;
|
|
1409
|
+
delegateeAddress?: string;
|
|
1410
|
+
});
|
|
1411
|
+
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
|
|
1412
|
+
estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
|
|
1413
|
+
stateOverrideSet?: StateOverrideSet;
|
|
1414
|
+
dummySignature?: string;
|
|
1415
|
+
}): Promise<[bigint, bigint, bigint]>;
|
|
1416
|
+
signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
1417
|
+
signUserOperationWithSigner(useroperation: UserOperationV9, signer: Signer, chainId: bigint): Promise<string>;
|
|
1418
|
+
sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
1419
|
+
}
|
|
1420
|
+
//#endregion
|
|
1421
|
+
//#region src/constants.d.ts
|
|
1422
|
+
declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
1423
|
+
declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
|
|
1424
|
+
declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
1425
|
+
declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
1426
|
+
declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1427
|
+
declare const BaseUserOperationDummyValues: {
|
|
1428
|
+
sender: string;
|
|
1429
|
+
nonce: bigint;
|
|
1430
|
+
callData: string;
|
|
1431
|
+
callGasLimit: bigint;
|
|
1432
|
+
verificationGasLimit: bigint;
|
|
1433
|
+
preVerificationGas: bigint;
|
|
1434
|
+
maxFeePerGas: bigint;
|
|
1435
|
+
maxPriorityFeePerGas: bigint;
|
|
1436
|
+
signature: string;
|
|
1437
|
+
};
|
|
1438
|
+
declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
|
|
1439
|
+
declare const EIP712_SAFE_OPERATION_V6_TYPE: {
|
|
1440
|
+
SafeOp: {
|
|
1441
|
+
type: string;
|
|
1442
|
+
name: string;
|
|
1443
|
+
}[];
|
|
1444
|
+
};
|
|
1445
|
+
declare const EIP712_SAFE_OPERATION_V7_TYPE: {
|
|
1446
|
+
SafeOp: {
|
|
1447
|
+
type: string;
|
|
1448
|
+
name: string;
|
|
1449
|
+
}[];
|
|
1450
|
+
};
|
|
1451
|
+
declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
|
|
1452
|
+
declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
|
|
1453
|
+
MerkleTreeRoot: {
|
|
1454
|
+
type: string;
|
|
1455
|
+
name: string;
|
|
1456
|
+
}[];
|
|
1457
|
+
};
|
|
1458
|
+
declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
|
|
1459
|
+
declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
|
|
1460
|
+
declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
|
|
1461
|
+
//#endregion
|
|
1462
|
+
//#region src/errors.d.ts
|
|
1463
|
+
type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
|
|
1464
|
+
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";
|
|
1465
|
+
type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
|
|
1466
|
+
type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
|
|
1467
|
+
readonly [key: string]: Jsonable;
|
|
1468
|
+
} | {
|
|
1469
|
+
toJSON(): Jsonable;
|
|
1470
|
+
};
|
|
1471
|
+
declare class AbstractionKitError extends Error {
|
|
1472
|
+
readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
|
|
1473
|
+
readonly context?: Jsonable;
|
|
1474
|
+
readonly errno?: number;
|
|
1475
|
+
constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
|
|
1476
|
+
cause?: Error;
|
|
1477
|
+
errno?: number;
|
|
1478
|
+
context?: Jsonable;
|
|
1479
|
+
});
|
|
1480
|
+
stringify(): string;
|
|
1481
|
+
}
|
|
1482
|
+
//#endregion
|
|
1343
1483
|
//#region src/factory/SmartAccountFactory.d.ts
|
|
1344
1484
|
declare class SmartAccountFactory {
|
|
1345
1485
|
readonly address: string;
|
|
@@ -1358,6 +1498,14 @@ declare class SafeAccountFactory extends SmartAccountFactory {
|
|
|
1358
1498
|
//#region src/paymaster/Paymaster.d.ts
|
|
1359
1499
|
declare abstract class Paymaster {}
|
|
1360
1500
|
//#endregion
|
|
1501
|
+
//#region src/paymaster/AllowAllPaymaster.d.ts
|
|
1502
|
+
declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
|
|
1503
|
+
readonly address: string;
|
|
1504
|
+
constructor(address?: string);
|
|
1505
|
+
getPaymasterFieldsInitValues(_chainId: bigint): Promise<ParallelPaymasterInitValues>;
|
|
1506
|
+
getApprovedPaymasterData(_userOperation: UserOperationV9): Promise<string>;
|
|
1507
|
+
}
|
|
1508
|
+
//#endregion
|
|
1361
1509
|
//#region src/paymaster/CandidePaymaster.d.ts
|
|
1362
1510
|
declare class CandidePaymaster extends Paymaster {
|
|
1363
1511
|
readonly rpcUrl: string;
|
|
@@ -1386,8 +1534,14 @@ declare class CandidePaymaster extends Paymaster {
|
|
|
1386
1534
|
private estimateAndApplyGasLimits;
|
|
1387
1535
|
private applyPaymasterResult;
|
|
1388
1536
|
private createPaymasterUserOperation;
|
|
1389
|
-
createSponsorPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, sponsorshipPolicyId?: string, overrides?: GasPaymasterUserOperationOverrides): Promise<
|
|
1390
|
-
|
|
1537
|
+
createSponsorPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, sponsorshipPolicyId?: string, context?: CandidePaymasterContext, overrides?: GasPaymasterUserOperationOverrides): Promise<{
|
|
1538
|
+
userOperation: SameUserOp<T>;
|
|
1539
|
+
sponsorMetadata?: SponsorMetadata;
|
|
1540
|
+
}>;
|
|
1541
|
+
createTokenPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: PrependTokenPaymasterApproveAccount, userOperation: T, tokenAddress: string, bundlerRpc: string, context?: CandidePaymasterContext, overrides?: GasPaymasterUserOperationOverrides): Promise<{
|
|
1542
|
+
userOperation: SameUserOp<T>;
|
|
1543
|
+
tokenQuote?: TokenQuote;
|
|
1544
|
+
}>;
|
|
1391
1545
|
calculateUserOperationErc20TokenMaxGasCost(smartAccount: SmartAccountWithEntrypoint, userOperation: AnyUserOperation, erc20TokenAddress: string, overrides?: {
|
|
1392
1546
|
entrypoint?: string | null;
|
|
1393
1547
|
}): Promise<bigint>;
|
|
@@ -1420,7 +1574,10 @@ declare class Erc7677Paymaster extends Paymaster {
|
|
|
1420
1574
|
getPaymasterStubData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677StubDataResult>;
|
|
1421
1575
|
getPaymasterData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677PaymasterFields>;
|
|
1422
1576
|
sendRPCRequest(method: string, params?: unknown[]): Promise<unknown>;
|
|
1423
|
-
createPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, context?: Erc7677Context, overrides?: GasPaymasterUserOperationOverrides): Promise<
|
|
1577
|
+
createPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, context?: Erc7677Context, overrides?: GasPaymasterUserOperationOverrides): Promise<{
|
|
1578
|
+
userOperation: SameUserOp<T>;
|
|
1579
|
+
tokenQuote?: TokenQuote;
|
|
1580
|
+
}>;
|
|
1424
1581
|
private applyPaymasterFields;
|
|
1425
1582
|
private estimateAndApplyGasLimits;
|
|
1426
1583
|
private fetchPimlicoTokenQuote;
|
|
@@ -1433,14 +1590,6 @@ declare class Erc7677Paymaster extends Paymaster {
|
|
|
1433
1590
|
private sponsoredFlow;
|
|
1434
1591
|
}
|
|
1435
1592
|
//#endregion
|
|
1436
|
-
//#region src/paymaster/AllowAllPaymaster.d.ts
|
|
1437
|
-
declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
|
|
1438
|
-
readonly address: string;
|
|
1439
|
-
constructor(address?: string);
|
|
1440
|
-
getPaymasterFieldsInitValues(chainId: bigint): Promise<ParallelPaymasterInitValues>;
|
|
1441
|
-
getApprovedPaymasterData(userOperation: UserOperationV9): Promise<string>;
|
|
1442
|
-
}
|
|
1443
|
-
//#endregion
|
|
1444
1593
|
//#region src/paymaster/WorldIdPermissionlessPaymaster.d.ts
|
|
1445
1594
|
declare class WorldIdPermissionlessPaymaster extends Paymaster {
|
|
1446
1595
|
readonly address: string;
|
|
@@ -1456,6 +1605,51 @@ declare class WorldIdPermissionlessPaymaster extends Paymaster {
|
|
|
1456
1605
|
}
|
|
1457
1606
|
declare function createWorldIdSignal(accountAddress: string, accountNonce: bigint, chainId: bigint): string;
|
|
1458
1607
|
//#endregion
|
|
1608
|
+
//#region src/signer/adapters.d.ts
|
|
1609
|
+
interface ViemLocalAccountLike {
|
|
1610
|
+
address: `0x${string}`;
|
|
1611
|
+
sign: (args: {
|
|
1612
|
+
hash: `0x${string}`;
|
|
1613
|
+
}) => Promise<`0x${string}`>;
|
|
1614
|
+
signTypedData: (args: {
|
|
1615
|
+
domain: TypedData["domain"];
|
|
1616
|
+
types: Record<string, Array<{
|
|
1617
|
+
name: string;
|
|
1618
|
+
type: string;
|
|
1619
|
+
}>>;
|
|
1620
|
+
primaryType: string;
|
|
1621
|
+
message: Record<string, unknown>;
|
|
1622
|
+
}) => Promise<`0x${string}`>;
|
|
1623
|
+
}
|
|
1624
|
+
interface ViemWalletClientLike {
|
|
1625
|
+
account?: {
|
|
1626
|
+
address: `0x${string}`;
|
|
1627
|
+
} | undefined;
|
|
1628
|
+
signTypedData: unknown;
|
|
1629
|
+
}
|
|
1630
|
+
interface EthersWalletLike {
|
|
1631
|
+
address: string;
|
|
1632
|
+
signingKey: {
|
|
1633
|
+
sign: (hash: string) => {
|
|
1634
|
+
serialized: string;
|
|
1635
|
+
};
|
|
1636
|
+
};
|
|
1637
|
+
signTypedData: (domain: {
|
|
1638
|
+
name?: string;
|
|
1639
|
+
version?: string;
|
|
1640
|
+
chainId?: number | bigint;
|
|
1641
|
+
verifyingContract?: string;
|
|
1642
|
+
salt?: string;
|
|
1643
|
+
}, types: Record<string, Array<{
|
|
1644
|
+
name: string;
|
|
1645
|
+
type: string;
|
|
1646
|
+
}>>, message: Record<string, unknown>) => Promise<string>;
|
|
1647
|
+
}
|
|
1648
|
+
declare function fromPrivateKey(privateKey: string): Signer<unknown>;
|
|
1649
|
+
declare function fromViem(account: ViemLocalAccountLike): Signer<unknown>;
|
|
1650
|
+
declare function fromViemWalletClient(client: ViemWalletClientLike): Signer<unknown>;
|
|
1651
|
+
declare function fromEthersWallet(wallet: EthersWalletLike): Signer<unknown>;
|
|
1652
|
+
//#endregion
|
|
1459
1653
|
//#region src/utils.d.ts
|
|
1460
1654
|
declare function createUserOperationHash(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, entrypointAddress: string, chainId: bigint): string;
|
|
1461
1655
|
declare function createCallData(functionSelector: string, functionInputAbi: string[], functionInputParameters: AbiInputValue[]): string;
|
|
@@ -1537,7 +1731,7 @@ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderl
|
|
|
1537
1731
|
gasPrice?: number | null;
|
|
1538
1732
|
value?: number | null;
|
|
1539
1733
|
blockNumber?: number | null;
|
|
1540
|
-
simulationType?:
|
|
1734
|
+
simulationType?: "full" | "quick" | "abi";
|
|
1541
1735
|
stateOverrides?: OverrideType | null;
|
|
1542
1736
|
transactionIndex?: number;
|
|
1543
1737
|
save?: boolean;
|
|
@@ -1548,71 +1742,9 @@ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderl
|
|
|
1548
1742
|
address: string;
|
|
1549
1743
|
}[];
|
|
1550
1744
|
}[]): Promise<TenderlySimulationResult>;
|
|
1551
|
-
//#endregion
|
|
1552
|
-
//#region src/constants.d.ts
|
|
1553
|
-
declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
1554
|
-
declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
|
|
1555
|
-
declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
1556
|
-
declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
1557
|
-
declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1558
|
-
declare const BaseUserOperationDummyValues: {
|
|
1559
|
-
sender: string;
|
|
1560
|
-
nonce: bigint;
|
|
1561
|
-
callData: string;
|
|
1562
|
-
callGasLimit: bigint;
|
|
1563
|
-
verificationGasLimit: bigint;
|
|
1564
|
-
preVerificationGas: bigint;
|
|
1565
|
-
maxFeePerGas: bigint;
|
|
1566
|
-
maxPriorityFeePerGas: bigint;
|
|
1567
|
-
signature: string;
|
|
1568
|
-
};
|
|
1569
|
-
declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
|
|
1570
|
-
declare const EIP712_SAFE_OPERATION_V6_TYPE: {
|
|
1571
|
-
SafeOp: {
|
|
1572
|
-
type: string;
|
|
1573
|
-
name: string;
|
|
1574
|
-
}[];
|
|
1575
|
-
};
|
|
1576
|
-
declare const EIP712_SAFE_OPERATION_V7_TYPE: {
|
|
1577
|
-
SafeOp: {
|
|
1578
|
-
type: string;
|
|
1579
|
-
name: string;
|
|
1580
|
-
}[];
|
|
1581
|
-
};
|
|
1582
|
-
declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
|
|
1583
|
-
declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
|
|
1584
|
-
MerkleTreeRoot: {
|
|
1585
|
-
type: string;
|
|
1586
|
-
name: string;
|
|
1587
|
-
}[];
|
|
1588
|
-
};
|
|
1589
|
-
declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
|
|
1590
|
-
declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
|
|
1591
|
-
declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
|
|
1592
|
-
//#endregion
|
|
1593
|
-
//#region src/errors.d.ts
|
|
1594
|
-
type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
|
|
1595
|
-
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";
|
|
1596
|
-
type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
|
|
1597
|
-
type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
|
|
1598
|
-
readonly [key: string]: Jsonable;
|
|
1599
|
-
} | {
|
|
1600
|
-
toJSON(): Jsonable;
|
|
1601
|
-
};
|
|
1602
|
-
declare class AbstractionKitError extends Error {
|
|
1603
|
-
readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
|
|
1604
|
-
readonly context?: Jsonable;
|
|
1605
|
-
readonly errno?: number;
|
|
1606
|
-
constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
|
|
1607
|
-
cause?: Error;
|
|
1608
|
-
errno?: number;
|
|
1609
|
-
context?: Jsonable;
|
|
1610
|
-
});
|
|
1611
|
-
stringify(): string;
|
|
1612
|
-
}
|
|
1613
1745
|
declare namespace abstractionkit_d_exports {
|
|
1614
|
-
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, Erc7677Context, Erc7677Paymaster, Erc7677PaymasterConstructorOptions, Erc7677PaymasterFields, Erc7677Provider, Erc7677StubDataResult, ExperimentalAllowAllParallelPaymaster, GasEstimationResult, GasOption, GasPaymasterUserOperationOverrides, 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,
|
|
1746
|
+
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, Erc7677Context, Erc7677Paymaster, Erc7677PaymasterConstructorOptions, Erc7677PaymasterFields, Erc7677Provider, Erc7677StubDataResult, ExperimentalAllowAllParallelPaymaster, Signer as ExternalSigner, GasEstimationResult, GasOption, GasPaymasterUserOperationOverrides, InitCodeOverrides, JsonRpcError, JsonRpcParam, JsonRpcResponse, JsonRpcResult, MetaTransaction, MultiOpSignContext, 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, SignContext, SignHashFn, SignTypedDataFn, Signer$1 as Signer, SignerSignaturePair, SigningScheme, Simple7702Account, Simple7702AccountV09, SmartAccount, SmartAccountFactory, SocialRecoveryModule, SocialRecoveryModuleGracePeriodSelector, SponsorInfo, SponsorMetadata, StateOverrideSet, TokenQuote, TypedData, 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, fromEthersWallet, fromPrivateKey, fromViem, fromViemWalletClient, getBalanceOf, getDelegatedAddress, getDepositInfo, getFunctionSelector, getSafeMessageEip712Data, sendJsonRpcRequest, shareTenderlySimulationAndCreateLink, signHash, simulateSenderCallDataWithTenderly, simulateSenderCallDataWithTenderlyAndCreateShareLink, simulateUserOperationCallDataWithTenderly, simulateUserOperationCallDataWithTenderlyAndCreateShareLink, simulateUserOperationWithTenderly, simulateUserOperationWithTenderlyAndCreateShareLink };
|
|
1615
1747
|
}
|
|
1616
1748
|
//#endregion
|
|
1617
|
-
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, type Erc7677Context, Erc7677Paymaster, type Erc7677PaymasterConstructorOptions, type Erc7677PaymasterFields, type Erc7677Provider, type Erc7677StubDataResult, ExperimentalAllowAllParallelPaymaster, type GasEstimationResult, GasOption, type GasPaymasterUserOperationOverrides, 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
|
|
1749
|
+
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, type Erc7677Context, Erc7677Paymaster, type Erc7677PaymasterConstructorOptions, type Erc7677PaymasterFields, type Erc7677Provider, type Erc7677StubDataResult, ExperimentalAllowAllParallelPaymaster, type Signer as ExternalSigner, type GasEstimationResult, GasOption, type GasPaymasterUserOperationOverrides, type InitCodeOverrides, type JsonRpcError, type JsonRpcParam, type JsonRpcResponse, type JsonRpcResult, type MetaTransaction, type MultiOpSignContext, 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 SignContext, type SignHashFn, type SignTypedDataFn, type Signer$1 as Signer, type SignerSignaturePair, type SigningScheme, Simple7702Account, Simple7702AccountV09, SmartAccount, SmartAccountFactory, SocialRecoveryModule, SocialRecoveryModuleGracePeriodSelector, type SponsorInfo, type SponsorMetadata, type StateOverrideSet, type TokenQuote, type TypedData, 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, fromEthersWallet, fromPrivateKey, fromViem, fromViemWalletClient, getBalanceOf, getDelegatedAddress, getDepositInfo, getFunctionSelector, getSafeMessageEip712Data, sendJsonRpcRequest, shareTenderlySimulationAndCreateLink, signHash, simulateSenderCallDataWithTenderly, simulateSenderCallDataWithTenderlyAndCreateShareLink, simulateUserOperationCallDataWithTenderly, simulateUserOperationCallDataWithTenderlyAndCreateShareLink, simulateUserOperationWithTenderly, simulateUserOperationWithTenderlyAndCreateShareLink };
|
|
1618
1750
|
//# sourceMappingURL=index.d.mts.map
|