abstractionkit 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +177 -71
- package/README.md +158 -73
- package/dist/index.cjs +848 -39
- package/dist/index.d.cts +231 -60
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +231 -60
- package/dist/index.d.mts.map +1 -1
- package/dist/index.iife.js +848 -39
- package/dist/index.mjs +844 -40
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -86,8 +86,10 @@ type JsonRpcResponse = {
|
|
|
86
86
|
type ChainIdResult = string;
|
|
87
87
|
type SupportedEntryPointsResult = string[];
|
|
88
88
|
type SingleTransactionTenderlySimulationResult = {
|
|
89
|
-
transaction:
|
|
90
|
-
simulation:
|
|
89
|
+
transaction: Record<string, unknown>;
|
|
90
|
+
simulation: {
|
|
91
|
+
id: string;
|
|
92
|
+
} & Record<string, unknown>;
|
|
91
93
|
};
|
|
92
94
|
type TenderlySimulationResult = SingleTransactionTenderlySimulationResult[];
|
|
93
95
|
type JsonRpcResult = ChainIdResult | SupportedEntryPointsResult | GasEstimationResult | UserOperationByHashResult | UserOperationReceipt | UserOperationReceiptResult | SupportedERC20TokensAndMetadata | PmUserOperationV7Result | PmUserOperationV6Result | TenderlySimulationResult;
|
|
@@ -100,6 +102,8 @@ type GasEstimationResult = {
|
|
|
100
102
|
callGasLimit: bigint;
|
|
101
103
|
preVerificationGas: bigint;
|
|
102
104
|
verificationGasLimit: bigint;
|
|
105
|
+
paymasterVerificationGasLimit?: bigint;
|
|
106
|
+
paymasterPostOpGasLimit?: bigint;
|
|
103
107
|
};
|
|
104
108
|
type UserOperationByHashResult = {
|
|
105
109
|
userOperation: UserOperationV6 | UserOperationV7;
|
|
@@ -236,6 +240,48 @@ interface ParallelPaymasterInitValues {
|
|
|
236
240
|
paymasterData: string;
|
|
237
241
|
}
|
|
238
242
|
//#endregion
|
|
243
|
+
//#region src/signer/types.d.ts
|
|
244
|
+
interface TypedData {
|
|
245
|
+
domain: {
|
|
246
|
+
name?: string;
|
|
247
|
+
version?: string;
|
|
248
|
+
chainId?: number | bigint;
|
|
249
|
+
verifyingContract?: `0x${string}`;
|
|
250
|
+
salt?: `0x${string}`;
|
|
251
|
+
};
|
|
252
|
+
types: Record<string, Array<{
|
|
253
|
+
name: string;
|
|
254
|
+
type: string;
|
|
255
|
+
}>>;
|
|
256
|
+
primaryType: string;
|
|
257
|
+
message: Record<string, unknown>;
|
|
258
|
+
}
|
|
259
|
+
type SigningScheme = "hash" | "typedData";
|
|
260
|
+
interface SignContext<T extends BaseUserOperation = BaseUserOperation> {
|
|
261
|
+
readonly userOperation: T;
|
|
262
|
+
readonly chainId: bigint;
|
|
263
|
+
readonly entryPoint: string;
|
|
264
|
+
}
|
|
265
|
+
interface MultiOpSignContext<T extends BaseUserOperation = BaseUserOperation> {
|
|
266
|
+
readonly userOperations: ReadonlyArray<{
|
|
267
|
+
readonly userOperation: T;
|
|
268
|
+
readonly chainId: bigint;
|
|
269
|
+
}>;
|
|
270
|
+
readonly entryPoint: string;
|
|
271
|
+
}
|
|
272
|
+
interface SignerBase {
|
|
273
|
+
readonly address: `0x${string}`;
|
|
274
|
+
}
|
|
275
|
+
type SignHashFn<C = SignContext> = (hash: `0x${string}`, context: C) => Promise<`0x${string}`>;
|
|
276
|
+
type SignTypedDataFn<C = SignContext> = (data: TypedData, context: C) => Promise<`0x${string}`>;
|
|
277
|
+
type Signer<C = SignContext> = SignerBase & ({
|
|
278
|
+
signHash: SignHashFn<C>;
|
|
279
|
+
signTypedData?: SignTypedDataFn<C>;
|
|
280
|
+
} | {
|
|
281
|
+
signHash?: SignHashFn<C>;
|
|
282
|
+
signTypedData: SignTypedDataFn<C>;
|
|
283
|
+
});
|
|
284
|
+
//#endregion
|
|
239
285
|
//#region src/Bundler.d.ts
|
|
240
286
|
declare class Bundler {
|
|
241
287
|
readonly rpcUrl: string;
|
|
@@ -323,6 +369,8 @@ declare class BaseSimple7702Account extends SmartAccount {
|
|
|
323
369
|
dummySignature?: string;
|
|
324
370
|
}): Promise<[bigint, bigint, bigint]>;
|
|
325
371
|
protected baseSignUserOperation(useroperation: UserOperationV8 | UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
372
|
+
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
373
|
+
protected baseSignUserOperationWithSigner<T extends UserOperationV8 | UserOperationV9>(useroperation: T, signer: Signer, chainId: bigint): Promise<string>;
|
|
326
374
|
protected baseSendUserOperation(userOperation: UserOperationV8 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
327
375
|
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
328
376
|
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
@@ -339,6 +387,7 @@ declare class Simple7702Account extends BaseSimple7702Account {
|
|
|
339
387
|
dummySignature?: string;
|
|
340
388
|
}): Promise<[bigint, bigint, bigint]>;
|
|
341
389
|
signUserOperation(useroperation: UserOperationV8, privateKey: string, chainId: bigint): string;
|
|
390
|
+
signUserOperationWithSigner(useroperation: UserOperationV8, signer: Signer, chainId: bigint): Promise<string>;
|
|
342
391
|
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
343
392
|
}
|
|
344
393
|
//#endregion
|
|
@@ -355,6 +404,7 @@ declare class Simple7702AccountV09 extends BaseSimple7702Account {
|
|
|
355
404
|
dummySignature?: string;
|
|
356
405
|
}): Promise<[bigint, bigint, bigint]>;
|
|
357
406
|
signUserOperation(useroperation: UserOperationV9, privateKey: string, chainId: bigint): string;
|
|
407
|
+
signUserOperationWithSigner(useroperation: UserOperationV9, signer: Signer, chainId: bigint): Promise<string>;
|
|
358
408
|
sendUserOperation(userOperation: UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
359
409
|
}
|
|
360
410
|
//#endregion
|
|
@@ -384,7 +434,7 @@ interface CreateBaseUserOperationOverrides {
|
|
|
384
434
|
multisendContractAddress?: string;
|
|
385
435
|
gasLevel?: GasOption;
|
|
386
436
|
polygonGasStation?: PolygonChain;
|
|
387
|
-
expectedSigners?: Signer[];
|
|
437
|
+
expectedSigners?: Signer$1[];
|
|
388
438
|
isMultiChainSignature?: boolean;
|
|
389
439
|
parallelPaymasterInitValues?: {
|
|
390
440
|
paymaster: string;
|
|
@@ -488,14 +538,14 @@ interface WebauthnPublicKey {
|
|
|
488
538
|
x: bigint;
|
|
489
539
|
y: bigint;
|
|
490
540
|
}
|
|
491
|
-
type Signer = ECDSAPublicAddress | WebauthnPublicKey;
|
|
541
|
+
type Signer$1 = ECDSAPublicAddress | WebauthnPublicKey;
|
|
492
542
|
interface WebauthnSignatureData {
|
|
493
543
|
authenticatorData: ArrayBuffer;
|
|
494
544
|
clientDataFields: string;
|
|
495
545
|
rs: [bigint, bigint];
|
|
496
546
|
}
|
|
497
547
|
interface SignerSignaturePair {
|
|
498
|
-
signer: Signer;
|
|
548
|
+
signer: Signer$1;
|
|
499
549
|
signature: string;
|
|
500
550
|
isContractSignature?: boolean;
|
|
501
551
|
}
|
|
@@ -507,6 +557,18 @@ interface UserOperationToSign {
|
|
|
507
557
|
validAfter?: bigint;
|
|
508
558
|
validUntil?: bigint;
|
|
509
559
|
}
|
|
560
|
+
interface UserOperationToSignWithOverrides extends UserOperationToSign {
|
|
561
|
+
overrides?: {
|
|
562
|
+
isInit?: boolean;
|
|
563
|
+
webAuthnSharedSigner?: string;
|
|
564
|
+
eip7212WebAuthnPrecompileVerifier?: string;
|
|
565
|
+
eip7212WebAuthnContractVerifier?: string;
|
|
566
|
+
webAuthnSignerFactory?: string;
|
|
567
|
+
webAuthnSignerSingleton?: string;
|
|
568
|
+
webAuthnSignerProxyCreationCode?: string;
|
|
569
|
+
safe4337ModuleAddress?: string;
|
|
570
|
+
};
|
|
571
|
+
}
|
|
510
572
|
interface MultiChainSignatureMerkleTreeRootTypedDataDomain {
|
|
511
573
|
verifyingContract: string;
|
|
512
574
|
}
|
|
@@ -607,7 +669,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
607
669
|
name: string;
|
|
608
670
|
type: string;
|
|
609
671
|
}[]>;
|
|
610
|
-
messageValue: SafeUserOperationV6TypedMessageValue |
|
|
672
|
+
messageValue: SafeUserOperationV6TypedMessageValue | SafeUserOperationV7TypedMessageValue | SafeUserOperationV9TypedMessageValue;
|
|
611
673
|
};
|
|
612
674
|
static getUserOperationEip712Data_V6(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
613
675
|
validAfter?: bigint;
|
|
@@ -659,7 +721,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
659
721
|
name: string;
|
|
660
722
|
type: string;
|
|
661
723
|
}[]>;
|
|
662
|
-
messageValue:
|
|
724
|
+
messageValue: SafeUserOperationV9TypedMessageValue;
|
|
663
725
|
};
|
|
664
726
|
static getUserOperationEip712Hash_V9(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
665
727
|
validAfter?: bigint;
|
|
@@ -673,16 +735,16 @@ declare class SafeAccount extends SmartAccount {
|
|
|
673
735
|
isMultiChainSignature?: boolean;
|
|
674
736
|
}): string;
|
|
675
737
|
sendUserOperation(userOperation: UserOperationV6 | UserOperationV7 | UserOperationV9, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
676
|
-
protected static createAccountAddressAndFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string, string];
|
|
677
|
-
protected static createBaseInitializerCallData(owners: Signer[], threshold: number, safe4337ModuleAddress: string, safeModuleSetupAddress: string, multisendContractAddress?: string, webAuthnSharedSigner?: string, eip7212WebAuthnPrecompileVerifierForSharedSigner?: string, eip7212WebAuthnContractVerifierForSharedSigner?: string): string;
|
|
678
|
-
protected static createFactoryAddressAndData(owners: Signer[], overrides: BaseInitOverrides | undefined, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string];
|
|
738
|
+
protected static createAccountAddressAndFactoryAddressAndData(owners: Signer$1[], overrides: BaseInitOverrides, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string, string];
|
|
739
|
+
protected static createBaseInitializerCallData(owners: Signer$1[], threshold: number, safe4337ModuleAddress: string, safeModuleSetupAddress: string, multisendContractAddress?: string, webAuthnSharedSigner?: string, eip7212WebAuthnPrecompileVerifierForSharedSigner?: string, eip7212WebAuthnContractVerifierForSharedSigner?: string): string;
|
|
740
|
+
protected static createFactoryAddressAndData(owners: Signer$1[], overrides: BaseInitOverrides | undefined, safe4337ModuleAddress: string, safeModuleSetupAddress: string): [string, string];
|
|
679
741
|
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint, overrides?: {
|
|
680
742
|
multisendContractAddress?: string;
|
|
681
743
|
}): string;
|
|
682
744
|
baseEstimateUserOperationGas(userOperation: UserOperationV6 | UserOperationV7, bundlerRpc: string, overrides?: {
|
|
683
745
|
stateOverrideSet?: StateOverrideSet;
|
|
684
746
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
685
|
-
expectedSigners?: Signer[];
|
|
747
|
+
expectedSigners?: Signer$1[];
|
|
686
748
|
webAuthnSharedSigner?: string;
|
|
687
749
|
webAuthnSignerFactory?: string;
|
|
688
750
|
webAuthnSignerSingleton?: string;
|
|
@@ -692,11 +754,17 @@ declare class SafeAccount extends SmartAccount {
|
|
|
692
754
|
isMultiChainSignature?: boolean;
|
|
693
755
|
}): Promise<[bigint, bigint, bigint]>;
|
|
694
756
|
protected createBaseUserOperationAndFactoryAddressAndFactoryData(transactions: MetaTransaction[], isV06: boolean, providerRpc?: string, bundlerRpc?: string, overrides?: CreateBaseUserOperationOverrides): Promise<[BaseUserOperation, string | null, string | null]>;
|
|
695
|
-
static baseSignSingleUserOperation(useroperation: UserOperationV6 | UserOperationV7, privateKeys: string[], chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, overrides?: {
|
|
757
|
+
protected static baseSignSingleUserOperation(useroperation: UserOperationV6 | UserOperationV7, privateKeys: string[], chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, overrides?: {
|
|
696
758
|
validAfter?: bigint;
|
|
697
759
|
validUntil?: bigint;
|
|
698
760
|
isMultiChainSignature?: boolean;
|
|
699
761
|
}): string;
|
|
762
|
+
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
763
|
+
protected static baseSignUserOperationWithSigners<T extends UserOperationV6 | UserOperationV7 | UserOperationV9, C>(useroperation: T, signers: ReadonlyArray<Signer<C>>, chainId: bigint, entrypointAddress: string, safe4337ModuleAddress: string, context: C, overrides?: {
|
|
764
|
+
validAfter?: bigint;
|
|
765
|
+
validUntil?: bigint;
|
|
766
|
+
isMultiChainSignature?: boolean;
|
|
767
|
+
}): Promise<string>;
|
|
700
768
|
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
701
769
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
702
770
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -705,11 +773,11 @@ declare class SafeAccount extends SmartAccount {
|
|
|
705
773
|
webAuthnSignerProxyCreationCode?: string;
|
|
706
774
|
}): string;
|
|
707
775
|
static formatSignaturesToUseroperationSignature(signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): string;
|
|
708
|
-
static getSignerLowerCaseAddress(signer: Signer, overrides?: WebAuthnSignatureOverrides): string;
|
|
776
|
+
static getSignerLowerCaseAddress(signer: Signer$1, overrides?: WebAuthnSignatureOverrides): string;
|
|
709
777
|
static sortSignatures(signerSignaturePairs: SignerSignaturePair[], overrides?: WebAuthnSignatureOverrides): void;
|
|
710
778
|
static buildSignaturesFromSingerSignaturePairs(signerSignaturePairs: SignerSignaturePair[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): string;
|
|
711
779
|
static createWebAuthnSignature(signatureData: WebauthnSignatureData): string;
|
|
712
|
-
createSwapOwnerMetaTransactions(nodeRpcUrl: string, newOwner: Signer, oldOwner: Signer, overrides?: {
|
|
780
|
+
createSwapOwnerMetaTransactions(nodeRpcUrl: string, newOwner: Signer$1, oldOwner: Signer$1, overrides?: {
|
|
713
781
|
prevOwner?: string;
|
|
714
782
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
715
783
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -717,7 +785,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
717
785
|
webAuthnSignerSingleton?: string;
|
|
718
786
|
webAuthnSignerProxyCreationCode?: string;
|
|
719
787
|
}): Promise<MetaTransaction[]>;
|
|
720
|
-
createRemoveOwnerMetaTransaction(nodeRpcUrl: string, ownerToDelete: Signer, threshold: number, overrides?: {
|
|
788
|
+
createRemoveOwnerMetaTransaction(nodeRpcUrl: string, ownerToDelete: Signer$1, threshold: number, overrides?: {
|
|
721
789
|
prevOwner?: string;
|
|
722
790
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
723
791
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -725,7 +793,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
725
793
|
webAuthnSignerSingleton?: string;
|
|
726
794
|
webAuthnSignerProxyCreationCode?: string;
|
|
727
795
|
}): Promise<MetaTransaction>;
|
|
728
|
-
createAddOwnerWithThresholdMetaTransactions(newOwner: Signer, threshold: number, overrides?: {
|
|
796
|
+
createAddOwnerWithThresholdMetaTransactions(newOwner: Signer$1, threshold: number, overrides?: {
|
|
729
797
|
nodeRpcUrl?: string;
|
|
730
798
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
731
799
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -750,7 +818,7 @@ declare class SafeAccount extends SmartAccount {
|
|
|
750
818
|
pageSize?: bigint;
|
|
751
819
|
}): Promise<[string[], string]>;
|
|
752
820
|
isModuleEnabled(nodeRpcUrl: string, moduleAddress: string): Promise<boolean>;
|
|
753
|
-
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
821
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
754
822
|
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
755
823
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
756
824
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -803,8 +871,8 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
803
871
|
onChainIdentifier?: string;
|
|
804
872
|
safeAccountSingleton?: SafeAccountSingleton;
|
|
805
873
|
});
|
|
806
|
-
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
807
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeMultiChainSigAccountV1;
|
|
874
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
875
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeMultiChainSigAccountV1;
|
|
808
876
|
static getUserOperationEip712Hash(useroperation: UserOperationV9, chainId: bigint, overrides?: {
|
|
809
877
|
validAfter?: bigint;
|
|
810
878
|
validUntil?: bigint;
|
|
@@ -824,7 +892,7 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
824
892
|
}[]>;
|
|
825
893
|
messageValue: SafeUserOperationV9TypedMessageValue;
|
|
826
894
|
};
|
|
827
|
-
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
895
|
+
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
828
896
|
safe4337ModuleAddress?: string;
|
|
829
897
|
safeModuleSetupAddress?: string;
|
|
830
898
|
multisendContractAddress?: string;
|
|
@@ -832,13 +900,18 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
832
900
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
833
901
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
834
902
|
}): string;
|
|
835
|
-
static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
903
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
836
904
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV9Overrides): Promise<UserOperationV9>;
|
|
837
905
|
signUserOperation(userOperation: UserOperationV9, privateKeys: string[], chainId: bigint, overrides?: {
|
|
838
906
|
validAfter?: bigint;
|
|
839
907
|
validUntil?: bigint;
|
|
840
908
|
}): string;
|
|
909
|
+
signUserOperationWithSigners(userOperation: UserOperationV9, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
910
|
+
validAfter?: bigint;
|
|
911
|
+
validUntil?: bigint;
|
|
912
|
+
}): Promise<string>;
|
|
841
913
|
signUserOperations(userOperationsToSign: UserOperationToSign[], privateKeys: string[]): string[];
|
|
914
|
+
signUserOperationsWithSigners(userOperationsToSign: UserOperationToSign[], signers: ReadonlyArray<Signer<MultiOpSignContext<UserOperationV9>>>): Promise<string[]>;
|
|
842
915
|
static getMultiChainSingleSignatureUserOperationsEip712Hash(userOperationsToSignsToSign: UserOperationToSign[], overrides?: {
|
|
843
916
|
safe4337ModuleAddress?: string;
|
|
844
917
|
}): string;
|
|
@@ -853,7 +926,7 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
853
926
|
}[]>;
|
|
854
927
|
messageValue: MultiChainSignatureMerkleTreeRootTypedMessageValue;
|
|
855
928
|
};
|
|
856
|
-
static formatSignaturesToUseroperationsSignatures(userOperationsToSign:
|
|
929
|
+
static formatSignaturesToUseroperationsSignatures(userOperationsToSign: UserOperationToSignWithOverrides[], signerSignaturePairs: SignerSignaturePair[]): string[];
|
|
857
930
|
static createWebAuthnSignerVerifierAddress(x: bigint, y: bigint, overrides?: {
|
|
858
931
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
859
932
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -866,7 +939,7 @@ declare class SafeMultiChainSigAccountV1 extends SafeAccount {
|
|
|
866
939
|
eip7212WebAuthnContractVerifier?: string;
|
|
867
940
|
webAuthnSignerFactory?: string;
|
|
868
941
|
}): MetaTransaction;
|
|
869
|
-
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
942
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
870
943
|
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
871
944
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
872
945
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -888,6 +961,11 @@ interface SmartAccountWithEntrypoint {
|
|
|
888
961
|
interface PrependTokenPaymasterApproveAccount extends SmartAccountWithEntrypoint {
|
|
889
962
|
prependTokenPaymasterApproveToCallData(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
890
963
|
}
|
|
964
|
+
type Erc7677Provider = "pimlico" | "candide" | null;
|
|
965
|
+
interface Erc7677PaymasterConstructorOptions {
|
|
966
|
+
chainId?: bigint;
|
|
967
|
+
provider?: "auto" | Erc7677Provider;
|
|
968
|
+
}
|
|
891
969
|
interface BasePaymasterUserOperationOverrides {
|
|
892
970
|
entrypoint?: string;
|
|
893
971
|
resetApproval?: boolean;
|
|
@@ -963,7 +1041,6 @@ interface CaliburSignatureOverrides {
|
|
|
963
1041
|
hookData?: string;
|
|
964
1042
|
keyHash?: string;
|
|
965
1043
|
}
|
|
966
|
-
type SignerFunction = (hash: string) => Promise<string>;
|
|
967
1044
|
//#endregion
|
|
968
1045
|
//#region src/account/Calibur/Calibur7702Account.d.ts
|
|
969
1046
|
declare class Calibur7702Account extends SmartAccount implements PrependTokenPaymasterApproveAccount {
|
|
@@ -981,7 +1058,8 @@ declare class Calibur7702Account extends SmartAccount implements PrependTokenPay
|
|
|
981
1058
|
static createAccountCallData(transactions: SimpleMetaTransaction[], revertOnFailure?: boolean): string;
|
|
982
1059
|
createUserOperation(transactions: SimpleMetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CaliburCreateUserOperationOverrides): Promise<UserOperationV8>;
|
|
983
1060
|
signUserOperation(userOperation: UserOperationV8, privateKey: string, chainId: bigint, overrides?: CaliburSignatureOverrides): string;
|
|
984
|
-
|
|
1061
|
+
static readonly ACCEPTED_SIGNING_SCHEMES: readonly SigningScheme[];
|
|
1062
|
+
signUserOperationWithSigner(userOperation: UserOperationV8, signer: Signer, chainId: bigint, overrides?: CaliburSignatureOverrides): Promise<string>;
|
|
985
1063
|
formatWebAuthnSignature(keyHash: string, webAuthnAuth: WebAuthnSignatureData, overrides?: CaliburSignatureOverrides): string;
|
|
986
1064
|
sendUserOperation(userOperation: UserOperationV8, bundlerRpc: string): Promise<SendUseroperationResponse>;
|
|
987
1065
|
static createSecp256k1Key(address: string): CaliburKey;
|
|
@@ -1014,6 +1092,51 @@ declare class Calibur7702Account extends SmartAccount implements PrependTokenPay
|
|
|
1014
1092
|
static prependTokenPaymasterApproveToCallDataStatic(callData: string, tokenAddress: string, paymasterAddress: string, approveAmount: bigint): string;
|
|
1015
1093
|
}
|
|
1016
1094
|
//#endregion
|
|
1095
|
+
//#region src/signer/adapters.d.ts
|
|
1096
|
+
interface ViemLocalAccountLike {
|
|
1097
|
+
address: `0x${string}`;
|
|
1098
|
+
sign: (args: {
|
|
1099
|
+
hash: `0x${string}`;
|
|
1100
|
+
}) => Promise<`0x${string}`>;
|
|
1101
|
+
signTypedData: (args: {
|
|
1102
|
+
domain: TypedData["domain"];
|
|
1103
|
+
types: Record<string, Array<{
|
|
1104
|
+
name: string;
|
|
1105
|
+
type: string;
|
|
1106
|
+
}>>;
|
|
1107
|
+
primaryType: string;
|
|
1108
|
+
message: Record<string, unknown>;
|
|
1109
|
+
}) => Promise<`0x${string}`>;
|
|
1110
|
+
}
|
|
1111
|
+
interface ViemWalletClientLike {
|
|
1112
|
+
account?: {
|
|
1113
|
+
address: `0x${string}`;
|
|
1114
|
+
} | undefined;
|
|
1115
|
+
signTypedData: unknown;
|
|
1116
|
+
}
|
|
1117
|
+
interface EthersWalletLike {
|
|
1118
|
+
address: string;
|
|
1119
|
+
signingKey: {
|
|
1120
|
+
sign: (hash: string) => {
|
|
1121
|
+
serialized: string;
|
|
1122
|
+
};
|
|
1123
|
+
};
|
|
1124
|
+
signTypedData: (domain: {
|
|
1125
|
+
name?: string;
|
|
1126
|
+
version?: string;
|
|
1127
|
+
chainId?: number | bigint;
|
|
1128
|
+
verifyingContract?: string;
|
|
1129
|
+
salt?: string;
|
|
1130
|
+
}, types: Record<string, Array<{
|
|
1131
|
+
name: string;
|
|
1132
|
+
type: string;
|
|
1133
|
+
}>>, message: Record<string, unknown>) => Promise<string>;
|
|
1134
|
+
}
|
|
1135
|
+
declare function fromPrivateKey(privateKey: string): Signer<unknown>;
|
|
1136
|
+
declare function fromViem(account: ViemLocalAccountLike): Signer<unknown>;
|
|
1137
|
+
declare function fromViemWalletClient(client: ViemWalletClientLike): Signer<unknown>;
|
|
1138
|
+
declare function fromEthersWallet(wallet: EthersWalletLike): Signer<unknown>;
|
|
1139
|
+
//#endregion
|
|
1017
1140
|
//#region src/account/Safe/modules/SafeModule.d.ts
|
|
1018
1141
|
declare abstract class SafeModule {
|
|
1019
1142
|
readonly moduleAddress: string;
|
|
@@ -1142,7 +1265,7 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1142
1265
|
onChainIdentifierParams?: OnChainIdentifierParamsType;
|
|
1143
1266
|
onChainIdentifier?: string;
|
|
1144
1267
|
});
|
|
1145
|
-
static createAccountAddress(owners: Signer[], overrides?: {
|
|
1268
|
+
static createAccountAddress(owners: Signer$1[], overrides?: {
|
|
1146
1269
|
threshold?: number;
|
|
1147
1270
|
c2Nonce?: bigint;
|
|
1148
1271
|
safe4337ModuleAddress?: string;
|
|
@@ -1154,7 +1277,7 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1154
1277
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1155
1278
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1156
1279
|
}): string;
|
|
1157
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
1280
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_2_0;
|
|
1158
1281
|
static getUserOperationEip712Hash(useroperation: UserOperationV6, chainId: bigint, overrides?: {
|
|
1159
1282
|
validAfter?: bigint;
|
|
1160
1283
|
validUntil?: bigint;
|
|
@@ -1174,8 +1297,8 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1174
1297
|
}[]>;
|
|
1175
1298
|
messageValue: SafeUserOperationV6TypedMessageValue;
|
|
1176
1299
|
};
|
|
1177
|
-
static createAccountAddressAndInitCode(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
1178
|
-
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
1300
|
+
static createAccountAddressAndInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1301
|
+
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
1179
1302
|
safe4337ModuleAddress?: string;
|
|
1180
1303
|
safeModuleSetupAddress?: string;
|
|
1181
1304
|
multisendContractAddress?: string;
|
|
@@ -1183,7 +1306,7 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1183
1306
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1184
1307
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1185
1308
|
}): string;
|
|
1186
|
-
static createInitCode(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
1309
|
+
static createInitCode(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1187
1310
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV6Overrides): Promise<UserOperationV6>;
|
|
1188
1311
|
createMigrateToSafeAccountV0_3_0MetaTransactions(nodeRpcUrl: string, overrides?: {
|
|
1189
1312
|
safeV06ModuleAddress?: string;
|
|
@@ -1194,7 +1317,7 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1194
1317
|
estimateUserOperationGas(userOperation: UserOperationV6, bundlerRpc: string, overrides?: {
|
|
1195
1318
|
stateOverrideSet?: StateOverrideSet;
|
|
1196
1319
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1197
|
-
expectedSigners?: Signer[];
|
|
1320
|
+
expectedSigners?: Signer$1[];
|
|
1198
1321
|
webAuthnSharedSigner?: string;
|
|
1199
1322
|
webAuthnSignerFactory?: string;
|
|
1200
1323
|
webAuthnSignerSingleton?: string;
|
|
@@ -1206,6 +1329,11 @@ declare class SafeAccountV0_2_0 extends SafeAccount {
|
|
|
1206
1329
|
validAfter?: bigint;
|
|
1207
1330
|
validUntil?: bigint;
|
|
1208
1331
|
}): string;
|
|
1332
|
+
signUserOperationWithSigners(useroperation: UserOperationV6, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1333
|
+
validAfter?: bigint;
|
|
1334
|
+
validUntil?: bigint;
|
|
1335
|
+
isMultiChainSignature?: boolean;
|
|
1336
|
+
}): Promise<string>;
|
|
1209
1337
|
}
|
|
1210
1338
|
//#endregion
|
|
1211
1339
|
//#region src/account/Safe/SafeAccountV0_3_0.d.ts
|
|
@@ -1220,8 +1348,8 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1220
1348
|
onChainIdentifier?: string;
|
|
1221
1349
|
safeAccountSingleton?: SafeAccountSingleton;
|
|
1222
1350
|
});
|
|
1223
|
-
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
1224
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
|
|
1351
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1352
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV0_3_0;
|
|
1225
1353
|
static getUserOperationEip712Hash(useroperation: UserOperationV7, chainId: bigint, overrides?: {
|
|
1226
1354
|
validAfter?: bigint;
|
|
1227
1355
|
validUntil?: bigint;
|
|
@@ -1241,7 +1369,7 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1241
1369
|
}[]>;
|
|
1242
1370
|
messageValue: SafeUserOperationV7TypedMessageValue;
|
|
1243
1371
|
};
|
|
1244
|
-
static createInitializerCallData(owners: Signer[], threshold: number, overrides?: {
|
|
1372
|
+
static createInitializerCallData(owners: Signer$1[], threshold: number, overrides?: {
|
|
1245
1373
|
safe4337ModuleAddress?: string;
|
|
1246
1374
|
safeModuleSetupAddress?: string;
|
|
1247
1375
|
multisendContractAddress?: string;
|
|
@@ -1249,12 +1377,12 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1249
1377
|
eip7212WebAuthnPrecompileVerifierForSharedSigner?: string;
|
|
1250
1378
|
eip7212WebAuthnContractVerifierForSharedSigner?: string;
|
|
1251
1379
|
}): string;
|
|
1252
|
-
static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
1380
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1253
1381
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
1254
1382
|
estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
|
|
1255
1383
|
stateOverrideSet?: StateOverrideSet;
|
|
1256
1384
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1257
|
-
expectedSigners?: Signer[];
|
|
1385
|
+
expectedSigners?: Signer$1[];
|
|
1258
1386
|
webAuthnSharedSigner?: string;
|
|
1259
1387
|
webAuthnSignerFactory?: string;
|
|
1260
1388
|
webAuthnSignerSingleton?: string;
|
|
@@ -1266,6 +1394,11 @@ declare class SafeAccountV0_3_0 extends SafeAccount {
|
|
|
1266
1394
|
validAfter?: bigint;
|
|
1267
1395
|
validUntil?: bigint;
|
|
1268
1396
|
}): string;
|
|
1397
|
+
signUserOperationWithSigners(useroperation: UserOperationV7, signers: ReadonlyArray<Signer>, chainId: bigint, overrides?: {
|
|
1398
|
+
validAfter?: bigint;
|
|
1399
|
+
validUntil?: bigint;
|
|
1400
|
+
isMultiChainSignature?: boolean;
|
|
1401
|
+
}): Promise<string>;
|
|
1269
1402
|
}
|
|
1270
1403
|
//#endregion
|
|
1271
1404
|
//#region src/account/Safe/SafeAccountV1_5_0_M_0_3_0.d.ts
|
|
@@ -1284,14 +1417,14 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
|
1284
1417
|
safeFactoryAddress?: string;
|
|
1285
1418
|
singletonInitHash?: string;
|
|
1286
1419
|
}): string;
|
|
1287
|
-
static initializeNewAccount(owners: Signer[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
|
|
1288
|
-
static createAccountAddress(owners: Signer[], overrides?: InitCodeOverrides): string;
|
|
1289
|
-
static createFactoryAddressAndData(owners: Signer[], overrides?: InitCodeOverrides): [string, string];
|
|
1420
|
+
static initializeNewAccount(owners: Signer$1[], overrides?: InitCodeOverrides): SafeAccountV1_5_0_M_0_3_0;
|
|
1421
|
+
static createAccountAddress(owners: Signer$1[], overrides?: InitCodeOverrides): string;
|
|
1422
|
+
static createFactoryAddressAndData(owners: Signer$1[], overrides?: InitCodeOverrides): [string, string];
|
|
1290
1423
|
createUserOperation(transactions: MetaTransaction[], providerRpc?: string, bundlerRpc?: string, overrides?: CreateUserOperationV7Overrides): Promise<UserOperationV7>;
|
|
1291
1424
|
estimateUserOperationGas(userOperation: UserOperationV7, bundlerRpc: string, overrides?: {
|
|
1292
1425
|
stateOverrideSet?: StateOverrideSet;
|
|
1293
1426
|
dummySignerSignaturePairs?: SignerSignaturePair[];
|
|
1294
|
-
expectedSigners?: Signer[];
|
|
1427
|
+
expectedSigners?: Signer$1[];
|
|
1295
1428
|
webAuthnSharedSigner?: string;
|
|
1296
1429
|
webAuthnSignerFactory?: string;
|
|
1297
1430
|
webAuthnSignerSingleton?: string;
|
|
@@ -1311,7 +1444,7 @@ declare class SafeAccountV1_5_0_M_0_3_0 extends SafeAccountV0_3_0 {
|
|
|
1311
1444
|
eip7212WebAuthnContractVerifier?: string;
|
|
1312
1445
|
webAuthnSignerFactory?: string;
|
|
1313
1446
|
}): MetaTransaction;
|
|
1314
|
-
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1447
|
+
static createDummySignerSignaturePairForExpectedSigners(expectedSigners: Signer$1[], webAuthnSignatureOverrides?: WebAuthnSignatureOverrides): SignerSignaturePair[];
|
|
1315
1448
|
static verifyWebAuthnSignatureForMessageHash(nodeRpcUrl: string, signer: WebauthnPublicKey, messageHash: string, signature: string, overrides?: {
|
|
1316
1449
|
eip7212WebAuthnPrecompileVerifier?: string;
|
|
1317
1450
|
eip7212WebAuthnContractVerifier?: string;
|
|
@@ -1374,6 +1507,44 @@ declare class CandidePaymaster extends Paymaster {
|
|
|
1374
1507
|
fetchSupportedERC20TokensAndPaymasterMetadata(entrypoint?: string): Promise<SupportedERC20TokensAndMetadataWithExchangeRate>;
|
|
1375
1508
|
}
|
|
1376
1509
|
//#endregion
|
|
1510
|
+
//#region src/paymaster/Erc7677Paymaster.d.ts
|
|
1511
|
+
type Erc7677Context = Record<string, unknown>;
|
|
1512
|
+
interface Erc7677PaymasterFields {
|
|
1513
|
+
paymaster?: string;
|
|
1514
|
+
paymasterData?: string;
|
|
1515
|
+
paymasterVerificationGasLimit?: bigint | string;
|
|
1516
|
+
paymasterPostOpGasLimit?: bigint | string;
|
|
1517
|
+
paymasterAndData?: string;
|
|
1518
|
+
}
|
|
1519
|
+
interface Erc7677StubDataResult extends Erc7677PaymasterFields {
|
|
1520
|
+
isFinal?: boolean;
|
|
1521
|
+
[key: string]: unknown;
|
|
1522
|
+
}
|
|
1523
|
+
declare class Erc7677Paymaster extends Paymaster {
|
|
1524
|
+
readonly rpcUrl: string;
|
|
1525
|
+
private chainId;
|
|
1526
|
+
readonly provider: Erc7677Provider;
|
|
1527
|
+
private candideCache;
|
|
1528
|
+
static detectProvider(rpcUrl: string): Erc7677Provider;
|
|
1529
|
+
constructor(rpcUrl: string, options?: Erc7677PaymasterConstructorOptions);
|
|
1530
|
+
private getChainId;
|
|
1531
|
+
private resolveEntrypoint;
|
|
1532
|
+
getPaymasterStubData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677StubDataResult>;
|
|
1533
|
+
getPaymasterData(userOperation: AnyUserOperation, entrypoint: string, chainIdHex: string, context?: Erc7677Context): Promise<Erc7677PaymasterFields>;
|
|
1534
|
+
sendRPCRequest(method: string, params?: unknown[]): Promise<unknown>;
|
|
1535
|
+
createPaymasterUserOperation<T extends AnyUserOperation>(smartAccount: SmartAccountWithEntrypoint, userOperation: T, bundlerRpc: string, context?: Erc7677Context, overrides?: GasPaymasterUserOperationOverrides): Promise<SameUserOp<T>>;
|
|
1536
|
+
private applyPaymasterFields;
|
|
1537
|
+
private estimateAndApplyGasLimits;
|
|
1538
|
+
private fetchPimlicoTokenQuote;
|
|
1539
|
+
private fetchCandideSupportedTokens;
|
|
1540
|
+
private fetchCandideTokenQuote;
|
|
1541
|
+
private candideStubFromMetadata;
|
|
1542
|
+
private getStubData;
|
|
1543
|
+
private fetchProviderTokenQuote;
|
|
1544
|
+
private tokenPaymasterFlow;
|
|
1545
|
+
private sponsoredFlow;
|
|
1546
|
+
}
|
|
1547
|
+
//#endregion
|
|
1377
1548
|
//#region src/paymaster/AllowAllPaymaster.d.ts
|
|
1378
1549
|
declare class ExperimentalAllowAllParallelPaymaster extends Paymaster {
|
|
1379
1550
|
readonly address: string;
|
|
@@ -1427,34 +1598,34 @@ declare function simulateUserOperationWithTenderly(tenderlyAccountSlug: string,
|
|
|
1427
1598
|
interface BaseUserOperationToSimulate {
|
|
1428
1599
|
sender: string;
|
|
1429
1600
|
callData: string;
|
|
1430
|
-
nonce:
|
|
1431
|
-
callGasLimit:
|
|
1432
|
-
verificationGasLimit:
|
|
1433
|
-
preVerificationGas:
|
|
1434
|
-
maxFeePerGas:
|
|
1435
|
-
maxPriorityFeePerGas:
|
|
1436
|
-
signature:
|
|
1601
|
+
nonce: bigint;
|
|
1602
|
+
callGasLimit: bigint;
|
|
1603
|
+
verificationGasLimit: bigint;
|
|
1604
|
+
preVerificationGas: bigint;
|
|
1605
|
+
maxFeePerGas: bigint;
|
|
1606
|
+
maxPriorityFeePerGas: bigint;
|
|
1607
|
+
signature: string;
|
|
1437
1608
|
}
|
|
1438
1609
|
interface UserOperationV6ToSimulate extends BaseUserOperationToSimulate {
|
|
1439
1610
|
initCode: string | null;
|
|
1440
|
-
paymasterAndData:
|
|
1611
|
+
paymasterAndData: string;
|
|
1441
1612
|
}
|
|
1442
1613
|
interface UserOperationV7ToSimulate extends BaseUserOperationToSimulate {
|
|
1443
1614
|
factory: string | null;
|
|
1444
1615
|
factoryData: string | null;
|
|
1445
|
-
paymaster:
|
|
1446
|
-
paymasterVerificationGasLimit:
|
|
1447
|
-
paymasterPostOpGasLimit:
|
|
1448
|
-
paymasterData:
|
|
1616
|
+
paymaster: string | null;
|
|
1617
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
1618
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
1619
|
+
paymasterData: string | null;
|
|
1449
1620
|
}
|
|
1450
1621
|
interface UserOperationV8ToSimulate extends BaseUserOperationToSimulate {
|
|
1451
1622
|
factory: string | null;
|
|
1452
1623
|
factoryData: string | null;
|
|
1453
|
-
paymaster:
|
|
1454
|
-
paymasterVerificationGasLimit:
|
|
1455
|
-
paymasterPostOpGasLimit:
|
|
1456
|
-
paymasterData:
|
|
1457
|
-
eip7702Auth:
|
|
1624
|
+
paymaster: string | null;
|
|
1625
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
1626
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
1627
|
+
paymasterData: string | null;
|
|
1628
|
+
eip7702Auth: Authorization7702Hex | null;
|
|
1458
1629
|
}
|
|
1459
1630
|
interface UserOperationV9ToSimulate extends UserOperationV8ToSimulate {}
|
|
1460
1631
|
declare function simulateUserOperationCallDataWithTenderlyAndCreateShareLink(tenderlyAccountSlug: string, tenderlyProjectSlug: string, tenderlyAccessKey: string, chainId: bigint, entrypointAddress: string, userOperation: UserOperationV6ToSimulate | UserOperationV7ToSimulate | UserOperationV8ToSimulate | UserOperationV9ToSimulate, blockNumber?: number | null, stateOverrides?: OverrideType | null): Promise<{
|
|
@@ -1552,8 +1723,8 @@ declare class AbstractionKitError extends Error {
|
|
|
1552
1723
|
stringify(): string;
|
|
1553
1724
|
}
|
|
1554
1725
|
declare namespace abstractionkit_d_exports {
|
|
1555
|
-
export { ALLOWANCE_MODULE_V0_1_0_ADDRESS, AbiInputValue, AbstractionKitError, Allowance, AllowanceModule, AnyUserOperation, Authorization7702, Authorization7702Hex, BaseUserOperationDummyValues, Bundler, CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS, CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS, Calibur7702Account, CaliburCreateUserOperationOverrides, CaliburKey, CaliburKeySettings, CaliburKeySettingsResult, CaliburKeyType, CaliburSignatureOverrides, CandidePaymaster, CandidePaymasterContext, CreateUserOperationV6Overrides, CreateUserOperationV7Overrides, CreateUserOperationV9Overrides, DEFAULT_SECP256R1_PRECOMPILE_ADDRESS, DepositInfo, ECDSAPublicAddress, EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE, EIP712_MULTI_CHAIN_OPERATIONS_TYPE, EIP712_RECOVERY_MODULE_TYPE, EIP712_SAFE_OPERATION_PRIMARY_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, EIP712_SAFE_OPERATION_V7_TYPE, ENTRYPOINT_V6, ENTRYPOINT_V7, ENTRYPOINT_V8, ENTRYPOINT_V9, EOADummySignerSignaturePair, EXECUTE_RECOVERY_PRIMARY_TYPE, ExperimentalAllowAllParallelPaymaster, GasEstimationResult, GasOption, InitCodeOverrides, JsonRpcError, JsonRpcParam, JsonRpcResponse, JsonRpcResult, MetaTransaction, Operation, ParallelPaymasterInitValues, PolygonChain, PrependTokenPaymasterApproveAccount, RecoveryRequest, RecoveryRequestTypedDataDomain, RecoveryRequestTypedMessageValue, RecoverySignaturePair, SAFE_MESSAGE_MODULE_TYPE, SAFE_MESSAGE_PRIMARY_TYPE, SafeAccountFactory, SafeAccountV0_2_0, SafeAccountV0_3_0, SafeAccountV1_5_0_M_0_3_0, SafeMessageTypedDataDomain, SafeMessageTypedMessageValue, SafeModuleExecutorFunctionSelector, SafeMultiChainSigAccountV1, SafeUserOperationTypedDataDomain, SameUserOp, SendUseroperationResponse,
|
|
1726
|
+
export { ALLOWANCE_MODULE_V0_1_0_ADDRESS, AbiInputValue, AbstractionKitError, Allowance, AllowanceModule, AnyUserOperation, Authorization7702, Authorization7702Hex, BaseUserOperationDummyValues, Bundler, CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS, CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS, Calibur7702Account, CaliburCreateUserOperationOverrides, CaliburKey, CaliburKeySettings, CaliburKeySettingsResult, CaliburKeyType, CaliburSignatureOverrides, CandidePaymaster, CandidePaymasterContext, CreateUserOperationV6Overrides, CreateUserOperationV7Overrides, CreateUserOperationV9Overrides, DEFAULT_SECP256R1_PRECOMPILE_ADDRESS, DepositInfo, ECDSAPublicAddress, EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE, EIP712_MULTI_CHAIN_OPERATIONS_TYPE, EIP712_RECOVERY_MODULE_TYPE, EIP712_SAFE_OPERATION_PRIMARY_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, EIP712_SAFE_OPERATION_V7_TYPE, ENTRYPOINT_V6, ENTRYPOINT_V7, ENTRYPOINT_V8, ENTRYPOINT_V9, EOADummySignerSignaturePair, EXECUTE_RECOVERY_PRIMARY_TYPE, Erc7677Context, Erc7677Paymaster, Erc7677PaymasterConstructorOptions, Erc7677PaymasterFields, Erc7677Provider, Erc7677StubDataResult, ExperimentalAllowAllParallelPaymaster, Signer as ExternalSigner, GasEstimationResult, GasOption, GasPaymasterUserOperationOverrides, InitCodeOverrides, JsonRpcError, JsonRpcParam, JsonRpcResponse, JsonRpcResult, MetaTransaction, MultiOpSignContext, Operation, ParallelPaymasterInitValues, PolygonChain, PrependTokenPaymasterApproveAccount, RecoveryRequest, RecoveryRequestTypedDataDomain, RecoveryRequestTypedMessageValue, RecoverySignaturePair, SAFE_MESSAGE_MODULE_TYPE, SAFE_MESSAGE_PRIMARY_TYPE, SafeAccountFactory, SafeAccountV0_2_0, SafeAccountV0_3_0, SafeAccountV1_5_0_M_0_3_0, SafeMessageTypedDataDomain, SafeMessageTypedMessageValue, SafeModuleExecutorFunctionSelector, SafeMultiChainSigAccountV1, SafeUserOperationTypedDataDomain, SameUserOp, SendUseroperationResponse, SignContext, SignHashFn, SignTypedDataFn, Signer$1 as Signer, SignerSignaturePair, SigningScheme, Simple7702Account, Simple7702AccountV09, SmartAccount, SmartAccountFactory, SocialRecoveryModule, SocialRecoveryModuleGracePeriodSelector, SponsorMetadata, StateOverrideSet, TypedData, UserOperationByHashResult, UserOperationReceipt, UserOperationReceiptResult, UserOperationV6, UserOperationV7, UserOperationV8, UserOperationV9, WebAuthnSignatureData, WebauthnDummySignerSignaturePair, WebauthnPublicKey, WebauthnSignatureData, WorldIdPermissionlessPaymaster, ZeroAddress, calculateUserOperationMaxGasCost, callTenderlySimulateBundle, createAndSignEip7702DelegationAuthorization, createAndSignEip7702RawTransaction, createAndSignLegacyRawTransaction, createCallData, createEip7702DelegationAuthorizationHash, createEip7702TransactionHash, createUserOperationHash, createWorldIdSignal, fetchAccountNonce, fetchGasPrice, fromEthersWallet, fromPrivateKey, fromViem, fromViemWalletClient, getBalanceOf, getDelegatedAddress, getDepositInfo, getFunctionSelector, getSafeMessageEip712Data, sendJsonRpcRequest, shareTenderlySimulationAndCreateLink, signHash, simulateSenderCallDataWithTenderly, simulateSenderCallDataWithTenderlyAndCreateShareLink, simulateUserOperationCallDataWithTenderly, simulateUserOperationCallDataWithTenderlyAndCreateShareLink, simulateUserOperationWithTenderly, simulateUserOperationWithTenderlyAndCreateShareLink };
|
|
1556
1727
|
}
|
|
1557
1728
|
//#endregion
|
|
1558
|
-
export { ALLOWANCE_MODULE_V0_1_0_ADDRESS, type AbiInputValue, AbstractionKitError, type Allowance, AllowanceModule, type AnyUserOperation, type Authorization7702, type Authorization7702Hex, BaseUserOperationDummyValues, Bundler, CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS, CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS, Calibur7702Account, type CaliburCreateUserOperationOverrides, type CaliburKey, type CaliburKeySettings, type CaliburKeySettingsResult, CaliburKeyType, type CaliburSignatureOverrides, CandidePaymaster, type CandidePaymasterContext, type CreateUserOperationV6Overrides, type CreateUserOperationV7Overrides, type CreateUserOperationV9Overrides, DEFAULT_SECP256R1_PRECOMPILE_ADDRESS, type DepositInfo, type ECDSAPublicAddress, EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE, EIP712_MULTI_CHAIN_OPERATIONS_TYPE, EIP712_RECOVERY_MODULE_TYPE, EIP712_SAFE_OPERATION_PRIMARY_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, EIP712_SAFE_OPERATION_V7_TYPE, ENTRYPOINT_V6, ENTRYPOINT_V7, ENTRYPOINT_V8, ENTRYPOINT_V9, EOADummySignerSignaturePair, EXECUTE_RECOVERY_PRIMARY_TYPE, ExperimentalAllowAllParallelPaymaster, type GasEstimationResult, GasOption, type InitCodeOverrides, type JsonRpcError, type JsonRpcParam, type JsonRpcResponse, type JsonRpcResult, type MetaTransaction, Operation, type ParallelPaymasterInitValues, PolygonChain, type PrependTokenPaymasterApproveAccount, type RecoveryRequest, type RecoveryRequestTypedDataDomain, type RecoveryRequestTypedMessageValue, type RecoverySignaturePair, SAFE_MESSAGE_MODULE_TYPE, SAFE_MESSAGE_PRIMARY_TYPE, SafeAccountFactory, SafeAccountV0_2_0, SafeAccountV0_3_0, SafeAccountV1_5_0_M_0_3_0, type SafeMessageTypedDataDomain, type SafeMessageTypedMessageValue, SafeModuleExecutorFunctionSelector, SafeMultiChainSigAccountV1, type SafeUserOperationTypedDataDomain, type SameUserOp, SendUseroperationResponse, type
|
|
1729
|
+
export { ALLOWANCE_MODULE_V0_1_0_ADDRESS, type AbiInputValue, AbstractionKitError, type Allowance, AllowanceModule, type AnyUserOperation, type Authorization7702, type Authorization7702Hex, BaseUserOperationDummyValues, Bundler, CALIBUR_CANDIDE_V0_1_0_SINGLETON_ADDRESS, CALIBUR_UNISWAP_V1_0_0_SINGLETON_ADDRESS, Calibur7702Account, type CaliburCreateUserOperationOverrides, type CaliburKey, type CaliburKeySettings, type CaliburKeySettingsResult, CaliburKeyType, type CaliburSignatureOverrides, CandidePaymaster, type CandidePaymasterContext, type CreateUserOperationV6Overrides, type CreateUserOperationV7Overrides, type CreateUserOperationV9Overrides, DEFAULT_SECP256R1_PRECOMPILE_ADDRESS, type DepositInfo, type ECDSAPublicAddress, EIP712_MULTI_CHAIN_OPERATIONS_PRIMARY_TYPE, EIP712_MULTI_CHAIN_OPERATIONS_TYPE, EIP712_RECOVERY_MODULE_TYPE, EIP712_SAFE_OPERATION_PRIMARY_TYPE, EIP712_SAFE_OPERATION_V6_TYPE, EIP712_SAFE_OPERATION_V7_TYPE, ENTRYPOINT_V6, ENTRYPOINT_V7, ENTRYPOINT_V8, ENTRYPOINT_V9, EOADummySignerSignaturePair, EXECUTE_RECOVERY_PRIMARY_TYPE, type Erc7677Context, Erc7677Paymaster, type Erc7677PaymasterConstructorOptions, type Erc7677PaymasterFields, type Erc7677Provider, type Erc7677StubDataResult, ExperimentalAllowAllParallelPaymaster, type Signer as ExternalSigner, type GasEstimationResult, GasOption, type GasPaymasterUserOperationOverrides, type InitCodeOverrides, type JsonRpcError, type JsonRpcParam, type JsonRpcResponse, type JsonRpcResult, type MetaTransaction, type MultiOpSignContext, Operation, type ParallelPaymasterInitValues, PolygonChain, type PrependTokenPaymasterApproveAccount, type RecoveryRequest, type RecoveryRequestTypedDataDomain, type RecoveryRequestTypedMessageValue, type RecoverySignaturePair, SAFE_MESSAGE_MODULE_TYPE, SAFE_MESSAGE_PRIMARY_TYPE, SafeAccountFactory, SafeAccountV0_2_0, SafeAccountV0_3_0, SafeAccountV1_5_0_M_0_3_0, type SafeMessageTypedDataDomain, type SafeMessageTypedMessageValue, SafeModuleExecutorFunctionSelector, SafeMultiChainSigAccountV1, type SafeUserOperationTypedDataDomain, type SameUserOp, SendUseroperationResponse, type SignContext, type SignHashFn, type SignTypedDataFn, type Signer$1 as Signer, type SignerSignaturePair, type SigningScheme, Simple7702Account, Simple7702AccountV09, SmartAccount, SmartAccountFactory, SocialRecoveryModule, SocialRecoveryModuleGracePeriodSelector, type SponsorMetadata, type StateOverrideSet, type TypedData, type UserOperationByHashResult, type UserOperationReceipt, type UserOperationReceiptResult, type UserOperationV6, type UserOperationV7, type UserOperationV8, type UserOperationV9, type WebAuthnSignatureData, WebauthnDummySignerSignaturePair, type WebauthnPublicKey, type WebauthnSignatureData, WorldIdPermissionlessPaymaster, ZeroAddress, abstractionkit_d_exports as abstractionkit, calculateUserOperationMaxGasCost, callTenderlySimulateBundle, createAndSignEip7702DelegationAuthorization, createAndSignEip7702RawTransaction, createAndSignLegacyRawTransaction, createCallData, createEip7702DelegationAuthorizationHash, createEip7702TransactionHash, createUserOperationHash, createWorldIdSignal, fetchAccountNonce, fetchGasPrice, fromEthersWallet, fromPrivateKey, fromViem, fromViemWalletClient, getBalanceOf, getDelegatedAddress, getDepositInfo, getFunctionSelector, getSafeMessageEip712Data, sendJsonRpcRequest, shareTenderlySimulationAndCreateLink, signHash, simulateSenderCallDataWithTenderly, simulateSenderCallDataWithTenderlyAndCreateShareLink, simulateUserOperationCallDataWithTenderly, simulateUserOperationCallDataWithTenderlyAndCreateShareLink, simulateUserOperationWithTenderly, simulateUserOperationWithTenderlyAndCreateShareLink };
|
|
1559
1730
|
//# sourceMappingURL=index.d.mts.map
|