otto-intel-mcp 0.1.2 → 0.1.4

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 (239) hide show
  1. package/README.md +76 -18
  2. package/dist/account-userop-policy-definition.d.ts +14 -0
  3. package/dist/account-userop-policy-definition.js +12 -0
  4. package/dist/account-userop-policy-relation.d.ts +371 -0
  5. package/dist/account-userop-policy-relation.js +87 -0
  6. package/dist/adapter/cdp-signer.d.ts +76 -9
  7. package/dist/adapter/cdp-signer.js +274 -33
  8. package/dist/adapter/evm-call-failure.d.ts +29 -0
  9. package/dist/adapter/evm-call-failure.js +109 -0
  10. package/dist/adapter/refusal.d.ts +1 -1
  11. package/dist/adapter/refusal.js +13 -0
  12. package/dist/adapter/route-simulator.d.ts +91 -0
  13. package/dist/adapter/route-simulator.js +143 -0
  14. package/dist/adapter-cdp-index.d.ts +1 -1
  15. package/dist/executable-equities.d.ts +55 -0
  16. package/dist/executable-equities.js +116 -0
  17. package/dist/executable-yield-markets.d.ts +261 -0
  18. package/dist/executable-yield-markets.js +154 -0
  19. package/dist/execution-account-gas-quote.d.ts +141 -0
  20. package/dist/execution-account-gas-quote.js +443 -0
  21. package/dist/execution-account-gas-review.d.ts +123 -0
  22. package/dist/execution-account-gas-review.js +104 -0
  23. package/dist/execution-account-gas-runtime.d.ts +33 -0
  24. package/dist/execution-account-gas-runtime.js +131 -0
  25. package/dist/execution-account-gas-view.d.ts +936 -0
  26. package/dist/execution-account-gas-view.js +56 -0
  27. package/dist/execution-config.d.ts +3 -0
  28. package/dist/execution-config.js +4 -0
  29. package/dist/execution-delegated-definition.d.ts +7 -6
  30. package/dist/execution-delegated-definition.js +13 -2
  31. package/dist/execution-delegation-admin-definition.d.ts +127 -5
  32. package/dist/execution-delegation-admin-definition.js +155 -5
  33. package/dist/execution-delegation-admin.d.ts +48 -2
  34. package/dist/execution-delegation-admin.js +422 -12
  35. package/dist/execution-delegation-cap-store.d.ts +386 -0
  36. package/dist/execution-delegation-cap-store.js +1150 -0
  37. package/dist/execution-delegation-exit-definition.d.ts +309 -0
  38. package/dist/execution-delegation-exit-definition.js +204 -0
  39. package/dist/execution-delegation-exit-store.d.ts +114 -0
  40. package/dist/execution-delegation-exit-store.js +671 -0
  41. package/dist/execution-delegation-exit.d.ts +4 -0
  42. package/dist/execution-delegation-exit.js +614 -0
  43. package/dist/execution-delegation-finality.d.ts +22 -0
  44. package/dist/execution-delegation-finality.js +90 -0
  45. package/dist/execution-delegation-operation-store.d.ts +129 -0
  46. package/dist/execution-delegation-operation-store.js +1107 -0
  47. package/dist/execution-delegation-operations-definition.d.ts +282 -0
  48. package/dist/execution-delegation-operations-definition.js +117 -0
  49. package/dist/execution-delegation-operations.d.ts +6 -0
  50. package/dist/execution-delegation-operations.js +282 -0
  51. package/dist/execution-delegation-policy.d.ts +154 -8
  52. package/dist/execution-delegation-policy.js +273 -40
  53. package/dist/execution-delegation.d.ts +51 -0
  54. package/dist/execution-delegation.js +441 -31
  55. package/dist/execution-errors.d.ts +1 -1
  56. package/dist/execution-errors.js +122 -0
  57. package/dist/execution-index.d.ts +7 -2
  58. package/dist/execution-index.js +7 -2
  59. package/dist/execution-journal-schema.d.ts +96 -0
  60. package/dist/execution-journal-schema.js +368 -0
  61. package/dist/execution-journal-tables.d.ts +14 -0
  62. package/dist/execution-journal-tables.js +227 -0
  63. package/dist/execution-policy-compatibility.d.ts +34 -0
  64. package/dist/execution-policy-compatibility.js +76 -0
  65. package/dist/execution-registration.d.ts +54 -2
  66. package/dist/execution-registration.js +151 -5
  67. package/dist/execution-sponsored-account-profile.d.ts +32 -0
  68. package/dist/execution-sponsored-account-profile.js +59 -0
  69. package/dist/execution-sponsored-account.d.ts +1519 -0
  70. package/dist/execution-sponsored-account.js +222 -0
  71. package/dist/execution-sponsored-definition.d.ts +1713 -0
  72. package/dist/execution-sponsored-definition.js +185 -0
  73. package/dist/execution-sponsored-gas-policy.d.ts +27 -0
  74. package/dist/execution-sponsored-gas-policy.js +110 -0
  75. package/dist/execution-sponsored-hosted.d.ts +3 -0
  76. package/dist/execution-sponsored-hosted.js +71 -0
  77. package/dist/execution-sponsored-index.d.ts +1322 -0
  78. package/dist/execution-sponsored-index.js +102 -0
  79. package/dist/execution-sponsored-mcp-definition.d.ts +1662 -0
  80. package/dist/execution-sponsored-mcp-definition.js +94 -0
  81. package/dist/execution-sponsored-receipt.d.ts +47 -0
  82. package/dist/execution-sponsored-receipt.js +74 -0
  83. package/dist/execution-sponsored-registration.d.ts +14 -0
  84. package/dist/execution-sponsored-registration.js +77 -0
  85. package/dist/execution-sponsored-runtime.d.ts +84 -0
  86. package/dist/execution-sponsored-runtime.js +149 -0
  87. package/dist/execution-sponsored-settlement.d.ts +15 -0
  88. package/dist/execution-sponsored-settlement.js +88 -0
  89. package/dist/execution-sponsored-store.d.ts +67 -0
  90. package/dist/execution-sponsored-store.js +517 -0
  91. package/dist/execution-sponsored-transport.d.ts +90 -0
  92. package/dist/execution-sponsored-transport.js +180 -0
  93. package/dist/execution-tool-definitions.d.ts +21 -21
  94. package/dist/execution-tool-definitions.js +0 -7
  95. package/dist/execution-tools.d.ts +53 -1
  96. package/dist/execution-tools.js +171 -13
  97. package/dist/execution-worker-guard.d.ts +28 -0
  98. package/dist/execution-worker-guard.js +124 -0
  99. package/dist/hybrid-yield-index.d.ts +10 -0
  100. package/dist/hybrid-yield-index.js +11 -0
  101. package/dist/hybrid-yield-markets.d.ts +96 -0
  102. package/dist/hybrid-yield-markets.js +124 -0
  103. package/dist/hybrid-yield.d.ts +411 -0
  104. package/dist/hybrid-yield.js +155 -0
  105. package/dist/hyperliquid-order-builder.js +4 -0
  106. package/dist/lifi-execution-client.d.ts +6 -0
  107. package/dist/lifi-execution-client.js +3 -0
  108. package/dist/lp-userop-account.d.ts +461 -0
  109. package/dist/lp-userop-account.js +417 -0
  110. package/dist/lp-userop-authority.d.ts +49 -0
  111. package/dist/lp-userop-authority.js +211 -0
  112. package/dist/lp-userop-definition.d.ts +233 -0
  113. package/dist/lp-userop-definition.js +85 -0
  114. package/dist/lp-userop-hosted.d.ts +3 -0
  115. package/dist/lp-userop-hosted.js +73 -0
  116. package/dist/lp-userop-index.d.ts +1569 -0
  117. package/dist/lp-userop-index.js +112 -0
  118. package/dist/lp-userop-mcp-definition.d.ts +1220 -0
  119. package/dist/lp-userop-mcp-definition.js +46 -0
  120. package/dist/lp-userop-operation.d.ts +1230 -0
  121. package/dist/lp-userop-operation.js +140 -0
  122. package/dist/lp-userop-registration.d.ts +14 -0
  123. package/dist/lp-userop-registration.js +70 -0
  124. package/dist/lp-userop-settlement.d.ts +89 -0
  125. package/dist/lp-userop-settlement.js +184 -0
  126. package/dist/lp-userop.d.ts +643 -0
  127. package/dist/lp-userop.js +343 -0
  128. package/dist/native-yield-account-definition.d.ts +1192 -0
  129. package/dist/native-yield-account-definition.js +232 -0
  130. package/dist/native-yield-account-gas.d.ts +58 -0
  131. package/dist/native-yield-account-gas.js +228 -0
  132. package/dist/native-yield-account-index.d.ts +23 -0
  133. package/dist/native-yield-account-index.js +28 -0
  134. package/dist/native-yield-account-policy.d.ts +168 -0
  135. package/dist/native-yield-account-policy.js +525 -0
  136. package/dist/native-yield-account-rpc.d.ts +8 -0
  137. package/dist/native-yield-account-rpc.js +128 -0
  138. package/dist/native-yield-account-runtime.d.ts +71 -0
  139. package/dist/native-yield-account-runtime.js +125 -0
  140. package/dist/native-yield-account-store.d.ts +40 -0
  141. package/dist/native-yield-account-store.js +307 -0
  142. package/dist/native-yield-account.d.ts +662 -0
  143. package/dist/native-yield-account.js +371 -0
  144. package/dist/native-yield-consent-store.d.ts +20 -0
  145. package/dist/native-yield-consent-store.js +317 -0
  146. package/dist/native-yield-definition.d.ts +288 -0
  147. package/dist/native-yield-definition.js +105 -0
  148. package/dist/native-yield-reader.d.ts +4 -0
  149. package/dist/native-yield-reader.js +137 -0
  150. package/dist/native-yield-settlement.d.ts +48 -0
  151. package/dist/native-yield-settlement.js +167 -0
  152. package/dist/native-yield-simulation.d.ts +18 -0
  153. package/dist/native-yield-simulation.js +45 -0
  154. package/dist/native-yield-userop-account.d.ts +675 -0
  155. package/dist/native-yield-userop-account.js +357 -0
  156. package/dist/native-yield-userop-authority.d.ts +214 -0
  157. package/dist/native-yield-userop-authority.js +296 -0
  158. package/dist/native-yield-userop-definition.d.ts +331 -0
  159. package/dist/native-yield-userop-definition.js +105 -0
  160. package/dist/native-yield-userop-hosted.d.ts +3 -0
  161. package/dist/native-yield-userop-hosted.js +71 -0
  162. package/dist/native-yield-userop-index.d.ts +1522 -0
  163. package/dist/native-yield-userop-index.js +142 -0
  164. package/dist/native-yield-userop-mcp-definition.d.ts +1356 -0
  165. package/dist/native-yield-userop-mcp-definition.js +50 -0
  166. package/dist/native-yield-userop-operation.d.ts +845 -0
  167. package/dist/native-yield-userop-operation.js +127 -0
  168. package/dist/native-yield-userop-policy.d.ts +23 -0
  169. package/dist/native-yield-userop-policy.js +25 -0
  170. package/dist/native-yield-userop-registration.d.ts +17 -0
  171. package/dist/native-yield-userop-registration.js +76 -0
  172. package/dist/native-yield-userop-settlement.d.ts +8 -0
  173. package/dist/native-yield-userop-settlement.js +79 -0
  174. package/dist/native-yield-userop-simulation.d.ts +18 -0
  175. package/dist/native-yield-userop-simulation.js +34 -0
  176. package/dist/native-yield-userop.d.ts +35 -0
  177. package/dist/native-yield-userop.js +156 -0
  178. package/dist/native-yield-verify.d.ts +30 -0
  179. package/dist/native-yield-verify.js +141 -0
  180. package/dist/native-yield.d.ts +17 -0
  181. package/dist/native-yield.js +119 -0
  182. package/dist/stdio-main.js +0 -0
  183. package/dist/stock-buy-definition.d.ts +338 -0
  184. package/dist/stock-buy-definition.js +127 -0
  185. package/dist/stock-buy-oracle.d.ts +8 -0
  186. package/dist/stock-buy-oracle.js +22 -0
  187. package/dist/stock-buy.d.ts +17 -0
  188. package/dist/stock-buy.js +164 -0
  189. package/dist/tool-definitions.d.ts +3 -1
  190. package/dist/tool-definitions.js +55 -2
  191. package/dist/vendor/lp-v3/lp-v3-atomic-contract.d.ts +445 -0
  192. package/dist/vendor/lp-v3/lp-v3-atomic-contract.js +90 -0
  193. package/dist/vendor/lp-v3/lp-v3-atomic-evidence.d.ts +14 -0
  194. package/dist/vendor/lp-v3/lp-v3-atomic-evidence.js +82 -0
  195. package/dist/vendor/lp-v3/lp-v3-atomic-index.d.ts +80 -0
  196. package/dist/vendor/lp-v3/lp-v3-atomic-index.js +19 -0
  197. package/dist/vendor/lp-v3/lp-v3-atomic-plan.d.ts +43 -0
  198. package/dist/vendor/lp-v3/lp-v3-atomic-plan.js +112 -0
  199. package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.d.ts +312 -0
  200. package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.js +41 -0
  201. package/dist/vendor/lp-v3/lp-v3-atomic-read-index.d.ts +3 -0
  202. package/dist/vendor/lp-v3/lp-v3-atomic-read-index.js +3 -0
  203. package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.d.ts +49 -0
  204. package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.js +88 -0
  205. package/dist/vendor/lp-v3/lp-v3-atomic-read.d.ts +17 -0
  206. package/dist/vendor/lp-v3/lp-v3-atomic-read.js +232 -0
  207. package/dist/vendor/lp-v3/lp-v3-atomic-settlement.d.ts +105 -0
  208. package/dist/vendor/lp-v3/lp-v3-atomic-settlement.js +162 -0
  209. package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.d.ts +606 -0
  210. package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.js +59 -0
  211. package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.d.ts +168 -0
  212. package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.js +23 -0
  213. package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.d.ts +32 -0
  214. package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.js +228 -0
  215. package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.d.ts +11 -0
  216. package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.js +91 -0
  217. package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.d.ts +9 -0
  218. package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.js +124 -0
  219. package/dist/vendor/lp-v3/lp-v3-contract.d.ts +538 -0
  220. package/dist/vendor/lp-v3/lp-v3-contract.js +137 -0
  221. package/dist/vendor/lp-v3/lp-v3-evidence.d.ts +25 -0
  222. package/dist/vendor/lp-v3/lp-v3-evidence.js +168 -0
  223. package/dist/vendor/lp-v3/lp-v3-plan.d.ts +22 -0
  224. package/dist/vendor/lp-v3/lp-v3-plan.js +135 -0
  225. package/dist/vendor/lp-v3/types.d.ts +131 -0
  226. package/dist/vendor/lp-v3/types.js +6 -0
  227. package/dist/vendor/lp-v3/v4-math.d.ts +18 -0
  228. package/dist/vendor/lp-v3/v4-math.js +90 -0
  229. package/dist/yield-deposit-definition.d.ts +374 -0
  230. package/dist/yield-deposit-definition.js +123 -0
  231. package/dist/yield-deposit.d.ts +16 -0
  232. package/dist/yield-deposit.js +149 -0
  233. package/dist/yield-route-semantics.d.ts +27 -0
  234. package/dist/yield-route-semantics.js +71 -0
  235. package/dist/yield-withdraw-definition.d.ts +357 -0
  236. package/dist/yield-withdraw-definition.js +90 -0
  237. package/dist/yield-withdraw.d.ts +11 -0
  238. package/dist/yield-withdraw.js +122 -0
  239. package/package.json +239 -7
@@ -0,0 +1,936 @@
1
+ /** Public fee terms keep the user's estimate separate from Otto's sponsorship budgets. */
2
+ import { z } from 'zod';
3
+ import { type AccountGasReview } from './execution-account-gas-review.js';
4
+ export declare const ACCOUNT_GAS_FAILURE_CODES: readonly ["ACCOUNT_GAS_REVIEW_REQUIRED", "ACCOUNT_GAS_REVIEW_CHANGED", "ACCOUNT_GAS_REVIEW_STALE", "ACCOUNT_GAS_REVIEW_UNAVAILABLE", "ACCOUNT_GAS_REVIEW_INVALID", "ACCOUNT_GAS_FUNDING_REQUIRED", "ACCOUNT_GAS_SPONSOR_INELIGIBLE", "ACCOUNT_GAS_QUOTE_UNAVAILABLE"];
5
+ export declare const ACCOUNT_GAS_FAILURE_SCHEMA: z.ZodEnum<{
6
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
7
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
8
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
9
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
10
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
11
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
12
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
13
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
14
+ }>;
15
+ export type AccountGasFailure = z.infer<typeof ACCOUNT_GAS_FAILURE_SCHEMA>;
16
+ /** Closed codes only; provider payloads and URLs are never exposed. */
17
+ export declare function accountGasFailure(error: unknown): AccountGasFailure | undefined;
18
+ /** Emitted only before a claim when the affirmative payer statement differs from the owned review. */
19
+ export declare class AccountGasConfirmationRefusal extends Error {
20
+ readonly code: "ACCOUNT_GAS_REVIEW_CHANGED";
21
+ constructor();
22
+ }
23
+ export declare function accountGasPublicSchema(amount: z.ZodString): z.ZodDiscriminatedUnion<[z.ZodObject<{
24
+ payer: z.ZodLiteral<"sponsor">;
25
+ paymentReview: z.ZodOptional<z.ZodObject<{
26
+ version: z.ZodLiteral<1>;
27
+ revision: z.ZodNumber;
28
+ payer: z.ZodEnum<{
29
+ account: "account";
30
+ sponsor: "sponsor";
31
+ }>;
32
+ sponsorStatus: z.ZodEnum<{
33
+ unavailable: "unavailable";
34
+ eligible: "eligible";
35
+ "above-limit": "above-limit";
36
+ "price-unavailable": "price-unavailable";
37
+ }>;
38
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
39
+ quote: z.ZodObject<{
40
+ version: z.ZodLiteral<1>;
41
+ kind: z.ZodLiteral<"estimate">;
42
+ payer: z.ZodLiteral<"user">;
43
+ account: z.ZodString;
44
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
45
+ entryPoint: z.ZodString;
46
+ nativeAsset: z.ZodObject<{
47
+ symbol: z.ZodEnum<{
48
+ ETH: "ETH";
49
+ POL: "POL";
50
+ }>;
51
+ decimals: z.ZodLiteral<18>;
52
+ }, z.core.$strict>;
53
+ callsCommitment: z.ZodString;
54
+ nonce: z.ZodString;
55
+ blockNumber: z.ZodString;
56
+ blockHash: z.ZodString;
57
+ blockTimestampMs: z.ZodNumber;
58
+ observedAtMs: z.ZodNumber;
59
+ expiresAtMs: z.ZodNumber;
60
+ simulation: z.ZodLiteral<"sender-balance-override">;
61
+ providerEstimate: z.ZodObject<{
62
+ blockAnchor: z.ZodLiteral<"unanchored">;
63
+ startedAtMs: z.ZodNumber;
64
+ completedAtMs: z.ZodNumber;
65
+ elapsedMs: z.ZodNumber;
66
+ }, z.core.$strict>;
67
+ gas: z.ZodObject<{
68
+ callGasLimit: z.ZodString;
69
+ verificationGasLimit: z.ZodString;
70
+ preVerificationGas: z.ZodString;
71
+ maxFeePerGasWei: z.ZodString;
72
+ maxPriorityFeePerGasWei: z.ZodString;
73
+ estimatedPrefundWei: z.ZodString;
74
+ reserveWei: z.ZodString;
75
+ estimatedRequiredWei: z.ZodString;
76
+ reserveBps: z.ZodLiteral<"2500">;
77
+ }, z.core.$strict>;
78
+ balance: z.ZodObject<{
79
+ nativeWei: z.ZodString;
80
+ entryPointDepositWei: z.ZodString;
81
+ callValueWei: z.ZodString;
82
+ depositAppliedToGasWei: z.ZodString;
83
+ walletGasRequirementWei: z.ZodString;
84
+ nativeAvailableForGasWei: z.ZodString;
85
+ gasShortfallWei: z.ZodString;
86
+ requiredNativeWei: z.ZodString;
87
+ shortfallWei: z.ZodString;
88
+ }, z.core.$strict>;
89
+ usdPrice: z.ZodOptional<z.ZodObject<{
90
+ amountAtomic: z.ZodString;
91
+ decimals: z.ZodNumber;
92
+ observedAtMs: z.ZodNumber;
93
+ expiresAtMs: z.ZodNumber;
94
+ }, z.core.$strict>>;
95
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
96
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
97
+ kind: z.ZodLiteral<"estimate">;
98
+ simulation: z.ZodLiteral<"paymaster-stub">;
99
+ entryPointVersion: z.ZodLiteral<"0.6">;
100
+ paymaster: z.ZodString;
101
+ sponsorshipPolicyId: z.ZodString;
102
+ paymasterAndDataCommitment: z.ZodString;
103
+ providerEstimate: z.ZodObject<{
104
+ blockAnchor: z.ZodLiteral<"unanchored">;
105
+ startedAtMs: z.ZodNumber;
106
+ completedAtMs: z.ZodNumber;
107
+ elapsedMs: z.ZodNumber;
108
+ }, z.core.$strict>;
109
+ gas: z.ZodObject<{
110
+ callGasLimit: z.ZodString;
111
+ verificationGasLimit: z.ZodString;
112
+ preVerificationGas: z.ZodString;
113
+ maxFeePerGasWei: z.ZodString;
114
+ maxPriorityFeePerGasWei: z.ZodString;
115
+ verificationGasMultiplier: z.ZodLiteral<"3">;
116
+ estimatedPrefundWei: z.ZodString;
117
+ reserveWei: z.ZodString;
118
+ estimatedRequiredWei: z.ZodString;
119
+ reserveBps: z.ZodLiteral<"2500">;
120
+ }, z.core.$strict>;
121
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
122
+ }, z.core.$strict>>;
123
+ }, z.core.$strict>;
124
+ }, z.core.$strict>>;
125
+ maximumCostWei: z.ZodString;
126
+ activationChainHalted: z.ZodOptional<z.ZodLiteral<true>>;
127
+ actualCostWei: z.ZodOptional<z.ZodString>;
128
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
129
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
130
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
131
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
132
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
133
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
134
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
135
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
136
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
137
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
138
+ }>>;
139
+ }, z.core.$strict>, z.ZodObject<{
140
+ payer: z.ZodLiteral<"account">;
141
+ paymentReview: z.ZodObject<{
142
+ version: z.ZodLiteral<1>;
143
+ revision: z.ZodNumber;
144
+ payer: z.ZodEnum<{
145
+ account: "account";
146
+ sponsor: "sponsor";
147
+ }>;
148
+ sponsorStatus: z.ZodEnum<{
149
+ unavailable: "unavailable";
150
+ eligible: "eligible";
151
+ "above-limit": "above-limit";
152
+ "price-unavailable": "price-unavailable";
153
+ }>;
154
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
155
+ quote: z.ZodObject<{
156
+ version: z.ZodLiteral<1>;
157
+ kind: z.ZodLiteral<"estimate">;
158
+ payer: z.ZodLiteral<"user">;
159
+ account: z.ZodString;
160
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
161
+ entryPoint: z.ZodString;
162
+ nativeAsset: z.ZodObject<{
163
+ symbol: z.ZodEnum<{
164
+ ETH: "ETH";
165
+ POL: "POL";
166
+ }>;
167
+ decimals: z.ZodLiteral<18>;
168
+ }, z.core.$strict>;
169
+ callsCommitment: z.ZodString;
170
+ nonce: z.ZodString;
171
+ blockNumber: z.ZodString;
172
+ blockHash: z.ZodString;
173
+ blockTimestampMs: z.ZodNumber;
174
+ observedAtMs: z.ZodNumber;
175
+ expiresAtMs: z.ZodNumber;
176
+ simulation: z.ZodLiteral<"sender-balance-override">;
177
+ providerEstimate: z.ZodObject<{
178
+ blockAnchor: z.ZodLiteral<"unanchored">;
179
+ startedAtMs: z.ZodNumber;
180
+ completedAtMs: z.ZodNumber;
181
+ elapsedMs: z.ZodNumber;
182
+ }, z.core.$strict>;
183
+ gas: z.ZodObject<{
184
+ callGasLimit: z.ZodString;
185
+ verificationGasLimit: z.ZodString;
186
+ preVerificationGas: z.ZodString;
187
+ maxFeePerGasWei: z.ZodString;
188
+ maxPriorityFeePerGasWei: z.ZodString;
189
+ estimatedPrefundWei: z.ZodString;
190
+ reserveWei: z.ZodString;
191
+ estimatedRequiredWei: z.ZodString;
192
+ reserveBps: z.ZodLiteral<"2500">;
193
+ }, z.core.$strict>;
194
+ balance: z.ZodObject<{
195
+ nativeWei: z.ZodString;
196
+ entryPointDepositWei: z.ZodString;
197
+ callValueWei: z.ZodString;
198
+ depositAppliedToGasWei: z.ZodString;
199
+ walletGasRequirementWei: z.ZodString;
200
+ nativeAvailableForGasWei: z.ZodString;
201
+ gasShortfallWei: z.ZodString;
202
+ requiredNativeWei: z.ZodString;
203
+ shortfallWei: z.ZodString;
204
+ }, z.core.$strict>;
205
+ usdPrice: z.ZodOptional<z.ZodObject<{
206
+ amountAtomic: z.ZodString;
207
+ decimals: z.ZodNumber;
208
+ observedAtMs: z.ZodNumber;
209
+ expiresAtMs: z.ZodNumber;
210
+ }, z.core.$strict>>;
211
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
212
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
213
+ kind: z.ZodLiteral<"estimate">;
214
+ simulation: z.ZodLiteral<"paymaster-stub">;
215
+ entryPointVersion: z.ZodLiteral<"0.6">;
216
+ paymaster: z.ZodString;
217
+ sponsorshipPolicyId: z.ZodString;
218
+ paymasterAndDataCommitment: z.ZodString;
219
+ providerEstimate: z.ZodObject<{
220
+ blockAnchor: z.ZodLiteral<"unanchored">;
221
+ startedAtMs: z.ZodNumber;
222
+ completedAtMs: z.ZodNumber;
223
+ elapsedMs: z.ZodNumber;
224
+ }, z.core.$strict>;
225
+ gas: z.ZodObject<{
226
+ callGasLimit: z.ZodString;
227
+ verificationGasLimit: z.ZodString;
228
+ preVerificationGas: z.ZodString;
229
+ maxFeePerGasWei: z.ZodString;
230
+ maxPriorityFeePerGasWei: z.ZodString;
231
+ verificationGasMultiplier: z.ZodLiteral<"3">;
232
+ estimatedPrefundWei: z.ZodString;
233
+ reserveWei: z.ZodString;
234
+ estimatedRequiredWei: z.ZodString;
235
+ reserveBps: z.ZodLiteral<"2500">;
236
+ }, z.core.$strict>;
237
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
238
+ }, z.core.$strict>>;
239
+ }, z.core.$strict>;
240
+ }, z.core.$strict>;
241
+ actualCostWei: z.ZodOptional<z.ZodString>;
242
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
243
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
244
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
245
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
246
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
247
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
248
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
249
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
250
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
251
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
252
+ }>>;
253
+ }, z.core.$strict>], "payer">;
254
+ export declare function accountGasBudgetPublicSchema(amount: z.ZodString): z.ZodDiscriminatedUnion<[z.ZodObject<{
255
+ maximumUserCostWei: z.ZodString;
256
+ maximumActivationCostWei: z.ZodString;
257
+ payer: z.ZodLiteral<"sponsor">;
258
+ paymentReview: z.ZodOptional<z.ZodObject<{
259
+ version: z.ZodLiteral<1>;
260
+ revision: z.ZodNumber;
261
+ payer: z.ZodEnum<{
262
+ account: "account";
263
+ sponsor: "sponsor";
264
+ }>;
265
+ sponsorStatus: z.ZodEnum<{
266
+ unavailable: "unavailable";
267
+ eligible: "eligible";
268
+ "above-limit": "above-limit";
269
+ "price-unavailable": "price-unavailable";
270
+ }>;
271
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
272
+ quote: z.ZodObject<{
273
+ version: z.ZodLiteral<1>;
274
+ kind: z.ZodLiteral<"estimate">;
275
+ payer: z.ZodLiteral<"user">;
276
+ account: z.ZodString;
277
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
278
+ entryPoint: z.ZodString;
279
+ nativeAsset: z.ZodObject<{
280
+ symbol: z.ZodEnum<{
281
+ ETH: "ETH";
282
+ POL: "POL";
283
+ }>;
284
+ decimals: z.ZodLiteral<18>;
285
+ }, z.core.$strict>;
286
+ callsCommitment: z.ZodString;
287
+ nonce: z.ZodString;
288
+ blockNumber: z.ZodString;
289
+ blockHash: z.ZodString;
290
+ blockTimestampMs: z.ZodNumber;
291
+ observedAtMs: z.ZodNumber;
292
+ expiresAtMs: z.ZodNumber;
293
+ simulation: z.ZodLiteral<"sender-balance-override">;
294
+ providerEstimate: z.ZodObject<{
295
+ blockAnchor: z.ZodLiteral<"unanchored">;
296
+ startedAtMs: z.ZodNumber;
297
+ completedAtMs: z.ZodNumber;
298
+ elapsedMs: z.ZodNumber;
299
+ }, z.core.$strict>;
300
+ gas: z.ZodObject<{
301
+ callGasLimit: z.ZodString;
302
+ verificationGasLimit: z.ZodString;
303
+ preVerificationGas: z.ZodString;
304
+ maxFeePerGasWei: z.ZodString;
305
+ maxPriorityFeePerGasWei: z.ZodString;
306
+ estimatedPrefundWei: z.ZodString;
307
+ reserveWei: z.ZodString;
308
+ estimatedRequiredWei: z.ZodString;
309
+ reserveBps: z.ZodLiteral<"2500">;
310
+ }, z.core.$strict>;
311
+ balance: z.ZodObject<{
312
+ nativeWei: z.ZodString;
313
+ entryPointDepositWei: z.ZodString;
314
+ callValueWei: z.ZodString;
315
+ depositAppliedToGasWei: z.ZodString;
316
+ walletGasRequirementWei: z.ZodString;
317
+ nativeAvailableForGasWei: z.ZodString;
318
+ gasShortfallWei: z.ZodString;
319
+ requiredNativeWei: z.ZodString;
320
+ shortfallWei: z.ZodString;
321
+ }, z.core.$strict>;
322
+ usdPrice: z.ZodOptional<z.ZodObject<{
323
+ amountAtomic: z.ZodString;
324
+ decimals: z.ZodNumber;
325
+ observedAtMs: z.ZodNumber;
326
+ expiresAtMs: z.ZodNumber;
327
+ }, z.core.$strict>>;
328
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
329
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
330
+ kind: z.ZodLiteral<"estimate">;
331
+ simulation: z.ZodLiteral<"paymaster-stub">;
332
+ entryPointVersion: z.ZodLiteral<"0.6">;
333
+ paymaster: z.ZodString;
334
+ sponsorshipPolicyId: z.ZodString;
335
+ paymasterAndDataCommitment: z.ZodString;
336
+ providerEstimate: z.ZodObject<{
337
+ blockAnchor: z.ZodLiteral<"unanchored">;
338
+ startedAtMs: z.ZodNumber;
339
+ completedAtMs: z.ZodNumber;
340
+ elapsedMs: z.ZodNumber;
341
+ }, z.core.$strict>;
342
+ gas: z.ZodObject<{
343
+ callGasLimit: z.ZodString;
344
+ verificationGasLimit: z.ZodString;
345
+ preVerificationGas: z.ZodString;
346
+ maxFeePerGasWei: z.ZodString;
347
+ maxPriorityFeePerGasWei: z.ZodString;
348
+ verificationGasMultiplier: z.ZodLiteral<"3">;
349
+ estimatedPrefundWei: z.ZodString;
350
+ reserveWei: z.ZodString;
351
+ estimatedRequiredWei: z.ZodString;
352
+ reserveBps: z.ZodLiteral<"2500">;
353
+ }, z.core.$strict>;
354
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
355
+ }, z.core.$strict>>;
356
+ }, z.core.$strict>;
357
+ }, z.core.$strict>>;
358
+ maximumCostWei: z.ZodString;
359
+ activationChainHalted: z.ZodOptional<z.ZodLiteral<true>>;
360
+ actualCostWei: z.ZodOptional<z.ZodString>;
361
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
362
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
363
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
364
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
365
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
366
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
367
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
368
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
369
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
370
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
371
+ }>>;
372
+ }, z.core.$strict>, z.ZodObject<{
373
+ payer: z.ZodLiteral<"account">;
374
+ paymentReview: z.ZodObject<{
375
+ version: z.ZodLiteral<1>;
376
+ revision: z.ZodNumber;
377
+ payer: z.ZodEnum<{
378
+ account: "account";
379
+ sponsor: "sponsor";
380
+ }>;
381
+ sponsorStatus: z.ZodEnum<{
382
+ unavailable: "unavailable";
383
+ eligible: "eligible";
384
+ "above-limit": "above-limit";
385
+ "price-unavailable": "price-unavailable";
386
+ }>;
387
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
388
+ quote: z.ZodObject<{
389
+ version: z.ZodLiteral<1>;
390
+ kind: z.ZodLiteral<"estimate">;
391
+ payer: z.ZodLiteral<"user">;
392
+ account: z.ZodString;
393
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
394
+ entryPoint: z.ZodString;
395
+ nativeAsset: z.ZodObject<{
396
+ symbol: z.ZodEnum<{
397
+ ETH: "ETH";
398
+ POL: "POL";
399
+ }>;
400
+ decimals: z.ZodLiteral<18>;
401
+ }, z.core.$strict>;
402
+ callsCommitment: z.ZodString;
403
+ nonce: z.ZodString;
404
+ blockNumber: z.ZodString;
405
+ blockHash: z.ZodString;
406
+ blockTimestampMs: z.ZodNumber;
407
+ observedAtMs: z.ZodNumber;
408
+ expiresAtMs: z.ZodNumber;
409
+ simulation: z.ZodLiteral<"sender-balance-override">;
410
+ providerEstimate: z.ZodObject<{
411
+ blockAnchor: z.ZodLiteral<"unanchored">;
412
+ startedAtMs: z.ZodNumber;
413
+ completedAtMs: z.ZodNumber;
414
+ elapsedMs: z.ZodNumber;
415
+ }, z.core.$strict>;
416
+ gas: z.ZodObject<{
417
+ callGasLimit: z.ZodString;
418
+ verificationGasLimit: z.ZodString;
419
+ preVerificationGas: z.ZodString;
420
+ maxFeePerGasWei: z.ZodString;
421
+ maxPriorityFeePerGasWei: z.ZodString;
422
+ estimatedPrefundWei: z.ZodString;
423
+ reserveWei: z.ZodString;
424
+ estimatedRequiredWei: z.ZodString;
425
+ reserveBps: z.ZodLiteral<"2500">;
426
+ }, z.core.$strict>;
427
+ balance: z.ZodObject<{
428
+ nativeWei: z.ZodString;
429
+ entryPointDepositWei: z.ZodString;
430
+ callValueWei: z.ZodString;
431
+ depositAppliedToGasWei: z.ZodString;
432
+ walletGasRequirementWei: z.ZodString;
433
+ nativeAvailableForGasWei: z.ZodString;
434
+ gasShortfallWei: z.ZodString;
435
+ requiredNativeWei: z.ZodString;
436
+ shortfallWei: z.ZodString;
437
+ }, z.core.$strict>;
438
+ usdPrice: z.ZodOptional<z.ZodObject<{
439
+ amountAtomic: z.ZodString;
440
+ decimals: z.ZodNumber;
441
+ observedAtMs: z.ZodNumber;
442
+ expiresAtMs: z.ZodNumber;
443
+ }, z.core.$strict>>;
444
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
445
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
446
+ kind: z.ZodLiteral<"estimate">;
447
+ simulation: z.ZodLiteral<"paymaster-stub">;
448
+ entryPointVersion: z.ZodLiteral<"0.6">;
449
+ paymaster: z.ZodString;
450
+ sponsorshipPolicyId: z.ZodString;
451
+ paymasterAndDataCommitment: z.ZodString;
452
+ providerEstimate: z.ZodObject<{
453
+ blockAnchor: z.ZodLiteral<"unanchored">;
454
+ startedAtMs: z.ZodNumber;
455
+ completedAtMs: z.ZodNumber;
456
+ elapsedMs: z.ZodNumber;
457
+ }, z.core.$strict>;
458
+ gas: z.ZodObject<{
459
+ callGasLimit: z.ZodString;
460
+ verificationGasLimit: z.ZodString;
461
+ preVerificationGas: z.ZodString;
462
+ maxFeePerGasWei: z.ZodString;
463
+ maxPriorityFeePerGasWei: z.ZodString;
464
+ verificationGasMultiplier: z.ZodLiteral<"3">;
465
+ estimatedPrefundWei: z.ZodString;
466
+ reserveWei: z.ZodString;
467
+ estimatedRequiredWei: z.ZodString;
468
+ reserveBps: z.ZodLiteral<"2500">;
469
+ }, z.core.$strict>;
470
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
471
+ }, z.core.$strict>>;
472
+ }, z.core.$strict>;
473
+ }, z.core.$strict>;
474
+ actualCostWei: z.ZodOptional<z.ZodString>;
475
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
476
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
477
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
478
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
479
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
480
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
481
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
482
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
483
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
484
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
485
+ }>>;
486
+ }, z.core.$strict>], "payer">;
487
+ export declare const ACCOUNT_GAS_PUBLIC_SCHEMA: z.ZodDiscriminatedUnion<[z.ZodObject<{
488
+ payer: z.ZodLiteral<"sponsor">;
489
+ paymentReview: z.ZodOptional<z.ZodObject<{
490
+ version: z.ZodLiteral<1>;
491
+ revision: z.ZodNumber;
492
+ payer: z.ZodEnum<{
493
+ account: "account";
494
+ sponsor: "sponsor";
495
+ }>;
496
+ sponsorStatus: z.ZodEnum<{
497
+ unavailable: "unavailable";
498
+ eligible: "eligible";
499
+ "above-limit": "above-limit";
500
+ "price-unavailable": "price-unavailable";
501
+ }>;
502
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
503
+ quote: z.ZodObject<{
504
+ version: z.ZodLiteral<1>;
505
+ kind: z.ZodLiteral<"estimate">;
506
+ payer: z.ZodLiteral<"user">;
507
+ account: z.ZodString;
508
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
509
+ entryPoint: z.ZodString;
510
+ nativeAsset: z.ZodObject<{
511
+ symbol: z.ZodEnum<{
512
+ ETH: "ETH";
513
+ POL: "POL";
514
+ }>;
515
+ decimals: z.ZodLiteral<18>;
516
+ }, z.core.$strict>;
517
+ callsCommitment: z.ZodString;
518
+ nonce: z.ZodString;
519
+ blockNumber: z.ZodString;
520
+ blockHash: z.ZodString;
521
+ blockTimestampMs: z.ZodNumber;
522
+ observedAtMs: z.ZodNumber;
523
+ expiresAtMs: z.ZodNumber;
524
+ simulation: z.ZodLiteral<"sender-balance-override">;
525
+ providerEstimate: z.ZodObject<{
526
+ blockAnchor: z.ZodLiteral<"unanchored">;
527
+ startedAtMs: z.ZodNumber;
528
+ completedAtMs: z.ZodNumber;
529
+ elapsedMs: z.ZodNumber;
530
+ }, z.core.$strict>;
531
+ gas: z.ZodObject<{
532
+ callGasLimit: z.ZodString;
533
+ verificationGasLimit: z.ZodString;
534
+ preVerificationGas: z.ZodString;
535
+ maxFeePerGasWei: z.ZodString;
536
+ maxPriorityFeePerGasWei: z.ZodString;
537
+ estimatedPrefundWei: z.ZodString;
538
+ reserveWei: z.ZodString;
539
+ estimatedRequiredWei: z.ZodString;
540
+ reserveBps: z.ZodLiteral<"2500">;
541
+ }, z.core.$strict>;
542
+ balance: z.ZodObject<{
543
+ nativeWei: z.ZodString;
544
+ entryPointDepositWei: z.ZodString;
545
+ callValueWei: z.ZodString;
546
+ depositAppliedToGasWei: z.ZodString;
547
+ walletGasRequirementWei: z.ZodString;
548
+ nativeAvailableForGasWei: z.ZodString;
549
+ gasShortfallWei: z.ZodString;
550
+ requiredNativeWei: z.ZodString;
551
+ shortfallWei: z.ZodString;
552
+ }, z.core.$strict>;
553
+ usdPrice: z.ZodOptional<z.ZodObject<{
554
+ amountAtomic: z.ZodString;
555
+ decimals: z.ZodNumber;
556
+ observedAtMs: z.ZodNumber;
557
+ expiresAtMs: z.ZodNumber;
558
+ }, z.core.$strict>>;
559
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
560
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
561
+ kind: z.ZodLiteral<"estimate">;
562
+ simulation: z.ZodLiteral<"paymaster-stub">;
563
+ entryPointVersion: z.ZodLiteral<"0.6">;
564
+ paymaster: z.ZodString;
565
+ sponsorshipPolicyId: z.ZodString;
566
+ paymasterAndDataCommitment: z.ZodString;
567
+ providerEstimate: z.ZodObject<{
568
+ blockAnchor: z.ZodLiteral<"unanchored">;
569
+ startedAtMs: z.ZodNumber;
570
+ completedAtMs: z.ZodNumber;
571
+ elapsedMs: z.ZodNumber;
572
+ }, z.core.$strict>;
573
+ gas: z.ZodObject<{
574
+ callGasLimit: z.ZodString;
575
+ verificationGasLimit: z.ZodString;
576
+ preVerificationGas: z.ZodString;
577
+ maxFeePerGasWei: z.ZodString;
578
+ maxPriorityFeePerGasWei: z.ZodString;
579
+ verificationGasMultiplier: z.ZodLiteral<"3">;
580
+ estimatedPrefundWei: z.ZodString;
581
+ reserveWei: z.ZodString;
582
+ estimatedRequiredWei: z.ZodString;
583
+ reserveBps: z.ZodLiteral<"2500">;
584
+ }, z.core.$strict>;
585
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
586
+ }, z.core.$strict>>;
587
+ }, z.core.$strict>;
588
+ }, z.core.$strict>>;
589
+ maximumCostWei: z.ZodString;
590
+ activationChainHalted: z.ZodOptional<z.ZodLiteral<true>>;
591
+ actualCostWei: z.ZodOptional<z.ZodString>;
592
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
593
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
594
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
595
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
596
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
597
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
598
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
599
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
600
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
601
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
602
+ }>>;
603
+ }, z.core.$strict>, z.ZodObject<{
604
+ payer: z.ZodLiteral<"account">;
605
+ paymentReview: z.ZodObject<{
606
+ version: z.ZodLiteral<1>;
607
+ revision: z.ZodNumber;
608
+ payer: z.ZodEnum<{
609
+ account: "account";
610
+ sponsor: "sponsor";
611
+ }>;
612
+ sponsorStatus: z.ZodEnum<{
613
+ unavailable: "unavailable";
614
+ eligible: "eligible";
615
+ "above-limit": "above-limit";
616
+ "price-unavailable": "price-unavailable";
617
+ }>;
618
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
619
+ quote: z.ZodObject<{
620
+ version: z.ZodLiteral<1>;
621
+ kind: z.ZodLiteral<"estimate">;
622
+ payer: z.ZodLiteral<"user">;
623
+ account: z.ZodString;
624
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
625
+ entryPoint: z.ZodString;
626
+ nativeAsset: z.ZodObject<{
627
+ symbol: z.ZodEnum<{
628
+ ETH: "ETH";
629
+ POL: "POL";
630
+ }>;
631
+ decimals: z.ZodLiteral<18>;
632
+ }, z.core.$strict>;
633
+ callsCommitment: z.ZodString;
634
+ nonce: z.ZodString;
635
+ blockNumber: z.ZodString;
636
+ blockHash: z.ZodString;
637
+ blockTimestampMs: z.ZodNumber;
638
+ observedAtMs: z.ZodNumber;
639
+ expiresAtMs: z.ZodNumber;
640
+ simulation: z.ZodLiteral<"sender-balance-override">;
641
+ providerEstimate: z.ZodObject<{
642
+ blockAnchor: z.ZodLiteral<"unanchored">;
643
+ startedAtMs: z.ZodNumber;
644
+ completedAtMs: z.ZodNumber;
645
+ elapsedMs: z.ZodNumber;
646
+ }, z.core.$strict>;
647
+ gas: z.ZodObject<{
648
+ callGasLimit: z.ZodString;
649
+ verificationGasLimit: z.ZodString;
650
+ preVerificationGas: z.ZodString;
651
+ maxFeePerGasWei: z.ZodString;
652
+ maxPriorityFeePerGasWei: z.ZodString;
653
+ estimatedPrefundWei: z.ZodString;
654
+ reserveWei: z.ZodString;
655
+ estimatedRequiredWei: z.ZodString;
656
+ reserveBps: z.ZodLiteral<"2500">;
657
+ }, z.core.$strict>;
658
+ balance: z.ZodObject<{
659
+ nativeWei: z.ZodString;
660
+ entryPointDepositWei: z.ZodString;
661
+ callValueWei: z.ZodString;
662
+ depositAppliedToGasWei: z.ZodString;
663
+ walletGasRequirementWei: z.ZodString;
664
+ nativeAvailableForGasWei: z.ZodString;
665
+ gasShortfallWei: z.ZodString;
666
+ requiredNativeWei: z.ZodString;
667
+ shortfallWei: z.ZodString;
668
+ }, z.core.$strict>;
669
+ usdPrice: z.ZodOptional<z.ZodObject<{
670
+ amountAtomic: z.ZodString;
671
+ decimals: z.ZodNumber;
672
+ observedAtMs: z.ZodNumber;
673
+ expiresAtMs: z.ZodNumber;
674
+ }, z.core.$strict>>;
675
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
676
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
677
+ kind: z.ZodLiteral<"estimate">;
678
+ simulation: z.ZodLiteral<"paymaster-stub">;
679
+ entryPointVersion: z.ZodLiteral<"0.6">;
680
+ paymaster: z.ZodString;
681
+ sponsorshipPolicyId: z.ZodString;
682
+ paymasterAndDataCommitment: z.ZodString;
683
+ providerEstimate: z.ZodObject<{
684
+ blockAnchor: z.ZodLiteral<"unanchored">;
685
+ startedAtMs: z.ZodNumber;
686
+ completedAtMs: z.ZodNumber;
687
+ elapsedMs: z.ZodNumber;
688
+ }, z.core.$strict>;
689
+ gas: z.ZodObject<{
690
+ callGasLimit: z.ZodString;
691
+ verificationGasLimit: z.ZodString;
692
+ preVerificationGas: z.ZodString;
693
+ maxFeePerGasWei: z.ZodString;
694
+ maxPriorityFeePerGasWei: z.ZodString;
695
+ verificationGasMultiplier: z.ZodLiteral<"3">;
696
+ estimatedPrefundWei: z.ZodString;
697
+ reserveWei: z.ZodString;
698
+ estimatedRequiredWei: z.ZodString;
699
+ reserveBps: z.ZodLiteral<"2500">;
700
+ }, z.core.$strict>;
701
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
702
+ }, z.core.$strict>>;
703
+ }, z.core.$strict>;
704
+ }, z.core.$strict>;
705
+ actualCostWei: z.ZodOptional<z.ZodString>;
706
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
707
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
708
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
709
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
710
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
711
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
712
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
713
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
714
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
715
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
716
+ }>>;
717
+ }, z.core.$strict>], "payer">;
718
+ export declare function accountGasViewMatches(value: {
719
+ account: string;
720
+ chainId: number;
721
+ gas: {
722
+ payer: string;
723
+ paymentReview?: AccountGasReview;
724
+ };
725
+ }): boolean;
726
+ export declare function accountGasView(operation: {
727
+ gasReview?: AccountGasReview;
728
+ gasReviewFailure?: AccountGasFailure;
729
+ context: {
730
+ activation: {
731
+ gasPaymentReviewEnabled?: true;
732
+ };
733
+ };
734
+ receipt?: {
735
+ actualGasCostWei: string;
736
+ };
737
+ gasCapBreach?: {
738
+ actualGasCostWei: string;
739
+ };
740
+ }, budgets: {
741
+ maximumCostWei: string;
742
+ maximumUserCostWei?: string;
743
+ maximumActivationCostWei?: string;
744
+ }): {
745
+ payer: "account";
746
+ paymentReview: {
747
+ version: 1;
748
+ revision: number;
749
+ payer: "account" | "sponsor";
750
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
751
+ subsidyCapUsdMicros: "100000";
752
+ quote: {
753
+ version: 1;
754
+ kind: "estimate";
755
+ payer: "user";
756
+ account: string;
757
+ chainId: 1 | 8453 | 42161 | 10 | 137;
758
+ entryPoint: string;
759
+ nativeAsset: {
760
+ symbol: "ETH" | "POL";
761
+ decimals: 18;
762
+ };
763
+ callsCommitment: string;
764
+ nonce: string;
765
+ blockNumber: string;
766
+ blockHash: string;
767
+ blockTimestampMs: number;
768
+ observedAtMs: number;
769
+ expiresAtMs: number;
770
+ simulation: "sender-balance-override";
771
+ providerEstimate: {
772
+ blockAnchor: "unanchored";
773
+ startedAtMs: number;
774
+ completedAtMs: number;
775
+ elapsedMs: number;
776
+ };
777
+ gas: {
778
+ callGasLimit: string;
779
+ verificationGasLimit: string;
780
+ preVerificationGas: string;
781
+ maxFeePerGasWei: string;
782
+ maxPriorityFeePerGasWei: string;
783
+ estimatedPrefundWei: string;
784
+ reserveWei: string;
785
+ estimatedRequiredWei: string;
786
+ reserveBps: "2500";
787
+ };
788
+ balance: {
789
+ nativeWei: string;
790
+ entryPointDepositWei: string;
791
+ callValueWei: string;
792
+ depositAppliedToGasWei: string;
793
+ walletGasRequirementWei: string;
794
+ nativeAvailableForGasWei: string;
795
+ gasShortfallWei: string;
796
+ requiredNativeWei: string;
797
+ shortfallWei: string;
798
+ };
799
+ usdPrice?: {
800
+ amountAtomic: string;
801
+ decimals: number;
802
+ observedAtMs: number;
803
+ expiresAtMs: number;
804
+ } | undefined;
805
+ estimatedGasCostUsdMicros?: string | undefined;
806
+ sponsoredEstimate?: {
807
+ kind: "estimate";
808
+ simulation: "paymaster-stub";
809
+ entryPointVersion: "0.6";
810
+ paymaster: string;
811
+ sponsorshipPolicyId: string;
812
+ paymasterAndDataCommitment: string;
813
+ providerEstimate: {
814
+ blockAnchor: "unanchored";
815
+ startedAtMs: number;
816
+ completedAtMs: number;
817
+ elapsedMs: number;
818
+ };
819
+ gas: {
820
+ callGasLimit: string;
821
+ verificationGasLimit: string;
822
+ preVerificationGas: string;
823
+ maxFeePerGasWei: string;
824
+ maxPriorityFeePerGasWei: string;
825
+ verificationGasMultiplier: "3";
826
+ estimatedPrefundWei: string;
827
+ reserveWei: string;
828
+ estimatedRequiredWei: string;
829
+ reserveBps: "2500";
830
+ };
831
+ estimatedGasCostUsdMicros?: string | undefined;
832
+ } | undefined;
833
+ };
834
+ };
835
+ actualCostWei?: string | undefined;
836
+ reviewFailure?: "ACCOUNT_GAS_QUOTE_UNAVAILABLE" | "ACCOUNT_GAS_REVIEW_INVALID" | "ACCOUNT_GAS_REVIEW_STALE" | "ACCOUNT_GAS_SPONSOR_INELIGIBLE" | "ACCOUNT_GAS_REVIEW_REQUIRED" | "ACCOUNT_GAS_REVIEW_CHANGED" | "ACCOUNT_GAS_REVIEW_UNAVAILABLE" | "ACCOUNT_GAS_FUNDING_REQUIRED" | undefined;
837
+ reviewRequired?: true | undefined;
838
+ } | {
839
+ actualCostWei?: string | undefined;
840
+ activationChainHalted?: true | undefined;
841
+ maximumCostWei: string;
842
+ maximumUserCostWei?: string;
843
+ maximumActivationCostWei?: string;
844
+ paymentReview?: {
845
+ version: 1;
846
+ revision: number;
847
+ payer: "account" | "sponsor";
848
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
849
+ subsidyCapUsdMicros: "100000";
850
+ quote: {
851
+ version: 1;
852
+ kind: "estimate";
853
+ payer: "user";
854
+ account: string;
855
+ chainId: 1 | 8453 | 42161 | 10 | 137;
856
+ entryPoint: string;
857
+ nativeAsset: {
858
+ symbol: "ETH" | "POL";
859
+ decimals: 18;
860
+ };
861
+ callsCommitment: string;
862
+ nonce: string;
863
+ blockNumber: string;
864
+ blockHash: string;
865
+ blockTimestampMs: number;
866
+ observedAtMs: number;
867
+ expiresAtMs: number;
868
+ simulation: "sender-balance-override";
869
+ providerEstimate: {
870
+ blockAnchor: "unanchored";
871
+ startedAtMs: number;
872
+ completedAtMs: number;
873
+ elapsedMs: number;
874
+ };
875
+ gas: {
876
+ callGasLimit: string;
877
+ verificationGasLimit: string;
878
+ preVerificationGas: string;
879
+ maxFeePerGasWei: string;
880
+ maxPriorityFeePerGasWei: string;
881
+ estimatedPrefundWei: string;
882
+ reserveWei: string;
883
+ estimatedRequiredWei: string;
884
+ reserveBps: "2500";
885
+ };
886
+ balance: {
887
+ nativeWei: string;
888
+ entryPointDepositWei: string;
889
+ callValueWei: string;
890
+ depositAppliedToGasWei: string;
891
+ walletGasRequirementWei: string;
892
+ nativeAvailableForGasWei: string;
893
+ gasShortfallWei: string;
894
+ requiredNativeWei: string;
895
+ shortfallWei: string;
896
+ };
897
+ usdPrice?: {
898
+ amountAtomic: string;
899
+ decimals: number;
900
+ observedAtMs: number;
901
+ expiresAtMs: number;
902
+ } | undefined;
903
+ estimatedGasCostUsdMicros?: string | undefined;
904
+ sponsoredEstimate?: {
905
+ kind: "estimate";
906
+ simulation: "paymaster-stub";
907
+ entryPointVersion: "0.6";
908
+ paymaster: string;
909
+ sponsorshipPolicyId: string;
910
+ paymasterAndDataCommitment: string;
911
+ providerEstimate: {
912
+ blockAnchor: "unanchored";
913
+ startedAtMs: number;
914
+ completedAtMs: number;
915
+ elapsedMs: number;
916
+ };
917
+ gas: {
918
+ callGasLimit: string;
919
+ verificationGasLimit: string;
920
+ preVerificationGas: string;
921
+ maxFeePerGasWei: string;
922
+ maxPriorityFeePerGasWei: string;
923
+ verificationGasMultiplier: "3";
924
+ estimatedPrefundWei: string;
925
+ reserveWei: string;
926
+ estimatedRequiredWei: string;
927
+ reserveBps: "2500";
928
+ };
929
+ estimatedGasCostUsdMicros?: string | undefined;
930
+ } | undefined;
931
+ };
932
+ } | undefined;
933
+ payer: "sponsor";
934
+ reviewFailure?: "ACCOUNT_GAS_QUOTE_UNAVAILABLE" | "ACCOUNT_GAS_REVIEW_INVALID" | "ACCOUNT_GAS_REVIEW_STALE" | "ACCOUNT_GAS_SPONSOR_INELIGIBLE" | "ACCOUNT_GAS_REVIEW_REQUIRED" | "ACCOUNT_GAS_REVIEW_CHANGED" | "ACCOUNT_GAS_REVIEW_UNAVAILABLE" | "ACCOUNT_GAS_FUNDING_REQUIRED" | undefined;
935
+ reviewRequired?: true | undefined;
936
+ };