permissionless 0.0.1 → 0.0.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.
Files changed (92) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/_cjs/actions/bundler.js +118 -0
  3. package/_cjs/actions/bundler.js.map +1 -0
  4. package/_cjs/actions/index.js +12 -0
  5. package/_cjs/actions/index.js.map +1 -0
  6. package/_cjs/actions/pimlico.js +55 -0
  7. package/_cjs/actions/pimlico.js.map +1 -0
  8. package/_cjs/actions/utils.js +31 -0
  9. package/_cjs/actions/utils.js.map +1 -0
  10. package/_cjs/clients/bundler.js +17 -0
  11. package/_cjs/clients/bundler.js.map +1 -0
  12. package/_cjs/clients/index.js +6 -0
  13. package/_cjs/clients/index.js.map +1 -0
  14. package/_cjs/clients/pimlico.js +29 -0
  15. package/_cjs/clients/pimlico.js.map +1 -0
  16. package/_cjs/index.js +7 -0
  17. package/_cjs/index.js.map +1 -0
  18. package/_cjs/package.json +1 -0
  19. package/_cjs/types/bundler.js +3 -0
  20. package/_cjs/types/bundler.js.map +1 -0
  21. package/_cjs/types/index.js +3 -0
  22. package/_cjs/types/index.js.map +1 -0
  23. package/_cjs/types/pimlico.js +3 -0
  24. package/_cjs/types/pimlico.js.map +1 -0
  25. package/_cjs/types/userOperation.js +3 -0
  26. package/_cjs/types/userOperation.js.map +1 -0
  27. package/_esm/actions/bundler.js +251 -0
  28. package/_esm/actions/bundler.js.map +1 -0
  29. package/_esm/actions/index.js +3 -0
  30. package/_esm/actions/index.js.map +1 -0
  31. package/_esm/actions/pimlico.js +127 -0
  32. package/_esm/actions/pimlico.js.map +1 -0
  33. package/_esm/actions/utils.js +28 -0
  34. package/_esm/actions/utils.js.map +1 -0
  35. package/_esm/clients/bundler.js +33 -0
  36. package/_esm/clients/bundler.js.map +1 -0
  37. package/_esm/clients/index.js +3 -0
  38. package/_esm/clients/index.js.map +1 -0
  39. package/_esm/clients/pimlico.js +64 -0
  40. package/_esm/clients/pimlico.js.map +1 -0
  41. package/_esm/index.js +4 -0
  42. package/_esm/index.js.map +1 -0
  43. package/_esm/package.json +1 -0
  44. package/_esm/types/bundler.js +2 -0
  45. package/_esm/types/bundler.js.map +1 -0
  46. package/_esm/types/index.js +2 -0
  47. package/_esm/types/index.js.map +1 -0
  48. package/_esm/types/pimlico.js +2 -0
  49. package/_esm/types/pimlico.js.map +1 -0
  50. package/_esm/types/userOperation.js +2 -0
  51. package/_esm/types/userOperation.js.map +1 -0
  52. package/_types/actions/bundler.d.ts +393 -0
  53. package/_types/actions/bundler.d.ts.map +1 -0
  54. package/_types/actions/index.d.ts +5 -0
  55. package/_types/actions/index.d.ts.map +1 -0
  56. package/_types/actions/pimlico.d.ts +184 -0
  57. package/_types/actions/pimlico.d.ts.map +1 -0
  58. package/_types/actions/utils.d.ts +6 -0
  59. package/_types/actions/utils.d.ts.map +1 -0
  60. package/_types/clients/bundler.d.ts +39 -0
  61. package/_types/clients/bundler.d.ts.map +1 -0
  62. package/_types/clients/index.d.ts +3 -0
  63. package/_types/clients/index.d.ts.map +1 -0
  64. package/_types/clients/pimlico.d.ts +75 -0
  65. package/_types/clients/pimlico.d.ts.map +1 -0
  66. package/_types/index.d.ts +4 -0
  67. package/_types/index.d.ts.map +1 -0
  68. package/_types/types/bundler.d.ts +82 -0
  69. package/_types/types/bundler.d.ts.map +1 -0
  70. package/_types/types/index.d.ts +3 -0
  71. package/_types/types/index.d.ts.map +1 -0
  72. package/_types/types/pimlico.d.ts +50 -0
  73. package/_types/types/pimlico.d.ts.map +1 -0
  74. package/_types/types/userOperation.d.ts +30 -0
  75. package/_types/types/userOperation.d.ts.map +1 -0
  76. package/actions/bundler.ts +498 -0
  77. package/actions/index.ts +38 -0
  78. package/actions/package.json +6 -0
  79. package/actions/pimlico.ts +258 -0
  80. package/actions/utils.ts +30 -0
  81. package/clients/bundler.ts +39 -0
  82. package/clients/index.ts +3 -0
  83. package/clients/pimlico.ts +93 -0
  84. package/index.ts +3 -0
  85. package/package.json +49 -11
  86. package/tsconfig.build.tsbuildinfo +1 -0
  87. package/types/bundler.ts +85 -0
  88. package/types/index.ts +3 -0
  89. package/types/package.json +6 -0
  90. package/types/pimlico.ts +55 -0
  91. package/types/userOperation.ts +32 -0
  92. package/LICENSE +0 -21
@@ -0,0 +1,75 @@
1
+ import type { Account, Chain, Client, PublicClientConfig, Transport } from "viem";
2
+ import type { BundlerActions } from "../actions/bundler";
3
+ import { type PimlicoBundlerActions, type PimlicoPaymasterClientActions } from "../actions/pimlico";
4
+ import type { PimlicoBundlerRpcSchema, PimlicoPaymasterRpcSchema } from "../types/pimlico";
5
+ export type PimlicoBundlerClient = Client<Transport, Chain | undefined, Account | undefined, PimlicoBundlerRpcSchema, PimlicoBundlerActions & BundlerActions>;
6
+ export type PimlicoPaymasterClient = Client<Transport, Chain | undefined, Account | undefined, PimlicoPaymasterRpcSchema, PimlicoPaymasterClientActions>;
7
+ /**
8
+ * Creates a pimlico specific Bundler Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
9
+ *
10
+ * - Docs: [TODO://add link]
11
+ * - Example: [TODO://add link]
12
+ *
13
+ * A Pimlico Client is an interface to "pimlico endpoints" [JSON-RPC API](https://docs.pimlico.io/reference/bundler/endpoints) methods such as getting current blockchain gas prices, getting user operation status, etc through [Pimlico Bundler Actions](TODO://Add bundler action documentation link).
14
+ *
15
+ * @param config - {@link PublicClientConfig}
16
+ * @returns A Pimlico Bundler Client. {@link PimlicoBundlerClient}
17
+ *
18
+ * @example
19
+ * import { createPublicClient, http } from 'viem'
20
+ * import { mainnet } from 'viem/chains'
21
+ *
22
+ * const pimlicoBundlerClient = createPimlicoBundlerClient({
23
+ * chain: mainnet,
24
+ * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE"),
25
+ * })
26
+ */
27
+ export declare const createPimlicoBundlerClient: <transport extends Transport, chain extends Chain | undefined = undefined>(parameters: {
28
+ name?: string | undefined;
29
+ pollingInterval?: number | undefined;
30
+ chain?: Chain | chain | undefined;
31
+ key?: string | undefined;
32
+ batch?: {
33
+ multicall?: boolean | {
34
+ batchSize?: number | undefined;
35
+ wait?: number | undefined;
36
+ } | undefined;
37
+ } | undefined;
38
+ cacheTime?: number | undefined;
39
+ transport: transport;
40
+ }) => PimlicoBundlerClient;
41
+ /**
42
+ * Creates a pimlico specific Paymaster Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
43
+ *
44
+ * - Docs: [TODO://add link]
45
+ * - Example: [TODO://add link]
46
+ *
47
+ * A Pimlico Paymaster Client is an interface to "pimlico paymaster endpoints" [JSON-RPC API](https://docs.pimlico.io/reference/verifying-paymaster/endpoints) methods such as sponsoring user operation, etc through [Pimlico Paymaster Actions](TODO://Add bundler action documentation link).
48
+ *
49
+ * @param config - {@link PublicClientConfig}
50
+ * @returns A Pimlico Paymaster Client. {@link PimlicoPaymasterClient}
51
+ *
52
+ * @example
53
+ * import { createPublicClient, http } from 'viem'
54
+ * import { mainnet } from 'viem/chains'
55
+ *
56
+ * const pimlicoPaymasterClient = createPimlicoPaymasterClient({
57
+ * chain: mainnet,
58
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE"),
59
+ * })
60
+ */
61
+ export declare const createPimlicoPaymasterClient: <transport extends Transport, chain extends Chain | undefined = undefined>(parameters: {
62
+ name?: string | undefined;
63
+ pollingInterval?: number | undefined;
64
+ chain?: Chain | chain | undefined;
65
+ key?: string | undefined;
66
+ batch?: {
67
+ multicall?: boolean | {
68
+ batchSize?: number | undefined;
69
+ wait?: number | undefined;
70
+ } | undefined;
71
+ } | undefined;
72
+ cacheTime?: number | undefined;
73
+ transport: transport;
74
+ }) => PimlicoPaymasterClient;
75
+ //# sourceMappingURL=pimlico.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../clients/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAGjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,6BAA6B,EAGrC,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAE1F,MAAM,MAAM,oBAAoB,GAAG,MAAM,CACrC,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,uBAAuB,EACvB,qBAAqB,GAAG,cAAc,CACzC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,MAAM,CACvC,SAAS,EACT,KAAK,GAAG,SAAS,EACjB,OAAO,GAAG,SAAS,EACnB,yBAAyB,EACzB,6BAA6B,CAChC,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;MAEpC,oBASF,CAAA;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;MAEtC,sBASF,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from "./actions";
2
+ export * from "./clients";
3
+ export * from "./types";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,82 @@
1
+ import type { Address, Hash, Hex } from "viem";
2
+ import type { PartialBy } from "viem/types/utils";
3
+ import type { UserOperationWithBigIntAsHex } from "./userOperation";
4
+ export type BundlerRpcSchema = [
5
+ {
6
+ Method: "eth_sendUserOperation";
7
+ Parameters: [userOperation: UserOperationWithBigIntAsHex, entryPoint: Address];
8
+ ReturnType: Hash;
9
+ },
10
+ {
11
+ Method: "eth_estimateUserOperationGas";
12
+ Parameters: [
13
+ userOperation: PartialBy<UserOperationWithBigIntAsHex, "callGasLimit" | "preVerificationGas" | "verificationGasLimit">,
14
+ entryPoint: Address
15
+ ];
16
+ ReturnType: {
17
+ preVerificationGas: Hex;
18
+ verificationGasLimit: Hex;
19
+ callGasLimit: Hex;
20
+ };
21
+ },
22
+ {
23
+ Method: "eth_supportedEntryPoints";
24
+ Parameters: [];
25
+ ReturnType: Address[];
26
+ },
27
+ {
28
+ Method: "eth_chainId";
29
+ Parameters: [];
30
+ ReturnType: Hex;
31
+ },
32
+ {
33
+ Method: "eth_getUserOperationByHash";
34
+ Parameters: [hash: Hash];
35
+ ReturnType: {
36
+ userOperation: UserOperationWithBigIntAsHex;
37
+ entryPoint: Address;
38
+ transactionHash: Hash;
39
+ blockHash: Hash;
40
+ blockNumber: Hex;
41
+ };
42
+ },
43
+ {
44
+ Method: "eth_getUserOperationReceipt";
45
+ Parameters: [hash: Hash];
46
+ ReturnType: UserOperationReceiptWithBigIntAsHex;
47
+ }
48
+ ];
49
+ type UserOperationReceiptWithBigIntAsHex = {
50
+ userOpHash: Hash;
51
+ sender: Address;
52
+ nonce: Hex;
53
+ actualGasUsed: Hex;
54
+ actualGasCost: Hex;
55
+ success: boolean;
56
+ receipt: {
57
+ transactionHash: Hex;
58
+ transactionIndex: Hex;
59
+ blockHash: Hash;
60
+ blockNumber: Hex;
61
+ from: Address;
62
+ to: Address | null;
63
+ cumulativeGasUsed: Hex;
64
+ status: "0x0" | "0x1";
65
+ gasUsed: Hex;
66
+ contractAddress: Address | null;
67
+ logsBloom: Hex;
68
+ effectiveGasPrice: Hex;
69
+ };
70
+ logs: {
71
+ data: Hex;
72
+ blockNumber: Hex;
73
+ blockHash: Hash;
74
+ transactionHash: Hash;
75
+ logIndex: Hex;
76
+ transactionIndex: Hex;
77
+ address: Address;
78
+ topics: Hex[];
79
+ }[];
80
+ };
81
+ export {};
82
+ //# sourceMappingURL=bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../types/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAEnE,MAAM,MAAM,gBAAgB,GAAG;IAC3B;QACI,MAAM,EAAE,uBAAuB,CAAA;QAC/B,UAAU,EAAE,CAAC,aAAa,EAAE,4BAA4B,EAAE,UAAU,EAAE,OAAO,CAAC,CAAA;QAC9E,UAAU,EAAE,IAAI,CAAA;KACnB;IACD;QACI,MAAM,EAAE,8BAA8B,CAAA;QACtC,UAAU,EAAE;YACR,aAAa,EAAE,SAAS,CACpB,4BAA4B,EAC5B,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CACjE;YACD,UAAU,EAAE,OAAO;SACtB,CAAA;QACD,UAAU,EAAE;YACR,kBAAkB,EAAE,GAAG,CAAA;YACvB,oBAAoB,EAAE,GAAG,CAAA;YACzB,YAAY,EAAE,GAAG,CAAA;SACpB,CAAA;KACJ;IACD;QACI,MAAM,EAAE,0BAA0B,CAAA;QAClC,UAAU,EAAE,EAAE,CAAA;QACd,UAAU,EAAE,OAAO,EAAE,CAAA;KACxB;IACD;QACI,MAAM,EAAE,aAAa,CAAA;QACrB,UAAU,EAAE,EAAE,CAAA;QACd,UAAU,EAAE,GAAG,CAAA;KAClB;IACD;QACI,MAAM,EAAE,4BAA4B,CAAA;QACpC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACxB,UAAU,EAAE;YACR,aAAa,EAAE,4BAA4B,CAAA;YAC3C,UAAU,EAAE,OAAO,CAAA;YACnB,eAAe,EAAE,IAAI,CAAA;YACrB,SAAS,EAAE,IAAI,CAAA;YACf,WAAW,EAAE,GAAG,CAAA;SACnB,CAAA;KACJ;IACD;QACI,MAAM,EAAE,6BAA6B,CAAA;QACrC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACxB,UAAU,EAAE,mCAAmC,CAAA;KAClD;CACJ,CAAA;AAED,KAAK,mCAAmC,GAAG;IACvC,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,GAAG,CAAA;IACV,aAAa,EAAE,GAAG,CAAA;IAClB,aAAa,EAAE,GAAG,CAAA;IAClB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE;QACL,eAAe,EAAE,GAAG,CAAA;QACpB,gBAAgB,EAAE,GAAG,CAAA;QACrB,SAAS,EAAE,IAAI,CAAA;QACf,WAAW,EAAE,GAAG,CAAA;QAChB,IAAI,EAAE,OAAO,CAAA;QACb,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;QAClB,iBAAiB,EAAE,GAAG,CAAA;QACtB,MAAM,EAAE,KAAK,GAAG,KAAK,CAAA;QACrB,OAAO,EAAE,GAAG,CAAA;QACZ,eAAe,EAAE,OAAO,GAAG,IAAI,CAAA;QAC/B,SAAS,EAAE,GAAG,CAAA;QACd,iBAAiB,EAAE,GAAG,CAAA;KACzB,CAAA;IACD,IAAI,EAAE;QACF,IAAI,EAAE,GAAG,CAAA;QACT,WAAW,EAAE,GAAG,CAAA;QAChB,SAAS,EAAE,IAAI,CAAA;QACf,eAAe,EAAE,IAAI,CAAA;QACrB,QAAQ,EAAE,GAAG,CAAA;QACb,gBAAgB,EAAE,GAAG,CAAA;QACrB,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,GAAG,EAAE,CAAA;KAChB,EAAE,CAAA;CACN,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { UserOperation } from "./userOperation";
2
+ export type { UserOperation };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAEpD,YAAY,EAAE,aAAa,EAAE,CAAA"}
@@ -0,0 +1,50 @@
1
+ import type { Address, Hash, Hex } from "viem";
2
+ import type { PartialBy } from "viem/types/utils";
3
+ import type { UserOperationWithBigIntAsHex } from "./userOperation";
4
+ type PimlicoUserOperationGasPriceWithBigIntAsHex = {
5
+ slow: {
6
+ maxFeePerGas: Hex;
7
+ maxPriorityFeePerGas: Hex;
8
+ };
9
+ standard: {
10
+ maxFeePerGas: Hex;
11
+ maxPriorityFeePerGas: Hex;
12
+ };
13
+ fast: {
14
+ maxFeePerGas: Hex;
15
+ maxPriorityFeePerGas: Hex;
16
+ };
17
+ };
18
+ export type PimlicoUserOperationStatus = {
19
+ status: "not_found" | "not_submitted" | "submitted" | "rejected" | "reverted" | "included" | "failed";
20
+ transactionHash: Hash | null;
21
+ };
22
+ export type PimlicoBundlerRpcSchema = [
23
+ {
24
+ Method: "pimlico_getUserOperationGasPrice";
25
+ Parameters: [];
26
+ ReturnType: PimlicoUserOperationGasPriceWithBigIntAsHex;
27
+ },
28
+ {
29
+ Method: "pimlico_getUserOperationStatus";
30
+ Parameters: [hash: Hash];
31
+ ReturnType: PimlicoUserOperationStatus;
32
+ }
33
+ ];
34
+ export type PimlicoPaymasterRpcSchema = [
35
+ {
36
+ Method: "pm_sponsorUserOperation";
37
+ Parameters: [
38
+ userOperation: PartialBy<UserOperationWithBigIntAsHex, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "paymasterAndData">,
39
+ entryPoint: Address
40
+ ];
41
+ ReturnType: {
42
+ paymasterAndData: Hex;
43
+ preVerificationGas: Hex;
44
+ verificationGasLimit: Hex;
45
+ callGasLimit: Hex;
46
+ };
47
+ }
48
+ ];
49
+ export {};
50
+ //# sourceMappingURL=pimlico.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../types/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAEnE,KAAK,2CAA2C,GAAG;IAC/C,IAAI,EAAE;QACF,YAAY,EAAE,GAAG,CAAA;QACjB,oBAAoB,EAAE,GAAG,CAAA;KAC5B,CAAA;IACD,QAAQ,EAAE;QACN,YAAY,EAAE,GAAG,CAAA;QACjB,oBAAoB,EAAE,GAAG,CAAA;KAC5B,CAAA;IACD,IAAI,EAAE;QACF,YAAY,EAAE,GAAG,CAAA;QACjB,oBAAoB,EAAE,GAAG,CAAA;KAC5B,CAAA;CACJ,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACrC,MAAM,EAAE,WAAW,GAAG,eAAe,GAAG,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAA;IACrG,eAAe,EAAE,IAAI,GAAG,IAAI,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC;QACI,MAAM,EAAE,kCAAkC,CAAA;QAC1C,UAAU,EAAE,EAAE,CAAA;QACd,UAAU,EAAE,2CAA2C,CAAA;KAC1D;IACD;QACI,MAAM,EAAE,gCAAgC,CAAA;QACxC,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;QACxB,UAAU,EAAE,0BAA0B,CAAA;KACzC;CACJ,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACpC;QACI,MAAM,EAAE,yBAAyB,CAAA;QACjC,UAAU,EAAE;YACR,aAAa,EAAE,SAAS,CACpB,4BAA4B,EAC5B,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,GAAG,kBAAkB,CACtF;YACD,UAAU,EAAE,OAAO;SACtB,CAAA;QACD,UAAU,EAAE;YACR,gBAAgB,EAAE,GAAG,CAAA;YACrB,kBAAkB,EAAE,GAAG,CAAA;YACvB,oBAAoB,EAAE,GAAG,CAAA;YACzB,YAAY,EAAE,GAAG,CAAA;SACpB,CAAA;KACJ;CACJ,CAAA"}
@@ -0,0 +1,30 @@
1
+ import type { Address } from "abitype";
2
+ import type { Hex } from "viem";
3
+ export type TStatus = "success" | "reverted";
4
+ export type UserOperationWithBigIntAsHex = {
5
+ sender: Address;
6
+ nonce: Hex;
7
+ initCode: Hex;
8
+ callData: Hex;
9
+ callGasLimit: Hex;
10
+ verificationGasLimit: Hex;
11
+ preVerificationGas: Hex;
12
+ maxFeePerGas: Hex;
13
+ maxPriorityFeePerGas: Hex;
14
+ paymasterAndData: Hex;
15
+ signature: Hex;
16
+ };
17
+ export type UserOperation = {
18
+ sender: Address;
19
+ nonce: bigint;
20
+ initCode: Hex;
21
+ callData: Hex;
22
+ callGasLimit: bigint;
23
+ verificationGasLimit: bigint;
24
+ preVerificationGas: bigint;
25
+ maxFeePerGas: bigint;
26
+ maxPriorityFeePerGas: bigint;
27
+ paymasterAndData: Hex;
28
+ signature: Hex;
29
+ };
30
+ //# sourceMappingURL=userOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userOperation.d.ts","sourceRoot":"","sources":["../../types/userOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAE/B,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;AAE5C,MAAM,MAAM,4BAA4B,GAAG;IACvC,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,GAAG,CAAA;IACV,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,kBAAkB,EAAE,GAAG,CAAA;IACvB,YAAY,EAAE,GAAG,CAAA;IACjB,oBAAoB,EAAE,GAAG,CAAA;IACzB,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,QAAQ,EAAE,GAAG,CAAA;IACb,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,YAAY,EAAE,MAAM,CAAA;IACpB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,gBAAgB,EAAE,GAAG,CAAA;IACrB,SAAS,EAAE,GAAG,CAAA;CACjB,CAAA"}