abstractionkit 0.3.2 → 0.3.4
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 +66 -0
- package/README.md +29 -14
- package/dist/index.cjs +5091 -4931
- package/dist/index.d.cts +659 -638
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +659 -638
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +5091 -4931
- package/dist/index.mjs +5092 -4932
- 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,39 @@ 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
|
|
243
274
|
//#region src/signer/types.d.ts
|
|
244
275
|
interface TypedData {
|
|
245
276
|
domain: {
|
|
@@ -304,6 +335,17 @@ declare class SendUseroperationResponse {
|
|
|
304
335
|
included(timeoutInSeconds?: number, requestIntervalInSeconds?: number): Promise<UserOperationReceiptResult>;
|
|
305
336
|
}
|
|
306
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
|
|
307
349
|
//#region src/account/simple/Simple7702Account.d.ts
|
|
308
350
|
interface SimpleMetaTransaction {
|
|
309
351
|
to: string;
|
|
@@ -324,6 +366,7 @@ interface CreateUserOperationOverrides {
|
|
|
324
366
|
maxFeePerGasPercentageMultiplier?: number;
|
|
325
367
|
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
326
368
|
state_override_set?: StateOverrideSet;
|
|
369
|
+
skipGasEstimation?: boolean;
|
|
327
370
|
dummySignature?: string;
|
|
328
371
|
gasLevel?: GasOption;
|
|
329
372
|
polygonGasStation?: PolygonChain;
|
|
@@ -391,25 +434,35 @@ declare class Simple7702Account extends BaseSimple7702Account {
|
|
|
391
434
|
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
392
435
|
}
|
|
393
436
|
//#endregion
|
|
394
|
-
//#region src/account/
|
|
395
|
-
declare
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
delegateeAddress?: string;
|
|
400
|
-
});
|
|
401
|
-
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
|
|
402
|
-
estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
|
|
403
|
-
stateOverrideSet?: StateOverrideSet;
|
|
404
|
-
dummySignature?: string;
|
|
405
|
-
}): Promise<[bigint, bigint, bigint]>;
|
|
406
|
-
signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
407
|
-
signUserOperationWithSigner(useroperation: UserOperationV9, signer: Signer, chainId: bigint): Promise<string>;
|
|
408
|
-
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
|
|
409
442
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
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 {
|
|
413
466
|
nonce?: bigint;
|
|
414
467
|
callData?: string;
|
|
415
468
|
callGasLimit?: bigint;
|
|
@@ -423,67 +476,294 @@ interface CreateBaseUserOperationOverrides {
|
|
|
423
476
|
maxFeePerGasPercentageMultiplier?: number;
|
|
424
477
|
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
425
478
|
state_override_set?: StateOverrideSet;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
webAuthnSignerFactory?: string;
|
|
429
|
-
webAuthnSignerSingleton?: string;
|
|
430
|
-
webAuthnSignerProxyCreationCode?: string;
|
|
431
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
432
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
433
|
-
safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
|
|
434
|
-
multisendContractAddress?: string;
|
|
479
|
+
skipGasEstimation?: boolean;
|
|
480
|
+
dummySignature?: string;
|
|
435
481
|
gasLevel?: GasOption;
|
|
436
482
|
polygonGasStation?: PolygonChain;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
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;
|
|
444
492
|
};
|
|
445
493
|
}
|
|
446
|
-
interface
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
interface CreateUserOperationV7Overrides extends CreateBaseUserOperationOverrides {
|
|
450
|
-
factory?: string;
|
|
451
|
-
factoryData?: string;
|
|
494
|
+
interface CaliburSignatureOverrides {
|
|
495
|
+
hookData?: string;
|
|
496
|
+
keyHash?: string;
|
|
452
497
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
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;
|
|
457
547
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
multisendContractAddress?: string;
|
|
467
|
-
webAuthnSharedSigner?: string;
|
|
468
|
-
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
469
|
-
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
470
|
-
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
471
|
-
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;
|
|
472
556
|
}
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
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
|
+
}>;
|
|
482
586
|
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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;
|
|
762
|
+
}
|
|
763
|
+
interface WebAuthnSignatureOverrides {
|
|
764
|
+
isInit?: boolean;
|
|
765
|
+
webAuthnSharedSigner?: string;
|
|
766
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
487
767
|
eip7212WebAuthnContractVerifier?: string;
|
|
488
768
|
webAuthnSignerFactory?: string;
|
|
489
769
|
webAuthnSignerSingleton?: string;
|
|
@@ -576,30 +856,6 @@ interface MultiChainSignatureMerkleTreeRootTypedMessageValue {
|
|
|
576
856
|
merkleTreeRoot: string;
|
|
577
857
|
}
|
|
578
858
|
//#endregion
|
|
579
|
-
//#region src/account/Safe/safeMessage.d.ts
|
|
580
|
-
declare const SAFE_MESSAGE_PRIMARY_TYPE = "SafeMessage";
|
|
581
|
-
declare const SAFE_MESSAGE_MODULE_TYPE: {
|
|
582
|
-
SafeMessage: {
|
|
583
|
-
type: string;
|
|
584
|
-
name: string;
|
|
585
|
-
}[];
|
|
586
|
-
};
|
|
587
|
-
type SafeMessageTypedDataDomain = {
|
|
588
|
-
chainId: number;
|
|
589
|
-
verifyingContract: string;
|
|
590
|
-
};
|
|
591
|
-
type SafeMessageTypedMessageValue = {
|
|
592
|
-
message: string;
|
|
593
|
-
};
|
|
594
|
-
declare function getSafeMessageEip712Data(accountAddress: string, chainId: bigint, message: string): {
|
|
595
|
-
domain: SafeMessageTypedDataDomain;
|
|
596
|
-
types: Record<string, {
|
|
597
|
-
name: string;
|
|
598
|
-
type: string;
|
|
599
|
-
}[]>;
|
|
600
|
-
messageValue: SafeMessageTypedMessageValue;
|
|
601
|
-
};
|
|
602
|
-
//#endregion
|
|
603
859
|
//#region src/account/Safe/SafeAccount.d.ts
|
|
604
860
|
declare class SafeAccount extends SmartAccount {
|
|
605
861
|
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
@@ -632,6 +888,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
632
888
|
safeFactoryAddress?: string;
|
|
633
889
|
singletonInitHash?: string;
|
|
634
890
|
}): string;
|
|
891
|
+
static isDeployed(accountAddress: string, nodeRpcUrl: string): Promise<boolean>;
|
|
635
892
|
static createAccountCallDataSingleTransaction(metaTransaction: MetaTransaction, overrides?: {
|
|
636
893
|
safeModuleExecutorFunctionSelector?: SafeModuleExecutorFunctionSelector;
|
|
637
894
|
}): string;
|
|
@@ -853,33 +1110,37 @@ declare class SafeAccount extends SmartAccount {
|
|
|
853
1110
|
};
|
|
854
1111
|
}
|
|
855
1112
|
//#endregion
|
|
856
|
-
//#region src/account/Safe/
|
|
857
|
-
declare class
|
|
858
|
-
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "
|
|
859
|
-
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "
|
|
860
|
-
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "
|
|
861
|
-
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
862
|
-
static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
|
|
863
|
-
static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
|
|
864
|
-
static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x610100346100ad57601f6101b538819003918201601f19168301916001600160401b038311848410176100b2578084926080946040528339810103126100ad578051906001600160a01b03821682036100ad5760208101516040820151606090920151926001600160b01b03841684036100ad5760805260a05260c05260e05260405160ec90816100c98239608051816082015260a05181604d015260c051816027015260e0518160010152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe7f000000000000000000000000000000000000000000000000000000000000000060b63601527f000000000000000000000000000000000000000000000000000000000000000060a03601527f000000000000000000000000000000000000000000000000000000000000000036608001523660006080376000806056360160807f00000000000000000000000000000000000000000000000000000000000000005af43d600060803e60b1573d6080fd5b3d6080f3fea26469706673582212201660515548d15702d720bbc046b457ca85e941a4559ab9f9518488e4c82e5ee964736f6c634300081a0033";
|
|
865
|
-
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
866
|
-
static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
|
|
1113
|
+
//#region src/account/Safe/SafeAccountV0_2_0.d.ts
|
|
1114
|
+
declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
1115
|
+
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1116
|
+
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
|
|
1117
|
+
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
|
|
867
1118
|
constructor(accountAddress: string, overrides?: {
|
|
868
1119
|
safe4337ModuleAddress?: string;
|
|
869
1120
|
entrypointAddress?: string;
|
|
870
1121
|
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
871
1122
|
onChainIdentifier?: string;
|
|
872
|
-
safeAccountSingleton?: SafeAccountSingleton;
|
|
873
1123
|
});
|
|
874
|
-
static createAccountAddress(owners: Signer$1[], overrides?:
|
|
875
|
-
|
|
876
|
-
|
|
1124
|
+
static createAccountAddress(owners: Signer$1[], overrides?: {
|
|
1125
|
+
threshold?: number;
|
|
1126
|
+
c2Nonce?: bigint;
|
|
1127
|
+
safe4337ModuleAddress?: string;
|
|
1128
|
+
safeModuleSetupAddress?: string;
|
|
1129
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
1130
|
+
safeAccountFactoryAddress?: string;
|
|
1131
|
+
multisendContractAddress?: string;
|
|
1132
|
+
webAuthnSharedSigner?: string;
|
|
1133
|
+
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1134
|
+
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1135
|
+
}): string;
|
|
1136
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
1137
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
877
1138
|
validAfter?: bigint;
|
|
878
1139
|
validUntil?: bigint;
|
|
879
1140
|
entrypointAddress?: string;
|
|
880
1141
|
safe4337ModuleAddress?: string;
|
|
881
1142
|
}): string;
|
|
882
|
-
static getUserOperationEip712Data(useroperation:
|
|
1143
|
+
static getUserOperationEip712Data(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
883
1144
|
validAfter?: bigint;
|
|
884
1145
|
validUntil?: bigint;
|
|
885
1146
|
entrypointAddress?: string;
|
|
@@ -890,8 +1151,9 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
890
1151
|
name: string;
|
|
891
1152
|
type: string;
|
|
892
1153
|
}[]>;
|
|
893
|
-
messageValue:
|
|
1154
|
+
messageValue: SafeUserOperationV6TypedMessageValue;
|
|
894
1155
|
};
|
|
1156
|
+
static createAccountAddressAndInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
895
1157
|
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
896
1158
|
safe4337ModuleAddress?: string;
|
|
897
1159
|
safeModuleSetupAddress?: string;
|
|
@@ -900,391 +1162,57 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
900
1162
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
901
1163
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
902
1164
|
}): string;
|
|
903
|
-
static
|
|
904
|
-
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?:
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
safe4337ModuleAddress?: string;
|
|
917
|
-
}): string;
|
|
918
|
-
static getMultiChainSingleSignatureUserOperationsEip712Data(userOperationsToSign: UserOperationToSign[], overrides?: {
|
|
919
|
-
safe4337ModuleAddress?: string;
|
|
920
|
-
entrypointAddress?: string;
|
|
921
|
-
}): {
|
|
922
|
-
domain: MultiChainSignatureMerkleTreeRootTypedDataDomain;
|
|
923
|
-
types: Record<string, {
|
|
924
|
-
name: string;
|
|
925
|
-
type: string;
|
|
926
|
-
}[]>;
|
|
927
|
-
messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
|
|
928
|
-
};
|
|
929
|
-
static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSignWithOverrides[], signerSignaturePairs: SignerSignaturePair[]): string[];
|
|
930
|
-
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
931
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
932
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
1165
|
+
static createInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1166
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV6Overrides): Promise<UserOperationV6>;
|
|
1167
|
+
createMigrateToSafeAccountV0_3_0MetaTransactions(nodeRpcUrl: string, overrides?: {
|
|
1168
|
+
safeV06ModuleAddress?: string;
|
|
1169
|
+
safeV07ModuleAddress?: string;
|
|
1170
|
+
pageSize?: bigint;
|
|
1171
|
+
modulesStart?: string;
|
|
1172
|
+
}): Promise<MetaTransaction[]>;
|
|
1173
|
+
estimateUserOperationGas(userOperation: UserOperationV6, bundlerRpc: string, overrides?: {
|
|
1174
|
+
stateOverrideSet?: StateOverrideSet;
|
|
1175
|
+
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1176
|
+
expectedSigners?: Signer$1[];
|
|
1177
|
+
webAuthnSharedSigner?: string;
|
|
933
1178
|
webAuthnSignerFactory?: string;
|
|
934
1179
|
webAuthnSignerSingleton?: string;
|
|
935
1180
|
webAuthnSignerProxyCreationCode?: string;
|
|
936
|
-
}): string;
|
|
937
|
-
static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
|
|
938
1181
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
939
1182
|
eip7212WebAuthnContractVerifier?: string;
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
//#endregion
|
|
950
|
-
//#region src/paymaster/types.d.ts
|
|
951
|
-
type AnyUserOperation = UserOperationV9 | UserOperationV8 | UserOperationV7 | UserOperationV6;
|
|
952
|
-
type SameUserOp<T extends AnyUserOperation> = T extends UserOperationV9 ? UserOperationV9 : T extends UserOperationV8 ? UserOperationV8 : T extends UserOperationV7 ? UserOperationV7 : UserOperationV6;
|
|
953
|
-
interface CandidePaymasterContext {
|
|
954
|
-
token?: string;
|
|
955
|
-
sponsorshipPolicyId?: string;
|
|
956
|
-
signingPhase?: 'commit' | 'finalize';
|
|
957
|
-
}
|
|
958
|
-
interface SmartAccountWithEntrypoint {
|
|
959
|
-
readonly entrypointAddress: string;
|
|
960
|
-
}
|
|
961
|
-
interface PrependTokenPaymasterApproveAccount extends SmartAccountWithEntrypoint {
|
|
962
|
-
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
963
|
-
}
|
|
964
|
-
type Erc7677Provider = "pimlico" | "candide" | null;
|
|
965
|
-
interface Erc7677PaymasterConstructorOptions {
|
|
966
|
-
chainId?: bigint;
|
|
967
|
-
provider?: "auto" | Erc7677Provider;
|
|
968
|
-
}
|
|
969
|
-
interface BasePaymasterUserOperationOverrides {
|
|
970
|
-
entrypoint?: string;
|
|
971
|
-
resetApproval?: boolean;
|
|
972
|
-
}
|
|
973
|
-
interface GasPaymasterUserOperationOverrides extends BasePaymasterUserOperationOverrides {
|
|
974
|
-
callGasLimit?: bigint;
|
|
975
|
-
verificationGasLimit?: bigint;
|
|
976
|
-
preVerificationGas?: bigint;
|
|
977
|
-
callGasLimitPercentageMultiplier?: number;
|
|
978
|
-
verificationGasLimitPercentageMultiplier?: number;
|
|
979
|
-
preVerificationGasPercentageMultiplier?: number;
|
|
980
|
-
state_override_set?: StateOverrideSet;
|
|
981
|
-
context?: CandidePaymasterContext;
|
|
982
|
-
}
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region src/account/Calibur/types.d.ts
|
|
985
|
-
declare enum CaliburKeyType {
|
|
986
|
-
P256 = 0,
|
|
987
|
-
WebAuthnP256 = 1,
|
|
988
|
-
Secp256k1 = 2
|
|
989
|
-
}
|
|
990
|
-
interface CaliburKey {
|
|
991
|
-
keyType: CaliburKeyType;
|
|
992
|
-
publicKey: string;
|
|
993
|
-
}
|
|
994
|
-
interface CaliburKeySettings {
|
|
995
|
-
hook?: string;
|
|
996
|
-
expiration?: number;
|
|
997
|
-
isAdmin?: boolean;
|
|
998
|
-
}
|
|
999
|
-
interface CaliburKeySettingsResult {
|
|
1000
|
-
hook: string;
|
|
1001
|
-
expiration: number;
|
|
1002
|
-
isAdmin: boolean;
|
|
1003
|
-
}
|
|
1004
|
-
interface WebAuthnSignatureData {
|
|
1005
|
-
authenticatorData: string;
|
|
1006
|
-
clientDataJSON: string;
|
|
1007
|
-
challengeIndex: bigint;
|
|
1008
|
-
typeIndex: bigint;
|
|
1009
|
-
r: bigint;
|
|
1010
|
-
s: bigint;
|
|
1011
|
-
}
|
|
1012
|
-
interface CaliburCreateUserOperationOverrides {
|
|
1013
|
-
nonce?: bigint;
|
|
1014
|
-
callData?: string;
|
|
1015
|
-
callGasLimit?: bigint;
|
|
1016
|
-
verificationGasLimit?: bigint;
|
|
1017
|
-
preVerificationGas?: bigint;
|
|
1018
|
-
maxFeePerGas?: bigint;
|
|
1019
|
-
maxPriorityFeePerGas?: bigint;
|
|
1020
|
-
callGasLimitPercentageMultiplier?: number;
|
|
1021
|
-
verificationGasLimitPercentageMultiplier?: number;
|
|
1022
|
-
preVerificationGasPercentageMultiplier?: number;
|
|
1023
|
-
maxFeePerGasPercentageMultiplier?: number;
|
|
1024
|
-
maxPriorityFeePerGasPercentageMultiplier?: number;
|
|
1025
|
-
state_override_set?: StateOverrideSet;
|
|
1026
|
-
dummySignature?: string;
|
|
1027
|
-
gasLevel?: GasOption;
|
|
1028
|
-
polygonGasStation?: PolygonChain;
|
|
1029
|
-
revertOnFailure?: boolean;
|
|
1030
|
-
paymasterFields?: ParallelPaymasterInitValues;
|
|
1031
|
-
eip7702Auth?: {
|
|
1032
|
-
chainId: bigint;
|
|
1033
|
-
address?: string;
|
|
1034
|
-
nonce?: bigint;
|
|
1035
|
-
yParity?: string;
|
|
1036
|
-
r?: string;
|
|
1037
|
-
s?: string;
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
interface CaliburSignatureOverrides {
|
|
1041
|
-
hookData?: string;
|
|
1042
|
-
keyHash?: string;
|
|
1043
|
-
}
|
|
1044
|
-
//#endregion
|
|
1045
|
-
//#region src/account/Calibur/Calibur7702Account.d.ts
|
|
1046
|
-
declare class Calibur7702Account extends SmartAccount implements PrependTokenPaymasterApproveAccount {
|
|
1047
|
-
static readonly executorFunctionSelector = "0x8dd7712f";
|
|
1048
|
-
static readonly dummySignature: string;
|
|
1049
|
-
static createDummyWebAuthnSignature(keyHash: string): string;
|
|
1050
|
-
static wrapSignature(keyHash: string, rawSignature: string, hookData?: string): string;
|
|
1051
|
-
readonly entrypointAddress: string;
|
|
1052
|
-
readonly delegateeAddress: string;
|
|
1053
|
-
constructor(accountAddress: string, overrides?: {
|
|
1054
|
-
entrypointAddress?: string;
|
|
1055
|
-
delegateeAddress?: string;
|
|
1056
|
-
});
|
|
1057
|
-
getUserOperationHash(userOperation: UserOperationV8, chainId: bigint): string;
|
|
1058
|
-
static createAccountCallData(transactions: SimpleMetaTransaction[], revertOnFailure?: boolean): string;
|
|
1059
|
-
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CaliburCreateUserOperationOverrides): Promise<UserOperationV8>;
|
|
1060
|
-
signUserOperation(userOperation: UserOperationV8, privateKey: string, chainId: bigint, overrides?: CaliburSignatureOverrides): string;
|
|
1061
|
-
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
1062
|
-
signUserOperationWithSigner(userOperation: UserOperationV8, signer: Signer, chainId: bigint, overrides?: CaliburSignatureOverrides): Promise<string>;
|
|
1063
|
-
formatWebAuthnSignature(keyHash: string, webAuthnAuth: WebAuthnSignatureData, overrides?: CaliburSignatureOverrides): string;
|
|
1064
|
-
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
1065
|
-
static createSecp256k1Key(address: string): CaliburKey;
|
|
1066
|
-
static createWebAuthnP256Key(x: bigint, y: bigint): CaliburKey;
|
|
1067
|
-
static createP256Key(x: bigint, y: bigint): CaliburKey;
|
|
1068
|
-
static getKeyHash(key: CaliburKey): string;
|
|
1069
|
-
static packKeySettings(settings: CaliburKeySettings): bigint;
|
|
1070
|
-
static unpackKeySettings(packed: bigint): CaliburKeySettingsResult;
|
|
1071
|
-
static createRegisterKeyMetaTransactions(key: CaliburKey, settings?: CaliburKeySettings): [SimpleMetaTransaction, SimpleMetaTransaction];
|
|
1072
|
-
static createRevokeKeyMetaTransaction(keyHash: string): SimpleMetaTransaction;
|
|
1073
|
-
createRevokeAllKeysMetaTransactions(providerRpc: string): Promise<SimpleMetaTransaction[]>;
|
|
1074
|
-
createRevokeDelegationRawTransaction(chainId: bigint, eoaPrivateKey: string, providerRpc: string, overrides?: {
|
|
1075
|
-
nonce?: bigint;
|
|
1076
|
-
authorizationNonce?: bigint;
|
|
1077
|
-
maxFeePerGas?: bigint;
|
|
1078
|
-
maxPriorityFeePerGas?: bigint;
|
|
1079
|
-
gasLimit?: bigint;
|
|
1183
|
+
}): Promise<[bigint, bigint, bigint]>;
|
|
1184
|
+
signUserOperation(useroperation: UserOperationV6, privateKeys: string[], chainId: bigint, overrides?: {
|
|
1185
|
+
validAfter?: bigint;
|
|
1186
|
+
validUntil?: bigint;
|
|
1187
|
+
}): string;
|
|
1188
|
+
signUserOperationWithSigners(useroperation: UserOperationV6, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1189
|
+
validAfter?: bigint;
|
|
1190
|
+
validUntil?: bigint;
|
|
1191
|
+
isMultiChainSignature?: boolean;
|
|
1080
1192
|
}): Promise<string>;
|
|
1081
|
-
static createUpdateKeySettingsMetaTransaction(keyHash: string, settings: CaliburKeySettings): SimpleMetaTransaction;
|
|
1082
|
-
static createInvalidateNonceMetaTransaction(newNonce: bigint): SimpleMetaTransaction;
|
|
1083
|
-
isDelegatedToThisAccount(providerRpc: string): Promise<boolean>;
|
|
1084
|
-
getNonce(providerRpc: string, sequenceKey?: number): Promise<bigint>;
|
|
1085
|
-
isKeyRegistered(providerRpc: string, keyHash: string): Promise<boolean>;
|
|
1086
|
-
getKeySettings(providerRpc: string, keyHash: string): Promise<CaliburKeySettingsResult>;
|
|
1087
|
-
getKey(providerRpc: string, keyHash: string): Promise<CaliburKey>;
|
|
1088
|
-
getKeys(providerRpc: string, overrides?: {
|
|
1089
|
-
blockNumber?: bigint;
|
|
1090
|
-
}): Promise<CaliburKey[]>;
|
|
1091
|
-
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
1092
|
-
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
1093
1193
|
}
|
|
1094
1194
|
//#endregion
|
|
1095
|
-
//#region src/
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
}) => Promise<`0x${string}`>;
|
|
1101
|
-
signTypedData: (args: {
|
|
1102
|
-
domain: TypedData["domain"];
|
|
1103
|
-
types: Record<string, Array<{
|
|
1104
|
-
name: string;
|
|
1105
|
-
type: string;
|
|
1106
|
-
}>>;
|
|
1107
|
-
primaryType: string;
|
|
1108
|
-
message: Record<string, unknown>;
|
|
1109
|
-
}) => Promise<`0x${string}`>;
|
|
1110
|
-
}
|
|
1111
|
-
interface ViemWalletClientLike {
|
|
1112
|
-
account?: {
|
|
1113
|
-
address: `0x${string}`;
|
|
1114
|
-
} | undefined;
|
|
1115
|
-
signTypedData: unknown;
|
|
1116
|
-
}
|
|
1117
|
-
interface EthersWalletLike {
|
|
1118
|
-
address: string;
|
|
1119
|
-
signingKey: {
|
|
1120
|
-
sign: (hash: string) => {
|
|
1121
|
-
serialized: string;
|
|
1122
|
-
};
|
|
1123
|
-
};
|
|
1124
|
-
signTypedData: (domain: {
|
|
1125
|
-
name?: string;
|
|
1126
|
-
version?: string;
|
|
1127
|
-
chainId?: number | bigint;
|
|
1128
|
-
verifyingContract?: string;
|
|
1129
|
-
salt?: string;
|
|
1130
|
-
}, types: Record<string, Array<{
|
|
1131
|
-
name: string;
|
|
1132
|
-
type: string;
|
|
1133
|
-
}>>, message: Record<string, unknown>) => Promise<string>;
|
|
1134
|
-
}
|
|
1135
|
-
declare function fromPrivateKey(privateKey: string): Signer<unknown>;
|
|
1136
|
-
declare function fromViem(account: ViemLocalAccountLike): Signer<unknown>;
|
|
1137
|
-
declare function fromViemWalletClient(client: ViemWalletClientLike): Signer<unknown>;
|
|
1138
|
-
declare function fromEthersWallet(wallet: EthersWalletLike): Signer<unknown>;
|
|
1139
|
-
//#endregion
|
|
1140
|
-
//#region src/account/Safe/modules/SafeModule.d.ts
|
|
1141
|
-
declare abstract class SafeModule {
|
|
1142
|
-
readonly moduleAddress: string;
|
|
1143
|
-
protected readonly abiCoder: AbiCoder;
|
|
1144
|
-
constructor(moduleAddress: string);
|
|
1145
|
-
createEnableModuleMetaTransaction(accountAddress: string): MetaTransaction;
|
|
1146
|
-
checkForEmptyResultAndRevert(result: string, requestName: string): void;
|
|
1147
|
-
}
|
|
1148
|
-
//#endregion
|
|
1149
|
-
//#region src/account/Safe/modules/SocialRecoveryModule.d.ts
|
|
1150
|
-
declare enum SocialRecoveryModuleGracePeriodSelector {
|
|
1151
|
-
After3Minutes = "0x949d01d424bE050D09C16025dd007CB59b3A8c66",
|
|
1152
|
-
After3Days = "0x38275826E1933303E508433dD5f289315Da2541c",
|
|
1153
|
-
After7Days = "0x088f6cfD8BB1dDb1BB069CCb3fc1A98927D233f2",
|
|
1154
|
-
After14Days = "0x9BacD92F4687Db306D7ded5d4513a51EA05df25b"
|
|
1155
|
-
}
|
|
1156
|
-
declare class SocialRecoveryModule extends SafeModule {
|
|
1157
|
-
static readonly DEFAULT_SOCIAL_RECOVERY_ADDRESS = SocialRecoveryModuleGracePeriodSelector.After3Days;
|
|
1158
|
-
constructor(moduleAddress?: string);
|
|
1159
|
-
createConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, execute: boolean): MetaTransaction;
|
|
1160
|
-
createMultiConfirmRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number, signaturePairList: RecoverySignaturePair[], execute: boolean): MetaTransaction;
|
|
1161
|
-
createExecuteRecoveryMetaTransaction(accountAddress: string, newOwners: string[], newThreshold: number): MetaTransaction;
|
|
1162
|
-
createFinalizeRecoveryMetaTransaction(accountAddress: string): MetaTransaction;
|
|
1163
|
-
createCancelRecoveryMetaTransaction(): MetaTransaction;
|
|
1164
|
-
createAddGuardianWithThresholdMetaTransaction(guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
1165
|
-
createRevokeGuardianWithThresholdMetaTransaction(nodeRpcUrl: string, accountAddress: string, guardianAddress: string, threshold: bigint, overrides?: {
|
|
1166
|
-
prevGuardianAddress?: string;
|
|
1167
|
-
}): Promise<MetaTransaction>;
|
|
1168
|
-
createStandardRevokeGuardianWithThresholdMetaTransaction(prevGuardianAddress: string, guardianAddress: string, threshold: bigint): MetaTransaction;
|
|
1169
|
-
createChangeThresholdMetaTransaction(threshold: bigint): MetaTransaction;
|
|
1170
|
-
getRecoveryHash(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number, nonce: bigint): Promise<string>;
|
|
1171
|
-
getRecoveryRequest(nodeRpcUrl: string, accountAddress: string): Promise<RecoveryRequest>;
|
|
1172
|
-
getRecoveryApprovals(nodeRpcUrl: string, accountAddress: string, newOwners: string[], newThreshold: number): Promise<bigint>;
|
|
1173
|
-
hasGuardianApproved(nodeRpcUrl: string, accountAddress: string, guardian: string, newOwners: string[], newThreshold: number): Promise<boolean>;
|
|
1174
|
-
isGuardian(nodeRpcUrl: string, accountAddress: string, guardian: string): Promise<boolean>;
|
|
1175
|
-
guardiansCount(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
1176
|
-
threshold(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
1177
|
-
getGuardians(nodeRpcUrl: string, accountAddress: string): Promise<string[]>;
|
|
1178
|
-
nonce(nodeRpcUrl: string, accountAddress: string): Promise<bigint>;
|
|
1179
|
-
getRecoveryRequestEip712Data(rpcNode: string, chainId: bigint, accountAddress: string, newOwners: string[], newThreshold: bigint, overrides?: {
|
|
1180
|
-
recoveryNonce?: bigint;
|
|
1181
|
-
}): Promise<{
|
|
1182
|
-
domain: RecoveryRequestTypedDataDomain;
|
|
1183
|
-
types: Record<string, {
|
|
1184
|
-
name: string;
|
|
1185
|
-
type: string;
|
|
1186
|
-
}[]>;
|
|
1187
|
-
messageValue: RecoveryRequestTypedMessageValue;
|
|
1188
|
-
}>;
|
|
1189
|
-
}
|
|
1190
|
-
type RecoveryRequest = {
|
|
1191
|
-
guardiansApprovalCount: bigint;
|
|
1192
|
-
newThreshold: bigint;
|
|
1193
|
-
executeAfter: bigint;
|
|
1194
|
-
newOwners: string[];
|
|
1195
|
-
};
|
|
1196
|
-
type RecoverySignaturePair = {
|
|
1197
|
-
signer: string;
|
|
1198
|
-
signature: string;
|
|
1199
|
-
};
|
|
1200
|
-
declare const EXECUTE_RECOVERY_PRIMARY_TYPE = "ExecuteRecovery";
|
|
1201
|
-
type RecoveryRequestTypedDataDomain = {
|
|
1202
|
-
name: string;
|
|
1203
|
-
version: string;
|
|
1204
|
-
chainId: number;
|
|
1205
|
-
verifyingContract: string;
|
|
1206
|
-
};
|
|
1207
|
-
type RecoveryRequestTypedMessageValue = {
|
|
1208
|
-
wallet: string;
|
|
1209
|
-
newOwners: string[];
|
|
1210
|
-
newThreshold: bigint;
|
|
1211
|
-
nonce: bigint;
|
|
1212
|
-
};
|
|
1213
|
-
declare const EIP712_RECOVERY_MODULE_TYPE: {
|
|
1214
|
-
ExecuteRecovery: {
|
|
1215
|
-
type: string;
|
|
1216
|
-
name: string;
|
|
1217
|
-
}[];
|
|
1218
|
-
};
|
|
1219
|
-
//#endregion
|
|
1220
|
-
//#region src/account/Safe/modules/AllowanceModule.d.ts
|
|
1221
|
-
declare const ALLOWANCE_MODULE_V0_1_0_ADDRESS = "0xAA46724893dedD72658219405185Fb0Fc91e091C";
|
|
1222
|
-
declare class AllowanceModule extends SafeModule {
|
|
1223
|
-
static readonly DEFAULT_ALLOWANCE_MODULE_ADDRESS = "0x691f59471Bfd2B7d639DCF74671a2d648ED1E331";
|
|
1224
|
-
constructor(moduleAddress?: string);
|
|
1225
|
-
createOneTimeAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, startAfterInMinutes: bigint): MetaTransaction;
|
|
1226
|
-
createRecurringAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, recurringAllowanceValidityPeriodInMinutes: bigint, startAfterInMinutes: bigint): MetaTransaction;
|
|
1227
|
-
createBaseSetAllowanceMetaTransaction(delegate: string, token: string, allowanceAmount: bigint, resetTimeMin: bigint, resetBaseMin: bigint): MetaTransaction;
|
|
1228
|
-
createRenewAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
|
|
1229
|
-
createDeleteAllowanceMetaTransaction(delegate: string, token: string): MetaTransaction;
|
|
1230
|
-
createAllowanceTransferMetaTransaction(allowanceSourceSafeAddress: string, token: string, to: string, amount: bigint, delegate: string, overrides?: {
|
|
1231
|
-
delegateSignature?: string;
|
|
1232
|
-
paymentToken?: string;
|
|
1233
|
-
paymentAmount?: bigint;
|
|
1234
|
-
}): MetaTransaction;
|
|
1235
|
-
createBaseExecuteAllowanceTransferMetaTransaction(safeAddress: string, token: string, to: string, amount: bigint, paymentToken: string, payment: bigint, delegate: string, delegateSignature: string): MetaTransaction;
|
|
1236
|
-
createAddDelegateMetaTransaction(delegate: string): MetaTransaction;
|
|
1237
|
-
createRemoveDelegateMetaTransaction(delegate: string, removeAllowances: boolean): MetaTransaction;
|
|
1238
|
-
getTokens(nodeRpcUrl: string, safeAddress: string, delegate: string): Promise<string[]>;
|
|
1239
|
-
getTokensAllowance(nodeRpcUrl: string, safeAddress: string, delegate: string, token: string): Promise<Allowance>;
|
|
1240
|
-
getDelegates(nodeRpcUrl: string, safeAddress: string, overrides?: {
|
|
1241
|
-
start?: bigint;
|
|
1242
|
-
maxNumberOfResults?: bigint;
|
|
1243
|
-
}): Promise<string[]>;
|
|
1244
|
-
baseGetDelegates(nodeRpcUrl: string, safeAddress: string, start: bigint, pageSize: bigint): Promise<{
|
|
1245
|
-
results: string[];
|
|
1246
|
-
next: bigint;
|
|
1247
|
-
}>;
|
|
1248
|
-
}
|
|
1249
|
-
type Allowance = {
|
|
1250
|
-
amount: bigint;
|
|
1251
|
-
spent: bigint;
|
|
1252
|
-
resetTimeMin: bigint;
|
|
1253
|
-
lastResetMin: bigint;
|
|
1254
|
-
nonce: bigint;
|
|
1255
|
-
};
|
|
1256
|
-
//#endregion
|
|
1257
|
-
//#region src/account/Safe/SafeAccountV0_2_0.d.ts
|
|
1258
|
-
declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
1259
|
-
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1260
|
-
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
|
|
1261
|
-
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
|
|
1195
|
+
//#region src/account/Safe/SafeAccountV0_3_0.d.ts
|
|
1196
|
+
declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
1197
|
+
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
1198
|
+
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226";
|
|
1199
|
+
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
|
|
1262
1200
|
constructor(accountAddress: string, overrides?: {
|
|
1263
1201
|
safe4337ModuleAddress?: string;
|
|
1264
1202
|
entrypointAddress?: string;
|
|
1265
1203
|
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
1266
1204
|
onChainIdentifier?: string;
|
|
1267
|
-
});
|
|
1268
|
-
static createAccountAddress(owners: Signer$1[], overrides?: {
|
|
1269
|
-
threshold?: number;
|
|
1270
|
-
c2Nonce?: bigint;
|
|
1271
|
-
safe4337ModuleAddress?: string;
|
|
1272
|
-
safeModuleSetupAddress?: string;
|
|
1273
1205
|
safeAccountSingleton?: SafeAccountSingleton;
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1279
|
-
}): string;
|
|
1280
|
-
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
1281
|
-
static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
1206
|
+
});
|
|
1207
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1208
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
|
|
1209
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: {
|
|
1282
1210
|
validAfter?: bigint;
|
|
1283
1211
|
validUntil?: bigint;
|
|
1284
1212
|
entrypointAddress?: string;
|
|
1285
1213
|
safe4337ModuleAddress?: string;
|
|
1286
1214
|
}): string;
|
|
1287
|
-
static getUserOperationEip712Data(useroperation:
|
|
1215
|
+
static getUserOperationEip712Data(useroperation: UserOperationV7, chainId: bigint, overrides?: {
|
|
1288
1216
|
validAfter?: bigint;
|
|
1289
1217
|
validUntil?: bigint;
|
|
1290
1218
|
entrypointAddress?: string;
|
|
@@ -1295,9 +1223,8 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1295
1223
|
name: string;
|
|
1296
1224
|
type: string;
|
|
1297
1225
|
}[]>;
|
|
1298
|
-
messageValue:
|
|
1226
|
+
messageValue: SafeUserOperationV7TypedMessageValue;
|
|
1299
1227
|
};
|
|
1300
|
-
static createAccountAddressAndInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1301
1228
|
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
1302
1229
|
safe4337ModuleAddress?: string;
|
|
1303
1230
|
safeModuleSetupAddress?: string;
|
|
@@ -1306,15 +1233,9 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1306
1233
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1307
1234
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1308
1235
|
}): string;
|
|
1309
|
-
static
|
|
1310
|
-
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?:
|
|
1311
|
-
|
|
1312
|
-
safeV06ModuleAddress?: string;
|
|
1313
|
-
safeV07ModuleAddress?: string;
|
|
1314
|
-
pageSize?: bigint;
|
|
1315
|
-
modulesStart?: string;
|
|
1316
|
-
}): Promise<MetaTransaction[]>;
|
|
1317
|
-
estimateUserOperationGas(userOperation: UserOperationV6, bundlerRpc: string, overrides?: {
|
|
1236
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1237
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
1238
|
+
estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
|
|
1318
1239
|
stateOverrideSet?: StateOverrideSet;
|
|
1319
1240
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1320
1241
|
expectedSigners?: Signer$1[];
|
|
@@ -1325,22 +1246,79 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1325
1246
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1326
1247
|
eip7212WebAuthnContractVerifier?: string;
|
|
1327
1248
|
}): Promise<[bigint, bigint, bigint]>;
|
|
1328
|
-
signUserOperation(useroperation:
|
|
1249
|
+
signUserOperation(useroperation: UserOperationV7, privateKeys: string[], chainId: bigint, overrides?: {
|
|
1329
1250
|
validAfter?: bigint;
|
|
1330
1251
|
validUntil?: bigint;
|
|
1331
1252
|
}): string;
|
|
1332
|
-
signUserOperationWithSigners(useroperation:
|
|
1253
|
+
signUserOperationWithSigners(useroperation: UserOperationV7, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1333
1254
|
validAfter?: bigint;
|
|
1334
1255
|
validUntil?: bigint;
|
|
1335
1256
|
isMultiChainSignature?: boolean;
|
|
1336
1257
|
}): Promise<string>;
|
|
1337
1258
|
}
|
|
1338
1259
|
//#endregion
|
|
1339
|
-
//#region src/account/Safe/
|
|
1340
|
-
declare class
|
|
1341
|
-
static readonly
|
|
1342
|
-
static readonly
|
|
1260
|
+
//#region src/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts
|
|
1261
|
+
declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
1262
|
+
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
1263
|
+
static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
|
|
1264
|
+
constructor(accountAddress: string, overrides?: {
|
|
1265
|
+
safe4337ModuleAddress?: string;
|
|
1266
|
+
entrypointAddress?: string;
|
|
1267
|
+
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
1268
|
+
onChainIdentifier?: string;
|
|
1269
|
+
safeAccountSingleton?: SafeAccountSingleton;
|
|
1270
|
+
});
|
|
1271
|
+
static createProxyAddress(initializerCallData: string, overrides?: {
|
|
1272
|
+
c2Nonce?: bigint;
|
|
1273
|
+
safeFactoryAddress?: string;
|
|
1274
|
+
singletonInitHash?: string;
|
|
1275
|
+
}): string;
|
|
1276
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
|
|
1277
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1278
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1279
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
1280
|
+
estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
|
|
1281
|
+
stateOverrideSet?: StateOverrideSet;
|
|
1282
|
+
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1283
|
+
expectedSigners?: Signer$1[];
|
|
1284
|
+
webAuthnSharedSigner?: string;
|
|
1285
|
+
webAuthnSignerFactory?: string;
|
|
1286
|
+
webAuthnSignerSingleton?: string;
|
|
1287
|
+
webAuthnSignerProxyCreationCode?: string;
|
|
1288
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1289
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1290
|
+
}): Promise<[bigint, bigint, bigint]>;
|
|
1291
|
+
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
1292
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1293
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1294
|
+
webAuthnSignerFactory?: string;
|
|
1295
|
+
webAuthnSignerSingleton?: string;
|
|
1296
|
+
webAuthnSignerProxyCreationCode?: string;
|
|
1297
|
+
}): string;
|
|
1298
|
+
static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
|
|
1299
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1300
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1301
|
+
webAuthnSignerFactory?: string;
|
|
1302
|
+
}): MetaTransaction;
|
|
1303
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1304
|
+
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
1305
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1306
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
1307
|
+
webAuthnSignerSingleton?: string;
|
|
1308
|
+
}): Promise<boolean>;
|
|
1309
|
+
}
|
|
1310
|
+
//#endregion
|
|
1311
|
+
//#region src/account/Safe/SafeMultiChainSigAccount.d.ts
|
|
1312
|
+
declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
1313
|
+
static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
|
|
1314
|
+
static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x22939E839e3c0F479B713eAF95e0df128554AEAd";
|
|
1343
1315
|
static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
|
|
1316
|
+
static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
|
|
1317
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
|
|
1318
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
|
|
1319
|
+
static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x610100346100ad57601f6101b538819003918201601f19168301916001600160401b038311848410176100b2578084926080946040528339810103126100ad578051906001600160a01b03821682036100ad5760208101516040820151606090920151926001600160b01b03841684036100ad5760805260a05260c05260e05260405160ec90816100c98239608051816082015260a05181604d015260c051816027015260e0518160010152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe7f000000000000000000000000000000000000000000000000000000000000000060b63601527f000000000000000000000000000000000000000000000000000000000000000060a03601527f000000000000000000000000000000000000000000000000000000000000000036608001523660006080376000806056360160807f00000000000000000000000000000000000000000000000000000000000000005af43d600060803e60b1573d6080fd5b3d6080f3fea26469706673582212201660515548d15702d720bbc046b457ca85e941a4559ab9f9518488e4c82e5ee964736f6c634300081a0033";
|
|
1320
|
+
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
1321
|
+
static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
|
|
1344
1322
|
constructor(accountAddress: string, overrides?: {
|
|
1345
1323
|
safe4337ModuleAddress?: string;
|
|
1346
1324
|
entrypointAddress?: string;
|
|
@@ -1349,14 +1327,14 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1349
1327
|
safeAccountSingleton?: SafeAccountSingleton;
|
|
1350
1328
|
});
|
|
1351
1329
|
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1352
|
-
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides):
|
|
1353
|
-
static getUserOperationEip712Hash(useroperation:
|
|
1330
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeMultiChainSigAccountV1;
|
|
1331
|
+
static getUserOperationEip712Hash(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
1354
1332
|
validAfter?: bigint;
|
|
1355
1333
|
validUntil?: bigint;
|
|
1356
1334
|
entrypointAddress?: string;
|
|
1357
1335
|
safe4337ModuleAddress?: string;
|
|
1358
1336
|
}): string;
|
|
1359
|
-
static getUserOperationEip712Data(useroperation:
|
|
1337
|
+
static getUserOperationEip712Data(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
1360
1338
|
validAfter?: bigint;
|
|
1361
1339
|
validUntil?: bigint;
|
|
1362
1340
|
entrypointAddress?: string;
|
|
@@ -1367,71 +1345,43 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1367
1345
|
name: string;
|
|
1368
1346
|
type: string;
|
|
1369
1347
|
}[]>;
|
|
1370
|
-
messageValue:
|
|
1348
|
+
messageValue: SafeUserOperationV9TypedMessageValue;
|
|
1371
1349
|
};
|
|
1372
1350
|
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
1373
1351
|
safe4337ModuleAddress?: string;
|
|
1374
1352
|
safeModuleSetupAddress?: string;
|
|
1375
1353
|
multisendContractAddress?: string;
|
|
1376
1354
|
webAuthnSharedSigner?: string;
|
|
1377
|
-
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1378
|
-
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1379
|
-
}): string;
|
|
1380
|
-
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1381
|
-
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?:
|
|
1382
|
-
|
|
1383
|
-
stateOverrideSet?: StateOverrideSet;
|
|
1384
|
-
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1385
|
-
expectedSigners?: Signer$1[];
|
|
1386
|
-
webAuthnSharedSigner?: string;
|
|
1387
|
-
webAuthnSignerFactory?: string;
|
|
1388
|
-
webAuthnSignerSingleton?: string;
|
|
1389
|
-
webAuthnSignerProxyCreationCode?: string;
|
|
1390
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1391
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
1392
|
-
}): Promise<[bigint, bigint, bigint]>;
|
|
1393
|
-
signUserOperation(useroperation: UserOperationV7, privateKeys: string[], chainId: bigint, overrides?: {
|
|
1355
|
+
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1356
|
+
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1357
|
+
}): string;
|
|
1358
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1359
|
+
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV9Overrides): Promise<UserOperationV9>;
|
|
1360
|
+
signUserOperation(userOperation: UserOperationV9, privateKeys: string[], chainId: bigint, overrides?: {
|
|
1394
1361
|
validAfter?: bigint;
|
|
1395
1362
|
validUntil?: bigint;
|
|
1396
1363
|
}): string;
|
|
1397
|
-
signUserOperationWithSigners(
|
|
1364
|
+
signUserOperationWithSigners(userOperation: UserOperationV9, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1398
1365
|
validAfter?: bigint;
|
|
1399
1366
|
validUntil?: bigint;
|
|
1400
|
-
isMultiChainSignature?: boolean;
|
|
1401
1367
|
}): Promise<string>;
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
1406
|
-
static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
|
|
1407
|
-
static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
|
|
1408
|
-
constructor(accountAddress: string, overrides?: {
|
|
1368
|
+
signUserOperations(userOperationsToSign: UserOperationToSign[], privateKeys: string[]): string[];
|
|
1369
|
+
signUserOperationsWithSigners(userOperationsToSign: UserOperationToSign[], signers: ReadonlyArray<Signer<MultiOpSignContext<UserOperationV9>>>): Promise<string[]>;
|
|
1370
|
+
static getMultiChainSingleSignatureUserOperationsEip712Hash(userOperationsToSignsToSign: UserOperationToSign[], overrides?: {
|
|
1409
1371
|
safe4337ModuleAddress?: string;
|
|
1410
|
-
entrypointAddress?: string;
|
|
1411
|
-
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
1412
|
-
onChainIdentifier?: string;
|
|
1413
|
-
safeAccountSingleton?: SafeAccountSingleton;
|
|
1414
|
-
});
|
|
1415
|
-
static createProxyAddress(initializerCallData: string, overrides?: {
|
|
1416
|
-
c2Nonce?: bigint;
|
|
1417
|
-
safeFactoryAddress?: string;
|
|
1418
|
-
singletonInitHash?: string;
|
|
1419
1372
|
}): string;
|
|
1420
|
-
static
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1433
|
-
eip7212WebAuthnContractVerifier?: string;
|
|
1434
|
-
}): Promise<[bigint, bigint, bigint]>;
|
|
1373
|
+
static getMultiChainSingleSignatureUserOperationsEip712Data(userOperationsToSign: UserOperationToSign[], overrides?: {
|
|
1374
|
+
safe4337ModuleAddress?: string;
|
|
1375
|
+
entrypointAddress?: string;
|
|
1376
|
+
}): {
|
|
1377
|
+
domain: MultiChainSignatureMerkleTreeRootTypedDataDomain;
|
|
1378
|
+
types: Record<string, {
|
|
1379
|
+
name: string;
|
|
1380
|
+
type: string;
|
|
1381
|
+
}[]>;
|
|
1382
|
+
messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
|
|
1383
|
+
};
|
|
1384
|
+
static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSignWithOverrides[], signerSignaturePairs: SignerSignaturePair[]): string[];
|
|
1435
1385
|
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
1436
1386
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1437
1387
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -1452,6 +1402,85 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
|
1452
1402
|
}): Promise<boolean>;
|
|
1453
1403
|
}
|
|
1454
1404
|
//#endregion
|
|
1405
|
+
//#region src/account/simple/Simple7702AccountV09.d.ts
|
|
1406
|
+
declare class Simple7702AccountV09 extends BaseSimple7702Account {
|
|
1407
|
+
static readonly DEFAULT_DELEGATEE_ADDRESS = "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5";
|
|
1408
|
+
constructor(accountAddress: string, overrides?: {
|
|
1409
|
+
entrypointAddress?: string;
|
|
1410
|
+
delegateeAddress?: string;
|
|
1411
|
+
});
|
|
1412
|
+
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
|
|
1413
|
+
estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
|
|
1414
|
+
stateOverrideSet?: StateOverrideSet;
|
|
1415
|
+
dummySignature?: string;
|
|
1416
|
+
}): Promise<[bigint, bigint, bigint]>;
|
|
1417
|
+
signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
1418
|
+
signUserOperationWithSigner(useroperation: UserOperationV9, signer: Signer, chainId: bigint): Promise<string>;
|
|
1419
|
+
sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
1420
|
+
}
|
|
1421
|
+
//#endregion
|
|
1422
|
+
//#region src/constants.d.ts
|
|
1423
|
+
declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
1424
|
+
declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
|
|
1425
|
+
declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
1426
|
+
declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
1427
|
+
declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1428
|
+
declare const BaseUserOperationDummyValues: {
|
|
1429
|
+
sender: string;
|
|
1430
|
+
nonce: bigint;
|
|
1431
|
+
callData: string;
|
|
1432
|
+
callGasLimit: bigint;
|
|
1433
|
+
verificationGasLimit: bigint;
|
|
1434
|
+
preVerificationGas: bigint;
|
|
1435
|
+
maxFeePerGas: bigint;
|
|
1436
|
+
maxPriorityFeePerGas: bigint;
|
|
1437
|
+
signature: string;
|
|
1438
|
+
};
|
|
1439
|
+
declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
|
|
1440
|
+
declare const EIP712_SAFE_OPERATION_V6_TYPE: {
|
|
1441
|
+
SafeOp: {
|
|
1442
|
+
type: string;
|
|
1443
|
+
name: string;
|
|
1444
|
+
}[];
|
|
1445
|
+
};
|
|
1446
|
+
declare const EIP712_SAFE_OPERATION_V7_TYPE: {
|
|
1447
|
+
SafeOp: {
|
|
1448
|
+
type: string;
|
|
1449
|
+
name: string;
|
|
1450
|
+
}[];
|
|
1451
|
+
};
|
|
1452
|
+
declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
|
|
1453
|
+
declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
|
|
1454
|
+
MerkleTreeRoot: {
|
|
1455
|
+
type: string;
|
|
1456
|
+
name: string;
|
|
1457
|
+
}[];
|
|
1458
|
+
};
|
|
1459
|
+
declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
|
|
1460
|
+
declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
|
|
1461
|
+
declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
|
|
1462
|
+
//#endregion
|
|
1463
|
+
//#region src/errors.d.ts
|
|
1464
|
+
type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
|
|
1465
|
+
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";
|
|
1466
|
+
type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
|
|
1467
|
+
type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
|
|
1468
|
+
readonly [key: string]: Jsonable;
|
|
1469
|
+
} | {
|
|
1470
|
+
toJSON(): Jsonable;
|
|
1471
|
+
};
|
|
1472
|
+
declare class AbstractionKitError extends Error {
|
|
1473
|
+
readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
|
|
1474
|
+
readonly context?: Jsonable;
|
|
1475
|
+
readonly errno?: number;
|
|
1476
|
+
constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
|
|
1477
|
+
cause?: Error;
|
|
1478
|
+
errno?: number;
|
|
1479
|
+
context?: Jsonable;
|
|
1480
|
+
});
|
|
1481
|
+
stringify(): string;
|
|
1482
|
+
}
|
|
1483
|
+
//#endregion
|
|
1455
1484
|
//#region src/factory/SmartAccountFactory.d.ts
|
|
1456
1485
|
declare class SmartAccountFactory {
|
|
1457
1486
|
readonly address: string;
|
|
@@ -1470,6 +1499,14 @@ declare class SafeAccountFactory extends SmartAccountFactory {
|
|
|
1470
1499
|
//#region src/paymaster/Paymaster.d.ts
|
|
1471
1500
|
declare abstract class Paymaster {}
|
|
1472
1501
|
//#endregion
|
|
1502
|
+
//#region src/paymaster/AllowAllPaymaster.d.ts
|
|
1503
|
+
declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
|
|
1504
|
+
readonly address: string;
|
|
1505
|
+
constructor(address?: string);
|
|
1506
|
+
getPaymasterFieldsInitValues(_chainId: bigint): Promise<ParallelPaymasterInitValues>;
|
|
1507
|
+
getApprovedPaymasterData(_userOperation: UserOperationV9): Promise<string>;
|
|
1508
|
+
}
|
|
1509
|
+
//#endregion
|
|
1473
1510
|
//#region src/paymaster/CandidePaymaster.d.ts
|
|
1474
1511
|
declare class CandidePaymaster extends Paymaster {
|
|
1475
1512
|
readonly rpcUrl: string;
|
|
@@ -1498,8 +1535,14 @@ declare class CandidePaymaster extends Paymaster {
|
|
|
1498
1535
|
private estimateAndApplyGasLimits;
|
|
1499
1536
|
private applyPaymasterResult;
|
|
1500
1537
|
private createPaymasterUserOperation;
|
|
1501
|
-
createSponsorPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, sponsorshipPolicyId?: string, overrides?: GasPaymasterUserOperationOverrides): Promise<
|
|
1502
|
-
|
|
1538
|
+
createSponsorPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, sponsorshipPolicyId?: string, context?: CandidePaymasterContext, overrides?: GasPaymasterUserOperationOverrides): Promise<{
|
|
1539
|
+
userOperation: SameUserOp<T>;
|
|
1540
|
+
sponsorMetadata?: SponsorMetadata;
|
|
1541
|
+
}>;
|
|
1542
|
+
createTokenPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: PrependTokenPaymasterApproveAccount, userOperation: T, tokenAddress: string, bundlerRpc: string, context?: CandidePaymasterContext, overrides?: GasPaymasterUserOperationOverrides): Promise<{
|
|
1543
|
+
userOperation: SameUserOp<T>;
|
|
1544
|
+
tokenQuote?: TokenQuote;
|
|
1545
|
+
}>;
|
|
1503
1546
|
calculateUserOperationErc20TokenMaxGasCost(smartAccount: SmartAccountWithEntrypoint, userOperation: AnyUserOperation, erc20TokenAddress: string, overrides?: {
|
|
1504
1547
|
entrypoint?: string | null;
|
|
1505
1548
|
}): Promise<bigint>;
|
|
@@ -1532,7 +1575,10 @@ declare class Erc7677Paymaster extends Paymaster {
|
|
|
1532
1575
|
getPaymasterStubData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677StubDataResult>;
|
|
1533
1576
|
getPaymasterData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677PaymasterFields>;
|
|
1534
1577
|
sendRPCRequest(method: string, params?: unknown[]): Promise<unknown>;
|
|
1535
|
-
createPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, context?: Erc7677Context, overrides?: GasPaymasterUserOperationOverrides): Promise<
|
|
1578
|
+
createPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, context?: Erc7677Context, overrides?: GasPaymasterUserOperationOverrides): Promise<{
|
|
1579
|
+
userOperation: SameUserOp<T>;
|
|
1580
|
+
tokenQuote?: TokenQuote;
|
|
1581
|
+
}>;
|
|
1536
1582
|
private applyPaymasterFields;
|
|
1537
1583
|
private estimateAndApplyGasLimits;
|
|
1538
1584
|
private fetchPimlicoTokenQuote;
|
|
@@ -1545,14 +1591,6 @@ declare class Erc7677Paymaster extends Paymaster {
|
|
|
1545
1591
|
private sponsoredFlow;
|
|
1546
1592
|
}
|
|
1547
1593
|
//#endregion
|
|
1548
|
-
//#region src/paymaster/AllowAllPaymaster.d.ts
|
|
1549
|
-
declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
|
|
1550
|
-
readonly address: string;
|
|
1551
|
-
constructor(address?: string);
|
|
1552
|
-
getPaymasterFieldsInitValues(chainId: bigint): Promise<ParallelPaymasterInitValues>;
|
|
1553
|
-
getApprovedPaymasterData(userOperation: UserOperationV9): Promise<string>;
|
|
1554
|
-
}
|
|
1555
|
-
//#endregion
|
|
1556
1594
|
//#region src/paymaster/WorldIdPermissionlessPaymaster.d.ts
|
|
1557
1595
|
declare class WorldIdPermissionlessPaymaster extends Paymaster {
|
|
1558
1596
|
readonly address: string;
|
|
@@ -1568,6 +1606,51 @@ declare class WorldIdPermissionlessPaymaster extends Paymaster {
|
|
|
1568
1606
|
}
|
|
1569
1607
|
declare function createWorldIdSignal(accountAddress: string, accountNonce: bigint, chainId: bigint): string;
|
|
1570
1608
|
//#endregion
|
|
1609
|
+
//#region src/signer/adapters.d.ts
|
|
1610
|
+
interface ViemLocalAccountLike {
|
|
1611
|
+
address: `0x${string}`;
|
|
1612
|
+
sign: (args: {
|
|
1613
|
+
hash: `0x${string}`;
|
|
1614
|
+
}) => Promise<`0x${string}`>;
|
|
1615
|
+
signTypedData: (args: {
|
|
1616
|
+
domain: TypedData["domain"];
|
|
1617
|
+
types: Record<string, Array<{
|
|
1618
|
+
name: string;
|
|
1619
|
+
type: string;
|
|
1620
|
+
}>>;
|
|
1621
|
+
primaryType: string;
|
|
1622
|
+
message: Record<string, unknown>;
|
|
1623
|
+
}) => Promise<`0x${string}`>;
|
|
1624
|
+
}
|
|
1625
|
+
interface ViemWalletClientLike {
|
|
1626
|
+
account?: {
|
|
1627
|
+
address: `0x${string}`;
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
signTypedData: unknown;
|
|
1630
|
+
}
|
|
1631
|
+
interface EthersWalletLike {
|
|
1632
|
+
address: string;
|
|
1633
|
+
signingKey: {
|
|
1634
|
+
sign: (hash: string) => {
|
|
1635
|
+
serialized: string;
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
signTypedData: (domain: {
|
|
1639
|
+
name?: string;
|
|
1640
|
+
version?: string;
|
|
1641
|
+
chainId?: number | bigint;
|
|
1642
|
+
verifyingContract?: string;
|
|
1643
|
+
salt?: string;
|
|
1644
|
+
}, types: Record<string, Array<{
|
|
1645
|
+
name: string;
|
|
1646
|
+
type: string;
|
|
1647
|
+
}>>, message: Record<string, unknown>) => Promise<string>;
|
|
1648
|
+
}
|
|
1649
|
+
declare function fromPrivateKey(privateKey: string): Signer<unknown>;
|
|
1650
|
+
declare function fromViem(account: ViemLocalAccountLike): Signer<unknown>;
|
|
1651
|
+
declare function fromViemWalletClient(client: ViemWalletClientLike): Signer<unknown>;
|
|
1652
|
+
declare function fromEthersWallet(wallet: EthersWalletLike): Signer<unknown>;
|
|
1653
|
+
//#endregion
|
|
1571
1654
|
//#region src/utils.d.ts
|
|
1572
1655
|
declare function createUserOperationHash(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, entrypointAddress: string, chainId: bigint): string;
|
|
1573
1656
|
declare function createCallData(functionSelector: string, functionInputAbi: string[], functionInputParameters: AbiInputValue[]): string;
|
|
@@ -1649,7 +1732,7 @@ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderl
|
|
|
1649
1732
|
gasPrice?: number | null;
|
|
1650
1733
|
value?: number | null;
|
|
1651
1734
|
blockNumber?: number | null;
|
|
1652
|
-
simulationType?:
|
|
1735
|
+
simulationType?: "full" | "quick" | "abi";
|
|
1653
1736
|
stateOverrides?: OverrideType | null;
|
|
1654
1737
|
transactionIndex?: number;
|
|
1655
1738
|
save?: boolean;
|
|
@@ -1660,71 +1743,9 @@ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderl
|
|
|
1660
1743
|
address: string;
|
|
1661
1744
|
}[];
|
|
1662
1745
|
}[]): Promise<TenderlySimulationResult>;
|
|
1663
|
-
//#endregion
|
|
1664
|
-
//#region src/constants.d.ts
|
|
1665
|
-
declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
|
|
1666
|
-
declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
|
|
1667
|
-
declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
|
|
1668
|
-
declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
|
|
1669
|
-
declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
|
|
1670
|
-
declare const BaseUserOperationDummyValues: {
|
|
1671
|
-
sender: string;
|
|
1672
|
-
nonce: bigint;
|
|
1673
|
-
callData: string;
|
|
1674
|
-
callGasLimit: bigint;
|
|
1675
|
-
verificationGasLimit: bigint;
|
|
1676
|
-
preVerificationGas: bigint;
|
|
1677
|
-
maxFeePerGas: bigint;
|
|
1678
|
-
maxPriorityFeePerGas: bigint;
|
|
1679
|
-
signature: string;
|
|
1680
|
-
};
|
|
1681
|
-
declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
|
|
1682
|
-
declare const EIP712_SAFE_OPERATION_V6_TYPE: {
|
|
1683
|
-
SafeOp: {
|
|
1684
|
-
type: string;
|
|
1685
|
-
name: string;
|
|
1686
|
-
}[];
|
|
1687
|
-
};
|
|
1688
|
-
declare const EIP712_SAFE_OPERATION_V7_TYPE: {
|
|
1689
|
-
SafeOp: {
|
|
1690
|
-
type: string;
|
|
1691
|
-
name: string;
|
|
1692
|
-
}[];
|
|
1693
|
-
};
|
|
1694
|
-
declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
|
|
1695
|
-
declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
|
|
1696
|
-
MerkleTreeRoot: {
|
|
1697
|
-
type: string;
|
|
1698
|
-
name: string;
|
|
1699
|
-
}[];
|
|
1700
|
-
};
|
|
1701
|
-
declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
|
|
1702
|
-
declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
|
|
1703
|
-
declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
|
|
1704
|
-
//#endregion
|
|
1705
|
-
//#region src/errors.d.ts
|
|
1706
|
-
type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
|
|
1707
|
-
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";
|
|
1708
|
-
type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
|
|
1709
|
-
type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
|
|
1710
|
-
readonly [key: string]: Jsonable;
|
|
1711
|
-
} | {
|
|
1712
|
-
toJSON(): Jsonable;
|
|
1713
|
-
};
|
|
1714
|
-
declare class AbstractionKitError extends Error {
|
|
1715
|
-
readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
|
|
1716
|
-
readonly context?: Jsonable;
|
|
1717
|
-
readonly errno?: number;
|
|
1718
|
-
constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
|
|
1719
|
-
cause?: Error;
|
|
1720
|
-
errno?: number;
|
|
1721
|
-
context?: Jsonable;
|
|
1722
|
-
});
|
|
1723
|
-
stringify(): string;
|
|
1724
|
-
}
|
|
1725
1746
|
declare namespace abstractionkit_d_exports {
|
|
1726
|
-
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, SponsorMetadata, StateOverrideSet, 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 };
|
|
1747
|
+
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 };
|
|
1727
1748
|
}
|
|
1728
1749
|
//#endregion
|
|
1729
|
-
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 SponsorMetadata, type StateOverrideSet, 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 };
|
|
1750
|
+
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 };
|
|
1730
1751
|
//# sourceMappingURL=index.d.mts.map
|