@gelatocloud/gasless 0.0.0

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 (204) hide show
  1. package/_dist/account/actions/getFeeQuote.d.ts +11 -0
  2. package/_dist/account/actions/getFeeQuote.d.ts.map +1 -0
  3. package/_dist/account/actions/getFeeQuote.js +21 -0
  4. package/_dist/account/actions/getFeeQuote.js.map +1 -0
  5. package/_dist/account/actions/index.d.ts +4 -0
  6. package/_dist/account/actions/index.d.ts.map +1 -0
  7. package/_dist/account/actions/index.js +20 -0
  8. package/_dist/account/actions/index.js.map +1 -0
  9. package/_dist/account/actions/sendTransaction.d.ts +20 -0
  10. package/_dist/account/actions/sendTransaction.d.ts.map +1 -0
  11. package/_dist/account/actions/sendTransaction.js +33 -0
  12. package/_dist/account/actions/sendTransaction.js.map +1 -0
  13. package/_dist/account/actions/sendTransactionSync.d.ts +9 -0
  14. package/_dist/account/actions/sendTransactionSync.d.ts.map +1 -0
  15. package/_dist/account/actions/sendTransactionSync.js +34 -0
  16. package/_dist/account/actions/sendTransactionSync.js.map +1 -0
  17. package/_dist/account/adapters/gelato/abi.d.ts +39 -0
  18. package/_dist/account/adapters/gelato/abi.d.ts.map +1 -0
  19. package/_dist/account/adapters/gelato/abi.js +13 -0
  20. package/_dist/account/adapters/gelato/abi.js.map +1 -0
  21. package/_dist/account/adapters/gelato/constants.d.ts +7 -0
  22. package/_dist/account/adapters/gelato/constants.d.ts.map +1 -0
  23. package/_dist/account/adapters/gelato/constants.js +9 -0
  24. package/_dist/account/adapters/gelato/constants.js.map +1 -0
  25. package/_dist/account/adapters/gelato/index.d.ts +10 -0
  26. package/_dist/account/adapters/gelato/index.d.ts.map +1 -0
  27. package/_dist/account/adapters/gelato/index.js +160 -0
  28. package/_dist/account/adapters/gelato/index.js.map +1 -0
  29. package/_dist/account/adapters/index.d.ts +2 -0
  30. package/_dist/account/adapters/index.d.ts.map +1 -0
  31. package/_dist/account/adapters/index.js +18 -0
  32. package/_dist/account/adapters/index.js.map +1 -0
  33. package/_dist/account/adapters/types/index.d.ts +22 -0
  34. package/_dist/account/adapters/types/index.d.ts.map +1 -0
  35. package/_dist/account/adapters/types/index.js +3 -0
  36. package/_dist/account/adapters/types/index.js.map +1 -0
  37. package/_dist/account/index.d.ts +17 -0
  38. package/_dist/account/index.d.ts.map +1 -0
  39. package/_dist/account/index.js +41 -0
  40. package/_dist/account/index.js.map +1 -0
  41. package/_dist/account/utils/delegation.d.ts +4 -0
  42. package/_dist/account/utils/delegation.d.ts.map +1 -0
  43. package/_dist/account/utils/delegation.js +12 -0
  44. package/_dist/account/utils/delegation.js.map +1 -0
  45. package/_dist/account/utils/estimation.d.ts +3 -0
  46. package/_dist/account/utils/estimation.d.ts.map +1 -0
  47. package/_dist/account/utils/estimation.js +19 -0
  48. package/_dist/account/utils/estimation.js.map +1 -0
  49. package/_dist/account/utils/index.d.ts +3 -0
  50. package/_dist/account/utils/index.d.ts.map +1 -0
  51. package/_dist/account/utils/index.js +19 -0
  52. package/_dist/account/utils/index.js.map +1 -0
  53. package/_dist/bundler/actions/estimateUserOperationGas.d.ts +6 -0
  54. package/_dist/bundler/actions/estimateUserOperationGas.d.ts.map +1 -0
  55. package/_dist/bundler/actions/estimateUserOperationGas.js +43 -0
  56. package/_dist/bundler/actions/estimateUserOperationGas.js.map +1 -0
  57. package/_dist/bundler/actions/getUserOperationGasPrice.d.ts +5 -0
  58. package/_dist/bundler/actions/getUserOperationGasPrice.d.ts.map +1 -0
  59. package/_dist/bundler/actions/getUserOperationGasPrice.js +20 -0
  60. package/_dist/bundler/actions/getUserOperationGasPrice.js.map +1 -0
  61. package/_dist/bundler/actions/getUserOperationQuote.d.ts +13 -0
  62. package/_dist/bundler/actions/getUserOperationQuote.d.ts.map +1 -0
  63. package/_dist/bundler/actions/getUserOperationQuote.js +50 -0
  64. package/_dist/bundler/actions/getUserOperationQuote.js.map +1 -0
  65. package/_dist/bundler/actions/index.d.ts +7 -0
  66. package/_dist/bundler/actions/index.d.ts.map +1 -0
  67. package/_dist/bundler/actions/index.js +23 -0
  68. package/_dist/bundler/actions/index.js.map +1 -0
  69. package/_dist/bundler/actions/prepareUserOperation.d.ts +6 -0
  70. package/_dist/bundler/actions/prepareUserOperation.d.ts.map +1 -0
  71. package/_dist/bundler/actions/prepareUserOperation.js +340 -0
  72. package/_dist/bundler/actions/prepareUserOperation.js.map +1 -0
  73. package/_dist/bundler/actions/sendUserOperation.d.ts +6 -0
  74. package/_dist/bundler/actions/sendUserOperation.d.ts.map +1 -0
  75. package/_dist/bundler/actions/sendUserOperation.js +41 -0
  76. package/_dist/bundler/actions/sendUserOperation.js.map +1 -0
  77. package/_dist/bundler/actions/sendUserOperationSync.d.ts +9 -0
  78. package/_dist/bundler/actions/sendUserOperationSync.d.ts.map +1 -0
  79. package/_dist/bundler/actions/sendUserOperationSync.js +42 -0
  80. package/_dist/bundler/actions/sendUserOperationSync.js.map +1 -0
  81. package/_dist/bundler/index.d.ts +18 -0
  82. package/_dist/bundler/index.d.ts.map +1 -0
  83. package/_dist/bundler/index.js +61 -0
  84. package/_dist/bundler/index.js.map +1 -0
  85. package/_dist/index.d.ts +5 -0
  86. package/_dist/index.d.ts.map +1 -0
  87. package/_dist/index.js +21 -0
  88. package/_dist/index.js.map +1 -0
  89. package/_dist/relayer/constants/index.d.ts +3 -0
  90. package/_dist/relayer/constants/index.d.ts.map +1 -0
  91. package/_dist/relayer/constants/index.js +6 -0
  92. package/_dist/relayer/constants/index.js.map +1 -0
  93. package/_dist/relayer/evm/actions/getCapabilities.d.ts +21 -0
  94. package/_dist/relayer/evm/actions/getCapabilities.d.ts.map +1 -0
  95. package/_dist/relayer/evm/actions/getCapabilities.js +19 -0
  96. package/_dist/relayer/evm/actions/getCapabilities.js.map +1 -0
  97. package/_dist/relayer/evm/actions/getFeeData.d.ts +21 -0
  98. package/_dist/relayer/evm/actions/getFeeData.d.ts.map +1 -0
  99. package/_dist/relayer/evm/actions/getFeeData.js +26 -0
  100. package/_dist/relayer/evm/actions/getFeeData.js.map +1 -0
  101. package/_dist/relayer/evm/actions/getFeeQuote.d.ts +22 -0
  102. package/_dist/relayer/evm/actions/getFeeQuote.d.ts.map +1 -0
  103. package/_dist/relayer/evm/actions/getFeeQuote.js +27 -0
  104. package/_dist/relayer/evm/actions/getFeeQuote.js.map +1 -0
  105. package/_dist/relayer/evm/actions/getStatus.d.ts +81 -0
  106. package/_dist/relayer/evm/actions/getStatus.d.ts.map +1 -0
  107. package/_dist/relayer/evm/actions/getStatus.js +72 -0
  108. package/_dist/relayer/evm/actions/getStatus.js.map +1 -0
  109. package/_dist/relayer/evm/actions/index.d.ts +8 -0
  110. package/_dist/relayer/evm/actions/index.d.ts.map +1 -0
  111. package/_dist/relayer/evm/actions/index.js +24 -0
  112. package/_dist/relayer/evm/actions/index.js.map +1 -0
  113. package/_dist/relayer/evm/actions/sendTransaction.d.ts +12 -0
  114. package/_dist/relayer/evm/actions/sendTransaction.d.ts.map +1 -0
  115. package/_dist/relayer/evm/actions/sendTransaction.js +22 -0
  116. package/_dist/relayer/evm/actions/sendTransaction.js.map +1 -0
  117. package/_dist/relayer/evm/actions/sendTransactionSync.d.ts +8 -0
  118. package/_dist/relayer/evm/actions/sendTransactionSync.d.ts.map +1 -0
  119. package/_dist/relayer/evm/actions/sendTransactionSync.js +23 -0
  120. package/_dist/relayer/evm/actions/sendTransactionSync.js.map +1 -0
  121. package/_dist/relayer/evm/actions/waitForStatus.d.ts +4 -0
  122. package/_dist/relayer/evm/actions/waitForStatus.d.ts.map +1 -0
  123. package/_dist/relayer/evm/actions/waitForStatus.js +17 -0
  124. package/_dist/relayer/evm/actions/waitForStatus.js.map +1 -0
  125. package/_dist/relayer/evm/index.d.ts +18 -0
  126. package/_dist/relayer/evm/index.d.ts.map +1 -0
  127. package/_dist/relayer/evm/index.js +46 -0
  128. package/_dist/relayer/evm/index.js.map +1 -0
  129. package/_dist/relayer/index.d.ts +2 -0
  130. package/_dist/relayer/index.d.ts.map +1 -0
  131. package/_dist/relayer/index.js +18 -0
  132. package/_dist/relayer/index.js.map +1 -0
  133. package/_dist/tsconfig.build.tsbuildinfo +1 -0
  134. package/_dist/types/error.d.ts +14 -0
  135. package/_dist/types/error.d.ts.map +1 -0
  136. package/_dist/types/error.js +27 -0
  137. package/_dist/types/error.js.map +1 -0
  138. package/_dist/types/index.d.ts +4 -0
  139. package/_dist/types/index.d.ts.map +1 -0
  140. package/_dist/types/index.js +20 -0
  141. package/_dist/types/index.js.map +1 -0
  142. package/_dist/types/payment.d.ts +17 -0
  143. package/_dist/types/payment.d.ts.map +1 -0
  144. package/_dist/types/payment.js +16 -0
  145. package/_dist/types/payment.js.map +1 -0
  146. package/_dist/types/schema.d.ts +10 -0
  147. package/_dist/types/schema.d.ts.map +1 -0
  148. package/_dist/types/schema.js +25 -0
  149. package/_dist/types/schema.js.map +1 -0
  150. package/_dist/utils/index.d.ts +3 -0
  151. package/_dist/utils/index.d.ts.map +1 -0
  152. package/_dist/utils/index.js +19 -0
  153. package/_dist/utils/index.js.map +1 -0
  154. package/_dist/utils/payment.d.ts +3 -0
  155. package/_dist/utils/payment.d.ts.map +1 -0
  156. package/_dist/utils/payment.js +17 -0
  157. package/_dist/utils/payment.js.map +1 -0
  158. package/_dist/utils/serialize.d.ts +17 -0
  159. package/_dist/utils/serialize.d.ts.map +1 -0
  160. package/_dist/utils/serialize.js +77 -0
  161. package/_dist/utils/serialize.js.map +1 -0
  162. package/account/actions/getFeeQuote.ts +34 -0
  163. package/account/actions/index.ts +3 -0
  164. package/account/actions/sendTransaction.ts +61 -0
  165. package/account/actions/sendTransactionSync.ts +51 -0
  166. package/account/adapters/gelato/abi.ts +13 -0
  167. package/account/adapters/gelato/constants.ts +13 -0
  168. package/account/adapters/gelato/index.ts +216 -0
  169. package/account/adapters/index.ts +1 -0
  170. package/account/adapters/types/index.ts +36 -0
  171. package/account/index.ts +60 -0
  172. package/account/utils/delegation.ts +9 -0
  173. package/account/utils/estimation.ts +29 -0
  174. package/account/utils/index.ts +2 -0
  175. package/bundler/actions/estimateUserOperationGas.ts +63 -0
  176. package/bundler/actions/getUserOperationGasPrice.ts +25 -0
  177. package/bundler/actions/getUserOperationQuote.ts +83 -0
  178. package/bundler/actions/index.ts +6 -0
  179. package/bundler/actions/prepareUserOperation.ts +437 -0
  180. package/bundler/actions/sendUserOperation.ts +64 -0
  181. package/bundler/actions/sendUserOperationSync.ts +71 -0
  182. package/bundler/index.ts +98 -0
  183. package/index.ts +4 -0
  184. package/package.json +36 -0
  185. package/relayer/constants/index.ts +2 -0
  186. package/relayer/evm/actions/getCapabilities.ts +22 -0
  187. package/relayer/evm/actions/getFeeData.ts +36 -0
  188. package/relayer/evm/actions/getFeeQuote.ts +39 -0
  189. package/relayer/evm/actions/getStatus.ts +92 -0
  190. package/relayer/evm/actions/index.ts +7 -0
  191. package/relayer/evm/actions/sendTransaction.ts +33 -0
  192. package/relayer/evm/actions/sendTransactionSync.ts +30 -0
  193. package/relayer/evm/actions/waitForStatus.ts +24 -0
  194. package/relayer/evm/index.ts +68 -0
  195. package/relayer/index.ts +1 -0
  196. package/tsconfig.build.json +19 -0
  197. package/tsconfig.json +8 -0
  198. package/types/error.ts +38 -0
  199. package/types/index.ts +3 -0
  200. package/types/payment.ts +23 -0
  201. package/types/schema.ts +28 -0
  202. package/utils/index.ts +2 -0
  203. package/utils/payment.ts +20 -0
  204. package/utils/serialize.ts +91 -0
@@ -0,0 +1,17 @@
1
+ import type { Hex } from 'viem';
2
+ import type { SmartAccount } from 'viem/account-abstraction';
3
+ import { type FeeQuote, type GelatoEvmRelayerClient, type TerminalStatus } from '../relayer/index.js';
4
+ import { type GetFeeQuoteParameters, type SendTransactionParameters, type SendTransactionSyncParameters } from './actions/index.js';
5
+ import type { GelatoSmartAccountImplementation } from './adapters/types/index.js';
6
+ export * from './adapters/index.js';
7
+ export type GelatoSmartAccountClient = Pick<GelatoEvmRelayerClient, 'getCapabilities' | 'getStatus' | 'waitForStatus'> & {
8
+ sendTransaction: (parameters: SendTransactionParameters) => Promise<Hex>;
9
+ sendTransactionSync: (parameters: SendTransactionSyncParameters) => Promise<TerminalStatus>;
10
+ getFeeQuote: (parameters: GetFeeQuoteParameters) => Promise<FeeQuote>;
11
+ };
12
+ export type GelatoSmartAccountClientConfig = {
13
+ apiKey: string;
14
+ account: SmartAccount<GelatoSmartAccountImplementation>;
15
+ };
16
+ export declare const createGelatoSmartAccountClient: (parameters: GelatoSmartAccountClientConfig) => Promise<GelatoSmartAccountClient>;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../account/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAEL,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,yBAAyB,EAC9B,KAAK,6BAA6B,EAGnC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,2BAA2B,CAAC;AAElF,cAAc,qBAAqB,CAAC;AAEpC,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,sBAAsB,EACtB,iBAAiB,GAAG,WAAW,GAAG,eAAe,CAClD,GAAG;IACF,eAAe,EAAE,CAAC,UAAU,EAAE,yBAAyB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACzE,mBAAmB,EAAE,CAAC,UAAU,EAAE,6BAA6B,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAC5F,WAAW,EAAE,CAAC,UAAU,EAAE,qBAAqB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,YAAY,CAAC,gCAAgC,CAAC,CAAC;CACzD,CAAC;AAEF,eAAO,MAAM,8BAA8B,GACzC,YAAY,8BAA8B,KACzC,OAAO,CAAC,wBAAwB,CAuBlC,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.createGelatoSmartAccountClient = void 0;
18
+ const index_js_1 = require("../relayer/index.js");
19
+ const index_js_2 = require("./actions/index.js");
20
+ __exportStar(require("./adapters/index.js"), exports);
21
+ const createGelatoSmartAccountClient = async (parameters) => {
22
+ const { account, apiKey } = parameters;
23
+ const client = (0, index_js_1.createGelatoEvmRelayerClient)({
24
+ apiKey,
25
+ testnet: account.chain.testnet ?? false
26
+ });
27
+ const capabilities = (await client.getCapabilities())[account.chain.id];
28
+ if (!capabilities) {
29
+ throw new Error(`Chain not supported: ${account.chain.id}`);
30
+ }
31
+ return {
32
+ getCapabilities: () => client.getCapabilities(),
33
+ getFeeQuote: (parameters) => (0, index_js_2.getFeeQuote)(client, account, capabilities, parameters),
34
+ getStatus: (parameters) => client.getStatus(parameters),
35
+ sendTransaction: (parameters) => (0, index_js_2.sendTransaction)(client, account, capabilities, parameters),
36
+ sendTransactionSync: (parameters) => (0, index_js_2.sendTransactionSync)(client, account, capabilities, parameters),
37
+ waitForStatus: (parameters) => client.waitForStatus(parameters)
38
+ };
39
+ };
40
+ exports.createGelatoSmartAccountClient = createGelatoSmartAccountClient;
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA,kDAK6B;AAC7B,iDAO4B;AAG5B,sDAAoC;AAgB7B,MAAM,8BAA8B,GAAG,KAAK,EACjD,UAA0C,EACP,EAAE;IACrC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;IAEvC,MAAM,MAAM,GAAG,IAAA,uCAA4B,EAAC;QAC1C,MAAM;QACN,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,IAAI,KAAK;KACxC,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,CAAC,MAAM,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAExE,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,wBAAwB,OAAO,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,OAAO;QACL,eAAe,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,EAAE;QAC/C,WAAW,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,sBAAW,EAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,CAAC;QACnF,SAAS,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC;QACvD,eAAe,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,IAAA,0BAAe,EAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,CAAC;QAC3F,mBAAmB,EAAE,CAAC,UAAU,EAAE,EAAE,CAClC,IAAA,8BAAmB,EAAC,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,CAAC;QAChE,aAAa,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC;KAChE,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,8BAA8B,kCAyBzC"}
@@ -0,0 +1,4 @@
1
+ import { type Address, type Hex } from 'viem';
2
+ export declare const delegationGas: (authorizationCount: number) => bigint;
3
+ export declare const delegationCode: (address: Address) => Hex;
4
+ //# sourceMappingURL=delegation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegation.d.ts","sourceRoot":"","sources":["../../../account/utils/delegation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAa,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAIzD,eAAO,MAAM,aAAa,GAAI,oBAAoB,MAAM,KAAG,MAE1D,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,KAAG,GAAuC,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.delegationCode = exports.delegationGas = void 0;
4
+ const viem_1 = require("viem");
5
+ const DELEGATION_GAS = 25000n;
6
+ const delegationGas = (authorizationCount) => {
7
+ return DELEGATION_GAS * BigInt(authorizationCount);
8
+ };
9
+ exports.delegationGas = delegationGas;
10
+ const delegationCode = (address) => (0, viem_1.concatHex)(['0xef0100', address]);
11
+ exports.delegationCode = delegationCode;
12
+ //# sourceMappingURL=delegation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegation.js","sourceRoot":"","sources":["../../../account/utils/delegation.ts"],"names":[],"mappings":";;;AAAA,+BAAyD;AAEzD,MAAM,cAAc,GAAG,MAAO,CAAC;AAExB,MAAM,aAAa,GAAG,CAAC,kBAA0B,EAAU,EAAE;IAClE,OAAO,cAAc,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AACrD,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB;AAEK,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAO,EAAE,CAAC,IAAA,gBAAS,EAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAA7E,QAAA,cAAc,kBAA+D"}
@@ -0,0 +1,3 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from 'viem';
2
+ export declare const estimateL1Fee: (client: Client<Transport, Chain>, to: Address, data: Hex) => Promise<bigint | undefined>;
3
+ //# sourceMappingURL=estimation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimation.d.ts","sourceRoot":"","sources":["../../../account/utils/estimation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,KAAK,EAEV,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,SAAS,EAEf,MAAM,MAAM,CAAC;AAGd,eAAO,MAAM,aAAa,GACxB,QAAQ,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,EAChC,IAAI,OAAO,EACX,MAAM,GAAG,KACR,OAAO,CAAC,MAAM,GAAG,SAAS,CAa5B,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.estimateL1Fee = void 0;
4
+ const viem_1 = require("viem");
5
+ const op_stack_1 = require("viem/op-stack");
6
+ const estimateL1Fee = async (client, to, data) => {
7
+ const gasPriceOracle = client.chain.contracts?.['gasPriceOracle'];
8
+ if (!gasPriceOracle) {
9
+ return undefined;
10
+ }
11
+ return await (0, op_stack_1.estimateL1Fee)(client, {
12
+ account: viem_1.zeroAddress,
13
+ data,
14
+ gasPriceOracleAddress: gasPriceOracle.address,
15
+ to
16
+ });
17
+ };
18
+ exports.estimateL1Fee = estimateL1Fee;
19
+ //# sourceMappingURL=estimation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimation.js","sourceRoot":"","sources":["../../../account/utils/estimation.ts"],"names":[],"mappings":";;;AAAA,+BAQc;AACd,4CAAoE;AAE7D,MAAM,aAAa,GAAG,KAAK,EAChC,MAAgC,EAChC,EAAW,EACX,IAAS,EACoB,EAAE;IAC/B,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC,gBAAgB,CAA8B,CAAC;IAE/F,IAAI,CAAC,cAAc,EAAE,CAAC;QACpB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,MAAM,IAAA,wBAAkB,EAAC,MAAM,EAAE;QACtC,OAAO,EAAE,kBAAW;QACpB,IAAI;QACJ,qBAAqB,EAAE,cAAc,CAAC,OAAO;QAC7C,EAAE;KACH,CAAC,CAAC;AACL,CAAC,CAAC;AAjBW,QAAA,aAAa,iBAiBxB"}
@@ -0,0 +1,3 @@
1
+ export * from './delegation.js';
2
+ export * from './estimation.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../account/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./delegation.js"), exports);
18
+ __exportStar(require("./estimation.js"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../account/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,kDAAgC"}
@@ -0,0 +1,6 @@
1
+ import type { Chain, Client, Transport } from 'viem';
2
+ import { type EstimateUserOperationGasParameters, type EstimateUserOperationGasReturnType, type SmartAccount } from 'viem/account-abstraction';
3
+ import type { CapabilitiesByChain } from '../../relayer/evm/actions/index.js';
4
+ import { type Payment } from '../../types/index.js';
5
+ export declare const estimateUserOperationGas: <account extends SmartAccount | undefined>(client: Client<Transport, Chain | undefined, account>, parameters: EstimateUserOperationGasParameters, capabilities: CapabilitiesByChain, payment?: Payment) => Promise<EstimateUserOperationGasReturnType>;
6
+ //# sourceMappingURL=estimateUserOperationGas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../../bundler/actions/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAChE,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EAKvC,KAAK,YAAY,EAElB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAI1E,eAAO,MAAM,wBAAwB,GAAU,OAAO,SAAS,YAAY,GAAG,SAAS,EACrF,QAAQ,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EACrD,YAAY,kCAAkC,EAC9C,cAAc,mBAAmB,EACjC,UAAU,OAAO,KAChB,OAAO,CAAC,kCAAkC,CAwC5C,CAAC"}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.estimateUserOperationGas = void 0;
4
+ const account_abstraction_1 = require("viem/account-abstraction");
5
+ const accounts_1 = require("viem/accounts");
6
+ const index_js_1 = require("../../types/index.js");
7
+ const index_js_2 = require("../../utils/index.js");
8
+ const prepareUserOperation_js_1 = require("./prepareUserOperation.js");
9
+ const estimateUserOperationGas = async (client, parameters, capabilities, payment) => {
10
+ const { account: account_ = client.account, entryPointAddress, stateOverride } = parameters;
11
+ if (!account_ && !parameters.sender)
12
+ throw new index_js_1.AccountNotFoundError();
13
+ const account = account_ ? (0, accounts_1.parseAccount)(account_) : undefined;
14
+ const rpcStateOverride = (0, index_js_2.serializeStateOverride)(stateOverride);
15
+ const request = account
16
+ ? await (0, prepareUserOperation_js_1.prepareUserOperation)(client, {
17
+ ...parameters,
18
+ parameters: ['authorization', 'factory', 'nonce', 'paymaster', 'signature']
19
+ }, capabilities, payment)
20
+ : parameters;
21
+ try {
22
+ const params = [
23
+ (0, account_abstraction_1.formatUserOperationRequest)(request),
24
+ // biome-ignore lint/style/noNonNullAssertion: copied from viem
25
+ (entryPointAddress ?? account?.entryPoint?.address)
26
+ ];
27
+ const result = await client.request({
28
+ method: 'eth_estimateUserOperationGas',
29
+ params: rpcStateOverride ? [...params, rpcStateOverride] : [...params]
30
+ });
31
+ return (0, account_abstraction_1.formatUserOperationGas)(result);
32
+ }
33
+ catch (error) {
34
+ // biome-ignore lint/suspicious/noExplicitAny: copied from viem
35
+ const calls = parameters.calls;
36
+ throw (0, account_abstraction_1.getUserOperationError)(error, {
37
+ ...request,
38
+ ...(calls ? { calls } : {})
39
+ });
40
+ }
41
+ };
42
+ exports.estimateUserOperationGas = estimateUserOperationGas;
43
+ //# sourceMappingURL=estimateUserOperationGas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimateUserOperationGas.js","sourceRoot":"","sources":["../../../bundler/actions/estimateUserOperationGas.ts"],"names":[],"mappings":";;;AACA,kEASkC;AAClC,4CAA6C;AAE7C,mDAA0E;AAC1E,mDAA8D;AAC9D,uEAAiE;AAE1D,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAqD,EACrD,UAA8C,EAC9C,YAAiC,EACjC,OAAiB,EAC4B,EAAE;IAC/C,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC;IAE5F,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,MAAM;QAAE,MAAM,IAAI,+BAAoB,EAAE,CAAC;IACtE,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAA,uBAAY,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE9D,MAAM,gBAAgB,GAAG,IAAA,iCAAsB,EAAC,aAAa,CAAC,CAAC;IAE/D,MAAM,OAAO,GAAG,OAAO;QACrB,CAAC,CAAC,MAAM,IAAA,8CAAoB,EACxB,MAAM,EACN;YACE,GAAG,UAAU;YACb,UAAU,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,CAAC;SAC/B,EAC9C,YAAY,EACZ,OAAO,CACR;QACH,CAAC,CAAC,UAAU,CAAC;IAEf,IAAI,CAAC;QACH,MAAM,MAAM,GAAG;YACb,IAAA,gDAA0B,EAAC,OAAwB,CAAC;YACpD,+DAA+D;YAC/D,CAAC,iBAAiB,IAAI,OAAO,EAAE,UAAU,EAAE,OAAO,CAAE;SAC5C,CAAC;QAEX,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;YAClC,MAAM,EAAE,8BAA8B;YACtC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;SACvE,CAAC,CAAC;QACH,OAAO,IAAA,4CAAsB,EAAC,MAAM,CAAgD,CAAC;IACvF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,+DAA+D;QAC/D,MAAM,KAAK,GAAI,UAAkB,CAAC,KAAK,CAAC;QACxC,MAAM,IAAA,2CAAqB,EAAC,KAAkB,EAAE;YAC9C,GAAI,OAAyB;YAC7B,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;AA7CW,QAAA,wBAAwB,4BA6CnC"}
@@ -0,0 +1,5 @@
1
+ import type { Client, EstimateFeesPerGasReturnType } from 'viem';
2
+ import type { Payment } from '../../types/index.js';
3
+ export type GetUserOperationGasPriceReturnType = EstimateFeesPerGasReturnType<'eip1559'>;
4
+ export declare const getUserOperationGasPrice: (client: Client, payment?: Payment) => Promise<GetUserOperationGasPriceReturnType>;
5
+ //# sourceMappingURL=getUserOperationGasPrice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationGasPrice.d.ts","sourceRoot":"","sources":["../../../bundler/actions/getUserOperationGasPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,4BAA4B,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,MAAM,kCAAkC,GAAG,4BAA4B,CAAC,SAAS,CAAC,CAAC;AAEzF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,MAAM,EACd,UAAU,OAAO,KAChB,OAAO,CAAC,kCAAkC,CAgB5C,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationGasPrice = void 0;
4
+ const getUserOperationGasPrice = async (client, payment) => {
5
+ if (payment) {
6
+ return {
7
+ maxFeePerGas: 0n,
8
+ maxPriorityFeePerGas: 0n
9
+ };
10
+ }
11
+ const { maxFeePerGas, maxPriorityFeePerGas } = await client.request({
12
+ method: 'gelato_getUserOperationGasPrice'
13
+ });
14
+ return {
15
+ maxFeePerGas: BigInt(maxFeePerGas),
16
+ maxPriorityFeePerGas: BigInt(maxPriorityFeePerGas)
17
+ };
18
+ };
19
+ exports.getUserOperationGasPrice = getUserOperationGasPrice;
20
+ //# sourceMappingURL=getUserOperationGasPrice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationGasPrice.js","sourceRoot":"","sources":["../../../bundler/actions/getUserOperationGasPrice.ts"],"names":[],"mappings":";;;AAKO,MAAM,wBAAwB,GAAG,KAAK,EAC3C,MAAc,EACd,OAAiB,EAC4B,EAAE;IAC/C,IAAI,OAAO,EAAE,CAAC;QACZ,OAAO;YACL,YAAY,EAAE,EAAE;YAChB,oBAAoB,EAAE,EAAE;SACzB,CAAC;IACJ,CAAC;IAED,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClE,MAAM,EAAE,iCAAiC;KACjC,CAAC,CAAC;IAEZ,OAAO;QACL,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;QAClC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;KACnD,CAAC;AACJ,CAAC,CAAC;AAnBW,QAAA,wBAAwB,4BAmBnC"}
@@ -0,0 +1,13 @@
1
+ import type { Client, Transport } from 'viem';
2
+ import { type EstimateUserOperationGasParameters, type EstimateUserOperationGasReturnType, type SmartAccount } from 'viem/account-abstraction';
3
+ import type { Chain } from 'viem/chains';
4
+ import type { CapabilitiesByChain } from '../../relayer/evm/actions/index.js';
5
+ import { type Payment } from '../../types/index.js';
6
+ export type GetUserOperationQuoteParameters = Omit<EstimateUserOperationGasParameters, 'paymaster' | 'paymasterContext'>;
7
+ export type GetUserOperationQuoteReturnType = EstimateUserOperationGasReturnType & {
8
+ fee: bigint;
9
+ gas: bigint;
10
+ l1Fee?: bigint;
11
+ };
12
+ export declare const getUserOperationQuote: <account extends SmartAccount | undefined>(client: Client<Transport, Chain | undefined, account>, parameters: GetUserOperationQuoteParameters, capabilities: CapabilitiesByChain, payment?: Payment) => Promise<GetUserOperationQuoteReturnType>;
13
+ //# sourceMappingURL=getUserOperationQuote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationQuote.d.ts","sourceRoot":"","sources":["../../../bundler/actions/getUserOperationQuote.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACzD,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EAIvC,KAAK,YAAY,EAElB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAwB,KAAK,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAI1E,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAChD,kCAAkC,EAClC,WAAW,GAAG,kBAAkB,CACjC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG,kCAAkC,GAAG;IACjF,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,OAAO,SAAS,YAAY,GAAG,SAAS,EAClF,QAAQ,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EACrD,YAAY,+BAA+B,EAC3C,cAAc,mBAAmB,EACjC,UAAU,OAAO,KAChB,OAAO,CAAC,+BAA+B,CAiDzC,CAAC"}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationQuote = void 0;
4
+ const account_abstraction_1 = require("viem/account-abstraction");
5
+ const accounts_1 = require("viem/accounts");
6
+ const index_js_1 = require("../../types/index.js");
7
+ const index_js_2 = require("../../utils/index.js");
8
+ const prepareUserOperation_js_1 = require("./prepareUserOperation.js");
9
+ const getUserOperationQuote = async (client, parameters, capabilities, payment) => {
10
+ const { account: account_ = client.account, entryPointAddress, stateOverride } = parameters;
11
+ if (!account_ && !parameters.sender)
12
+ throw new index_js_1.AccountNotFoundError();
13
+ const account = account_ ? (0, accounts_1.parseAccount)(account_) : undefined;
14
+ const rpcStateOverride = (0, index_js_2.serializeStateOverride)(stateOverride);
15
+ const request = account
16
+ ? await (0, prepareUserOperation_js_1.prepareUserOperation)(client, {
17
+ ...parameters,
18
+ parameters: ['authorization', 'factory', 'nonce', 'signature']
19
+ }, capabilities, payment)
20
+ : parameters;
21
+ try {
22
+ const params = [
23
+ (0, account_abstraction_1.formatUserOperationRequest)(request),
24
+ // biome-ignore lint/style/noNonNullAssertion: copied from viem
25
+ (entryPointAddress ?? account?.entryPoint?.address)
26
+ ];
27
+ const { fee, gas, l1Fee, preVerificationGas, verificationGasLimit, callGasLimit } = await client.request({
28
+ method: 'gelato_getUserOperationQuote',
29
+ params: rpcStateOverride ? [...params, rpcStateOverride] : [...params]
30
+ });
31
+ return {
32
+ callGasLimit: BigInt(callGasLimit),
33
+ fee: BigInt(fee),
34
+ gas: BigInt(gas),
35
+ l1Fee: l1Fee ? BigInt(l1Fee) : undefined,
36
+ preVerificationGas: BigInt(preVerificationGas),
37
+ verificationGasLimit: BigInt(verificationGasLimit)
38
+ };
39
+ }
40
+ catch (error) {
41
+ // biome-ignore lint/suspicious/noExplicitAny: copied from viem
42
+ const calls = parameters.calls;
43
+ throw (0, account_abstraction_1.getUserOperationError)(error, {
44
+ ...request,
45
+ ...(calls ? { calls } : {})
46
+ });
47
+ }
48
+ };
49
+ exports.getUserOperationQuote = getUserOperationQuote;
50
+ //# sourceMappingURL=getUserOperationQuote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationQuote.js","sourceRoot":"","sources":["../../../bundler/actions/getUserOperationQuote.ts"],"names":[],"mappings":";;;AACA,kEAQkC;AAClC,4CAA6C;AAG7C,mDAA0E;AAC1E,mDAA8D;AAC9D,uEAAiE;AAa1D,MAAM,qBAAqB,GAAG,KAAK,EACxC,MAAqD,EACrD,UAA2C,EAC3C,YAAiC,EACjC,OAAiB,EACyB,EAAE;IAC5C,MAAM,EAAE,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC;IAE5F,IAAI,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,MAAM;QAAE,MAAM,IAAI,+BAAoB,EAAE,CAAC;IACtE,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAA,uBAAY,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAE9D,MAAM,gBAAgB,GAAG,IAAA,iCAAsB,EAAC,aAAa,CAAC,CAAC;IAE/D,MAAM,OAAO,GAAG,OAAO;QACrB,CAAC,CAAC,MAAM,IAAA,8CAAoB,EACxB,MAAM,EACN;YACE,GAAG,UAAU;YACb,UAAU,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC;SAClB,EAC9C,YAAY,EACZ,OAAO,CACR;QACH,CAAC,CAAC,UAAU,CAAC;IAEf,IAAI,CAAC;QACH,MAAM,MAAM,GAAG;YACb,IAAA,gDAA0B,EAAC,OAAwB,CAAC;YACpD,+DAA+D;YAC/D,CAAC,iBAAiB,IAAI,OAAO,EAAE,UAAU,EAAE,OAAO,CAAE;SAC5C,CAAC;QAEX,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,YAAY,EAAE,GAC/E,MAAM,MAAM,CAAC,OAAO,CAAC;YACnB,MAAM,EAAE,8BAA8B;YACtC,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;SAC9D,CAAC,CAAC;QAEd,OAAO;YACL,YAAY,EAAE,MAAM,CAAC,YAAY,CAAC;YAClC,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;YAChB,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC;YAChB,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS;YACxC,kBAAkB,EAAE,MAAM,CAAC,kBAAkB,CAAC;YAC9C,oBAAoB,EAAE,MAAM,CAAC,oBAAoB,CAAC;SACnD,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,+DAA+D;QAC/D,MAAM,KAAK,GAAI,UAAkB,CAAC,KAAK,CAAC;QACxC,MAAM,IAAA,2CAAqB,EAAC,KAAkB,EAAE;YAC9C,GAAI,OAAyB;YAC7B,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC;AAtDW,QAAA,qBAAqB,yBAsDhC"}
@@ -0,0 +1,7 @@
1
+ export * from './estimateUserOperationGas.js';
2
+ export * from './getUserOperationGasPrice.js';
3
+ export * from './getUserOperationQuote.js';
4
+ export * from './prepareUserOperation.js';
5
+ export * from './sendUserOperation.js';
6
+ export * from './sendUserOperationSync.js';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../bundler/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./estimateUserOperationGas.js"), exports);
18
+ __exportStar(require("./getUserOperationGasPrice.js"), exports);
19
+ __exportStar(require("./getUserOperationQuote.js"), exports);
20
+ __exportStar(require("./prepareUserOperation.js"), exports);
21
+ __exportStar(require("./sendUserOperation.js"), exports);
22
+ __exportStar(require("./sendUserOperationSync.js"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../bundler/actions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,gEAA8C;AAC9C,6DAA2C;AAC3C,4DAA0C;AAC1C,yDAAuC;AACvC,6DAA2C"}
@@ -0,0 +1,6 @@
1
+ import type { Chain, Client, Transport } from 'viem';
2
+ import { type PrepareUserOperationParameters, type PrepareUserOperationRequest, type PrepareUserOperationReturnType, type SmartAccount } from 'viem/account-abstraction';
3
+ import type { CapabilitiesByChain } from '../../relayer/evm/actions/index.js';
4
+ import { type Payment } from '../../types/index.js';
5
+ export declare const prepareUserOperation: <account extends SmartAccount | undefined, const calls extends readonly unknown[], const request extends PrepareUserOperationRequest<account, accountOverride, calls>, accountOverride extends SmartAccount | undefined = undefined>(client: Client<Transport, Chain | undefined, account>, parameters_: PrepareUserOperationParameters<account, accountOverride, calls, request>, capabilities: CapabilitiesByChain, payment?: Payment, quote?: boolean) => Promise<PrepareUserOperationReturnType<account, accountOverride, calls, request>>;
6
+ //# sourceMappingURL=prepareUserOperation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prepareUserOperation.d.ts","sourceRoot":"","sources":["../../../bundler/actions/prepareUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,KAAK,EAAE,MAAM,EAAuB,SAAS,EAAE,MAAM,MAAM,CAAC;AAChF,OAAO,EAIL,KAAK,8BAA8B,EACnC,KAAK,2BAA2B,EAChC,KAAK,8BAA8B,EACnC,KAAK,YAAY,EAElB,MAAM,0BAA0B,CAAC;AAIlC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAwB,KAAK,OAAO,EAAe,MAAM,sBAAsB,CAAC;AAiBvF,eAAO,MAAM,oBAAoB,GAC/B,OAAO,SAAS,YAAY,GAAG,SAAS,EACxC,KAAK,CAAC,KAAK,SAAS,SAAS,OAAO,EAAE,EACtC,KAAK,CAAC,OAAO,SAAS,2BAA2B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,CAAC,EAClF,eAAe,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EAE5D,QAAQ,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,CAAC,EACrD,aAAa,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,EACrF,cAAc,mBAAmB,EACjC,UAAU,OAAO,EACjB,QAAO,OAAe,KACrB,OAAO,CAAC,8BAA8B,CAAC,OAAO,EAAE,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CAyYlF,CAAC"}