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