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,461 @@
1
+ import { AccountGasPaymentRuntime } from './execution-account-gas-runtime.js';
2
+ import { z } from 'zod';
3
+ import { LpUserOpAuthorityIssuer } from './lp-userop-authority.js';
4
+ import { type LpUserOpRuntime } from './lp-userop.js';
5
+ import { type LpUserOpOperation } from './lp-userop-operation.js';
6
+ import { SponsoredAccountRuntime } from './execution-sponsored-runtime.js';
7
+ import type { SponsoredOperationStore } from './execution-sponsored-store.js';
8
+ import type { ExecutionWorkerGuardStore } from './execution-worker-guard.js';
9
+ import type { createSponsoredCdpTransport } from './execution-sponsored-transport.js';
10
+ /** The canonical protocol operation ID is generated by this service, never accepted from the caller. */
11
+ export declare const LP_USEROP_PUBLIC_INTENT_SCHEMA: z.ZodObject<{
12
+ protocol: z.ZodLiteral<"uniswap-v3">;
13
+ chainId: z.ZodLiteral<8453>;
14
+ action: z.ZodLiteral<"collect">;
15
+ schemaVersion: z.ZodLiteral<3>;
16
+ recipient: z.ZodString;
17
+ fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
18
+ deadline: z.ZodNumber;
19
+ account: z.ZodString;
20
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
21
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
22
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
23
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
24
+ pool: z.ZodString;
25
+ tickLower: z.ZodNumber;
26
+ tickUpper: z.ZodNumber;
27
+ nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
28
+ guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
29
+ tokenId: z.ZodString;
30
+ amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
31
+ amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
32
+ }, z.core.$strict>;
33
+ export declare const LP_USEROP_ACCOUNT_PREPARE_INPUT: z.ZodObject<{
34
+ accessToken: z.ZodString;
35
+ input: z.ZodObject<{
36
+ protocol: z.ZodLiteral<"uniswap-v3">;
37
+ chainId: z.ZodLiteral<8453>;
38
+ action: z.ZodLiteral<"collect">;
39
+ schemaVersion: z.ZodLiteral<3>;
40
+ recipient: z.ZodString;
41
+ fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
42
+ deadline: z.ZodNumber;
43
+ account: z.ZodString;
44
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
45
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
46
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
47
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
48
+ pool: z.ZodString;
49
+ tickLower: z.ZodNumber;
50
+ tickUpper: z.ZodNumber;
51
+ nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
52
+ guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
53
+ tokenId: z.ZodString;
54
+ amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
55
+ amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
56
+ }, z.core.$strict>;
57
+ }, z.core.$strict>;
58
+ export declare const LP_USEROP_ACCOUNT_READ_INPUT: z.ZodObject<{
59
+ accessToken: z.ZodString;
60
+ operationId: z.ZodString;
61
+ }, z.core.$strict>;
62
+ export declare const LP_USEROP_ACCOUNT_SUBMIT_INPUT: z.ZodObject<{
63
+ accessToken: z.ZodString;
64
+ operationId: z.ZodString;
65
+ envelopeCommitment: z.ZodString;
66
+ reviewCommitment: z.ZodString;
67
+ confirmation: z.ZodEnum<{
68
+ "I reviewed this position collection and sponsored atomic batch": "I reviewed this position collection and sponsored atomic batch";
69
+ "I reviewed this position collection and account-paid atomic batch": "I reviewed this position collection and account-paid atomic batch";
70
+ }>;
71
+ }, z.core.$strict>;
72
+ export declare const LP_USEROP_ACCOUNT_OPERATION_RESULT: z.ZodObject<{
73
+ schemaVersion: z.ZodLiteral<"1">;
74
+ kind: z.ZodLiteral<"lp-collect-userop">;
75
+ operationId: z.ZodString;
76
+ account: z.ZodString;
77
+ chainId: z.ZodLiteral<8453>;
78
+ protocol: z.ZodLiteral<"uniswap-v3">;
79
+ action: z.ZodLiteral<"guarded-collect">;
80
+ pool: z.ZodString;
81
+ tokenId: z.ZodString;
82
+ state: z.ZodEnum<{
83
+ unknown: "unknown";
84
+ submitted: "submitted";
85
+ completed: "completed";
86
+ review: "review";
87
+ active: "active";
88
+ failed: "failed";
89
+ }>;
90
+ reviewConsumed: z.ZodBoolean;
91
+ envelopeCommitment: z.ZodString;
92
+ reviewCommitment: z.ZodString;
93
+ validUntilMs: z.ZodNumber;
94
+ collection: z.ZodObject<{
95
+ tokens: z.ZodTuple<[z.ZodString, z.ZodString], null>;
96
+ maximum: z.ZodTuple<[z.ZodString, z.ZodString], null>;
97
+ minimum: z.ZodTuple<[z.ZodString, z.ZodString], null>;
98
+ tokensOwedAtReview: z.ZodTuple<[z.ZodString, z.ZodString], null>;
99
+ maximumAuthorized: z.ZodTuple<[z.ZodString, z.ZodString], null>;
100
+ mayIncludeOwedPrincipal: z.ZodLiteral<true>;
101
+ profitClassification: z.ZodLiteral<"UNKNOWN">;
102
+ distributableProfitRaw: z.ZodNull;
103
+ }, z.core.$strict>;
104
+ gas: z.ZodDiscriminatedUnion<[z.ZodObject<{
105
+ maximumUserCostWei: z.ZodString;
106
+ maximumActivationCostWei: z.ZodString;
107
+ payer: z.ZodLiteral<"sponsor">;
108
+ paymentReview: z.ZodOptional<z.ZodObject<{
109
+ version: z.ZodLiteral<1>;
110
+ revision: z.ZodNumber;
111
+ payer: z.ZodEnum<{
112
+ account: "account";
113
+ sponsor: "sponsor";
114
+ }>;
115
+ sponsorStatus: z.ZodEnum<{
116
+ unavailable: "unavailable";
117
+ eligible: "eligible";
118
+ "above-limit": "above-limit";
119
+ "price-unavailable": "price-unavailable";
120
+ }>;
121
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
122
+ quote: z.ZodObject<{
123
+ version: z.ZodLiteral<1>;
124
+ kind: z.ZodLiteral<"estimate">;
125
+ payer: z.ZodLiteral<"user">;
126
+ account: z.ZodString;
127
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
128
+ entryPoint: z.ZodString;
129
+ nativeAsset: z.ZodObject<{
130
+ symbol: z.ZodEnum<{
131
+ ETH: "ETH";
132
+ POL: "POL";
133
+ }>;
134
+ decimals: z.ZodLiteral<18>;
135
+ }, z.core.$strict>;
136
+ callsCommitment: z.ZodString;
137
+ nonce: z.ZodString;
138
+ blockNumber: z.ZodString;
139
+ blockHash: z.ZodString;
140
+ blockTimestampMs: z.ZodNumber;
141
+ observedAtMs: z.ZodNumber;
142
+ expiresAtMs: z.ZodNumber;
143
+ simulation: z.ZodLiteral<"sender-balance-override">;
144
+ providerEstimate: z.ZodObject<{
145
+ blockAnchor: z.ZodLiteral<"unanchored">;
146
+ startedAtMs: z.ZodNumber;
147
+ completedAtMs: z.ZodNumber;
148
+ elapsedMs: z.ZodNumber;
149
+ }, z.core.$strict>;
150
+ gas: z.ZodObject<{
151
+ callGasLimit: z.ZodString;
152
+ verificationGasLimit: z.ZodString;
153
+ preVerificationGas: z.ZodString;
154
+ maxFeePerGasWei: z.ZodString;
155
+ maxPriorityFeePerGasWei: z.ZodString;
156
+ estimatedPrefundWei: z.ZodString;
157
+ reserveWei: z.ZodString;
158
+ estimatedRequiredWei: z.ZodString;
159
+ reserveBps: z.ZodLiteral<"2500">;
160
+ }, z.core.$strict>;
161
+ balance: z.ZodObject<{
162
+ nativeWei: z.ZodString;
163
+ entryPointDepositWei: z.ZodString;
164
+ callValueWei: z.ZodString;
165
+ depositAppliedToGasWei: z.ZodString;
166
+ walletGasRequirementWei: z.ZodString;
167
+ nativeAvailableForGasWei: z.ZodString;
168
+ gasShortfallWei: z.ZodString;
169
+ requiredNativeWei: z.ZodString;
170
+ shortfallWei: z.ZodString;
171
+ }, z.core.$strict>;
172
+ usdPrice: z.ZodOptional<z.ZodObject<{
173
+ amountAtomic: z.ZodString;
174
+ decimals: z.ZodNumber;
175
+ observedAtMs: z.ZodNumber;
176
+ expiresAtMs: z.ZodNumber;
177
+ }, z.core.$strict>>;
178
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
179
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
180
+ kind: z.ZodLiteral<"estimate">;
181
+ simulation: z.ZodLiteral<"paymaster-stub">;
182
+ entryPointVersion: z.ZodLiteral<"0.6">;
183
+ paymaster: z.ZodString;
184
+ sponsorshipPolicyId: z.ZodString;
185
+ paymasterAndDataCommitment: z.ZodString;
186
+ providerEstimate: z.ZodObject<{
187
+ blockAnchor: z.ZodLiteral<"unanchored">;
188
+ startedAtMs: z.ZodNumber;
189
+ completedAtMs: z.ZodNumber;
190
+ elapsedMs: z.ZodNumber;
191
+ }, z.core.$strict>;
192
+ gas: z.ZodObject<{
193
+ callGasLimit: z.ZodString;
194
+ verificationGasLimit: z.ZodString;
195
+ preVerificationGas: z.ZodString;
196
+ maxFeePerGasWei: z.ZodString;
197
+ maxPriorityFeePerGasWei: z.ZodString;
198
+ verificationGasMultiplier: z.ZodLiteral<"3">;
199
+ estimatedPrefundWei: z.ZodString;
200
+ reserveWei: z.ZodString;
201
+ estimatedRequiredWei: z.ZodString;
202
+ reserveBps: z.ZodLiteral<"2500">;
203
+ }, z.core.$strict>;
204
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
205
+ }, z.core.$strict>>;
206
+ }, z.core.$strict>;
207
+ }, z.core.$strict>>;
208
+ maximumCostWei: z.ZodString;
209
+ activationChainHalted: z.ZodOptional<z.ZodLiteral<true>>;
210
+ actualCostWei: z.ZodOptional<z.ZodString>;
211
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
212
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
213
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
214
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
215
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
216
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
217
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
218
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
219
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
220
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
221
+ }>>;
222
+ }, z.core.$strict>, z.ZodObject<{
223
+ payer: z.ZodLiteral<"account">;
224
+ paymentReview: z.ZodObject<{
225
+ version: z.ZodLiteral<1>;
226
+ revision: z.ZodNumber;
227
+ payer: z.ZodEnum<{
228
+ account: "account";
229
+ sponsor: "sponsor";
230
+ }>;
231
+ sponsorStatus: z.ZodEnum<{
232
+ unavailable: "unavailable";
233
+ eligible: "eligible";
234
+ "above-limit": "above-limit";
235
+ "price-unavailable": "price-unavailable";
236
+ }>;
237
+ subsidyCapUsdMicros: z.ZodLiteral<"100000">;
238
+ quote: z.ZodObject<{
239
+ version: z.ZodLiteral<1>;
240
+ kind: z.ZodLiteral<"estimate">;
241
+ payer: z.ZodLiteral<"user">;
242
+ account: z.ZodString;
243
+ chainId: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<8453>, z.ZodLiteral<42161>, z.ZodLiteral<10>, z.ZodLiteral<137>]>;
244
+ entryPoint: z.ZodString;
245
+ nativeAsset: z.ZodObject<{
246
+ symbol: z.ZodEnum<{
247
+ ETH: "ETH";
248
+ POL: "POL";
249
+ }>;
250
+ decimals: z.ZodLiteral<18>;
251
+ }, z.core.$strict>;
252
+ callsCommitment: z.ZodString;
253
+ nonce: z.ZodString;
254
+ blockNumber: z.ZodString;
255
+ blockHash: z.ZodString;
256
+ blockTimestampMs: z.ZodNumber;
257
+ observedAtMs: z.ZodNumber;
258
+ expiresAtMs: z.ZodNumber;
259
+ simulation: z.ZodLiteral<"sender-balance-override">;
260
+ providerEstimate: z.ZodObject<{
261
+ blockAnchor: z.ZodLiteral<"unanchored">;
262
+ startedAtMs: z.ZodNumber;
263
+ completedAtMs: z.ZodNumber;
264
+ elapsedMs: z.ZodNumber;
265
+ }, z.core.$strict>;
266
+ gas: z.ZodObject<{
267
+ callGasLimit: z.ZodString;
268
+ verificationGasLimit: z.ZodString;
269
+ preVerificationGas: z.ZodString;
270
+ maxFeePerGasWei: z.ZodString;
271
+ maxPriorityFeePerGasWei: z.ZodString;
272
+ estimatedPrefundWei: z.ZodString;
273
+ reserveWei: z.ZodString;
274
+ estimatedRequiredWei: z.ZodString;
275
+ reserveBps: z.ZodLiteral<"2500">;
276
+ }, z.core.$strict>;
277
+ balance: z.ZodObject<{
278
+ nativeWei: z.ZodString;
279
+ entryPointDepositWei: z.ZodString;
280
+ callValueWei: z.ZodString;
281
+ depositAppliedToGasWei: z.ZodString;
282
+ walletGasRequirementWei: z.ZodString;
283
+ nativeAvailableForGasWei: z.ZodString;
284
+ gasShortfallWei: z.ZodString;
285
+ requiredNativeWei: z.ZodString;
286
+ shortfallWei: z.ZodString;
287
+ }, z.core.$strict>;
288
+ usdPrice: z.ZodOptional<z.ZodObject<{
289
+ amountAtomic: z.ZodString;
290
+ decimals: z.ZodNumber;
291
+ observedAtMs: z.ZodNumber;
292
+ expiresAtMs: z.ZodNumber;
293
+ }, z.core.$strict>>;
294
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
295
+ sponsoredEstimate: z.ZodOptional<z.ZodObject<{
296
+ kind: z.ZodLiteral<"estimate">;
297
+ simulation: z.ZodLiteral<"paymaster-stub">;
298
+ entryPointVersion: z.ZodLiteral<"0.6">;
299
+ paymaster: z.ZodString;
300
+ sponsorshipPolicyId: z.ZodString;
301
+ paymasterAndDataCommitment: z.ZodString;
302
+ providerEstimate: z.ZodObject<{
303
+ blockAnchor: z.ZodLiteral<"unanchored">;
304
+ startedAtMs: z.ZodNumber;
305
+ completedAtMs: z.ZodNumber;
306
+ elapsedMs: z.ZodNumber;
307
+ }, z.core.$strict>;
308
+ gas: z.ZodObject<{
309
+ callGasLimit: z.ZodString;
310
+ verificationGasLimit: z.ZodString;
311
+ preVerificationGas: z.ZodString;
312
+ maxFeePerGasWei: z.ZodString;
313
+ maxPriorityFeePerGasWei: z.ZodString;
314
+ verificationGasMultiplier: z.ZodLiteral<"3">;
315
+ estimatedPrefundWei: z.ZodString;
316
+ reserveWei: z.ZodString;
317
+ estimatedRequiredWei: z.ZodString;
318
+ reserveBps: z.ZodLiteral<"2500">;
319
+ }, z.core.$strict>;
320
+ estimatedGasCostUsdMicros: z.ZodOptional<z.ZodString>;
321
+ }, z.core.$strict>>;
322
+ }, z.core.$strict>;
323
+ }, z.core.$strict>;
324
+ actualCostWei: z.ZodOptional<z.ZodString>;
325
+ reviewRequired: z.ZodOptional<z.ZodLiteral<true>>;
326
+ reviewFailure: z.ZodOptional<z.ZodEnum<{
327
+ ACCOUNT_GAS_QUOTE_UNAVAILABLE: "ACCOUNT_GAS_QUOTE_UNAVAILABLE";
328
+ ACCOUNT_GAS_REVIEW_INVALID: "ACCOUNT_GAS_REVIEW_INVALID";
329
+ ACCOUNT_GAS_REVIEW_STALE: "ACCOUNT_GAS_REVIEW_STALE";
330
+ ACCOUNT_GAS_SPONSOR_INELIGIBLE: "ACCOUNT_GAS_SPONSOR_INELIGIBLE";
331
+ ACCOUNT_GAS_REVIEW_REQUIRED: "ACCOUNT_GAS_REVIEW_REQUIRED";
332
+ ACCOUNT_GAS_REVIEW_CHANGED: "ACCOUNT_GAS_REVIEW_CHANGED";
333
+ ACCOUNT_GAS_REVIEW_UNAVAILABLE: "ACCOUNT_GAS_REVIEW_UNAVAILABLE";
334
+ ACCOUNT_GAS_FUNDING_REQUIRED: "ACCOUNT_GAS_FUNDING_REQUIRED";
335
+ }>>;
336
+ }, z.core.$strict>], "payer">;
337
+ requiresOperationReview: z.ZodBoolean;
338
+ confirmation: z.ZodEnum<{
339
+ "I reviewed this position collection and sponsored atomic batch": "I reviewed this position collection and sponsored atomic batch";
340
+ "I reviewed this position collection and account-paid atomic batch": "I reviewed this position collection and account-paid atomic batch";
341
+ }>;
342
+ protocolActionVerified: z.ZodBoolean;
343
+ userOpHash: z.ZodOptional<z.ZodString>;
344
+ transactionHash: z.ZodOptional<z.ZodString>;
345
+ settlement: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
346
+ status: z.ZodEnum<{
347
+ unknown: "unknown";
348
+ held: "held";
349
+ }>;
350
+ reason: z.ZodString;
351
+ userOpHash: z.ZodString;
352
+ transactionHash: z.ZodString;
353
+ releaseClaim: z.ZodLiteral<false>;
354
+ retrySafe: z.ZodLiteral<false>;
355
+ }, z.core.$strict>, z.ZodObject<{
356
+ userOpHash: z.ZodString;
357
+ transactionHash: z.ZodString;
358
+ blockHash: z.ZodString;
359
+ blockNumber: z.ZodString;
360
+ userOpNonce: z.ZodString;
361
+ owner: z.ZodString;
362
+ chainId: z.ZodLiteral<8453>;
363
+ pool: z.ZodString;
364
+ tokenId: z.ZodString;
365
+ planCommitment: z.ZodString;
366
+ baselineCommitment: z.ZodString;
367
+ accountingCommitment: z.ZodString;
368
+ collectedRaw: z.ZodTuple<[z.ZodString, z.ZodString], null>;
369
+ liquidityDelta: z.ZodLiteral<"0">;
370
+ ownerBalancesAtBlock: z.ZodTuple<[z.ZodString, z.ZodString], null>;
371
+ nftTokenApprovalCleared: z.ZodLiteral<true>;
372
+ erc20AllowancesCleared: z.ZodLiteral<true>;
373
+ actualGasCostWei: z.ZodString;
374
+ actualGasUsed: z.ZodString;
375
+ paymaster: z.ZodString;
376
+ profitClassification: z.ZodLiteral<"UNKNOWN">;
377
+ distributableProfitRaw: z.ZodNull;
378
+ releaseClaim: z.ZodLiteral<true>;
379
+ retrySafe: z.ZodLiteral<false>;
380
+ finality: z.ZodObject<{
381
+ policyCommitment: z.ZodString;
382
+ observedAtMs: z.ZodNumber;
383
+ finalizedBlockNumber: z.ZodString;
384
+ finalizedBlockHash: z.ZodString;
385
+ confirmations: z.ZodString;
386
+ }, z.core.$strict>;
387
+ status: z.ZodLiteral<"completed">;
388
+ protocolActionVerified: z.ZodLiteral<true>;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ userOpHash: z.ZodString;
391
+ transactionHash: z.ZodString;
392
+ blockHash: z.ZodString;
393
+ blockNumber: z.ZodString;
394
+ userOpNonce: z.ZodString;
395
+ owner: z.ZodString;
396
+ chainId: z.ZodLiteral<8453>;
397
+ pool: z.ZodString;
398
+ tokenId: z.ZodString;
399
+ planCommitment: z.ZodString;
400
+ baselineCommitment: z.ZodString;
401
+ accountingCommitment: z.ZodString;
402
+ collectedRaw: z.ZodTuple<[z.ZodString, z.ZodString], null>;
403
+ liquidityDelta: z.ZodLiteral<"0">;
404
+ ownerBalancesAtBlock: z.ZodTuple<[z.ZodString, z.ZodString], null>;
405
+ nftTokenApprovalCleared: z.ZodLiteral<true>;
406
+ erc20AllowancesCleared: z.ZodLiteral<true>;
407
+ actualGasCostWei: z.ZodString;
408
+ actualGasUsed: z.ZodString;
409
+ paymaster: z.ZodString;
410
+ profitClassification: z.ZodLiteral<"UNKNOWN">;
411
+ distributableProfitRaw: z.ZodNull;
412
+ releaseClaim: z.ZodLiteral<true>;
413
+ retrySafe: z.ZodLiteral<false>;
414
+ finality: z.ZodObject<{
415
+ policyCommitment: z.ZodString;
416
+ observedAtMs: z.ZodNumber;
417
+ finalizedBlockNumber: z.ZodString;
418
+ finalizedBlockHash: z.ZodString;
419
+ confirmations: z.ZodString;
420
+ }, z.core.$strict>;
421
+ status: z.ZodLiteral<"reverted">;
422
+ protocolActionVerified: z.ZodLiteral<false>;
423
+ }, z.core.$strict>]>>;
424
+ failureCode: z.ZodOptional<z.ZodEnum<{
425
+ SPONSOR_GAS_CAP_EXCEEDED: "SPONSOR_GAS_CAP_EXCEEDED";
426
+ SPONSOR_NOT_SUBMITTED: "SPONSOR_NOT_SUBMITTED";
427
+ SPONSOR_USER_OPERATION_REVERTED: "SPONSOR_USER_OPERATION_REVERTED";
428
+ }>>;
429
+ attention: z.ZodOptional<z.ZodLiteral<"The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement.">>;
430
+ automaticExecutionEnabled: z.ZodLiteral<false>;
431
+ walletAuthorityChangeIncluded: z.ZodLiteral<false>;
432
+ retrySafe: z.ZodLiteral<false>;
433
+ }, z.core.$strict>;
434
+ export type LpUserOpAccountView = z.infer<typeof LP_USEROP_ACCOUNT_OPERATION_RESULT>;
435
+ export type LpUserOpAccountStore = ReturnType<SponsoredOperationStore['forLpV3CollectUserOp']>;
436
+ export declare function lpUserOpAccountView(operation: LpUserOpOperation): LpUserOpAccountView;
437
+ /** Current invocation was refused before its provider callback ran; says nothing about older attempts. */
438
+ export declare class LpUserOpPreHandoffRefusal extends Error {
439
+ constructor();
440
+ }
441
+ export declare class LpUserOpAccountService {
442
+ private readonly issuer;
443
+ private readonly protocol;
444
+ private readonly runtime;
445
+ private readonly store;
446
+ private readonly guards;
447
+ private readonly transport;
448
+ private readonly gasRuntime?;
449
+ constructor(issuer: LpUserOpAuthorityIssuer, protocol: LpUserOpRuntime | undefined, runtime: SponsoredAccountRuntime, store: LpUserOpAccountStore, guards: ExecutionWorkerGuardStore, transport: ReturnType<typeof createSponsoredCdpTransport>, gasRuntime?: AccountGasPaymentRuntime | undefined);
450
+ private requireProtocol;
451
+ private owned;
452
+ prepare(raw: unknown): Promise<LpUserOpAccountView>;
453
+ reviewGas(raw: unknown): Promise<LpUserOpAccountView>;
454
+ read(raw: unknown): Promise<LpUserOpAccountView>;
455
+ private assertCurrentReview;
456
+ submit(raw: unknown): Promise<LpUserOpAccountView>;
457
+ private submitOnce;
458
+ /** Owned reconciliation survives expired review, Stop and removed delegation; it grants no new send authority. */
459
+ reconcile(raw: unknown): Promise<LpUserOpAccountView>;
460
+ private reconcileOwned;
461
+ }