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,1569 @@
1
+ /** Source-fenced server factory. No activation means no optional SDK, RPC, options or journal access. */
2
+ import type { PublicClient } from 'viem';
3
+ import type { DelegationCapStore } from './execution-delegation-cap-store.js';
4
+ import { createSponsoredCdpTransport, type SponsoredProviderConfig } from './execution-sponsored-transport.js';
5
+ import { type SponsoredAccountCdp } from './execution-sponsored-runtime.js';
6
+ export declare function lpUserOpAvailability(): Readonly<{
7
+ reason?: string | undefined;
8
+ schemaVersion: "1";
9
+ kind: "lp-collect-userop";
10
+ configured: boolean;
11
+ executionEnabled: boolean;
12
+ recoveryAvailable: false;
13
+ requiresSeparateWalletUpgrade: true;
14
+ requiresOperationReview: true;
15
+ automaticExecutionEnabled: false;
16
+ supportedSameAddressChains: 8453[];
17
+ supportedActions: readonly ["guarded-collect"];
18
+ }>;
19
+ export interface LpUserOpServiceOptions {
20
+ readonly cdp: SponsoredAccountCdp;
21
+ readonly capStore: DelegationCapStore;
22
+ readonly projectId: string;
23
+ /** The SAME operations.db root used by every execution rail. */
24
+ readonly operationStorePath: string;
25
+ readonly client?: PublicClient;
26
+ readonly providers: readonly SponsoredProviderConfig[];
27
+ readonly credentials: Parameters<typeof createSponsoredCdpTransport>[0]['credentials'];
28
+ }
29
+ export declare function createLpUserOpAccountService(options: LpUserOpServiceOptions): Promise<Readonly<{
30
+ availability: () => Promise<{
31
+ reason?: string | undefined;
32
+ executionEnabled: boolean;
33
+ recoveryAvailable: boolean;
34
+ schemaVersion: "1";
35
+ kind: "lp-collect-userop";
36
+ configured: boolean;
37
+ requiresSeparateWalletUpgrade: true;
38
+ requiresOperationReview: true;
39
+ automaticExecutionEnabled: false;
40
+ supportedSameAddressChains: 8453[];
41
+ supportedActions: readonly ["guarded-collect"];
42
+ }>;
43
+ reviewGas: (input: unknown) => Promise<{
44
+ schemaVersion: "1";
45
+ kind: "lp-collect-userop";
46
+ operationId: string;
47
+ account: string;
48
+ chainId: 8453;
49
+ protocol: "uniswap-v3";
50
+ action: "guarded-collect";
51
+ pool: string;
52
+ tokenId: string;
53
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
54
+ reviewConsumed: boolean;
55
+ envelopeCommitment: string;
56
+ reviewCommitment: string;
57
+ validUntilMs: number;
58
+ collection: {
59
+ tokens: [string, string];
60
+ maximum: [string, string];
61
+ minimum: [string, string];
62
+ tokensOwedAtReview: [string, string];
63
+ maximumAuthorized: [string, string];
64
+ mayIncludeOwedPrincipal: true;
65
+ profitClassification: "UNKNOWN";
66
+ distributableProfitRaw: null;
67
+ };
68
+ gas: {
69
+ payer: "account";
70
+ paymentReview: {
71
+ version: 1;
72
+ revision: number;
73
+ payer: "account" | "sponsor";
74
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
75
+ subsidyCapUsdMicros: "100000";
76
+ quote: {
77
+ version: 1;
78
+ kind: "estimate";
79
+ payer: "user";
80
+ account: string;
81
+ chainId: 1 | 8453 | 42161 | 10 | 137;
82
+ entryPoint: string;
83
+ nativeAsset: {
84
+ symbol: "ETH" | "POL";
85
+ decimals: 18;
86
+ };
87
+ callsCommitment: string;
88
+ nonce: string;
89
+ blockNumber: string;
90
+ blockHash: string;
91
+ blockTimestampMs: number;
92
+ observedAtMs: number;
93
+ expiresAtMs: number;
94
+ simulation: "sender-balance-override";
95
+ providerEstimate: {
96
+ blockAnchor: "unanchored";
97
+ startedAtMs: number;
98
+ completedAtMs: number;
99
+ elapsedMs: number;
100
+ };
101
+ gas: {
102
+ callGasLimit: string;
103
+ verificationGasLimit: string;
104
+ preVerificationGas: string;
105
+ maxFeePerGasWei: string;
106
+ maxPriorityFeePerGasWei: string;
107
+ estimatedPrefundWei: string;
108
+ reserveWei: string;
109
+ estimatedRequiredWei: string;
110
+ reserveBps: "2500";
111
+ };
112
+ balance: {
113
+ nativeWei: string;
114
+ entryPointDepositWei: string;
115
+ callValueWei: string;
116
+ depositAppliedToGasWei: string;
117
+ walletGasRequirementWei: string;
118
+ nativeAvailableForGasWei: string;
119
+ gasShortfallWei: string;
120
+ requiredNativeWei: string;
121
+ shortfallWei: string;
122
+ };
123
+ usdPrice?: {
124
+ amountAtomic: string;
125
+ decimals: number;
126
+ observedAtMs: number;
127
+ expiresAtMs: number;
128
+ } | undefined;
129
+ estimatedGasCostUsdMicros?: string | undefined;
130
+ sponsoredEstimate?: {
131
+ kind: "estimate";
132
+ simulation: "paymaster-stub";
133
+ entryPointVersion: "0.6";
134
+ paymaster: string;
135
+ sponsorshipPolicyId: string;
136
+ paymasterAndDataCommitment: string;
137
+ providerEstimate: {
138
+ blockAnchor: "unanchored";
139
+ startedAtMs: number;
140
+ completedAtMs: number;
141
+ elapsedMs: number;
142
+ };
143
+ gas: {
144
+ callGasLimit: string;
145
+ verificationGasLimit: string;
146
+ preVerificationGas: string;
147
+ maxFeePerGasWei: string;
148
+ maxPriorityFeePerGasWei: string;
149
+ verificationGasMultiplier: "3";
150
+ estimatedPrefundWei: string;
151
+ reserveWei: string;
152
+ estimatedRequiredWei: string;
153
+ reserveBps: "2500";
154
+ };
155
+ estimatedGasCostUsdMicros?: string | undefined;
156
+ } | undefined;
157
+ };
158
+ };
159
+ actualCostWei?: string | undefined;
160
+ reviewRequired?: true | undefined;
161
+ 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;
162
+ } | {
163
+ maximumUserCostWei: string;
164
+ maximumActivationCostWei: string;
165
+ payer: "sponsor";
166
+ maximumCostWei: string;
167
+ paymentReview?: {
168
+ version: 1;
169
+ revision: number;
170
+ payer: "account" | "sponsor";
171
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
172
+ subsidyCapUsdMicros: "100000";
173
+ quote: {
174
+ version: 1;
175
+ kind: "estimate";
176
+ payer: "user";
177
+ account: string;
178
+ chainId: 1 | 8453 | 42161 | 10 | 137;
179
+ entryPoint: string;
180
+ nativeAsset: {
181
+ symbol: "ETH" | "POL";
182
+ decimals: 18;
183
+ };
184
+ callsCommitment: string;
185
+ nonce: string;
186
+ blockNumber: string;
187
+ blockHash: string;
188
+ blockTimestampMs: number;
189
+ observedAtMs: number;
190
+ expiresAtMs: number;
191
+ simulation: "sender-balance-override";
192
+ providerEstimate: {
193
+ blockAnchor: "unanchored";
194
+ startedAtMs: number;
195
+ completedAtMs: number;
196
+ elapsedMs: number;
197
+ };
198
+ gas: {
199
+ callGasLimit: string;
200
+ verificationGasLimit: string;
201
+ preVerificationGas: string;
202
+ maxFeePerGasWei: string;
203
+ maxPriorityFeePerGasWei: string;
204
+ estimatedPrefundWei: string;
205
+ reserveWei: string;
206
+ estimatedRequiredWei: string;
207
+ reserveBps: "2500";
208
+ };
209
+ balance: {
210
+ nativeWei: string;
211
+ entryPointDepositWei: string;
212
+ callValueWei: string;
213
+ depositAppliedToGasWei: string;
214
+ walletGasRequirementWei: string;
215
+ nativeAvailableForGasWei: string;
216
+ gasShortfallWei: string;
217
+ requiredNativeWei: string;
218
+ shortfallWei: string;
219
+ };
220
+ usdPrice?: {
221
+ amountAtomic: string;
222
+ decimals: number;
223
+ observedAtMs: number;
224
+ expiresAtMs: number;
225
+ } | undefined;
226
+ estimatedGasCostUsdMicros?: string | undefined;
227
+ sponsoredEstimate?: {
228
+ kind: "estimate";
229
+ simulation: "paymaster-stub";
230
+ entryPointVersion: "0.6";
231
+ paymaster: string;
232
+ sponsorshipPolicyId: string;
233
+ paymasterAndDataCommitment: string;
234
+ providerEstimate: {
235
+ blockAnchor: "unanchored";
236
+ startedAtMs: number;
237
+ completedAtMs: number;
238
+ elapsedMs: number;
239
+ };
240
+ gas: {
241
+ callGasLimit: string;
242
+ verificationGasLimit: string;
243
+ preVerificationGas: string;
244
+ maxFeePerGasWei: string;
245
+ maxPriorityFeePerGasWei: string;
246
+ verificationGasMultiplier: "3";
247
+ estimatedPrefundWei: string;
248
+ reserveWei: string;
249
+ estimatedRequiredWei: string;
250
+ reserveBps: "2500";
251
+ };
252
+ estimatedGasCostUsdMicros?: string | undefined;
253
+ } | undefined;
254
+ };
255
+ } | undefined;
256
+ activationChainHalted?: true | undefined;
257
+ actualCostWei?: string | undefined;
258
+ reviewRequired?: true | undefined;
259
+ 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;
260
+ };
261
+ requiresOperationReview: boolean;
262
+ confirmation: "I reviewed this position collection and sponsored atomic batch" | "I reviewed this position collection and account-paid atomic batch";
263
+ protocolActionVerified: boolean;
264
+ automaticExecutionEnabled: false;
265
+ walletAuthorityChangeIncluded: false;
266
+ retrySafe: false;
267
+ userOpHash?: string | undefined;
268
+ transactionHash?: string | undefined;
269
+ settlement?: {
270
+ status: "unknown" | "held";
271
+ reason: string;
272
+ userOpHash: string;
273
+ transactionHash: string;
274
+ releaseClaim: false;
275
+ retrySafe: false;
276
+ } | {
277
+ userOpHash: string;
278
+ transactionHash: string;
279
+ blockHash: string;
280
+ blockNumber: string;
281
+ userOpNonce: string;
282
+ owner: string;
283
+ chainId: 8453;
284
+ pool: string;
285
+ tokenId: string;
286
+ planCommitment: string;
287
+ baselineCommitment: string;
288
+ accountingCommitment: string;
289
+ collectedRaw: [string, string];
290
+ liquidityDelta: "0";
291
+ ownerBalancesAtBlock: [string, string];
292
+ nftTokenApprovalCleared: true;
293
+ erc20AllowancesCleared: true;
294
+ actualGasCostWei: string;
295
+ actualGasUsed: string;
296
+ paymaster: string;
297
+ profitClassification: "UNKNOWN";
298
+ distributableProfitRaw: null;
299
+ releaseClaim: true;
300
+ retrySafe: false;
301
+ finality: {
302
+ policyCommitment: string;
303
+ observedAtMs: number;
304
+ finalizedBlockNumber: string;
305
+ finalizedBlockHash: string;
306
+ confirmations: string;
307
+ };
308
+ status: "completed";
309
+ protocolActionVerified: true;
310
+ } | {
311
+ userOpHash: string;
312
+ transactionHash: string;
313
+ blockHash: string;
314
+ blockNumber: string;
315
+ userOpNonce: string;
316
+ owner: string;
317
+ chainId: 8453;
318
+ pool: string;
319
+ tokenId: string;
320
+ planCommitment: string;
321
+ baselineCommitment: string;
322
+ accountingCommitment: string;
323
+ collectedRaw: [string, string];
324
+ liquidityDelta: "0";
325
+ ownerBalancesAtBlock: [string, string];
326
+ nftTokenApprovalCleared: true;
327
+ erc20AllowancesCleared: true;
328
+ actualGasCostWei: string;
329
+ actualGasUsed: string;
330
+ paymaster: string;
331
+ profitClassification: "UNKNOWN";
332
+ distributableProfitRaw: null;
333
+ releaseClaim: true;
334
+ retrySafe: false;
335
+ finality: {
336
+ policyCommitment: string;
337
+ observedAtMs: number;
338
+ finalizedBlockNumber: string;
339
+ finalizedBlockHash: string;
340
+ confirmations: string;
341
+ };
342
+ status: "reverted";
343
+ protocolActionVerified: false;
344
+ } | undefined;
345
+ failureCode?: "SPONSOR_GAS_CAP_EXCEEDED" | "SPONSOR_NOT_SUBMITTED" | "SPONSOR_USER_OPERATION_REVERTED" | undefined;
346
+ attention?: "The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement." | undefined;
347
+ }>;
348
+ prepare: (input: unknown) => Promise<{
349
+ schemaVersion: "1";
350
+ kind: "lp-collect-userop";
351
+ operationId: string;
352
+ account: string;
353
+ chainId: 8453;
354
+ protocol: "uniswap-v3";
355
+ action: "guarded-collect";
356
+ pool: string;
357
+ tokenId: string;
358
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
359
+ reviewConsumed: boolean;
360
+ envelopeCommitment: string;
361
+ reviewCommitment: string;
362
+ validUntilMs: number;
363
+ collection: {
364
+ tokens: [string, string];
365
+ maximum: [string, string];
366
+ minimum: [string, string];
367
+ tokensOwedAtReview: [string, string];
368
+ maximumAuthorized: [string, string];
369
+ mayIncludeOwedPrincipal: true;
370
+ profitClassification: "UNKNOWN";
371
+ distributableProfitRaw: null;
372
+ };
373
+ gas: {
374
+ payer: "account";
375
+ paymentReview: {
376
+ version: 1;
377
+ revision: number;
378
+ payer: "account" | "sponsor";
379
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
380
+ subsidyCapUsdMicros: "100000";
381
+ quote: {
382
+ version: 1;
383
+ kind: "estimate";
384
+ payer: "user";
385
+ account: string;
386
+ chainId: 1 | 8453 | 42161 | 10 | 137;
387
+ entryPoint: string;
388
+ nativeAsset: {
389
+ symbol: "ETH" | "POL";
390
+ decimals: 18;
391
+ };
392
+ callsCommitment: string;
393
+ nonce: string;
394
+ blockNumber: string;
395
+ blockHash: string;
396
+ blockTimestampMs: number;
397
+ observedAtMs: number;
398
+ expiresAtMs: number;
399
+ simulation: "sender-balance-override";
400
+ providerEstimate: {
401
+ blockAnchor: "unanchored";
402
+ startedAtMs: number;
403
+ completedAtMs: number;
404
+ elapsedMs: number;
405
+ };
406
+ gas: {
407
+ callGasLimit: string;
408
+ verificationGasLimit: string;
409
+ preVerificationGas: string;
410
+ maxFeePerGasWei: string;
411
+ maxPriorityFeePerGasWei: string;
412
+ estimatedPrefundWei: string;
413
+ reserveWei: string;
414
+ estimatedRequiredWei: string;
415
+ reserveBps: "2500";
416
+ };
417
+ balance: {
418
+ nativeWei: string;
419
+ entryPointDepositWei: string;
420
+ callValueWei: string;
421
+ depositAppliedToGasWei: string;
422
+ walletGasRequirementWei: string;
423
+ nativeAvailableForGasWei: string;
424
+ gasShortfallWei: string;
425
+ requiredNativeWei: string;
426
+ shortfallWei: string;
427
+ };
428
+ usdPrice?: {
429
+ amountAtomic: string;
430
+ decimals: number;
431
+ observedAtMs: number;
432
+ expiresAtMs: number;
433
+ } | undefined;
434
+ estimatedGasCostUsdMicros?: string | undefined;
435
+ sponsoredEstimate?: {
436
+ kind: "estimate";
437
+ simulation: "paymaster-stub";
438
+ entryPointVersion: "0.6";
439
+ paymaster: string;
440
+ sponsorshipPolicyId: string;
441
+ paymasterAndDataCommitment: string;
442
+ providerEstimate: {
443
+ blockAnchor: "unanchored";
444
+ startedAtMs: number;
445
+ completedAtMs: number;
446
+ elapsedMs: number;
447
+ };
448
+ gas: {
449
+ callGasLimit: string;
450
+ verificationGasLimit: string;
451
+ preVerificationGas: string;
452
+ maxFeePerGasWei: string;
453
+ maxPriorityFeePerGasWei: string;
454
+ verificationGasMultiplier: "3";
455
+ estimatedPrefundWei: string;
456
+ reserveWei: string;
457
+ estimatedRequiredWei: string;
458
+ reserveBps: "2500";
459
+ };
460
+ estimatedGasCostUsdMicros?: string | undefined;
461
+ } | undefined;
462
+ };
463
+ };
464
+ actualCostWei?: string | undefined;
465
+ reviewRequired?: true | undefined;
466
+ 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;
467
+ } | {
468
+ maximumUserCostWei: string;
469
+ maximumActivationCostWei: string;
470
+ payer: "sponsor";
471
+ maximumCostWei: string;
472
+ paymentReview?: {
473
+ version: 1;
474
+ revision: number;
475
+ payer: "account" | "sponsor";
476
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
477
+ subsidyCapUsdMicros: "100000";
478
+ quote: {
479
+ version: 1;
480
+ kind: "estimate";
481
+ payer: "user";
482
+ account: string;
483
+ chainId: 1 | 8453 | 42161 | 10 | 137;
484
+ entryPoint: string;
485
+ nativeAsset: {
486
+ symbol: "ETH" | "POL";
487
+ decimals: 18;
488
+ };
489
+ callsCommitment: string;
490
+ nonce: string;
491
+ blockNumber: string;
492
+ blockHash: string;
493
+ blockTimestampMs: number;
494
+ observedAtMs: number;
495
+ expiresAtMs: number;
496
+ simulation: "sender-balance-override";
497
+ providerEstimate: {
498
+ blockAnchor: "unanchored";
499
+ startedAtMs: number;
500
+ completedAtMs: number;
501
+ elapsedMs: number;
502
+ };
503
+ gas: {
504
+ callGasLimit: string;
505
+ verificationGasLimit: string;
506
+ preVerificationGas: string;
507
+ maxFeePerGasWei: string;
508
+ maxPriorityFeePerGasWei: string;
509
+ estimatedPrefundWei: string;
510
+ reserveWei: string;
511
+ estimatedRequiredWei: string;
512
+ reserveBps: "2500";
513
+ };
514
+ balance: {
515
+ nativeWei: string;
516
+ entryPointDepositWei: string;
517
+ callValueWei: string;
518
+ depositAppliedToGasWei: string;
519
+ walletGasRequirementWei: string;
520
+ nativeAvailableForGasWei: string;
521
+ gasShortfallWei: string;
522
+ requiredNativeWei: string;
523
+ shortfallWei: string;
524
+ };
525
+ usdPrice?: {
526
+ amountAtomic: string;
527
+ decimals: number;
528
+ observedAtMs: number;
529
+ expiresAtMs: number;
530
+ } | undefined;
531
+ estimatedGasCostUsdMicros?: string | undefined;
532
+ sponsoredEstimate?: {
533
+ kind: "estimate";
534
+ simulation: "paymaster-stub";
535
+ entryPointVersion: "0.6";
536
+ paymaster: string;
537
+ sponsorshipPolicyId: string;
538
+ paymasterAndDataCommitment: string;
539
+ providerEstimate: {
540
+ blockAnchor: "unanchored";
541
+ startedAtMs: number;
542
+ completedAtMs: number;
543
+ elapsedMs: number;
544
+ };
545
+ gas: {
546
+ callGasLimit: string;
547
+ verificationGasLimit: string;
548
+ preVerificationGas: string;
549
+ maxFeePerGasWei: string;
550
+ maxPriorityFeePerGasWei: string;
551
+ verificationGasMultiplier: "3";
552
+ estimatedPrefundWei: string;
553
+ reserveWei: string;
554
+ estimatedRequiredWei: string;
555
+ reserveBps: "2500";
556
+ };
557
+ estimatedGasCostUsdMicros?: string | undefined;
558
+ } | undefined;
559
+ };
560
+ } | undefined;
561
+ activationChainHalted?: true | undefined;
562
+ actualCostWei?: string | undefined;
563
+ reviewRequired?: true | undefined;
564
+ 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;
565
+ };
566
+ requiresOperationReview: boolean;
567
+ confirmation: "I reviewed this position collection and sponsored atomic batch" | "I reviewed this position collection and account-paid atomic batch";
568
+ protocolActionVerified: boolean;
569
+ automaticExecutionEnabled: false;
570
+ walletAuthorityChangeIncluded: false;
571
+ retrySafe: false;
572
+ userOpHash?: string | undefined;
573
+ transactionHash?: string | undefined;
574
+ settlement?: {
575
+ status: "unknown" | "held";
576
+ reason: string;
577
+ userOpHash: string;
578
+ transactionHash: string;
579
+ releaseClaim: false;
580
+ retrySafe: false;
581
+ } | {
582
+ userOpHash: string;
583
+ transactionHash: string;
584
+ blockHash: string;
585
+ blockNumber: string;
586
+ userOpNonce: string;
587
+ owner: string;
588
+ chainId: 8453;
589
+ pool: string;
590
+ tokenId: string;
591
+ planCommitment: string;
592
+ baselineCommitment: string;
593
+ accountingCommitment: string;
594
+ collectedRaw: [string, string];
595
+ liquidityDelta: "0";
596
+ ownerBalancesAtBlock: [string, string];
597
+ nftTokenApprovalCleared: true;
598
+ erc20AllowancesCleared: true;
599
+ actualGasCostWei: string;
600
+ actualGasUsed: string;
601
+ paymaster: string;
602
+ profitClassification: "UNKNOWN";
603
+ distributableProfitRaw: null;
604
+ releaseClaim: true;
605
+ retrySafe: false;
606
+ finality: {
607
+ policyCommitment: string;
608
+ observedAtMs: number;
609
+ finalizedBlockNumber: string;
610
+ finalizedBlockHash: string;
611
+ confirmations: string;
612
+ };
613
+ status: "completed";
614
+ protocolActionVerified: true;
615
+ } | {
616
+ userOpHash: string;
617
+ transactionHash: string;
618
+ blockHash: string;
619
+ blockNumber: string;
620
+ userOpNonce: string;
621
+ owner: string;
622
+ chainId: 8453;
623
+ pool: string;
624
+ tokenId: string;
625
+ planCommitment: string;
626
+ baselineCommitment: string;
627
+ accountingCommitment: string;
628
+ collectedRaw: [string, string];
629
+ liquidityDelta: "0";
630
+ ownerBalancesAtBlock: [string, string];
631
+ nftTokenApprovalCleared: true;
632
+ erc20AllowancesCleared: true;
633
+ actualGasCostWei: string;
634
+ actualGasUsed: string;
635
+ paymaster: string;
636
+ profitClassification: "UNKNOWN";
637
+ distributableProfitRaw: null;
638
+ releaseClaim: true;
639
+ retrySafe: false;
640
+ finality: {
641
+ policyCommitment: string;
642
+ observedAtMs: number;
643
+ finalizedBlockNumber: string;
644
+ finalizedBlockHash: string;
645
+ confirmations: string;
646
+ };
647
+ status: "reverted";
648
+ protocolActionVerified: false;
649
+ } | undefined;
650
+ failureCode?: "SPONSOR_GAS_CAP_EXCEEDED" | "SPONSOR_NOT_SUBMITTED" | "SPONSOR_USER_OPERATION_REVERTED" | undefined;
651
+ attention?: "The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement." | undefined;
652
+ }>;
653
+ submit: (input: unknown) => Promise<{
654
+ schemaVersion: "1";
655
+ kind: "lp-collect-userop";
656
+ operationId: string;
657
+ account: string;
658
+ chainId: 8453;
659
+ protocol: "uniswap-v3";
660
+ action: "guarded-collect";
661
+ pool: string;
662
+ tokenId: string;
663
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
664
+ reviewConsumed: boolean;
665
+ envelopeCommitment: string;
666
+ reviewCommitment: string;
667
+ validUntilMs: number;
668
+ collection: {
669
+ tokens: [string, string];
670
+ maximum: [string, string];
671
+ minimum: [string, string];
672
+ tokensOwedAtReview: [string, string];
673
+ maximumAuthorized: [string, string];
674
+ mayIncludeOwedPrincipal: true;
675
+ profitClassification: "UNKNOWN";
676
+ distributableProfitRaw: null;
677
+ };
678
+ gas: {
679
+ payer: "account";
680
+ paymentReview: {
681
+ version: 1;
682
+ revision: number;
683
+ payer: "account" | "sponsor";
684
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
685
+ subsidyCapUsdMicros: "100000";
686
+ quote: {
687
+ version: 1;
688
+ kind: "estimate";
689
+ payer: "user";
690
+ account: string;
691
+ chainId: 1 | 8453 | 42161 | 10 | 137;
692
+ entryPoint: string;
693
+ nativeAsset: {
694
+ symbol: "ETH" | "POL";
695
+ decimals: 18;
696
+ };
697
+ callsCommitment: string;
698
+ nonce: string;
699
+ blockNumber: string;
700
+ blockHash: string;
701
+ blockTimestampMs: number;
702
+ observedAtMs: number;
703
+ expiresAtMs: number;
704
+ simulation: "sender-balance-override";
705
+ providerEstimate: {
706
+ blockAnchor: "unanchored";
707
+ startedAtMs: number;
708
+ completedAtMs: number;
709
+ elapsedMs: number;
710
+ };
711
+ gas: {
712
+ callGasLimit: string;
713
+ verificationGasLimit: string;
714
+ preVerificationGas: string;
715
+ maxFeePerGasWei: string;
716
+ maxPriorityFeePerGasWei: string;
717
+ estimatedPrefundWei: string;
718
+ reserveWei: string;
719
+ estimatedRequiredWei: string;
720
+ reserveBps: "2500";
721
+ };
722
+ balance: {
723
+ nativeWei: string;
724
+ entryPointDepositWei: string;
725
+ callValueWei: string;
726
+ depositAppliedToGasWei: string;
727
+ walletGasRequirementWei: string;
728
+ nativeAvailableForGasWei: string;
729
+ gasShortfallWei: string;
730
+ requiredNativeWei: string;
731
+ shortfallWei: string;
732
+ };
733
+ usdPrice?: {
734
+ amountAtomic: string;
735
+ decimals: number;
736
+ observedAtMs: number;
737
+ expiresAtMs: number;
738
+ } | undefined;
739
+ estimatedGasCostUsdMicros?: string | undefined;
740
+ sponsoredEstimate?: {
741
+ kind: "estimate";
742
+ simulation: "paymaster-stub";
743
+ entryPointVersion: "0.6";
744
+ paymaster: string;
745
+ sponsorshipPolicyId: string;
746
+ paymasterAndDataCommitment: string;
747
+ providerEstimate: {
748
+ blockAnchor: "unanchored";
749
+ startedAtMs: number;
750
+ completedAtMs: number;
751
+ elapsedMs: number;
752
+ };
753
+ gas: {
754
+ callGasLimit: string;
755
+ verificationGasLimit: string;
756
+ preVerificationGas: string;
757
+ maxFeePerGasWei: string;
758
+ maxPriorityFeePerGasWei: string;
759
+ verificationGasMultiplier: "3";
760
+ estimatedPrefundWei: string;
761
+ reserveWei: string;
762
+ estimatedRequiredWei: string;
763
+ reserveBps: "2500";
764
+ };
765
+ estimatedGasCostUsdMicros?: string | undefined;
766
+ } | undefined;
767
+ };
768
+ };
769
+ actualCostWei?: string | undefined;
770
+ reviewRequired?: true | undefined;
771
+ 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;
772
+ } | {
773
+ maximumUserCostWei: string;
774
+ maximumActivationCostWei: string;
775
+ payer: "sponsor";
776
+ maximumCostWei: string;
777
+ paymentReview?: {
778
+ version: 1;
779
+ revision: number;
780
+ payer: "account" | "sponsor";
781
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
782
+ subsidyCapUsdMicros: "100000";
783
+ quote: {
784
+ version: 1;
785
+ kind: "estimate";
786
+ payer: "user";
787
+ account: string;
788
+ chainId: 1 | 8453 | 42161 | 10 | 137;
789
+ entryPoint: string;
790
+ nativeAsset: {
791
+ symbol: "ETH" | "POL";
792
+ decimals: 18;
793
+ };
794
+ callsCommitment: string;
795
+ nonce: string;
796
+ blockNumber: string;
797
+ blockHash: string;
798
+ blockTimestampMs: number;
799
+ observedAtMs: number;
800
+ expiresAtMs: number;
801
+ simulation: "sender-balance-override";
802
+ providerEstimate: {
803
+ blockAnchor: "unanchored";
804
+ startedAtMs: number;
805
+ completedAtMs: number;
806
+ elapsedMs: number;
807
+ };
808
+ gas: {
809
+ callGasLimit: string;
810
+ verificationGasLimit: string;
811
+ preVerificationGas: string;
812
+ maxFeePerGasWei: string;
813
+ maxPriorityFeePerGasWei: string;
814
+ estimatedPrefundWei: string;
815
+ reserveWei: string;
816
+ estimatedRequiredWei: string;
817
+ reserveBps: "2500";
818
+ };
819
+ balance: {
820
+ nativeWei: string;
821
+ entryPointDepositWei: string;
822
+ callValueWei: string;
823
+ depositAppliedToGasWei: string;
824
+ walletGasRequirementWei: string;
825
+ nativeAvailableForGasWei: string;
826
+ gasShortfallWei: string;
827
+ requiredNativeWei: string;
828
+ shortfallWei: string;
829
+ };
830
+ usdPrice?: {
831
+ amountAtomic: string;
832
+ decimals: number;
833
+ observedAtMs: number;
834
+ expiresAtMs: number;
835
+ } | undefined;
836
+ estimatedGasCostUsdMicros?: string | undefined;
837
+ sponsoredEstimate?: {
838
+ kind: "estimate";
839
+ simulation: "paymaster-stub";
840
+ entryPointVersion: "0.6";
841
+ paymaster: string;
842
+ sponsorshipPolicyId: string;
843
+ paymasterAndDataCommitment: string;
844
+ providerEstimate: {
845
+ blockAnchor: "unanchored";
846
+ startedAtMs: number;
847
+ completedAtMs: number;
848
+ elapsedMs: number;
849
+ };
850
+ gas: {
851
+ callGasLimit: string;
852
+ verificationGasLimit: string;
853
+ preVerificationGas: string;
854
+ maxFeePerGasWei: string;
855
+ maxPriorityFeePerGasWei: string;
856
+ verificationGasMultiplier: "3";
857
+ estimatedPrefundWei: string;
858
+ reserveWei: string;
859
+ estimatedRequiredWei: string;
860
+ reserveBps: "2500";
861
+ };
862
+ estimatedGasCostUsdMicros?: string | undefined;
863
+ } | undefined;
864
+ };
865
+ } | undefined;
866
+ activationChainHalted?: true | undefined;
867
+ actualCostWei?: string | undefined;
868
+ reviewRequired?: true | undefined;
869
+ 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;
870
+ };
871
+ requiresOperationReview: boolean;
872
+ confirmation: "I reviewed this position collection and sponsored atomic batch" | "I reviewed this position collection and account-paid atomic batch";
873
+ protocolActionVerified: boolean;
874
+ automaticExecutionEnabled: false;
875
+ walletAuthorityChangeIncluded: false;
876
+ retrySafe: false;
877
+ userOpHash?: string | undefined;
878
+ transactionHash?: string | undefined;
879
+ settlement?: {
880
+ status: "unknown" | "held";
881
+ reason: string;
882
+ userOpHash: string;
883
+ transactionHash: string;
884
+ releaseClaim: false;
885
+ retrySafe: false;
886
+ } | {
887
+ userOpHash: string;
888
+ transactionHash: string;
889
+ blockHash: string;
890
+ blockNumber: string;
891
+ userOpNonce: string;
892
+ owner: string;
893
+ chainId: 8453;
894
+ pool: string;
895
+ tokenId: string;
896
+ planCommitment: string;
897
+ baselineCommitment: string;
898
+ accountingCommitment: string;
899
+ collectedRaw: [string, string];
900
+ liquidityDelta: "0";
901
+ ownerBalancesAtBlock: [string, string];
902
+ nftTokenApprovalCleared: true;
903
+ erc20AllowancesCleared: true;
904
+ actualGasCostWei: string;
905
+ actualGasUsed: string;
906
+ paymaster: string;
907
+ profitClassification: "UNKNOWN";
908
+ distributableProfitRaw: null;
909
+ releaseClaim: true;
910
+ retrySafe: false;
911
+ finality: {
912
+ policyCommitment: string;
913
+ observedAtMs: number;
914
+ finalizedBlockNumber: string;
915
+ finalizedBlockHash: string;
916
+ confirmations: string;
917
+ };
918
+ status: "completed";
919
+ protocolActionVerified: true;
920
+ } | {
921
+ userOpHash: string;
922
+ transactionHash: string;
923
+ blockHash: string;
924
+ blockNumber: string;
925
+ userOpNonce: string;
926
+ owner: string;
927
+ chainId: 8453;
928
+ pool: string;
929
+ tokenId: string;
930
+ planCommitment: string;
931
+ baselineCommitment: string;
932
+ accountingCommitment: string;
933
+ collectedRaw: [string, string];
934
+ liquidityDelta: "0";
935
+ ownerBalancesAtBlock: [string, string];
936
+ nftTokenApprovalCleared: true;
937
+ erc20AllowancesCleared: true;
938
+ actualGasCostWei: string;
939
+ actualGasUsed: string;
940
+ paymaster: string;
941
+ profitClassification: "UNKNOWN";
942
+ distributableProfitRaw: null;
943
+ releaseClaim: true;
944
+ retrySafe: false;
945
+ finality: {
946
+ policyCommitment: string;
947
+ observedAtMs: number;
948
+ finalizedBlockNumber: string;
949
+ finalizedBlockHash: string;
950
+ confirmations: string;
951
+ };
952
+ status: "reverted";
953
+ protocolActionVerified: false;
954
+ } | undefined;
955
+ failureCode?: "SPONSOR_GAS_CAP_EXCEEDED" | "SPONSOR_NOT_SUBMITTED" | "SPONSOR_USER_OPERATION_REVERTED" | undefined;
956
+ attention?: "The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement." | undefined;
957
+ }>;
958
+ read: (input: unknown) => Promise<{
959
+ schemaVersion: "1";
960
+ kind: "lp-collect-userop";
961
+ operationId: string;
962
+ account: string;
963
+ chainId: 8453;
964
+ protocol: "uniswap-v3";
965
+ action: "guarded-collect";
966
+ pool: string;
967
+ tokenId: string;
968
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
969
+ reviewConsumed: boolean;
970
+ envelopeCommitment: string;
971
+ reviewCommitment: string;
972
+ validUntilMs: number;
973
+ collection: {
974
+ tokens: [string, string];
975
+ maximum: [string, string];
976
+ minimum: [string, string];
977
+ tokensOwedAtReview: [string, string];
978
+ maximumAuthorized: [string, string];
979
+ mayIncludeOwedPrincipal: true;
980
+ profitClassification: "UNKNOWN";
981
+ distributableProfitRaw: null;
982
+ };
983
+ gas: {
984
+ payer: "account";
985
+ paymentReview: {
986
+ version: 1;
987
+ revision: number;
988
+ payer: "account" | "sponsor";
989
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
990
+ subsidyCapUsdMicros: "100000";
991
+ quote: {
992
+ version: 1;
993
+ kind: "estimate";
994
+ payer: "user";
995
+ account: string;
996
+ chainId: 1 | 8453 | 42161 | 10 | 137;
997
+ entryPoint: string;
998
+ nativeAsset: {
999
+ symbol: "ETH" | "POL";
1000
+ decimals: 18;
1001
+ };
1002
+ callsCommitment: string;
1003
+ nonce: string;
1004
+ blockNumber: string;
1005
+ blockHash: string;
1006
+ blockTimestampMs: number;
1007
+ observedAtMs: number;
1008
+ expiresAtMs: number;
1009
+ simulation: "sender-balance-override";
1010
+ providerEstimate: {
1011
+ blockAnchor: "unanchored";
1012
+ startedAtMs: number;
1013
+ completedAtMs: number;
1014
+ elapsedMs: number;
1015
+ };
1016
+ gas: {
1017
+ callGasLimit: string;
1018
+ verificationGasLimit: string;
1019
+ preVerificationGas: string;
1020
+ maxFeePerGasWei: string;
1021
+ maxPriorityFeePerGasWei: string;
1022
+ estimatedPrefundWei: string;
1023
+ reserveWei: string;
1024
+ estimatedRequiredWei: string;
1025
+ reserveBps: "2500";
1026
+ };
1027
+ balance: {
1028
+ nativeWei: string;
1029
+ entryPointDepositWei: string;
1030
+ callValueWei: string;
1031
+ depositAppliedToGasWei: string;
1032
+ walletGasRequirementWei: string;
1033
+ nativeAvailableForGasWei: string;
1034
+ gasShortfallWei: string;
1035
+ requiredNativeWei: string;
1036
+ shortfallWei: string;
1037
+ };
1038
+ usdPrice?: {
1039
+ amountAtomic: string;
1040
+ decimals: number;
1041
+ observedAtMs: number;
1042
+ expiresAtMs: number;
1043
+ } | undefined;
1044
+ estimatedGasCostUsdMicros?: string | undefined;
1045
+ sponsoredEstimate?: {
1046
+ kind: "estimate";
1047
+ simulation: "paymaster-stub";
1048
+ entryPointVersion: "0.6";
1049
+ paymaster: string;
1050
+ sponsorshipPolicyId: string;
1051
+ paymasterAndDataCommitment: string;
1052
+ providerEstimate: {
1053
+ blockAnchor: "unanchored";
1054
+ startedAtMs: number;
1055
+ completedAtMs: number;
1056
+ elapsedMs: number;
1057
+ };
1058
+ gas: {
1059
+ callGasLimit: string;
1060
+ verificationGasLimit: string;
1061
+ preVerificationGas: string;
1062
+ maxFeePerGasWei: string;
1063
+ maxPriorityFeePerGasWei: string;
1064
+ verificationGasMultiplier: "3";
1065
+ estimatedPrefundWei: string;
1066
+ reserveWei: string;
1067
+ estimatedRequiredWei: string;
1068
+ reserveBps: "2500";
1069
+ };
1070
+ estimatedGasCostUsdMicros?: string | undefined;
1071
+ } | undefined;
1072
+ };
1073
+ };
1074
+ actualCostWei?: string | undefined;
1075
+ reviewRequired?: true | undefined;
1076
+ 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;
1077
+ } | {
1078
+ maximumUserCostWei: string;
1079
+ maximumActivationCostWei: string;
1080
+ payer: "sponsor";
1081
+ maximumCostWei: string;
1082
+ paymentReview?: {
1083
+ version: 1;
1084
+ revision: number;
1085
+ payer: "account" | "sponsor";
1086
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
1087
+ subsidyCapUsdMicros: "100000";
1088
+ quote: {
1089
+ version: 1;
1090
+ kind: "estimate";
1091
+ payer: "user";
1092
+ account: string;
1093
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1094
+ entryPoint: string;
1095
+ nativeAsset: {
1096
+ symbol: "ETH" | "POL";
1097
+ decimals: 18;
1098
+ };
1099
+ callsCommitment: string;
1100
+ nonce: string;
1101
+ blockNumber: string;
1102
+ blockHash: string;
1103
+ blockTimestampMs: number;
1104
+ observedAtMs: number;
1105
+ expiresAtMs: number;
1106
+ simulation: "sender-balance-override";
1107
+ providerEstimate: {
1108
+ blockAnchor: "unanchored";
1109
+ startedAtMs: number;
1110
+ completedAtMs: number;
1111
+ elapsedMs: number;
1112
+ };
1113
+ gas: {
1114
+ callGasLimit: string;
1115
+ verificationGasLimit: string;
1116
+ preVerificationGas: string;
1117
+ maxFeePerGasWei: string;
1118
+ maxPriorityFeePerGasWei: string;
1119
+ estimatedPrefundWei: string;
1120
+ reserveWei: string;
1121
+ estimatedRequiredWei: string;
1122
+ reserveBps: "2500";
1123
+ };
1124
+ balance: {
1125
+ nativeWei: string;
1126
+ entryPointDepositWei: string;
1127
+ callValueWei: string;
1128
+ depositAppliedToGasWei: string;
1129
+ walletGasRequirementWei: string;
1130
+ nativeAvailableForGasWei: string;
1131
+ gasShortfallWei: string;
1132
+ requiredNativeWei: string;
1133
+ shortfallWei: string;
1134
+ };
1135
+ usdPrice?: {
1136
+ amountAtomic: string;
1137
+ decimals: number;
1138
+ observedAtMs: number;
1139
+ expiresAtMs: number;
1140
+ } | undefined;
1141
+ estimatedGasCostUsdMicros?: string | undefined;
1142
+ sponsoredEstimate?: {
1143
+ kind: "estimate";
1144
+ simulation: "paymaster-stub";
1145
+ entryPointVersion: "0.6";
1146
+ paymaster: string;
1147
+ sponsorshipPolicyId: string;
1148
+ paymasterAndDataCommitment: string;
1149
+ providerEstimate: {
1150
+ blockAnchor: "unanchored";
1151
+ startedAtMs: number;
1152
+ completedAtMs: number;
1153
+ elapsedMs: number;
1154
+ };
1155
+ gas: {
1156
+ callGasLimit: string;
1157
+ verificationGasLimit: string;
1158
+ preVerificationGas: string;
1159
+ maxFeePerGasWei: string;
1160
+ maxPriorityFeePerGasWei: string;
1161
+ verificationGasMultiplier: "3";
1162
+ estimatedPrefundWei: string;
1163
+ reserveWei: string;
1164
+ estimatedRequiredWei: string;
1165
+ reserveBps: "2500";
1166
+ };
1167
+ estimatedGasCostUsdMicros?: string | undefined;
1168
+ } | undefined;
1169
+ };
1170
+ } | undefined;
1171
+ activationChainHalted?: true | undefined;
1172
+ actualCostWei?: string | undefined;
1173
+ reviewRequired?: true | undefined;
1174
+ 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;
1175
+ };
1176
+ requiresOperationReview: boolean;
1177
+ confirmation: "I reviewed this position collection and sponsored atomic batch" | "I reviewed this position collection and account-paid atomic batch";
1178
+ protocolActionVerified: boolean;
1179
+ automaticExecutionEnabled: false;
1180
+ walletAuthorityChangeIncluded: false;
1181
+ retrySafe: false;
1182
+ userOpHash?: string | undefined;
1183
+ transactionHash?: string | undefined;
1184
+ settlement?: {
1185
+ status: "unknown" | "held";
1186
+ reason: string;
1187
+ userOpHash: string;
1188
+ transactionHash: string;
1189
+ releaseClaim: false;
1190
+ retrySafe: false;
1191
+ } | {
1192
+ userOpHash: string;
1193
+ transactionHash: string;
1194
+ blockHash: string;
1195
+ blockNumber: string;
1196
+ userOpNonce: string;
1197
+ owner: string;
1198
+ chainId: 8453;
1199
+ pool: string;
1200
+ tokenId: string;
1201
+ planCommitment: string;
1202
+ baselineCommitment: string;
1203
+ accountingCommitment: string;
1204
+ collectedRaw: [string, string];
1205
+ liquidityDelta: "0";
1206
+ ownerBalancesAtBlock: [string, string];
1207
+ nftTokenApprovalCleared: true;
1208
+ erc20AllowancesCleared: true;
1209
+ actualGasCostWei: string;
1210
+ actualGasUsed: string;
1211
+ paymaster: string;
1212
+ profitClassification: "UNKNOWN";
1213
+ distributableProfitRaw: null;
1214
+ releaseClaim: true;
1215
+ retrySafe: false;
1216
+ finality: {
1217
+ policyCommitment: string;
1218
+ observedAtMs: number;
1219
+ finalizedBlockNumber: string;
1220
+ finalizedBlockHash: string;
1221
+ confirmations: string;
1222
+ };
1223
+ status: "completed";
1224
+ protocolActionVerified: true;
1225
+ } | {
1226
+ userOpHash: string;
1227
+ transactionHash: string;
1228
+ blockHash: string;
1229
+ blockNumber: string;
1230
+ userOpNonce: string;
1231
+ owner: string;
1232
+ chainId: 8453;
1233
+ pool: string;
1234
+ tokenId: string;
1235
+ planCommitment: string;
1236
+ baselineCommitment: string;
1237
+ accountingCommitment: string;
1238
+ collectedRaw: [string, string];
1239
+ liquidityDelta: "0";
1240
+ ownerBalancesAtBlock: [string, string];
1241
+ nftTokenApprovalCleared: true;
1242
+ erc20AllowancesCleared: true;
1243
+ actualGasCostWei: string;
1244
+ actualGasUsed: string;
1245
+ paymaster: string;
1246
+ profitClassification: "UNKNOWN";
1247
+ distributableProfitRaw: null;
1248
+ releaseClaim: true;
1249
+ retrySafe: false;
1250
+ finality: {
1251
+ policyCommitment: string;
1252
+ observedAtMs: number;
1253
+ finalizedBlockNumber: string;
1254
+ finalizedBlockHash: string;
1255
+ confirmations: string;
1256
+ };
1257
+ status: "reverted";
1258
+ protocolActionVerified: false;
1259
+ } | undefined;
1260
+ failureCode?: "SPONSOR_GAS_CAP_EXCEEDED" | "SPONSOR_NOT_SUBMITTED" | "SPONSOR_USER_OPERATION_REVERTED" | undefined;
1261
+ attention?: "The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement." | undefined;
1262
+ }>;
1263
+ reconcile: (input: unknown) => Promise<{
1264
+ schemaVersion: "1";
1265
+ kind: "lp-collect-userop";
1266
+ operationId: string;
1267
+ account: string;
1268
+ chainId: 8453;
1269
+ protocol: "uniswap-v3";
1270
+ action: "guarded-collect";
1271
+ pool: string;
1272
+ tokenId: string;
1273
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
1274
+ reviewConsumed: boolean;
1275
+ envelopeCommitment: string;
1276
+ reviewCommitment: string;
1277
+ validUntilMs: number;
1278
+ collection: {
1279
+ tokens: [string, string];
1280
+ maximum: [string, string];
1281
+ minimum: [string, string];
1282
+ tokensOwedAtReview: [string, string];
1283
+ maximumAuthorized: [string, string];
1284
+ mayIncludeOwedPrincipal: true;
1285
+ profitClassification: "UNKNOWN";
1286
+ distributableProfitRaw: null;
1287
+ };
1288
+ gas: {
1289
+ payer: "account";
1290
+ paymentReview: {
1291
+ version: 1;
1292
+ revision: number;
1293
+ payer: "account" | "sponsor";
1294
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
1295
+ subsidyCapUsdMicros: "100000";
1296
+ quote: {
1297
+ version: 1;
1298
+ kind: "estimate";
1299
+ payer: "user";
1300
+ account: string;
1301
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1302
+ entryPoint: string;
1303
+ nativeAsset: {
1304
+ symbol: "ETH" | "POL";
1305
+ decimals: 18;
1306
+ };
1307
+ callsCommitment: string;
1308
+ nonce: string;
1309
+ blockNumber: string;
1310
+ blockHash: string;
1311
+ blockTimestampMs: number;
1312
+ observedAtMs: number;
1313
+ expiresAtMs: number;
1314
+ simulation: "sender-balance-override";
1315
+ providerEstimate: {
1316
+ blockAnchor: "unanchored";
1317
+ startedAtMs: number;
1318
+ completedAtMs: number;
1319
+ elapsedMs: number;
1320
+ };
1321
+ gas: {
1322
+ callGasLimit: string;
1323
+ verificationGasLimit: string;
1324
+ preVerificationGas: string;
1325
+ maxFeePerGasWei: string;
1326
+ maxPriorityFeePerGasWei: string;
1327
+ estimatedPrefundWei: string;
1328
+ reserveWei: string;
1329
+ estimatedRequiredWei: string;
1330
+ reserveBps: "2500";
1331
+ };
1332
+ balance: {
1333
+ nativeWei: string;
1334
+ entryPointDepositWei: string;
1335
+ callValueWei: string;
1336
+ depositAppliedToGasWei: string;
1337
+ walletGasRequirementWei: string;
1338
+ nativeAvailableForGasWei: string;
1339
+ gasShortfallWei: string;
1340
+ requiredNativeWei: string;
1341
+ shortfallWei: string;
1342
+ };
1343
+ usdPrice?: {
1344
+ amountAtomic: string;
1345
+ decimals: number;
1346
+ observedAtMs: number;
1347
+ expiresAtMs: number;
1348
+ } | undefined;
1349
+ estimatedGasCostUsdMicros?: string | undefined;
1350
+ sponsoredEstimate?: {
1351
+ kind: "estimate";
1352
+ simulation: "paymaster-stub";
1353
+ entryPointVersion: "0.6";
1354
+ paymaster: string;
1355
+ sponsorshipPolicyId: string;
1356
+ paymasterAndDataCommitment: string;
1357
+ providerEstimate: {
1358
+ blockAnchor: "unanchored";
1359
+ startedAtMs: number;
1360
+ completedAtMs: number;
1361
+ elapsedMs: number;
1362
+ };
1363
+ gas: {
1364
+ callGasLimit: string;
1365
+ verificationGasLimit: string;
1366
+ preVerificationGas: string;
1367
+ maxFeePerGasWei: string;
1368
+ maxPriorityFeePerGasWei: string;
1369
+ verificationGasMultiplier: "3";
1370
+ estimatedPrefundWei: string;
1371
+ reserveWei: string;
1372
+ estimatedRequiredWei: string;
1373
+ reserveBps: "2500";
1374
+ };
1375
+ estimatedGasCostUsdMicros?: string | undefined;
1376
+ } | undefined;
1377
+ };
1378
+ };
1379
+ actualCostWei?: string | undefined;
1380
+ reviewRequired?: true | undefined;
1381
+ 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;
1382
+ } | {
1383
+ maximumUserCostWei: string;
1384
+ maximumActivationCostWei: string;
1385
+ payer: "sponsor";
1386
+ maximumCostWei: string;
1387
+ paymentReview?: {
1388
+ version: 1;
1389
+ revision: number;
1390
+ payer: "account" | "sponsor";
1391
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
1392
+ subsidyCapUsdMicros: "100000";
1393
+ quote: {
1394
+ version: 1;
1395
+ kind: "estimate";
1396
+ payer: "user";
1397
+ account: string;
1398
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1399
+ entryPoint: string;
1400
+ nativeAsset: {
1401
+ symbol: "ETH" | "POL";
1402
+ decimals: 18;
1403
+ };
1404
+ callsCommitment: string;
1405
+ nonce: string;
1406
+ blockNumber: string;
1407
+ blockHash: string;
1408
+ blockTimestampMs: number;
1409
+ observedAtMs: number;
1410
+ expiresAtMs: number;
1411
+ simulation: "sender-balance-override";
1412
+ providerEstimate: {
1413
+ blockAnchor: "unanchored";
1414
+ startedAtMs: number;
1415
+ completedAtMs: number;
1416
+ elapsedMs: number;
1417
+ };
1418
+ gas: {
1419
+ callGasLimit: string;
1420
+ verificationGasLimit: string;
1421
+ preVerificationGas: string;
1422
+ maxFeePerGasWei: string;
1423
+ maxPriorityFeePerGasWei: string;
1424
+ estimatedPrefundWei: string;
1425
+ reserveWei: string;
1426
+ estimatedRequiredWei: string;
1427
+ reserveBps: "2500";
1428
+ };
1429
+ balance: {
1430
+ nativeWei: string;
1431
+ entryPointDepositWei: string;
1432
+ callValueWei: string;
1433
+ depositAppliedToGasWei: string;
1434
+ walletGasRequirementWei: string;
1435
+ nativeAvailableForGasWei: string;
1436
+ gasShortfallWei: string;
1437
+ requiredNativeWei: string;
1438
+ shortfallWei: string;
1439
+ };
1440
+ usdPrice?: {
1441
+ amountAtomic: string;
1442
+ decimals: number;
1443
+ observedAtMs: number;
1444
+ expiresAtMs: number;
1445
+ } | undefined;
1446
+ estimatedGasCostUsdMicros?: string | undefined;
1447
+ sponsoredEstimate?: {
1448
+ kind: "estimate";
1449
+ simulation: "paymaster-stub";
1450
+ entryPointVersion: "0.6";
1451
+ paymaster: string;
1452
+ sponsorshipPolicyId: string;
1453
+ paymasterAndDataCommitment: string;
1454
+ providerEstimate: {
1455
+ blockAnchor: "unanchored";
1456
+ startedAtMs: number;
1457
+ completedAtMs: number;
1458
+ elapsedMs: number;
1459
+ };
1460
+ gas: {
1461
+ callGasLimit: string;
1462
+ verificationGasLimit: string;
1463
+ preVerificationGas: string;
1464
+ maxFeePerGasWei: string;
1465
+ maxPriorityFeePerGasWei: string;
1466
+ verificationGasMultiplier: "3";
1467
+ estimatedPrefundWei: string;
1468
+ reserveWei: string;
1469
+ estimatedRequiredWei: string;
1470
+ reserveBps: "2500";
1471
+ };
1472
+ estimatedGasCostUsdMicros?: string | undefined;
1473
+ } | undefined;
1474
+ };
1475
+ } | undefined;
1476
+ activationChainHalted?: true | undefined;
1477
+ actualCostWei?: string | undefined;
1478
+ reviewRequired?: true | undefined;
1479
+ 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;
1480
+ };
1481
+ requiresOperationReview: boolean;
1482
+ confirmation: "I reviewed this position collection and sponsored atomic batch" | "I reviewed this position collection and account-paid atomic batch";
1483
+ protocolActionVerified: boolean;
1484
+ automaticExecutionEnabled: false;
1485
+ walletAuthorityChangeIncluded: false;
1486
+ retrySafe: false;
1487
+ userOpHash?: string | undefined;
1488
+ transactionHash?: string | undefined;
1489
+ settlement?: {
1490
+ status: "unknown" | "held";
1491
+ reason: string;
1492
+ userOpHash: string;
1493
+ transactionHash: string;
1494
+ releaseClaim: false;
1495
+ retrySafe: false;
1496
+ } | {
1497
+ userOpHash: string;
1498
+ transactionHash: string;
1499
+ blockHash: string;
1500
+ blockNumber: string;
1501
+ userOpNonce: string;
1502
+ owner: string;
1503
+ chainId: 8453;
1504
+ pool: string;
1505
+ tokenId: string;
1506
+ planCommitment: string;
1507
+ baselineCommitment: string;
1508
+ accountingCommitment: string;
1509
+ collectedRaw: [string, string];
1510
+ liquidityDelta: "0";
1511
+ ownerBalancesAtBlock: [string, string];
1512
+ nftTokenApprovalCleared: true;
1513
+ erc20AllowancesCleared: true;
1514
+ actualGasCostWei: string;
1515
+ actualGasUsed: string;
1516
+ paymaster: string;
1517
+ profitClassification: "UNKNOWN";
1518
+ distributableProfitRaw: null;
1519
+ releaseClaim: true;
1520
+ retrySafe: false;
1521
+ finality: {
1522
+ policyCommitment: string;
1523
+ observedAtMs: number;
1524
+ finalizedBlockNumber: string;
1525
+ finalizedBlockHash: string;
1526
+ confirmations: string;
1527
+ };
1528
+ status: "completed";
1529
+ protocolActionVerified: true;
1530
+ } | {
1531
+ userOpHash: string;
1532
+ transactionHash: string;
1533
+ blockHash: string;
1534
+ blockNumber: string;
1535
+ userOpNonce: string;
1536
+ owner: string;
1537
+ chainId: 8453;
1538
+ pool: string;
1539
+ tokenId: string;
1540
+ planCommitment: string;
1541
+ baselineCommitment: string;
1542
+ accountingCommitment: string;
1543
+ collectedRaw: [string, string];
1544
+ liquidityDelta: "0";
1545
+ ownerBalancesAtBlock: [string, string];
1546
+ nftTokenApprovalCleared: true;
1547
+ erc20AllowancesCleared: true;
1548
+ actualGasCostWei: string;
1549
+ actualGasUsed: string;
1550
+ paymaster: string;
1551
+ profitClassification: "UNKNOWN";
1552
+ distributableProfitRaw: null;
1553
+ releaseClaim: true;
1554
+ retrySafe: false;
1555
+ finality: {
1556
+ policyCommitment: string;
1557
+ observedAtMs: number;
1558
+ finalizedBlockNumber: string;
1559
+ finalizedBlockHash: string;
1560
+ confirmations: string;
1561
+ };
1562
+ status: "reverted";
1563
+ protocolActionVerified: false;
1564
+ } | undefined;
1565
+ failureCode?: "SPONSOR_GAS_CAP_EXCEEDED" | "SPONSOR_NOT_SUBMITTED" | "SPONSOR_USER_OPERATION_REVERTED" | undefined;
1566
+ attention?: "The original provider request is unresolved. Read or reconcile this operation; do not submit a replacement." | undefined;
1567
+ }>;
1568
+ }>>;
1569
+ export { LP_USEROP_ACCOUNT_PREPARE_INPUT, LP_USEROP_ACCOUNT_SUBMIT_INPUT, LP_USEROP_ACCOUNT_READ_INPUT, LP_USEROP_ACCOUNT_OPERATION_RESULT, type LpUserOpAccountView } from './lp-userop-account.js';