abstractionkit 0.3.2 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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;
@@ -855,33 +1111,37 @@ declare class SafeAccount extends SmartAccount {
855
1111
  };
856
1112
  }
857
1113
  //#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;
1114
+ //#region src/account/Safe/SafeAccountV0_2_0.d.ts
1115
+ declare class SafeAccountV0_2_0 extends SafeAccount {
1116
+ static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
1117
+ static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0xa581c4A4DB7175302464fF3C06380BC3270b4037";
1118
+ static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x8EcD4ec46D4D2a6B64fE960B3D64e8B94B2234eb";
869
1119
  constructor(accountAddress: string, overrides?: {
870
1120
  safe4337ModuleAddress?: string;
871
1121
  entrypointAddress?: string;
872
1122
  onChainIdentifierParams?: OnChainIdentifierParamsType;
873
1123
  onChainIdentifier?: string;
874
- safeAccountSingleton?: SafeAccountSingleton;
875
1124
  });
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?: {
1125
+ static createAccountAddress(owners: Signer$1[], overrides?: {
1126
+ threshold?: number;
1127
+ c2Nonce?: bigint;
1128
+ safe4337ModuleAddress?: string;
1129
+ safeModuleSetupAddress?: string;
1130
+ safeAccountSingleton?: SafeAccountSingleton;
1131
+ safeAccountFactoryAddress?: string;
1132
+ multisendContractAddress?: string;
1133
+ webAuthnSharedSigner?: string;
1134
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
1135
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
1136
+ }): string;
1137
+ static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
1138
+ static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
879
1139
  validAfter?: bigint;
880
1140
  validUntil?: bigint;
881
1141
  entrypointAddress?: string;
882
1142
  safe4337ModuleAddress?: string;
883
1143
  }): string;
884
- static getUserOperationEip712Data(useroperation: UserOperationV9, chainId: bigint, overrides?: {
1144
+ static getUserOperationEip712Data(useroperation: UserOperationV6, chainId: bigint, overrides?: {
885
1145
  validAfter?: bigint;
886
1146
  validUntil?: bigint;
887
1147
  entrypointAddress?: string;
@@ -892,8 +1152,9 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
892
1152
  name: string;
893
1153
  type: string;
894
1154
  }[]>;
895
- messageValue: SafeUserOperationV9TypedMessageValue;
1155
+ messageValue: SafeUserOperationV6TypedMessageValue;
896
1156
  };
1157
+ static createAccountAddressAndInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
897
1158
  static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
898
1159
  safe4337ModuleAddress?: string;
899
1160
  safeModuleSetupAddress?: string;
@@ -902,391 +1163,57 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
902
1163
  eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
903
1164
  eip7212WebAuthnContractVerifierForSharedSigner?: string;
904
1165
  }): 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;
1166
+ static createInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): string;
1167
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV6Overrides): Promise<UserOperationV6>;
1168
+ createMigrateToSafeAccountV0_3_0MetaTransactions(nodeRpcUrl: string, overrides?: {
1169
+ safeV06ModuleAddress?: string;
1170
+ safeV07ModuleAddress?: string;
1171
+ pageSize?: bigint;
1172
+ modulesStart?: string;
1173
+ }): Promise<MetaTransaction[]>;
1174
+ estimateUserOperationGas(userOperation: UserOperationV6, bundlerRpc: string, overrides?: {
1175
+ stateOverrideSet?: StateOverrideSet;
1176
+ dummySignerSignaturePairs?: SignerSignaturePair[];
1177
+ expectedSigners?: Signer$1[];
1178
+ webAuthnSharedSigner?: string;
935
1179
  webAuthnSignerFactory?: string;
936
1180
  webAuthnSignerSingleton?: string;
937
1181
  webAuthnSignerProxyCreationCode?: string;
938
- }): string;
939
- static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
940
1182
  eip7212WebAuthnPrecompileVerifier?: string;
941
1183
  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;
1184
+ }): Promise<[bigint, bigint, bigint]>;
1185
+ signUserOperation(useroperation: UserOperationV6, privateKeys: string[], chainId: bigint, overrides?: {
1186
+ validAfter?: bigint;
1187
+ validUntil?: bigint;
1188
+ }): string;
1189
+ signUserOperationWithSigners(useroperation: UserOperationV6, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
1190
+ validAfter?: bigint;
1191
+ validUntil?: bigint;
1192
+ isMultiChainSignature?: boolean;
1082
1193
  }): 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
1194
  }
1096
1195
  //#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";
1196
+ //#region src/account/Safe/SafeAccountV0_3_0.d.ts
1197
+ declare class SafeAccountV0_3_0 extends SafeAccount {
1198
+ static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
1199
+ static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226";
1200
+ static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
1264
1201
  constructor(accountAddress: string, overrides?: {
1265
1202
  safe4337ModuleAddress?: string;
1266
1203
  entrypointAddress?: string;
1267
1204
  onChainIdentifierParams?: OnChainIdentifierParamsType;
1268
1205
  onChainIdentifier?: string;
1269
- });
1270
- static createAccountAddress(owners: Signer$1[], overrides?: {
1271
- threshold?: number;
1272
- c2Nonce?: bigint;
1273
- safe4337ModuleAddress?: string;
1274
- safeModuleSetupAddress?: string;
1275
1206
  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?: {
1207
+ });
1208
+ static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
1209
+ static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
1210
+ static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: {
1284
1211
  validAfter?: bigint;
1285
1212
  validUntil?: bigint;
1286
1213
  entrypointAddress?: string;
1287
1214
  safe4337ModuleAddress?: string;
1288
1215
  }): string;
1289
- static getUserOperationEip712Data(useroperation: UserOperationV6, chainId: bigint, overrides?: {
1216
+ static getUserOperationEip712Data(useroperation: UserOperationV7, chainId: bigint, overrides?: {
1290
1217
  validAfter?: bigint;
1291
1218
  validUntil?: bigint;
1292
1219
  entrypointAddress?: string;
@@ -1297,9 +1224,8 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
1297
1224
  name: string;
1298
1225
  type: string;
1299
1226
  }[]>;
1300
- messageValue: SafeUserOperationV6TypedMessageValue;
1227
+ messageValue: SafeUserOperationV7TypedMessageValue;
1301
1228
  };
1302
- static createAccountAddressAndInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
1303
1229
  static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
1304
1230
  safe4337ModuleAddress?: string;
1305
1231
  safeModuleSetupAddress?: string;
@@ -1308,15 +1234,9 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
1308
1234
  eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
1309
1235
  eip7212WebAuthnContractVerifierForSharedSigner?: string;
1310
1236
  }): 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?: {
1237
+ static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
1238
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
1239
+ estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
1320
1240
  stateOverrideSet?: StateOverrideSet;
1321
1241
  dummySignerSignaturePairs?: SignerSignaturePair[];
1322
1242
  expectedSigners?: Signer$1[];
@@ -1327,22 +1247,79 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
1327
1247
  eip7212WebAuthnPrecompileVerifier?: string;
1328
1248
  eip7212WebAuthnContractVerifier?: string;
1329
1249
  }): Promise<[bigint, bigint, bigint]>;
1330
- signUserOperation(useroperation: UserOperationV6, privateKeys: string[], chainId: bigint, overrides?: {
1250
+ signUserOperation(useroperation: UserOperationV7, privateKeys: string[], chainId: bigint, overrides?: {
1331
1251
  validAfter?: bigint;
1332
1252
  validUntil?: bigint;
1333
1253
  }): string;
1334
- signUserOperationWithSigners(useroperation: UserOperationV6, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
1254
+ signUserOperationWithSigners(useroperation: UserOperationV7, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
1335
1255
  validAfter?: bigint;
1336
1256
  validUntil?: bigint;
1337
1257
  isMultiChainSignature?: boolean;
1338
1258
  }): Promise<string>;
1339
1259
  }
1340
1260
  //#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";
1261
+ //#region src/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts
1262
+ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
1263
+ static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
1264
+ static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
1265
+ constructor(accountAddress: string, overrides?: {
1266
+ safe4337ModuleAddress?: string;
1267
+ entrypointAddress?: string;
1268
+ onChainIdentifierParams?: OnChainIdentifierParamsType;
1269
+ onChainIdentifier?: string;
1270
+ safeAccountSingleton?: SafeAccountSingleton;
1271
+ });
1272
+ static createProxyAddress(initializerCallData: string, overrides?: {
1273
+ c2Nonce?: bigint;
1274
+ safeFactoryAddress?: string;
1275
+ singletonInitHash?: string;
1276
+ }): string;
1277
+ static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
1278
+ static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
1279
+ static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
1280
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
1281
+ estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
1282
+ stateOverrideSet?: StateOverrideSet;
1283
+ dummySignerSignaturePairs?: SignerSignaturePair[];
1284
+ expectedSigners?: Signer$1[];
1285
+ webAuthnSharedSigner?: string;
1286
+ webAuthnSignerFactory?: string;
1287
+ webAuthnSignerSingleton?: string;
1288
+ webAuthnSignerProxyCreationCode?: string;
1289
+ eip7212WebAuthnPrecompileVerifier?: string;
1290
+ eip7212WebAuthnContractVerifier?: string;
1291
+ }): Promise<[bigint, bigint, bigint]>;
1292
+ static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
1293
+ eip7212WebAuthnPrecompileVerifier?: string;
1294
+ eip7212WebAuthnContractVerifier?: string;
1295
+ webAuthnSignerFactory?: string;
1296
+ webAuthnSignerSingleton?: string;
1297
+ webAuthnSignerProxyCreationCode?: string;
1298
+ }): string;
1299
+ static createDeployWebAuthnVerifierMetaTransaction(x: bigint, y: bigint, overrides?: {
1300
+ eip7212WebAuthnPrecompileVerifier?: string;
1301
+ eip7212WebAuthnContractVerifier?: string;
1302
+ webAuthnSignerFactory?: string;
1303
+ }): MetaTransaction;
1304
+ static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
1305
+ static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
1306
+ eip7212WebAuthnPrecompileVerifier?: string;
1307
+ eip7212WebAuthnContractVerifier?: string;
1308
+ webAuthnSignerSingleton?: string;
1309
+ }): Promise<boolean>;
1310
+ }
1311
+ //#endregion
1312
+ //#region src/account/Safe/SafeMultiChainSigAccount.d.ts
1313
+ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
1314
+ static readonly DEFAULT_ENTRYPOINT_ADDRESS = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
1315
+ static readonly DEFAULT_SAFE_4337_MODULE_ADDRESS = "0x22939E839e3c0F479B713eAF95e0df128554AEAd";
1345
1316
  static readonly DEFAULT_SAFE_MODULE_SETUP_ADDRESS = "0x2dd68b007B46fBe91B9A7c3EDa5A7a1063cB5b47";
1317
+ static readonly DEFAULT_WEB_AUTHN_SHARED_SIGNER: string;
1318
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_SINGLETON: string;
1319
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_FACTORY: string;
1320
+ static readonly DEFAULT_WEB_AUTHN_SIGNER_PROXY_CREATION_CODE = "0x610100346100ad57601f6101b538819003918201601f19168301916001600160401b038311848410176100b2578084926080946040528339810103126100ad578051906001600160a01b03821682036100ad5760208101516040820151606090920151926001600160b01b03841684036100ad5760805260a05260c05260e05260405160ec90816100c98239608051816082015260a05181604d015260c051816027015260e0518160010152f35b600080fd5b634e487b7160e01b600052604160045260246000fdfe7f000000000000000000000000000000000000000000000000000000000000000060b63601527f000000000000000000000000000000000000000000000000000000000000000060a03601527f000000000000000000000000000000000000000000000000000000000000000036608001523660006080376000806056360160807f00000000000000000000000000000000000000000000000000000000000000005af43d600060803e60b1573d6080fd5b3d6080f3fea26469706673582212201660515548d15702d720bbc046b457ca85e941a4559ab9f9518488e4c82e5ee964736f6c634300081a0033";
1321
+ static readonly DEFAULT_WEB_AUTHN_PRECOMPILE: string;
1322
+ static readonly DEFAULT_WEB_AUTHN_DAIMO_VERIFIER: string;
1346
1323
  constructor(accountAddress: string, overrides?: {
1347
1324
  safe4337ModuleAddress?: string;
1348
1325
  entrypointAddress?: string;
@@ -1351,14 +1328,14 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
1351
1328
  safeAccountSingleton?: SafeAccountSingleton;
1352
1329
  });
1353
1330
  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?: {
1331
+ static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeMultiChainSigAccountV1;
1332
+ static getUserOperationEip712Hash(useroperation: UserOperationV9, chainId: bigint, overrides?: {
1356
1333
  validAfter?: bigint;
1357
1334
  validUntil?: bigint;
1358
1335
  entrypointAddress?: string;
1359
1336
  safe4337ModuleAddress?: string;
1360
1337
  }): string;
1361
- static getUserOperationEip712Data(useroperation: UserOperationV7, chainId: bigint, overrides?: {
1338
+ static getUserOperationEip712Data(useroperation: UserOperationV9, chainId: bigint, overrides?: {
1362
1339
  validAfter?: bigint;
1363
1340
  validUntil?: bigint;
1364
1341
  entrypointAddress?: string;
@@ -1369,71 +1346,43 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
1369
1346
  name: string;
1370
1347
  type: string;
1371
1348
  }[]>;
1372
- messageValue: SafeUserOperationV7TypedMessageValue;
1349
+ messageValue: SafeUserOperationV9TypedMessageValue;
1373
1350
  };
1374
1351
  static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
1375
1352
  safe4337ModuleAddress?: string;
1376
1353
  safeModuleSetupAddress?: string;
1377
1354
  multisendContractAddress?: string;
1378
1355
  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?: {
1356
+ eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
1357
+ eip7212WebAuthnContractVerifierForSharedSigner?: string;
1358
+ }): string;
1359
+ static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
1360
+ createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV9Overrides): Promise<UserOperationV9>;
1361
+ signUserOperation(userOperation: UserOperationV9, privateKeys: string[], chainId: bigint, overrides?: {
1396
1362
  validAfter?: bigint;
1397
1363
  validUntil?: bigint;
1398
1364
  }): string;
1399
- signUserOperationWithSigners(useroperation: UserOperationV7, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
1365
+ signUserOperationWithSigners(userOperation: UserOperationV9, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
1400
1366
  validAfter?: bigint;
1401
1367
  validUntil?: bigint;
1402
- isMultiChainSignature?: boolean;
1403
1368
  }): 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?: {
1369
+ signUserOperations(userOperationsToSign: UserOperationToSign[], privateKeys: string[]): string[];
1370
+ signUserOperationsWithSigners(userOperationsToSign: UserOperationToSign[], signers: ReadonlyArray<Signer<MultiOpSignContext<UserOperationV9>>>): Promise<string[]>;
1371
+ static getMultiChainSingleSignatureUserOperationsEip712Hash(userOperationsToSignsToSign: UserOperationToSign[], overrides?: {
1411
1372
  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
1373
  }): 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]>;
1374
+ static getMultiChainSingleSignatureUserOperationsEip712Data(userOperationsToSign: UserOperationToSign[], overrides?: {
1375
+ safe4337ModuleAddress?: string;
1376
+ entrypointAddress?: string;
1377
+ }): {
1378
+ domain: MultiChainSignatureMerkleTreeRootTypedDataDomain;
1379
+ types: Record<string, {
1380
+ name: string;
1381
+ type: string;
1382
+ }[]>;
1383
+ messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
1384
+ };
1385
+ static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSignWithOverrides[], signerSignaturePairs: SignerSignaturePair[]): string[];
1437
1386
  static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
1438
1387
  eip7212WebAuthnPrecompileVerifier?: string;
1439
1388
  eip7212WebAuthnContractVerifier?: string;
@@ -1454,6 +1403,85 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
1454
1403
  }): Promise<boolean>;
1455
1404
  }
1456
1405
  //#endregion
1406
+ //#region src/account/simple/Simple7702AccountV09.d.ts
1407
+ declare class Simple7702AccountV09 extends BaseSimple7702Account {
1408
+ static readonly DEFAULT_DELEGATEE_ADDRESS = "0xa46cc63eBF4Bd77888AA327837d20b23A63a56B5";
1409
+ constructor(accountAddress: string, overrides?: {
1410
+ entrypointAddress?: string;
1411
+ delegateeAddress?: string;
1412
+ });
1413
+ createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationOverrides): Promise<UserOperationV9>;
1414
+ estimateUserOperationGas(userOperation: UserOperationV9, bundlerRpc: string, overrides?: {
1415
+ stateOverrideSet?: StateOverrideSet;
1416
+ dummySignature?: string;
1417
+ }): Promise<[bigint, bigint, bigint]>;
1418
+ signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
1419
+ signUserOperationWithSigner(useroperation: UserOperationV9, signer: Signer, chainId: bigint): Promise<string>;
1420
+ sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
1421
+ }
1422
+ //#endregion
1423
+ //#region src/constants.d.ts
1424
+ declare const ZeroAddress = "0x0000000000000000000000000000000000000000";
1425
+ declare const ENTRYPOINT_V9 = "0x433709009B8330FDa32311DF1C2AFA402eD8D009";
1426
+ declare const ENTRYPOINT_V8 = "0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108";
1427
+ declare const ENTRYPOINT_V7 = "0x0000000071727De22E5E9d8BAf0edAc6f37da032";
1428
+ declare const ENTRYPOINT_V6 = "0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789";
1429
+ declare const BaseUserOperationDummyValues: {
1430
+ sender: string;
1431
+ nonce: bigint;
1432
+ callData: string;
1433
+ callGasLimit: bigint;
1434
+ verificationGasLimit: bigint;
1435
+ preVerificationGas: bigint;
1436
+ maxFeePerGas: bigint;
1437
+ maxPriorityFeePerGas: bigint;
1438
+ signature: string;
1439
+ };
1440
+ declare const EIP712_SAFE_OPERATION_PRIMARY_TYPE = "SafeOp";
1441
+ declare const EIP712_SAFE_OPERATION_V6_TYPE: {
1442
+ SafeOp: {
1443
+ type: string;
1444
+ name: string;
1445
+ }[];
1446
+ };
1447
+ declare const EIP712_SAFE_OPERATION_V7_TYPE: {
1448
+ SafeOp: {
1449
+ type: string;
1450
+ name: string;
1451
+ }[];
1452
+ };
1453
+ declare const EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE = "MerkleTreeRoot";
1454
+ declare const EIP712_MULTI_CHAIN_OPERATIONS_TYPE: {
1455
+ MerkleTreeRoot: {
1456
+ type: string;
1457
+ name: string;
1458
+ }[];
1459
+ };
1460
+ declare const DEFAULT_SECP256R1_PRECOMPILE_ADDRESS = "0x0000000000000000000000000000000000000100";
1461
+ declare const CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS = "0x000000009B1D0aF20D8C6d0A44e162d11F9b8f00";
1462
+ declare const CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS = "0x71032285A847c4311Eb7ec2E7A636aB94A9805Aa";
1463
+ //#endregion
1464
+ //#region src/errors.d.ts
1465
+ type BasicErrorCode = "UNKNOWN_ERROR" | "TIMEOUT" | "BAD_DATA" | "BUNDLER_ERROR" | "PAYMASTER_ERROR";
1466
+ 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";
1467
+ type JsonRpcErrorCode = "PARSE_ERROR" | "INVALID_REQUEST" | "METHOD_NOT_FOUND" | "INVALID_PARAMS" | "INTERNAL_ERROR" | "SERVER_ERROR" | "TENDERLY_SIMULATION_ERROR";
1468
+ type Jsonable = string | number | boolean | null | undefined | readonly Jsonable[] | {
1469
+ readonly [key: string]: Jsonable;
1470
+ } | {
1471
+ toJSON(): Jsonable;
1472
+ };
1473
+ declare class AbstractionKitError extends Error {
1474
+ readonly code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode;
1475
+ readonly context?: Jsonable;
1476
+ readonly errno?: number;
1477
+ constructor(code: BundlerErrorCode | BasicErrorCode | JsonRpcErrorCode, message: string, options?: {
1478
+ cause?: Error;
1479
+ errno?: number;
1480
+ context?: Jsonable;
1481
+ });
1482
+ stringify(): string;
1483
+ }
1484
+ //#endregion
1457
1485
  //#region src/factory/SmartAccountFactory.d.ts
1458
1486
  declare class SmartAccountFactory {
1459
1487
  readonly address: string;
@@ -1472,6 +1500,14 @@ declare class SafeAccountFactory extends SmartAccountFactory {
1472
1500
  //#region src/paymaster/Paymaster.d.ts
1473
1501
  declare abstract class Paymaster {}
1474
1502
  //#endregion
1503
+ //#region src/paymaster/AllowAllPaymaster.d.ts
1504
+ declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
1505
+ readonly address: string;
1506
+ constructor(address?: string);
1507
+ getPaymasterFieldsInitValues(_chainId: bigint): Promise<ParallelPaymasterInitValues>;
1508
+ getApprovedPaymasterData(_userOperation: UserOperationV9): Promise<string>;
1509
+ }
1510
+ //#endregion
1475
1511
  //#region src/paymaster/CandidePaymaster.d.ts
1476
1512
  declare class CandidePaymaster extends Paymaster {
1477
1513
  readonly rpcUrl: string;
@@ -1500,8 +1536,14 @@ declare class CandidePaymaster extends Paymaster {
1500
1536
  private estimateAndApplyGasLimits;
1501
1537
  private applyPaymasterResult;
1502
1538
  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>>;
1539
+ createSponsorPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, sponsorshipPolicyId?: string, context?: CandidePaymasterContext, overrides?: GasPaymasterUserOperationOverrides): Promise<{
1540
+ userOperation: SameUserOp<T>;
1541
+ sponsorMetadata?: SponsorMetadata;
1542
+ }>;
1543
+ createTokenPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: PrependTokenPaymasterApproveAccount, userOperation: T, tokenAddress: string, bundlerRpc: string, context?: CandidePaymasterContext, overrides?: GasPaymasterUserOperationOverrides): Promise<{
1544
+ userOperation: SameUserOp<T>;
1545
+ tokenQuote?: TokenQuote;
1546
+ }>;
1505
1547
  calculateUserOperationErc20TokenMaxGasCost(smartAccount: SmartAccountWithEntrypoint, userOperation: AnyUserOperation, erc20TokenAddress: string, overrides?: {
1506
1548
  entrypoint?: string | null;
1507
1549
  }): Promise<bigint>;
@@ -1534,7 +1576,10 @@ declare class Erc7677Paymaster extends Paymaster {
1534
1576
  getPaymasterStubData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677StubDataResult>;
1535
1577
  getPaymasterData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677PaymasterFields>;
1536
1578
  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>>;
1579
+ createPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, context?: Erc7677Context, overrides?: GasPaymasterUserOperationOverrides): Promise<{
1580
+ userOperation: SameUserOp<T>;
1581
+ tokenQuote?: TokenQuote;
1582
+ }>;
1538
1583
  private applyPaymasterFields;
1539
1584
  private estimateAndApplyGasLimits;
1540
1585
  private fetchPimlicoTokenQuote;
@@ -1547,14 +1592,6 @@ declare class Erc7677Paymaster extends Paymaster {
1547
1592
  private sponsoredFlow;
1548
1593
  }
1549
1594
  //#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
1595
  //#region src/paymaster/WorldIdPermissionlessPaymaster.d.ts
1559
1596
  declare class WorldIdPermissionlessPaymaster extends Paymaster {
1560
1597
  readonly address: string;
@@ -1570,6 +1607,51 @@ declare class WorldIdPermissionlessPaymaster extends Paymaster {
1570
1607
  }
1571
1608
  declare function createWorldIdSignal(accountAddress: string, accountNonce: bigint, chainId: bigint): string;
1572
1609
  //#endregion
1610
+ //#region src/signer/adapters.d.ts
1611
+ interface ViemLocalAccountLike {
1612
+ address: `0x${string}`;
1613
+ sign: (args: {
1614
+ hash: `0x${string}`;
1615
+ }) => Promise<`0x${string}`>;
1616
+ signTypedData: (args: {
1617
+ domain: TypedData["domain"];
1618
+ types: Record<string, Array<{
1619
+ name: string;
1620
+ type: string;
1621
+ }>>;
1622
+ primaryType: string;
1623
+ message: Record<string, unknown>;
1624
+ }) => Promise<`0x${string}`>;
1625
+ }
1626
+ interface ViemWalletClientLike {
1627
+ account?: {
1628
+ address: `0x${string}`;
1629
+ } | undefined;
1630
+ signTypedData: unknown;
1631
+ }
1632
+ interface EthersWalletLike {
1633
+ address: string;
1634
+ signingKey: {
1635
+ sign: (hash: string) => {
1636
+ serialized: string;
1637
+ };
1638
+ };
1639
+ signTypedData: (domain: {
1640
+ name?: string;
1641
+ version?: string;
1642
+ chainId?: number | bigint;
1643
+ verifyingContract?: string;
1644
+ salt?: string;
1645
+ }, types: Record<string, Array<{
1646
+ name: string;
1647
+ type: string;
1648
+ }>>, message: Record<string, unknown>) => Promise<string>;
1649
+ }
1650
+ declare function fromPrivateKey(privateKey: string): Signer<unknown>;
1651
+ declare function fromViem(account: ViemLocalAccountLike): Signer<unknown>;
1652
+ declare function fromViemWalletClient(client: ViemWalletClientLike): Signer<unknown>;
1653
+ declare function fromEthersWallet(wallet: EthersWalletLike): Signer<unknown>;
1654
+ //#endregion
1573
1655
  //#region src/utils.d.ts
1574
1656
  declare function createUserOperationHash(useroperation: UserOperationV6 | UserOperationV7 | UserOperationV8 | UserOperationV9, entrypointAddress: string, chainId: bigint): string;
1575
1657
  declare function createCallData(functionSelector: string, functionInputAbi: string[], functionInputParameters: AbiInputValue[]): string;
@@ -1651,7 +1733,7 @@ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderl
1651
1733
  gasPrice?: number | null;
1652
1734
  value?: number | null;
1653
1735
  blockNumber?: number | null;
1654
- simulationType?: 'full' | 'quick' | 'abi';
1736
+ simulationType?: "full" | "quick" | "abi";
1655
1737
  stateOverrides?: OverrideType | null;
1656
1738
  transactionIndex?: number;
1657
1739
  save?: boolean;
@@ -1662,71 +1744,9 @@ declare function callTenderlySimulateBundle(tenderlyAccountSlug: string, tenderl
1662
1744
  address: string;
1663
1745
  }[];
1664
1746
  }[]): 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
1747
  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 };
1748
+ 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
1749
  }
1730
1750
  //#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 };
1751
+ 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
1752
  //# sourceMappingURL=index.d.cts.map