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