@pimlico/alto 0.0.0-main.20251205T161640 → 0.0.0-main.20260101T133101
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/contracts/EIP712.sol/EIP712.json +1 -1
- package/contracts/ERC165.sol/ERC165.json +1 -1
- package/contracts/ERC20.sol/ERC20.json +1 -1
- package/contracts/Eip7702Support.sol/Eip7702Support.json +1 -1
- package/contracts/EntryPoint.sol/EntryPoint.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
- package/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
- package/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/contracts/Exec.sol/Exec.json +1 -1
- package/contracts/IAccount.sol/IAccount.json +1 -1
- package/contracts/IAccountExecute.sol/IAccountExecute.json +1 -1
- package/contracts/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/IERC165.sol/IERC165.json +1 -1
- package/contracts/IERC5267.sol/IERC5267.json +1 -1
- package/contracts/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride08.json +1 -1
- package/contracts/IEntryPointFilterOpsOverride.sol/IEntryPointFilterOpsOverride09.json +1 -0
- package/contracts/IEntryPointSimulations.sol/IEntryPointSimulations.json +1 -1
- package/contracts/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/IPaymaster.sol/IPaymaster.json +1 -1
- package/contracts/ISenderCreator.sol/ISenderCreator.json +1 -1
- package/contracts/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/LibBytes.sol/LibBytes.json +1 -1
- package/contracts/Math.sol/Math.json +1 -1
- package/contracts/MessageHashUtils.sol/MessageHashUtils.json +1 -1
- package/contracts/NonceManager.sol/NonceManager.json +1 -1
- package/contracts/Panic.sol/Panic.json +1 -1
- package/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
- package/contracts/ReentrancyGuard.sol/ReentrancyGuard.json +1 -1
- package/contracts/ReentrancyGuardTransient.sol/ReentrancyGuardTransient.json +1 -1
- package/contracts/SafeCast.sol/SafeCast.json +1 -1
- package/contracts/SenderCreator.sol/SenderCreator.json +1 -1
- package/contracts/ShortStrings.sol/ShortStrings.json +1 -1
- package/contracts/SignedMath.sol/SignedMath.json +1 -1
- package/contracts/SimulationOverrideHelper.sol/SimulationOverrideHelper.json +1 -1
- package/contracts/StakeManager.sol/StakeManager.json +1 -1
- package/contracts/StorageSlot.sol/StorageSlot.json +1 -1
- package/contracts/Strings.sol/Strings.json +1 -1
- package/contracts/TransientSlot.sol/TransientSlot.json +1 -1
- package/contracts/UserOperation.sol/UserOperationLib.json +1 -1
- package/contracts/UserOperationLib.sol/UserOperationLib.json +1 -1
- package/contracts/account-abstraction-v9/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -0
- package/contracts/account-abstraction-v9/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -0
- package/contracts/build-info/{006aa55b425148d5.json → 338795fc743ca612.json} +1 -1
- package/contracts/build-info/44a9648cfe32a468.json +1 -0
- package/contracts/build-info/{416ffb069999d6eb.json → 8dbf8a4ad39019b5.json} +1 -1
- package/contracts/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/core/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/core/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/core/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/core/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/core/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/interfaces/IAccount.sol/IAccount.json +1 -0
- package/contracts/interfaces/IAccountExecute.sol/IAccountExecute.json +1 -0
- package/contracts/interfaces/IAggregator.sol/IAggregator.json +1 -1
- package/contracts/interfaces/IEntryPoint.sol/IEntryPoint.json +1 -1
- package/contracts/interfaces/INonceManager.sol/INonceManager.json +1 -1
- package/contracts/interfaces/IPaymaster.sol/IPaymaster.json +1 -0
- package/contracts/interfaces/ISenderCreator.sol/ISenderCreator.json +1 -0
- package/contracts/interfaces/IStakeManager.sol/IStakeManager.json +1 -1
- package/contracts/overrides/Eip7702Support.sol/Eip7702Support.json +1 -0
- package/contracts/overrides/NonceManager.sol/NonceManager.json +1 -0
- package/contracts/overrides/SenderCreator.sol/SenderCreator.json +1 -0
- package/contracts/overrides/StakeManager.sol/StakeManager.json +1 -0
- package/contracts/overrides/UserOperationLib.sol/UserOperationLib.json +1 -0
- package/contracts/utils/Exec.sol/Exec.json +1 -1
- package/contracts/utils/StorageSlot.sol/StorageSlot.json +1 -1
- package/contracts/v09/EntryPoint.sol/EntryPoint.json +1 -0
- package/esm/cli/config/bundler.d.ts +56 -50
- package/esm/cli/config/bundler.js +1 -0
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.js +5 -1
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/deploySimulationsContract.d.ts +1 -0
- package/esm/cli/deploySimulationsContract.js +41 -5
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/esm/cli/handler.js +14 -0
- package/esm/cli/handler.js.map +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride06.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride07.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride08.json +1 -1
- package/esm/contracts/EntryPointFilterOpsOverride.sol/EntryPointFilterOpsOverride09.json +1 -0
- package/esm/contracts/EntryPointGasEstimationOverride.sol/EntryPointGasEstimationOverride06.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations07.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations08.json +1 -1
- package/esm/contracts/EntryPointSimulations.sol/EntryPointSimulations09.json +1 -0
- package/esm/contracts/PimlicoSimulations.sol/PimlicoSimulations.json +1 -1
- package/esm/executor/filterOpsAndEstimateGas.js +12 -0
- package/esm/executor/filterOpsAndEstimateGas.js.map +1 -1
- package/esm/executor/utils.js +2 -2
- package/esm/executor/utils.js.map +1 -1
- package/esm/mempool/mempool.d.ts +34 -0
- package/esm/mempool/mempool.js +14 -4
- package/esm/mempool/mempool.js.map +1 -1
- package/esm/rpc/estimation/gasEstimations07.js +7 -6
- package/esm/rpc/estimation/gasEstimations07.js.map +1 -1
- package/esm/rpc/estimation/preVerificationGasCalculator.js +1 -1
- package/esm/rpc/estimation/preVerificationGasCalculator.js.map +1 -1
- package/esm/rpc/methods/boost_sendUserOperation.d.ts +304 -0
- package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +338 -0
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +622 -14
- package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +621 -11
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +304 -0
- package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +304 -0
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js +3 -12
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
- package/esm/rpc/methods/pimlico_simulateAssetChange.d.ts +620 -12
- package/esm/rpc/validation/SafeValidator.js +5 -5
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/store/createMempoolStore.js +8 -2
- package/esm/store/createMempoolStore.js.map +1 -1
- package/esm/store/outstanding/memory.js +26 -17
- package/esm/store/outstanding/memory.js.map +1 -1
- package/esm/store/outstanding/redis.js +46 -18
- package/esm/store/outstanding/redis.js.map +1 -1
- package/esm/store/outstanding/types.d.ts +2 -1
- package/esm/store/processing/memory.d.ts +3 -1
- package/esm/store/processing/memory.js +14 -2
- package/esm/store/processing/memory.js.map +1 -1
- package/esm/store/processing/redis.d.ts +4 -2
- package/esm/store/processing/redis.js +20 -4
- package/esm/store/processing/redis.js.map +1 -1
- package/esm/store/processing/types.d.ts +2 -1
- package/esm/store/types.d.ts +1 -0
- package/esm/types/contracts/PimlicoSimulations.d.ts +81 -0
- package/esm/types/contracts/PimlicoSimulations.js +105 -0
- package/esm/types/contracts/PimlicoSimulations.js.map +1 -1
- package/esm/types/schemas.d.ts +13039 -4597
- package/esm/types/schemas.js +92 -2
- package/esm/types/schemas.js.map +1 -1
- package/esm/utils/entryPointOverrides.js +7 -0
- package/esm/utils/entryPointOverrides.js.map +1 -1
- package/esm/utils/userop.d.ts +76 -2
- package/esm/utils/userop.js +71 -79
- package/esm/utils/userop.js.map +1 -1
- package/package.json +2 -2
|
@@ -572,6 +572,208 @@ export declare const pimlicoSendUserOperationNowHandler: {
|
|
|
572
572
|
yParity: string | number | bigint;
|
|
573
573
|
v?: string | number | bigint | undefined;
|
|
574
574
|
} | null | undefined;
|
|
575
|
+
}>, import("zod").ZodEffects<import("zod").ZodObject<{
|
|
576
|
+
sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
577
|
+
nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
578
|
+
factory: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, import("zod").ZodLiteral<"0x7702">]>>>, `0x${string}` | null, string | null | undefined>;
|
|
579
|
+
factoryData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
580
|
+
callData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
581
|
+
callGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
582
|
+
verificationGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
583
|
+
preVerificationGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
584
|
+
maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
585
|
+
maxPriorityFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
|
|
586
|
+
paymaster: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
587
|
+
paymasterVerificationGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
|
|
588
|
+
paymasterPostOpGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
|
|
589
|
+
paymasterData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
590
|
+
paymasterSignature: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
|
|
591
|
+
signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
592
|
+
eip7702Auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
593
|
+
contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
594
|
+
chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
595
|
+
nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
596
|
+
r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
597
|
+
s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
598
|
+
v: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>;
|
|
599
|
+
yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
600
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
601
|
+
nonce: number;
|
|
602
|
+
contractAddress: `0x${string}`;
|
|
603
|
+
chainId: number;
|
|
604
|
+
r: `0x${string}`;
|
|
605
|
+
s: `0x${string}`;
|
|
606
|
+
yParity: number;
|
|
607
|
+
v?: bigint | undefined;
|
|
608
|
+
}, {
|
|
609
|
+
nonce: string | number | bigint;
|
|
610
|
+
contractAddress: string;
|
|
611
|
+
chainId: string | number | bigint;
|
|
612
|
+
r: string;
|
|
613
|
+
s: string;
|
|
614
|
+
yParity: string | number | bigint;
|
|
615
|
+
v?: string | number | bigint | undefined;
|
|
616
|
+
}>, import("zod").ZodObject<{
|
|
617
|
+
address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
618
|
+
chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
619
|
+
nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
620
|
+
r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
621
|
+
s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
|
|
622
|
+
v: import("zod").ZodOptional<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>;
|
|
623
|
+
yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
|
|
624
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
625
|
+
address: `0x${string}`;
|
|
626
|
+
nonce: number;
|
|
627
|
+
chainId: number;
|
|
628
|
+
r: `0x${string}`;
|
|
629
|
+
s: `0x${string}`;
|
|
630
|
+
yParity: number;
|
|
631
|
+
v?: bigint | undefined;
|
|
632
|
+
}, {
|
|
633
|
+
address: string;
|
|
634
|
+
nonce: string | number | bigint;
|
|
635
|
+
chainId: string | number | bigint;
|
|
636
|
+
r: string;
|
|
637
|
+
s: string;
|
|
638
|
+
yParity: string | number | bigint;
|
|
639
|
+
v?: string | number | bigint | undefined;
|
|
640
|
+
}>]>>>;
|
|
641
|
+
}, "strict", import("zod").ZodTypeAny, {
|
|
642
|
+
sender: `0x${string}`;
|
|
643
|
+
factory: `0x${string}` | null;
|
|
644
|
+
paymaster: `0x${string}` | null;
|
|
645
|
+
nonce: bigint;
|
|
646
|
+
callData: `0x${string}`;
|
|
647
|
+
callGasLimit: bigint;
|
|
648
|
+
verificationGasLimit: bigint;
|
|
649
|
+
preVerificationGas: bigint;
|
|
650
|
+
maxFeePerGas: bigint;
|
|
651
|
+
maxPriorityFeePerGas: bigint;
|
|
652
|
+
signature: `0x${string}`;
|
|
653
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
654
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
655
|
+
factoryData: `0x${string}` | null;
|
|
656
|
+
paymasterData: `0x${string}` | null;
|
|
657
|
+
paymasterSignature: `0x${string}` | null;
|
|
658
|
+
eip7702Auth?: {
|
|
659
|
+
nonce: number;
|
|
660
|
+
contractAddress: `0x${string}`;
|
|
661
|
+
chainId: number;
|
|
662
|
+
r: `0x${string}`;
|
|
663
|
+
s: `0x${string}`;
|
|
664
|
+
yParity: number;
|
|
665
|
+
v?: bigint | undefined;
|
|
666
|
+
} | {
|
|
667
|
+
address: `0x${string}`;
|
|
668
|
+
nonce: number;
|
|
669
|
+
chainId: number;
|
|
670
|
+
r: `0x${string}`;
|
|
671
|
+
s: `0x${string}`;
|
|
672
|
+
yParity: number;
|
|
673
|
+
v?: bigint | undefined;
|
|
674
|
+
} | null | undefined;
|
|
675
|
+
}, {
|
|
676
|
+
sender: string;
|
|
677
|
+
nonce: string | number | bigint;
|
|
678
|
+
callData: string;
|
|
679
|
+
callGasLimit: string | number | bigint;
|
|
680
|
+
verificationGasLimit: string | number | bigint;
|
|
681
|
+
preVerificationGas: string | number | bigint;
|
|
682
|
+
maxFeePerGas: string | number | bigint;
|
|
683
|
+
maxPriorityFeePerGas: string | number | bigint;
|
|
684
|
+
signature: string;
|
|
685
|
+
factory?: string | null | undefined;
|
|
686
|
+
factoryData?: string | null | undefined;
|
|
687
|
+
paymaster?: string | null | undefined;
|
|
688
|
+
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
689
|
+
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
690
|
+
paymasterData?: string | null | undefined;
|
|
691
|
+
paymasterSignature?: string | null | undefined;
|
|
692
|
+
eip7702Auth?: {
|
|
693
|
+
nonce: string | number | bigint;
|
|
694
|
+
contractAddress: string;
|
|
695
|
+
chainId: string | number | bigint;
|
|
696
|
+
r: string;
|
|
697
|
+
s: string;
|
|
698
|
+
yParity: string | number | bigint;
|
|
699
|
+
v?: string | number | bigint | undefined;
|
|
700
|
+
} | {
|
|
701
|
+
address: string;
|
|
702
|
+
nonce: string | number | bigint;
|
|
703
|
+
chainId: string | number | bigint;
|
|
704
|
+
r: string;
|
|
705
|
+
s: string;
|
|
706
|
+
yParity: string | number | bigint;
|
|
707
|
+
v?: string | number | bigint | undefined;
|
|
708
|
+
} | null | undefined;
|
|
709
|
+
}>, {
|
|
710
|
+
sender: `0x${string}`;
|
|
711
|
+
factory: `0x${string}` | null;
|
|
712
|
+
paymaster: `0x${string}` | null;
|
|
713
|
+
nonce: bigint;
|
|
714
|
+
callData: `0x${string}`;
|
|
715
|
+
callGasLimit: bigint;
|
|
716
|
+
verificationGasLimit: bigint;
|
|
717
|
+
preVerificationGas: bigint;
|
|
718
|
+
maxFeePerGas: bigint;
|
|
719
|
+
maxPriorityFeePerGas: bigint;
|
|
720
|
+
signature: `0x${string}`;
|
|
721
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
722
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
723
|
+
factoryData: `0x${string}` | null;
|
|
724
|
+
paymasterData: `0x${string}` | null;
|
|
725
|
+
paymasterSignature: `0x${string}` | null;
|
|
726
|
+
eip7702Auth?: {
|
|
727
|
+
nonce: number;
|
|
728
|
+
contractAddress: `0x${string}`;
|
|
729
|
+
chainId: number;
|
|
730
|
+
r: `0x${string}`;
|
|
731
|
+
s: `0x${string}`;
|
|
732
|
+
yParity: number;
|
|
733
|
+
v?: bigint | undefined;
|
|
734
|
+
} | {
|
|
735
|
+
address: `0x${string}`;
|
|
736
|
+
nonce: number;
|
|
737
|
+
chainId: number;
|
|
738
|
+
r: `0x${string}`;
|
|
739
|
+
s: `0x${string}`;
|
|
740
|
+
yParity: number;
|
|
741
|
+
v?: bigint | undefined;
|
|
742
|
+
} | null | undefined;
|
|
743
|
+
}, {
|
|
744
|
+
sender: string;
|
|
745
|
+
nonce: string | number | bigint;
|
|
746
|
+
callData: string;
|
|
747
|
+
callGasLimit: string | number | bigint;
|
|
748
|
+
verificationGasLimit: string | number | bigint;
|
|
749
|
+
preVerificationGas: string | number | bigint;
|
|
750
|
+
maxFeePerGas: string | number | bigint;
|
|
751
|
+
maxPriorityFeePerGas: string | number | bigint;
|
|
752
|
+
signature: string;
|
|
753
|
+
factory?: string | null | undefined;
|
|
754
|
+
factoryData?: string | null | undefined;
|
|
755
|
+
paymaster?: string | null | undefined;
|
|
756
|
+
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
757
|
+
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
758
|
+
paymasterData?: string | null | undefined;
|
|
759
|
+
paymasterSignature?: string | null | undefined;
|
|
760
|
+
eip7702Auth?: {
|
|
761
|
+
nonce: string | number | bigint;
|
|
762
|
+
contractAddress: string;
|
|
763
|
+
chainId: string | number | bigint;
|
|
764
|
+
r: string;
|
|
765
|
+
s: string;
|
|
766
|
+
yParity: string | number | bigint;
|
|
767
|
+
v?: string | number | bigint | undefined;
|
|
768
|
+
} | {
|
|
769
|
+
address: string;
|
|
770
|
+
nonce: string | number | bigint;
|
|
771
|
+
chainId: string | number | bigint;
|
|
772
|
+
r: string;
|
|
773
|
+
s: string;
|
|
774
|
+
yParity: string | number | bigint;
|
|
775
|
+
v?: string | number | bigint | undefined;
|
|
776
|
+
} | null | undefined;
|
|
575
777
|
}>]>, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
|
|
576
778
|
result: import("zod").ZodUnion<[import("zod").ZodObject<{
|
|
577
779
|
userOpHash: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
|
|
@@ -929,6 +1131,40 @@ export declare const pimlicoSendUserOperationNowHandler: {
|
|
|
929
1131
|
yParity: number;
|
|
930
1132
|
v?: bigint | undefined;
|
|
931
1133
|
} | null | undefined;
|
|
1134
|
+
} | {
|
|
1135
|
+
sender: `0x${string}`;
|
|
1136
|
+
factory: `0x${string}` | null;
|
|
1137
|
+
paymaster: `0x${string}` | null;
|
|
1138
|
+
nonce: bigint;
|
|
1139
|
+
callData: `0x${string}`;
|
|
1140
|
+
callGasLimit: bigint;
|
|
1141
|
+
verificationGasLimit: bigint;
|
|
1142
|
+
preVerificationGas: bigint;
|
|
1143
|
+
maxFeePerGas: bigint;
|
|
1144
|
+
maxPriorityFeePerGas: bigint;
|
|
1145
|
+
signature: `0x${string}`;
|
|
1146
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
1147
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
1148
|
+
factoryData: `0x${string}` | null;
|
|
1149
|
+
paymasterData: `0x${string}` | null;
|
|
1150
|
+
paymasterSignature: `0x${string}` | null;
|
|
1151
|
+
eip7702Auth?: {
|
|
1152
|
+
nonce: number;
|
|
1153
|
+
contractAddress: `0x${string}`;
|
|
1154
|
+
chainId: number;
|
|
1155
|
+
r: `0x${string}`;
|
|
1156
|
+
s: `0x${string}`;
|
|
1157
|
+
yParity: number;
|
|
1158
|
+
v?: bigint | undefined;
|
|
1159
|
+
} | {
|
|
1160
|
+
address: `0x${string}`;
|
|
1161
|
+
nonce: number;
|
|
1162
|
+
chainId: number;
|
|
1163
|
+
r: `0x${string}`;
|
|
1164
|
+
s: `0x${string}`;
|
|
1165
|
+
yParity: number;
|
|
1166
|
+
v?: bigint | undefined;
|
|
1167
|
+
} | null | undefined;
|
|
932
1168
|
}, `0x${string}`];
|
|
933
1169
|
method: "pimlico_sendUserOperationNow";
|
|
934
1170
|
}, {
|
|
@@ -1072,6 +1308,40 @@ export declare const pimlicoSendUserOperationNowHandler: {
|
|
|
1072
1308
|
yParity: string | number | bigint;
|
|
1073
1309
|
v?: string | number | bigint | undefined;
|
|
1074
1310
|
} | null | undefined;
|
|
1311
|
+
} | {
|
|
1312
|
+
sender: string;
|
|
1313
|
+
nonce: string | number | bigint;
|
|
1314
|
+
callData: string;
|
|
1315
|
+
callGasLimit: string | number | bigint;
|
|
1316
|
+
verificationGasLimit: string | number | bigint;
|
|
1317
|
+
preVerificationGas: string | number | bigint;
|
|
1318
|
+
maxFeePerGas: string | number | bigint;
|
|
1319
|
+
maxPriorityFeePerGas: string | number | bigint;
|
|
1320
|
+
signature: string;
|
|
1321
|
+
factory?: string | null | undefined;
|
|
1322
|
+
factoryData?: string | null | undefined;
|
|
1323
|
+
paymaster?: string | null | undefined;
|
|
1324
|
+
paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
|
|
1325
|
+
paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
|
|
1326
|
+
paymasterData?: string | null | undefined;
|
|
1327
|
+
paymasterSignature?: string | null | undefined;
|
|
1328
|
+
eip7702Auth?: {
|
|
1329
|
+
nonce: string | number | bigint;
|
|
1330
|
+
contractAddress: string;
|
|
1331
|
+
chainId: string | number | bigint;
|
|
1332
|
+
r: string;
|
|
1333
|
+
s: string;
|
|
1334
|
+
yParity: string | number | bigint;
|
|
1335
|
+
v?: string | number | bigint | undefined;
|
|
1336
|
+
} | {
|
|
1337
|
+
address: string;
|
|
1338
|
+
nonce: string | number | bigint;
|
|
1339
|
+
chainId: string | number | bigint;
|
|
1340
|
+
r: string;
|
|
1341
|
+
s: string;
|
|
1342
|
+
yParity: string | number | bigint;
|
|
1343
|
+
v?: string | number | bigint | undefined;
|
|
1344
|
+
} | null | undefined;
|
|
1075
1345
|
}, string];
|
|
1076
1346
|
method: "pimlico_sendUserOperationNow";
|
|
1077
1347
|
}>;
|
|
@@ -1173,6 +1443,40 @@ export declare const pimlicoSendUserOperationNowHandler: {
|
|
|
1173
1443
|
yParity: number;
|
|
1174
1444
|
v?: bigint | undefined;
|
|
1175
1445
|
} | null | undefined;
|
|
1446
|
+
}> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
|
|
1447
|
+
sender: `0x${string}`;
|
|
1448
|
+
factory: `0x${string}` | null;
|
|
1449
|
+
paymaster: `0x${string}` | null;
|
|
1450
|
+
nonce: bigint;
|
|
1451
|
+
callData: `0x${string}`;
|
|
1452
|
+
callGasLimit: bigint;
|
|
1453
|
+
verificationGasLimit: bigint;
|
|
1454
|
+
preVerificationGas: bigint;
|
|
1455
|
+
maxFeePerGas: bigint;
|
|
1456
|
+
maxPriorityFeePerGas: bigint;
|
|
1457
|
+
signature: `0x${string}`;
|
|
1458
|
+
paymasterVerificationGasLimit: bigint | null;
|
|
1459
|
+
paymasterPostOpGasLimit: bigint | null;
|
|
1460
|
+
factoryData: `0x${string}` | null;
|
|
1461
|
+
paymasterData: `0x${string}` | null;
|
|
1462
|
+
paymasterSignature: `0x${string}` | null;
|
|
1463
|
+
eip7702Auth?: {
|
|
1464
|
+
nonce: number;
|
|
1465
|
+
contractAddress: `0x${string}`;
|
|
1466
|
+
chainId: number;
|
|
1467
|
+
r: `0x${string}`;
|
|
1468
|
+
s: `0x${string}`;
|
|
1469
|
+
yParity: number;
|
|
1470
|
+
v?: bigint | undefined;
|
|
1471
|
+
} | {
|
|
1472
|
+
address: `0x${string}`;
|
|
1473
|
+
nonce: number;
|
|
1474
|
+
chainId: number;
|
|
1475
|
+
r: `0x${string}`;
|
|
1476
|
+
s: `0x${string}`;
|
|
1477
|
+
yParity: number;
|
|
1478
|
+
v?: bigint | undefined;
|
|
1479
|
+
} | null | undefined;
|
|
1176
1480
|
}>, `0x${string}`];
|
|
1177
1481
|
apiVersion: import("../../types/index.js").ApiVersion;
|
|
1178
1482
|
}) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ERC7769Errors, RpcError, pimlicoSendUserOperationNowSchema } from "../../types/index.js";
|
|
2
|
-
import { getUserOpHash,
|
|
2
|
+
import { getUserOpHash, getViemEntryPointVersion, parseUserOpReceipt } from "../../utils/index.js";
|
|
3
3
|
import { createMethodHandler } from "../createMethodHandler.js";
|
|
4
4
|
export const pimlicoSendUserOperationNowHandler = createMethodHandler({
|
|
5
5
|
method: "pimlico_sendUserOperationNow",
|
|
@@ -26,17 +26,8 @@ export const pimlicoSendUserOperationNowHandler = createMethodHandler({
|
|
|
26
26
|
addedToMempool: Date.now(),
|
|
27
27
|
submissionAttempts: 0
|
|
28
28
|
};
|
|
29
|
-
// Derive version
|
|
30
|
-
|
|
31
|
-
if (isVersion08(userOp, entryPoint)) {
|
|
32
|
-
version = "0.8";
|
|
33
|
-
}
|
|
34
|
-
else if (isVersion07(userOp)) {
|
|
35
|
-
version = "0.7";
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
version = "0.6";
|
|
39
|
-
}
|
|
29
|
+
// Derive version.
|
|
30
|
+
const version = getViemEntryPointVersion(userOp, entryPoint);
|
|
40
31
|
const bundle = {
|
|
41
32
|
entryPoint,
|
|
42
33
|
userOps: [userOpInfo],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pimlico_sendUserOperationNow.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_sendUserOperationNow.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,QAAQ,EAGR,iCAAiC,EACpC,MAAM,aAAa,CAAA;AACpB,OAAO,EACH,aAAa,EACb,
|
|
1
|
+
{"version":3,"file":"pimlico_sendUserOperationNow.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_sendUserOperationNow.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,aAAa,EACb,QAAQ,EAGR,iCAAiC,EACpC,MAAM,aAAa,CAAA;AACpB,OAAO,EACH,aAAa,EACb,wBAAwB,EACxB,kBAAkB,EACrB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAE5D,MAAM,CAAC,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAClE,MAAM,EAAE,8BAA8B;IACtC,MAAM,EAAE,iCAAiC;IACzC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,6BAA6B,EAAE,CAAC;YACnD,MAAM,IAAI,QAAQ,CACd,sDAAsD,EACtD,aAAa,CAAC,aAAa,CAC9B,CAAA;QACL,CAAC;QAED,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QACnC,UAAU,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAA;QAElD,MAAM,UAAU,GAAG,aAAa,CAAC;YAC7B,MAAM;YACN,iBAAiB,EAAE,UAAU;YAC7B,OAAO,EAAE,UAAU,CAAC,MAAM,CAAC,OAAO;SACrC,CAAC,CAAA;QAEF,MAAM,CAAC,eAAe,EAAE,eAAe,CAAC,GACpC,MAAM,UAAU,CAAC,gBAAgB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;QAEzD,IAAI,CAAC,eAAe,EAAE,CAAC;YACnB,MAAM,IAAI,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;QACpE,CAAC;QAED,iBAAiB;QACjB,MAAM,UAAU,GAAe;YAC3B,MAAM;YACN,UAAU;YACV,cAAc,EAAE,IAAI,CAAC,GAAG,EAAE;YAC1B,kBAAkB,EAAE,CAAC;SACxB,CAAA;QAED,kBAAkB;QAClB,MAAM,OAAO,GAAG,wBAAwB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;QAE5D,MAAM,MAAM,GAAwB;YAChC,UAAU;YACV,OAAO,EAAE,CAAC,UAAU,CAAC;YACrB,OAAO;YACP,kBAAkB,EAAE,CAAC;SACxB,CAAA;QACD,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC;YACnC,UAAU;YACV,UAAU;SACb,CAAC,CAAA;QACF,MAAM,MAAM,GACR,MAAM,UAAU,CAAC,eAAe,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAA;QAEjE,IAAI,CAAC,MAAM,EAAE,CAAC;YACV,MAAM,IAAI,QAAQ,CACd,0CAA0C,EAC1C,aAAa,CAAC,aAAa,CAC9B,CAAA;QACL,CAAC;QAED,oBAAoB;QACpB,MAAM,OAAO,GACT,MAAM,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,yBAAyB,CAAC;YAC3D,IAAI,EAAE,MAAM;YACZ,eAAe,EAAE,GAAG;SACvB,CAAC,CAAA;QAEN,OAAO,kBAAkB,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAClD,CAAC;CACJ,CAAC,CAAA"}
|