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,1322 @@
1
+ /** Server/application entry. Empty committed activation pins refuse before opening any journal. */
2
+ import type { PublicClient } from 'viem';
3
+ import type { DelegationCapStore } from './execution-delegation-cap-store.js';
4
+ import { createSponsoredCdpTransport, type SponsoredChainId, type SponsoredProviderConfig } from './execution-sponsored-transport.js';
5
+ import { type SponsoredAccountCdp } from './execution-sponsored-runtime.js';
6
+ export declare function sponsoredAccountAvailability(): Readonly<{
7
+ requiresSeparateWalletUpgrade: true;
8
+ requiresOperationReview: true;
9
+ automaticExecutionEnabled: false;
10
+ supportedSameAddressChains: (1 | 8453 | 42161 | 10 | 137)[];
11
+ reason: "SPONSOR_ACTIVATION_UNCONFIGURED";
12
+ configured: boolean;
13
+ executionEnabled: boolean;
14
+ schemaVersion: "1";
15
+ } | {
16
+ requiresSeparateWalletUpgrade: true;
17
+ requiresOperationReview: true;
18
+ automaticExecutionEnabled: false;
19
+ supportedSameAddressChains: (1 | 8453 | 42161 | 10 | 137)[];
20
+ reason: "SPONSOR_CAPABILITY_UNAVAILABLE";
21
+ configured: boolean;
22
+ executionEnabled: boolean;
23
+ schemaVersion: "1";
24
+ } | {
25
+ requiresSeparateWalletUpgrade: true;
26
+ requiresOperationReview: true;
27
+ automaticExecutionEnabled: false;
28
+ supportedSameAddressChains: (1 | 8453 | 42161 | 10 | 137)[];
29
+ reason: "SPONSOR_ACTIVATION_UNAVAILABLE";
30
+ configured: boolean;
31
+ executionEnabled: boolean;
32
+ schemaVersion: "1";
33
+ } | {
34
+ requiresSeparateWalletUpgrade: true;
35
+ requiresOperationReview: true;
36
+ automaticExecutionEnabled: false;
37
+ supportedSameAddressChains: (1 | 8453 | 42161 | 10 | 137)[];
38
+ reason: "SPONSOR_RECOVERY_ONLY";
39
+ configured: boolean;
40
+ executionEnabled: boolean;
41
+ schemaVersion: "1";
42
+ } | {
43
+ requiresSeparateWalletUpgrade: true;
44
+ requiresOperationReview: true;
45
+ automaticExecutionEnabled: false;
46
+ supportedSameAddressChains: (1 | 8453 | 42161 | 10 | 137)[];
47
+ configured: boolean;
48
+ executionEnabled: boolean;
49
+ schemaVersion: "1";
50
+ }>;
51
+ export declare function createSponsoredAccountService(options: {
52
+ readonly cdp: SponsoredAccountCdp;
53
+ readonly capStore: DelegationCapStore;
54
+ readonly projectId: string;
55
+ readonly operationStorePath: string;
56
+ readonly clients: Readonly<Partial<Record<SponsoredChainId, PublicClient>>>;
57
+ readonly providers: readonly SponsoredProviderConfig[];
58
+ readonly credentials: Parameters<typeof createSponsoredCdpTransport>[0]['credentials'];
59
+ }): Promise<Readonly<{
60
+ availability: () => Promise<{
61
+ reason?: string | undefined;
62
+ executionEnabled: boolean;
63
+ recoveryAvailable: boolean;
64
+ requiresSeparateWalletUpgrade: true;
65
+ requiresOperationReview: true;
66
+ automaticExecutionEnabled: false;
67
+ supportedSameAddressChains: (1 | 8453 | 42161 | 10 | 137)[];
68
+ configured: boolean;
69
+ schemaVersion: "1";
70
+ }>;
71
+ reviewGas: (input: unknown) => Promise<Readonly<{
72
+ attention?: "The original provider request is unresolved. No replacement is permitted." | undefined;
73
+ requiresOperationReview?: true | undefined;
74
+ terms?: {
75
+ activationId: string;
76
+ perSwapCapUsdc: number;
77
+ grantExpiresAt: string;
78
+ scope: "one reviewed same-chain USDC swap into an explicitly reviewed ERC20, with allowance cleared in the same batch; native output is unsupported";
79
+ walletAuthorityChangeIncluded: false;
80
+ providerPolicyId: string;
81
+ } | undefined;
82
+ failureCode?: string | undefined;
83
+ settlement?: {
84
+ inputToken: `0x${string}`;
85
+ outputToken: `0x${string}`;
86
+ inputDebited: string;
87
+ outputReceived: string;
88
+ ottoFeeReceived: string;
89
+ allowanceAfter: "0";
90
+ userOpHash: string;
91
+ transactionHash: string;
92
+ } | undefined;
93
+ receipt?: {
94
+ chainId: 1 | 8453 | 42161 | 10 | 137;
95
+ account: `0x${string}`;
96
+ userOpHash: string;
97
+ transactionHash: string;
98
+ blockHash: string;
99
+ blockNumber: string;
100
+ nonce: string;
101
+ paymaster: `0x${string}`;
102
+ actualGasCostWei: string;
103
+ actualGasUsed: string;
104
+ status: "success" | "reverted";
105
+ } | undefined;
106
+ transactionHash?: string | undefined;
107
+ userOpHash?: string | undefined;
108
+ schemaVersion: "1";
109
+ operationId: string;
110
+ account: `0x${string}`;
111
+ chainId: 1 | 8453 | 42161 | 10 | 137;
112
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
113
+ reviewConsumed: boolean;
114
+ reviewCommitment: string;
115
+ validUntilMs: number;
116
+ input: {
117
+ token: `0x${string}`;
118
+ amount: string;
119
+ };
120
+ output: {
121
+ token: `0x${string}`;
122
+ minimum: string;
123
+ };
124
+ ottoFee: string;
125
+ gas: {
126
+ payer: "account";
127
+ paymentReview: {
128
+ version: 1;
129
+ revision: number;
130
+ payer: "account" | "sponsor";
131
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
132
+ subsidyCapUsdMicros: "100000";
133
+ quote: {
134
+ version: 1;
135
+ kind: "estimate";
136
+ payer: "user";
137
+ account: string;
138
+ chainId: 1 | 8453 | 42161 | 10 | 137;
139
+ entryPoint: string;
140
+ nativeAsset: {
141
+ symbol: "ETH" | "POL";
142
+ decimals: 18;
143
+ };
144
+ callsCommitment: string;
145
+ nonce: string;
146
+ blockNumber: string;
147
+ blockHash: string;
148
+ blockTimestampMs: number;
149
+ observedAtMs: number;
150
+ expiresAtMs: number;
151
+ simulation: "sender-balance-override";
152
+ providerEstimate: {
153
+ blockAnchor: "unanchored";
154
+ startedAtMs: number;
155
+ completedAtMs: number;
156
+ elapsedMs: number;
157
+ };
158
+ gas: {
159
+ callGasLimit: string;
160
+ verificationGasLimit: string;
161
+ preVerificationGas: string;
162
+ maxFeePerGasWei: string;
163
+ maxPriorityFeePerGasWei: string;
164
+ estimatedPrefundWei: string;
165
+ reserveWei: string;
166
+ estimatedRequiredWei: string;
167
+ reserveBps: "2500";
168
+ };
169
+ balance: {
170
+ nativeWei: string;
171
+ entryPointDepositWei: string;
172
+ callValueWei: string;
173
+ depositAppliedToGasWei: string;
174
+ walletGasRequirementWei: string;
175
+ nativeAvailableForGasWei: string;
176
+ gasShortfallWei: string;
177
+ requiredNativeWei: string;
178
+ shortfallWei: string;
179
+ };
180
+ usdPrice?: {
181
+ amountAtomic: string;
182
+ decimals: number;
183
+ observedAtMs: number;
184
+ expiresAtMs: number;
185
+ } | undefined;
186
+ estimatedGasCostUsdMicros?: string | undefined;
187
+ sponsoredEstimate?: {
188
+ kind: "estimate";
189
+ simulation: "paymaster-stub";
190
+ entryPointVersion: "0.6";
191
+ paymaster: string;
192
+ sponsorshipPolicyId: string;
193
+ paymasterAndDataCommitment: string;
194
+ providerEstimate: {
195
+ blockAnchor: "unanchored";
196
+ startedAtMs: number;
197
+ completedAtMs: number;
198
+ elapsedMs: number;
199
+ };
200
+ gas: {
201
+ callGasLimit: string;
202
+ verificationGasLimit: string;
203
+ preVerificationGas: string;
204
+ maxFeePerGasWei: string;
205
+ maxPriorityFeePerGasWei: string;
206
+ verificationGasMultiplier: "3";
207
+ estimatedPrefundWei: string;
208
+ reserveWei: string;
209
+ estimatedRequiredWei: string;
210
+ reserveBps: "2500";
211
+ };
212
+ estimatedGasCostUsdMicros?: string | undefined;
213
+ } | undefined;
214
+ };
215
+ };
216
+ actualCostWei?: string | undefined;
217
+ 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;
218
+ reviewRequired?: true | undefined;
219
+ } | {
220
+ actualCostWei?: string | undefined;
221
+ activationChainHalted?: true | undefined;
222
+ maximumCostWei: string;
223
+ maximumUserCostWei?: string;
224
+ maximumActivationCostWei?: string;
225
+ paymentReview?: {
226
+ version: 1;
227
+ revision: number;
228
+ payer: "account" | "sponsor";
229
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
230
+ subsidyCapUsdMicros: "100000";
231
+ quote: {
232
+ version: 1;
233
+ kind: "estimate";
234
+ payer: "user";
235
+ account: string;
236
+ chainId: 1 | 8453 | 42161 | 10 | 137;
237
+ entryPoint: string;
238
+ nativeAsset: {
239
+ symbol: "ETH" | "POL";
240
+ decimals: 18;
241
+ };
242
+ callsCommitment: string;
243
+ nonce: string;
244
+ blockNumber: string;
245
+ blockHash: string;
246
+ blockTimestampMs: number;
247
+ observedAtMs: number;
248
+ expiresAtMs: number;
249
+ simulation: "sender-balance-override";
250
+ providerEstimate: {
251
+ blockAnchor: "unanchored";
252
+ startedAtMs: number;
253
+ completedAtMs: number;
254
+ elapsedMs: number;
255
+ };
256
+ gas: {
257
+ callGasLimit: string;
258
+ verificationGasLimit: string;
259
+ preVerificationGas: string;
260
+ maxFeePerGasWei: string;
261
+ maxPriorityFeePerGasWei: string;
262
+ estimatedPrefundWei: string;
263
+ reserveWei: string;
264
+ estimatedRequiredWei: string;
265
+ reserveBps: "2500";
266
+ };
267
+ balance: {
268
+ nativeWei: string;
269
+ entryPointDepositWei: string;
270
+ callValueWei: string;
271
+ depositAppliedToGasWei: string;
272
+ walletGasRequirementWei: string;
273
+ nativeAvailableForGasWei: string;
274
+ gasShortfallWei: string;
275
+ requiredNativeWei: string;
276
+ shortfallWei: string;
277
+ };
278
+ usdPrice?: {
279
+ amountAtomic: string;
280
+ decimals: number;
281
+ observedAtMs: number;
282
+ expiresAtMs: number;
283
+ } | undefined;
284
+ estimatedGasCostUsdMicros?: string | undefined;
285
+ sponsoredEstimate?: {
286
+ kind: "estimate";
287
+ simulation: "paymaster-stub";
288
+ entryPointVersion: "0.6";
289
+ paymaster: string;
290
+ sponsorshipPolicyId: string;
291
+ paymasterAndDataCommitment: string;
292
+ providerEstimate: {
293
+ blockAnchor: "unanchored";
294
+ startedAtMs: number;
295
+ completedAtMs: number;
296
+ elapsedMs: number;
297
+ };
298
+ gas: {
299
+ callGasLimit: string;
300
+ verificationGasLimit: string;
301
+ preVerificationGas: string;
302
+ maxFeePerGasWei: string;
303
+ maxPriorityFeePerGasWei: string;
304
+ verificationGasMultiplier: "3";
305
+ estimatedPrefundWei: string;
306
+ reserveWei: string;
307
+ estimatedRequiredWei: string;
308
+ reserveBps: "2500";
309
+ };
310
+ estimatedGasCostUsdMicros?: string | undefined;
311
+ } | undefined;
312
+ };
313
+ } | undefined;
314
+ payer: "sponsor";
315
+ 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;
316
+ reviewRequired?: true | undefined;
317
+ };
318
+ walletAuthorityChangeIncluded: false;
319
+ automaticExecutionEnabled: false;
320
+ }>>;
321
+ prepare: (input: unknown) => Promise<Readonly<{
322
+ attention?: "The original provider request is unresolved. No replacement is permitted." | undefined;
323
+ requiresOperationReview?: true | undefined;
324
+ terms?: {
325
+ activationId: string;
326
+ perSwapCapUsdc: number;
327
+ grantExpiresAt: string;
328
+ scope: "one reviewed same-chain USDC swap into an explicitly reviewed ERC20, with allowance cleared in the same batch; native output is unsupported";
329
+ walletAuthorityChangeIncluded: false;
330
+ providerPolicyId: string;
331
+ } | undefined;
332
+ failureCode?: string | undefined;
333
+ settlement?: {
334
+ inputToken: `0x${string}`;
335
+ outputToken: `0x${string}`;
336
+ inputDebited: string;
337
+ outputReceived: string;
338
+ ottoFeeReceived: string;
339
+ allowanceAfter: "0";
340
+ userOpHash: string;
341
+ transactionHash: string;
342
+ } | undefined;
343
+ receipt?: {
344
+ chainId: 1 | 8453 | 42161 | 10 | 137;
345
+ account: `0x${string}`;
346
+ userOpHash: string;
347
+ transactionHash: string;
348
+ blockHash: string;
349
+ blockNumber: string;
350
+ nonce: string;
351
+ paymaster: `0x${string}`;
352
+ actualGasCostWei: string;
353
+ actualGasUsed: string;
354
+ status: "success" | "reverted";
355
+ } | undefined;
356
+ transactionHash?: string | undefined;
357
+ userOpHash?: string | undefined;
358
+ schemaVersion: "1";
359
+ operationId: string;
360
+ account: `0x${string}`;
361
+ chainId: 1 | 8453 | 42161 | 10 | 137;
362
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
363
+ reviewConsumed: boolean;
364
+ reviewCommitment: string;
365
+ validUntilMs: number;
366
+ input: {
367
+ token: `0x${string}`;
368
+ amount: string;
369
+ };
370
+ output: {
371
+ token: `0x${string}`;
372
+ minimum: string;
373
+ };
374
+ ottoFee: string;
375
+ gas: {
376
+ payer: "account";
377
+ paymentReview: {
378
+ version: 1;
379
+ revision: number;
380
+ payer: "account" | "sponsor";
381
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
382
+ subsidyCapUsdMicros: "100000";
383
+ quote: {
384
+ version: 1;
385
+ kind: "estimate";
386
+ payer: "user";
387
+ account: string;
388
+ chainId: 1 | 8453 | 42161 | 10 | 137;
389
+ entryPoint: string;
390
+ nativeAsset: {
391
+ symbol: "ETH" | "POL";
392
+ decimals: 18;
393
+ };
394
+ callsCommitment: string;
395
+ nonce: string;
396
+ blockNumber: string;
397
+ blockHash: string;
398
+ blockTimestampMs: number;
399
+ observedAtMs: number;
400
+ expiresAtMs: number;
401
+ simulation: "sender-balance-override";
402
+ providerEstimate: {
403
+ blockAnchor: "unanchored";
404
+ startedAtMs: number;
405
+ completedAtMs: number;
406
+ elapsedMs: number;
407
+ };
408
+ gas: {
409
+ callGasLimit: string;
410
+ verificationGasLimit: string;
411
+ preVerificationGas: string;
412
+ maxFeePerGasWei: string;
413
+ maxPriorityFeePerGasWei: string;
414
+ estimatedPrefundWei: string;
415
+ reserveWei: string;
416
+ estimatedRequiredWei: string;
417
+ reserveBps: "2500";
418
+ };
419
+ balance: {
420
+ nativeWei: string;
421
+ entryPointDepositWei: string;
422
+ callValueWei: string;
423
+ depositAppliedToGasWei: string;
424
+ walletGasRequirementWei: string;
425
+ nativeAvailableForGasWei: string;
426
+ gasShortfallWei: string;
427
+ requiredNativeWei: string;
428
+ shortfallWei: string;
429
+ };
430
+ usdPrice?: {
431
+ amountAtomic: string;
432
+ decimals: number;
433
+ observedAtMs: number;
434
+ expiresAtMs: number;
435
+ } | undefined;
436
+ estimatedGasCostUsdMicros?: string | undefined;
437
+ sponsoredEstimate?: {
438
+ kind: "estimate";
439
+ simulation: "paymaster-stub";
440
+ entryPointVersion: "0.6";
441
+ paymaster: string;
442
+ sponsorshipPolicyId: string;
443
+ paymasterAndDataCommitment: string;
444
+ providerEstimate: {
445
+ blockAnchor: "unanchored";
446
+ startedAtMs: number;
447
+ completedAtMs: number;
448
+ elapsedMs: number;
449
+ };
450
+ gas: {
451
+ callGasLimit: string;
452
+ verificationGasLimit: string;
453
+ preVerificationGas: string;
454
+ maxFeePerGasWei: string;
455
+ maxPriorityFeePerGasWei: string;
456
+ verificationGasMultiplier: "3";
457
+ estimatedPrefundWei: string;
458
+ reserveWei: string;
459
+ estimatedRequiredWei: string;
460
+ reserveBps: "2500";
461
+ };
462
+ estimatedGasCostUsdMicros?: string | undefined;
463
+ } | undefined;
464
+ };
465
+ };
466
+ actualCostWei?: string | undefined;
467
+ 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;
468
+ reviewRequired?: true | undefined;
469
+ } | {
470
+ actualCostWei?: string | undefined;
471
+ activationChainHalted?: true | undefined;
472
+ maximumCostWei: string;
473
+ maximumUserCostWei?: string;
474
+ maximumActivationCostWei?: string;
475
+ paymentReview?: {
476
+ version: 1;
477
+ revision: number;
478
+ payer: "account" | "sponsor";
479
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
480
+ subsidyCapUsdMicros: "100000";
481
+ quote: {
482
+ version: 1;
483
+ kind: "estimate";
484
+ payer: "user";
485
+ account: string;
486
+ chainId: 1 | 8453 | 42161 | 10 | 137;
487
+ entryPoint: string;
488
+ nativeAsset: {
489
+ symbol: "ETH" | "POL";
490
+ decimals: 18;
491
+ };
492
+ callsCommitment: string;
493
+ nonce: string;
494
+ blockNumber: string;
495
+ blockHash: string;
496
+ blockTimestampMs: number;
497
+ observedAtMs: number;
498
+ expiresAtMs: number;
499
+ simulation: "sender-balance-override";
500
+ providerEstimate: {
501
+ blockAnchor: "unanchored";
502
+ startedAtMs: number;
503
+ completedAtMs: number;
504
+ elapsedMs: number;
505
+ };
506
+ gas: {
507
+ callGasLimit: string;
508
+ verificationGasLimit: string;
509
+ preVerificationGas: string;
510
+ maxFeePerGasWei: string;
511
+ maxPriorityFeePerGasWei: string;
512
+ estimatedPrefundWei: string;
513
+ reserveWei: string;
514
+ estimatedRequiredWei: string;
515
+ reserveBps: "2500";
516
+ };
517
+ balance: {
518
+ nativeWei: string;
519
+ entryPointDepositWei: string;
520
+ callValueWei: string;
521
+ depositAppliedToGasWei: string;
522
+ walletGasRequirementWei: string;
523
+ nativeAvailableForGasWei: string;
524
+ gasShortfallWei: string;
525
+ requiredNativeWei: string;
526
+ shortfallWei: string;
527
+ };
528
+ usdPrice?: {
529
+ amountAtomic: string;
530
+ decimals: number;
531
+ observedAtMs: number;
532
+ expiresAtMs: number;
533
+ } | undefined;
534
+ estimatedGasCostUsdMicros?: string | undefined;
535
+ sponsoredEstimate?: {
536
+ kind: "estimate";
537
+ simulation: "paymaster-stub";
538
+ entryPointVersion: "0.6";
539
+ paymaster: string;
540
+ sponsorshipPolicyId: string;
541
+ paymasterAndDataCommitment: string;
542
+ providerEstimate: {
543
+ blockAnchor: "unanchored";
544
+ startedAtMs: number;
545
+ completedAtMs: number;
546
+ elapsedMs: number;
547
+ };
548
+ gas: {
549
+ callGasLimit: string;
550
+ verificationGasLimit: string;
551
+ preVerificationGas: string;
552
+ maxFeePerGasWei: string;
553
+ maxPriorityFeePerGasWei: string;
554
+ verificationGasMultiplier: "3";
555
+ estimatedPrefundWei: string;
556
+ reserveWei: string;
557
+ estimatedRequiredWei: string;
558
+ reserveBps: "2500";
559
+ };
560
+ estimatedGasCostUsdMicros?: string | undefined;
561
+ } | undefined;
562
+ };
563
+ } | undefined;
564
+ payer: "sponsor";
565
+ 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;
566
+ reviewRequired?: true | undefined;
567
+ };
568
+ walletAuthorityChangeIncluded: false;
569
+ automaticExecutionEnabled: false;
570
+ }>>;
571
+ submit: (input: unknown) => Promise<Readonly<{
572
+ attention?: "The original provider request is unresolved. No replacement is permitted." | undefined;
573
+ requiresOperationReview?: true | undefined;
574
+ terms?: {
575
+ activationId: string;
576
+ perSwapCapUsdc: number;
577
+ grantExpiresAt: string;
578
+ scope: "one reviewed same-chain USDC swap into an explicitly reviewed ERC20, with allowance cleared in the same batch; native output is unsupported";
579
+ walletAuthorityChangeIncluded: false;
580
+ providerPolicyId: string;
581
+ } | undefined;
582
+ failureCode?: string | undefined;
583
+ settlement?: {
584
+ inputToken: `0x${string}`;
585
+ outputToken: `0x${string}`;
586
+ inputDebited: string;
587
+ outputReceived: string;
588
+ ottoFeeReceived: string;
589
+ allowanceAfter: "0";
590
+ userOpHash: string;
591
+ transactionHash: string;
592
+ } | undefined;
593
+ receipt?: {
594
+ chainId: 1 | 8453 | 42161 | 10 | 137;
595
+ account: `0x${string}`;
596
+ userOpHash: string;
597
+ transactionHash: string;
598
+ blockHash: string;
599
+ blockNumber: string;
600
+ nonce: string;
601
+ paymaster: `0x${string}`;
602
+ actualGasCostWei: string;
603
+ actualGasUsed: string;
604
+ status: "success" | "reverted";
605
+ } | undefined;
606
+ transactionHash?: string | undefined;
607
+ userOpHash?: string | undefined;
608
+ schemaVersion: "1";
609
+ operationId: string;
610
+ account: `0x${string}`;
611
+ chainId: 1 | 8453 | 42161 | 10 | 137;
612
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
613
+ reviewConsumed: boolean;
614
+ reviewCommitment: string;
615
+ validUntilMs: number;
616
+ input: {
617
+ token: `0x${string}`;
618
+ amount: string;
619
+ };
620
+ output: {
621
+ token: `0x${string}`;
622
+ minimum: string;
623
+ };
624
+ ottoFee: string;
625
+ gas: {
626
+ payer: "account";
627
+ paymentReview: {
628
+ version: 1;
629
+ revision: number;
630
+ payer: "account" | "sponsor";
631
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
632
+ subsidyCapUsdMicros: "100000";
633
+ quote: {
634
+ version: 1;
635
+ kind: "estimate";
636
+ payer: "user";
637
+ account: string;
638
+ chainId: 1 | 8453 | 42161 | 10 | 137;
639
+ entryPoint: string;
640
+ nativeAsset: {
641
+ symbol: "ETH" | "POL";
642
+ decimals: 18;
643
+ };
644
+ callsCommitment: string;
645
+ nonce: string;
646
+ blockNumber: string;
647
+ blockHash: string;
648
+ blockTimestampMs: number;
649
+ observedAtMs: number;
650
+ expiresAtMs: number;
651
+ simulation: "sender-balance-override";
652
+ providerEstimate: {
653
+ blockAnchor: "unanchored";
654
+ startedAtMs: number;
655
+ completedAtMs: number;
656
+ elapsedMs: number;
657
+ };
658
+ gas: {
659
+ callGasLimit: string;
660
+ verificationGasLimit: string;
661
+ preVerificationGas: string;
662
+ maxFeePerGasWei: string;
663
+ maxPriorityFeePerGasWei: string;
664
+ estimatedPrefundWei: string;
665
+ reserveWei: string;
666
+ estimatedRequiredWei: string;
667
+ reserveBps: "2500";
668
+ };
669
+ balance: {
670
+ nativeWei: string;
671
+ entryPointDepositWei: string;
672
+ callValueWei: string;
673
+ depositAppliedToGasWei: string;
674
+ walletGasRequirementWei: string;
675
+ nativeAvailableForGasWei: string;
676
+ gasShortfallWei: string;
677
+ requiredNativeWei: string;
678
+ shortfallWei: string;
679
+ };
680
+ usdPrice?: {
681
+ amountAtomic: string;
682
+ decimals: number;
683
+ observedAtMs: number;
684
+ expiresAtMs: number;
685
+ } | undefined;
686
+ estimatedGasCostUsdMicros?: string | undefined;
687
+ sponsoredEstimate?: {
688
+ kind: "estimate";
689
+ simulation: "paymaster-stub";
690
+ entryPointVersion: "0.6";
691
+ paymaster: string;
692
+ sponsorshipPolicyId: string;
693
+ paymasterAndDataCommitment: string;
694
+ providerEstimate: {
695
+ blockAnchor: "unanchored";
696
+ startedAtMs: number;
697
+ completedAtMs: number;
698
+ elapsedMs: number;
699
+ };
700
+ gas: {
701
+ callGasLimit: string;
702
+ verificationGasLimit: string;
703
+ preVerificationGas: string;
704
+ maxFeePerGasWei: string;
705
+ maxPriorityFeePerGasWei: string;
706
+ verificationGasMultiplier: "3";
707
+ estimatedPrefundWei: string;
708
+ reserveWei: string;
709
+ estimatedRequiredWei: string;
710
+ reserveBps: "2500";
711
+ };
712
+ estimatedGasCostUsdMicros?: string | undefined;
713
+ } | undefined;
714
+ };
715
+ };
716
+ actualCostWei?: string | undefined;
717
+ 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;
718
+ reviewRequired?: true | undefined;
719
+ } | {
720
+ actualCostWei?: string | undefined;
721
+ activationChainHalted?: true | undefined;
722
+ maximumCostWei: string;
723
+ maximumUserCostWei?: string;
724
+ maximumActivationCostWei?: string;
725
+ paymentReview?: {
726
+ version: 1;
727
+ revision: number;
728
+ payer: "account" | "sponsor";
729
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
730
+ subsidyCapUsdMicros: "100000";
731
+ quote: {
732
+ version: 1;
733
+ kind: "estimate";
734
+ payer: "user";
735
+ account: string;
736
+ chainId: 1 | 8453 | 42161 | 10 | 137;
737
+ entryPoint: string;
738
+ nativeAsset: {
739
+ symbol: "ETH" | "POL";
740
+ decimals: 18;
741
+ };
742
+ callsCommitment: string;
743
+ nonce: string;
744
+ blockNumber: string;
745
+ blockHash: string;
746
+ blockTimestampMs: number;
747
+ observedAtMs: number;
748
+ expiresAtMs: number;
749
+ simulation: "sender-balance-override";
750
+ providerEstimate: {
751
+ blockAnchor: "unanchored";
752
+ startedAtMs: number;
753
+ completedAtMs: number;
754
+ elapsedMs: number;
755
+ };
756
+ gas: {
757
+ callGasLimit: string;
758
+ verificationGasLimit: string;
759
+ preVerificationGas: string;
760
+ maxFeePerGasWei: string;
761
+ maxPriorityFeePerGasWei: string;
762
+ estimatedPrefundWei: string;
763
+ reserveWei: string;
764
+ estimatedRequiredWei: string;
765
+ reserveBps: "2500";
766
+ };
767
+ balance: {
768
+ nativeWei: string;
769
+ entryPointDepositWei: string;
770
+ callValueWei: string;
771
+ depositAppliedToGasWei: string;
772
+ walletGasRequirementWei: string;
773
+ nativeAvailableForGasWei: string;
774
+ gasShortfallWei: string;
775
+ requiredNativeWei: string;
776
+ shortfallWei: string;
777
+ };
778
+ usdPrice?: {
779
+ amountAtomic: string;
780
+ decimals: number;
781
+ observedAtMs: number;
782
+ expiresAtMs: number;
783
+ } | undefined;
784
+ estimatedGasCostUsdMicros?: string | undefined;
785
+ sponsoredEstimate?: {
786
+ kind: "estimate";
787
+ simulation: "paymaster-stub";
788
+ entryPointVersion: "0.6";
789
+ paymaster: string;
790
+ sponsorshipPolicyId: string;
791
+ paymasterAndDataCommitment: string;
792
+ providerEstimate: {
793
+ blockAnchor: "unanchored";
794
+ startedAtMs: number;
795
+ completedAtMs: number;
796
+ elapsedMs: number;
797
+ };
798
+ gas: {
799
+ callGasLimit: string;
800
+ verificationGasLimit: string;
801
+ preVerificationGas: string;
802
+ maxFeePerGasWei: string;
803
+ maxPriorityFeePerGasWei: string;
804
+ verificationGasMultiplier: "3";
805
+ estimatedPrefundWei: string;
806
+ reserveWei: string;
807
+ estimatedRequiredWei: string;
808
+ reserveBps: "2500";
809
+ };
810
+ estimatedGasCostUsdMicros?: string | undefined;
811
+ } | undefined;
812
+ };
813
+ } | undefined;
814
+ payer: "sponsor";
815
+ 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;
816
+ reviewRequired?: true | undefined;
817
+ };
818
+ walletAuthorityChangeIncluded: false;
819
+ automaticExecutionEnabled: false;
820
+ }>>;
821
+ read: (input: unknown) => Promise<Readonly<{
822
+ attention?: "The original provider request is unresolved. No replacement is permitted." | undefined;
823
+ requiresOperationReview?: true | undefined;
824
+ terms?: {
825
+ activationId: string;
826
+ perSwapCapUsdc: number;
827
+ grantExpiresAt: string;
828
+ scope: "one reviewed same-chain USDC swap into an explicitly reviewed ERC20, with allowance cleared in the same batch; native output is unsupported";
829
+ walletAuthorityChangeIncluded: false;
830
+ providerPolicyId: string;
831
+ } | undefined;
832
+ failureCode?: string | undefined;
833
+ settlement?: {
834
+ inputToken: `0x${string}`;
835
+ outputToken: `0x${string}`;
836
+ inputDebited: string;
837
+ outputReceived: string;
838
+ ottoFeeReceived: string;
839
+ allowanceAfter: "0";
840
+ userOpHash: string;
841
+ transactionHash: string;
842
+ } | undefined;
843
+ receipt?: {
844
+ chainId: 1 | 8453 | 42161 | 10 | 137;
845
+ account: `0x${string}`;
846
+ userOpHash: string;
847
+ transactionHash: string;
848
+ blockHash: string;
849
+ blockNumber: string;
850
+ nonce: string;
851
+ paymaster: `0x${string}`;
852
+ actualGasCostWei: string;
853
+ actualGasUsed: string;
854
+ status: "success" | "reverted";
855
+ } | undefined;
856
+ transactionHash?: string | undefined;
857
+ userOpHash?: string | undefined;
858
+ schemaVersion: "1";
859
+ operationId: string;
860
+ account: `0x${string}`;
861
+ chainId: 1 | 8453 | 42161 | 10 | 137;
862
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
863
+ reviewConsumed: boolean;
864
+ reviewCommitment: string;
865
+ validUntilMs: number;
866
+ input: {
867
+ token: `0x${string}`;
868
+ amount: string;
869
+ };
870
+ output: {
871
+ token: `0x${string}`;
872
+ minimum: string;
873
+ };
874
+ ottoFee: string;
875
+ gas: {
876
+ payer: "account";
877
+ paymentReview: {
878
+ version: 1;
879
+ revision: number;
880
+ payer: "account" | "sponsor";
881
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
882
+ subsidyCapUsdMicros: "100000";
883
+ quote: {
884
+ version: 1;
885
+ kind: "estimate";
886
+ payer: "user";
887
+ account: string;
888
+ chainId: 1 | 8453 | 42161 | 10 | 137;
889
+ entryPoint: string;
890
+ nativeAsset: {
891
+ symbol: "ETH" | "POL";
892
+ decimals: 18;
893
+ };
894
+ callsCommitment: string;
895
+ nonce: string;
896
+ blockNumber: string;
897
+ blockHash: string;
898
+ blockTimestampMs: number;
899
+ observedAtMs: number;
900
+ expiresAtMs: number;
901
+ simulation: "sender-balance-override";
902
+ providerEstimate: {
903
+ blockAnchor: "unanchored";
904
+ startedAtMs: number;
905
+ completedAtMs: number;
906
+ elapsedMs: number;
907
+ };
908
+ gas: {
909
+ callGasLimit: string;
910
+ verificationGasLimit: string;
911
+ preVerificationGas: string;
912
+ maxFeePerGasWei: string;
913
+ maxPriorityFeePerGasWei: string;
914
+ estimatedPrefundWei: string;
915
+ reserveWei: string;
916
+ estimatedRequiredWei: string;
917
+ reserveBps: "2500";
918
+ };
919
+ balance: {
920
+ nativeWei: string;
921
+ entryPointDepositWei: string;
922
+ callValueWei: string;
923
+ depositAppliedToGasWei: string;
924
+ walletGasRequirementWei: string;
925
+ nativeAvailableForGasWei: string;
926
+ gasShortfallWei: string;
927
+ requiredNativeWei: string;
928
+ shortfallWei: string;
929
+ };
930
+ usdPrice?: {
931
+ amountAtomic: string;
932
+ decimals: number;
933
+ observedAtMs: number;
934
+ expiresAtMs: number;
935
+ } | undefined;
936
+ estimatedGasCostUsdMicros?: string | undefined;
937
+ sponsoredEstimate?: {
938
+ kind: "estimate";
939
+ simulation: "paymaster-stub";
940
+ entryPointVersion: "0.6";
941
+ paymaster: string;
942
+ sponsorshipPolicyId: string;
943
+ paymasterAndDataCommitment: string;
944
+ providerEstimate: {
945
+ blockAnchor: "unanchored";
946
+ startedAtMs: number;
947
+ completedAtMs: number;
948
+ elapsedMs: number;
949
+ };
950
+ gas: {
951
+ callGasLimit: string;
952
+ verificationGasLimit: string;
953
+ preVerificationGas: string;
954
+ maxFeePerGasWei: string;
955
+ maxPriorityFeePerGasWei: string;
956
+ verificationGasMultiplier: "3";
957
+ estimatedPrefundWei: string;
958
+ reserveWei: string;
959
+ estimatedRequiredWei: string;
960
+ reserveBps: "2500";
961
+ };
962
+ estimatedGasCostUsdMicros?: string | undefined;
963
+ } | undefined;
964
+ };
965
+ };
966
+ actualCostWei?: string | undefined;
967
+ 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;
968
+ reviewRequired?: true | undefined;
969
+ } | {
970
+ actualCostWei?: string | undefined;
971
+ activationChainHalted?: true | undefined;
972
+ maximumCostWei: string;
973
+ maximumUserCostWei?: string;
974
+ maximumActivationCostWei?: string;
975
+ paymentReview?: {
976
+ version: 1;
977
+ revision: number;
978
+ payer: "account" | "sponsor";
979
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
980
+ subsidyCapUsdMicros: "100000";
981
+ quote: {
982
+ version: 1;
983
+ kind: "estimate";
984
+ payer: "user";
985
+ account: string;
986
+ chainId: 1 | 8453 | 42161 | 10 | 137;
987
+ entryPoint: string;
988
+ nativeAsset: {
989
+ symbol: "ETH" | "POL";
990
+ decimals: 18;
991
+ };
992
+ callsCommitment: string;
993
+ nonce: string;
994
+ blockNumber: string;
995
+ blockHash: string;
996
+ blockTimestampMs: number;
997
+ observedAtMs: number;
998
+ expiresAtMs: number;
999
+ simulation: "sender-balance-override";
1000
+ providerEstimate: {
1001
+ blockAnchor: "unanchored";
1002
+ startedAtMs: number;
1003
+ completedAtMs: number;
1004
+ elapsedMs: number;
1005
+ };
1006
+ gas: {
1007
+ callGasLimit: string;
1008
+ verificationGasLimit: string;
1009
+ preVerificationGas: string;
1010
+ maxFeePerGasWei: string;
1011
+ maxPriorityFeePerGasWei: string;
1012
+ estimatedPrefundWei: string;
1013
+ reserveWei: string;
1014
+ estimatedRequiredWei: string;
1015
+ reserveBps: "2500";
1016
+ };
1017
+ balance: {
1018
+ nativeWei: string;
1019
+ entryPointDepositWei: string;
1020
+ callValueWei: string;
1021
+ depositAppliedToGasWei: string;
1022
+ walletGasRequirementWei: string;
1023
+ nativeAvailableForGasWei: string;
1024
+ gasShortfallWei: string;
1025
+ requiredNativeWei: string;
1026
+ shortfallWei: string;
1027
+ };
1028
+ usdPrice?: {
1029
+ amountAtomic: string;
1030
+ decimals: number;
1031
+ observedAtMs: number;
1032
+ expiresAtMs: number;
1033
+ } | undefined;
1034
+ estimatedGasCostUsdMicros?: string | undefined;
1035
+ sponsoredEstimate?: {
1036
+ kind: "estimate";
1037
+ simulation: "paymaster-stub";
1038
+ entryPointVersion: "0.6";
1039
+ paymaster: string;
1040
+ sponsorshipPolicyId: string;
1041
+ paymasterAndDataCommitment: string;
1042
+ providerEstimate: {
1043
+ blockAnchor: "unanchored";
1044
+ startedAtMs: number;
1045
+ completedAtMs: number;
1046
+ elapsedMs: number;
1047
+ };
1048
+ gas: {
1049
+ callGasLimit: string;
1050
+ verificationGasLimit: string;
1051
+ preVerificationGas: string;
1052
+ maxFeePerGasWei: string;
1053
+ maxPriorityFeePerGasWei: string;
1054
+ verificationGasMultiplier: "3";
1055
+ estimatedPrefundWei: string;
1056
+ reserveWei: string;
1057
+ estimatedRequiredWei: string;
1058
+ reserveBps: "2500";
1059
+ };
1060
+ estimatedGasCostUsdMicros?: string | undefined;
1061
+ } | undefined;
1062
+ };
1063
+ } | undefined;
1064
+ payer: "sponsor";
1065
+ 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;
1066
+ reviewRequired?: true | undefined;
1067
+ };
1068
+ walletAuthorityChangeIncluded: false;
1069
+ automaticExecutionEnabled: false;
1070
+ }>>;
1071
+ reconcile: (input: unknown) => Promise<Readonly<{
1072
+ attention?: "The original provider request is unresolved. No replacement is permitted." | undefined;
1073
+ requiresOperationReview?: true | undefined;
1074
+ terms?: {
1075
+ activationId: string;
1076
+ perSwapCapUsdc: number;
1077
+ grantExpiresAt: string;
1078
+ scope: "one reviewed same-chain USDC swap into an explicitly reviewed ERC20, with allowance cleared in the same batch; native output is unsupported";
1079
+ walletAuthorityChangeIncluded: false;
1080
+ providerPolicyId: string;
1081
+ } | undefined;
1082
+ failureCode?: string | undefined;
1083
+ settlement?: {
1084
+ inputToken: `0x${string}`;
1085
+ outputToken: `0x${string}`;
1086
+ inputDebited: string;
1087
+ outputReceived: string;
1088
+ ottoFeeReceived: string;
1089
+ allowanceAfter: "0";
1090
+ userOpHash: string;
1091
+ transactionHash: string;
1092
+ } | undefined;
1093
+ receipt?: {
1094
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1095
+ account: `0x${string}`;
1096
+ userOpHash: string;
1097
+ transactionHash: string;
1098
+ blockHash: string;
1099
+ blockNumber: string;
1100
+ nonce: string;
1101
+ paymaster: `0x${string}`;
1102
+ actualGasCostWei: string;
1103
+ actualGasUsed: string;
1104
+ status: "success" | "reverted";
1105
+ } | undefined;
1106
+ transactionHash?: string | undefined;
1107
+ userOpHash?: string | undefined;
1108
+ schemaVersion: "1";
1109
+ operationId: string;
1110
+ account: `0x${string}`;
1111
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1112
+ state: "unknown" | "submitted" | "completed" | "review" | "active" | "failed";
1113
+ reviewConsumed: boolean;
1114
+ reviewCommitment: string;
1115
+ validUntilMs: number;
1116
+ input: {
1117
+ token: `0x${string}`;
1118
+ amount: string;
1119
+ };
1120
+ output: {
1121
+ token: `0x${string}`;
1122
+ minimum: string;
1123
+ };
1124
+ ottoFee: string;
1125
+ gas: {
1126
+ payer: "account";
1127
+ paymentReview: {
1128
+ version: 1;
1129
+ revision: number;
1130
+ payer: "account" | "sponsor";
1131
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
1132
+ subsidyCapUsdMicros: "100000";
1133
+ quote: {
1134
+ version: 1;
1135
+ kind: "estimate";
1136
+ payer: "user";
1137
+ account: string;
1138
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1139
+ entryPoint: string;
1140
+ nativeAsset: {
1141
+ symbol: "ETH" | "POL";
1142
+ decimals: 18;
1143
+ };
1144
+ callsCommitment: string;
1145
+ nonce: string;
1146
+ blockNumber: string;
1147
+ blockHash: string;
1148
+ blockTimestampMs: number;
1149
+ observedAtMs: number;
1150
+ expiresAtMs: number;
1151
+ simulation: "sender-balance-override";
1152
+ providerEstimate: {
1153
+ blockAnchor: "unanchored";
1154
+ startedAtMs: number;
1155
+ completedAtMs: number;
1156
+ elapsedMs: number;
1157
+ };
1158
+ gas: {
1159
+ callGasLimit: string;
1160
+ verificationGasLimit: string;
1161
+ preVerificationGas: string;
1162
+ maxFeePerGasWei: string;
1163
+ maxPriorityFeePerGasWei: string;
1164
+ estimatedPrefundWei: string;
1165
+ reserveWei: string;
1166
+ estimatedRequiredWei: string;
1167
+ reserveBps: "2500";
1168
+ };
1169
+ balance: {
1170
+ nativeWei: string;
1171
+ entryPointDepositWei: string;
1172
+ callValueWei: string;
1173
+ depositAppliedToGasWei: string;
1174
+ walletGasRequirementWei: string;
1175
+ nativeAvailableForGasWei: string;
1176
+ gasShortfallWei: string;
1177
+ requiredNativeWei: string;
1178
+ shortfallWei: string;
1179
+ };
1180
+ usdPrice?: {
1181
+ amountAtomic: string;
1182
+ decimals: number;
1183
+ observedAtMs: number;
1184
+ expiresAtMs: number;
1185
+ } | undefined;
1186
+ estimatedGasCostUsdMicros?: string | undefined;
1187
+ sponsoredEstimate?: {
1188
+ kind: "estimate";
1189
+ simulation: "paymaster-stub";
1190
+ entryPointVersion: "0.6";
1191
+ paymaster: string;
1192
+ sponsorshipPolicyId: string;
1193
+ paymasterAndDataCommitment: string;
1194
+ providerEstimate: {
1195
+ blockAnchor: "unanchored";
1196
+ startedAtMs: number;
1197
+ completedAtMs: number;
1198
+ elapsedMs: number;
1199
+ };
1200
+ gas: {
1201
+ callGasLimit: string;
1202
+ verificationGasLimit: string;
1203
+ preVerificationGas: string;
1204
+ maxFeePerGasWei: string;
1205
+ maxPriorityFeePerGasWei: string;
1206
+ verificationGasMultiplier: "3";
1207
+ estimatedPrefundWei: string;
1208
+ reserveWei: string;
1209
+ estimatedRequiredWei: string;
1210
+ reserveBps: "2500";
1211
+ };
1212
+ estimatedGasCostUsdMicros?: string | undefined;
1213
+ } | undefined;
1214
+ };
1215
+ };
1216
+ actualCostWei?: string | undefined;
1217
+ 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;
1218
+ reviewRequired?: true | undefined;
1219
+ } | {
1220
+ actualCostWei?: string | undefined;
1221
+ activationChainHalted?: true | undefined;
1222
+ maximumCostWei: string;
1223
+ maximumUserCostWei?: string;
1224
+ maximumActivationCostWei?: string;
1225
+ paymentReview?: {
1226
+ version: 1;
1227
+ revision: number;
1228
+ payer: "account" | "sponsor";
1229
+ sponsorStatus: "unavailable" | "eligible" | "above-limit" | "price-unavailable";
1230
+ subsidyCapUsdMicros: "100000";
1231
+ quote: {
1232
+ version: 1;
1233
+ kind: "estimate";
1234
+ payer: "user";
1235
+ account: string;
1236
+ chainId: 1 | 8453 | 42161 | 10 | 137;
1237
+ entryPoint: string;
1238
+ nativeAsset: {
1239
+ symbol: "ETH" | "POL";
1240
+ decimals: 18;
1241
+ };
1242
+ callsCommitment: string;
1243
+ nonce: string;
1244
+ blockNumber: string;
1245
+ blockHash: string;
1246
+ blockTimestampMs: number;
1247
+ observedAtMs: number;
1248
+ expiresAtMs: number;
1249
+ simulation: "sender-balance-override";
1250
+ providerEstimate: {
1251
+ blockAnchor: "unanchored";
1252
+ startedAtMs: number;
1253
+ completedAtMs: number;
1254
+ elapsedMs: number;
1255
+ };
1256
+ gas: {
1257
+ callGasLimit: string;
1258
+ verificationGasLimit: string;
1259
+ preVerificationGas: string;
1260
+ maxFeePerGasWei: string;
1261
+ maxPriorityFeePerGasWei: string;
1262
+ estimatedPrefundWei: string;
1263
+ reserveWei: string;
1264
+ estimatedRequiredWei: string;
1265
+ reserveBps: "2500";
1266
+ };
1267
+ balance: {
1268
+ nativeWei: string;
1269
+ entryPointDepositWei: string;
1270
+ callValueWei: string;
1271
+ depositAppliedToGasWei: string;
1272
+ walletGasRequirementWei: string;
1273
+ nativeAvailableForGasWei: string;
1274
+ gasShortfallWei: string;
1275
+ requiredNativeWei: string;
1276
+ shortfallWei: string;
1277
+ };
1278
+ usdPrice?: {
1279
+ amountAtomic: string;
1280
+ decimals: number;
1281
+ observedAtMs: number;
1282
+ expiresAtMs: number;
1283
+ } | undefined;
1284
+ estimatedGasCostUsdMicros?: string | undefined;
1285
+ sponsoredEstimate?: {
1286
+ kind: "estimate";
1287
+ simulation: "paymaster-stub";
1288
+ entryPointVersion: "0.6";
1289
+ paymaster: string;
1290
+ sponsorshipPolicyId: string;
1291
+ paymasterAndDataCommitment: string;
1292
+ providerEstimate: {
1293
+ blockAnchor: "unanchored";
1294
+ startedAtMs: number;
1295
+ completedAtMs: number;
1296
+ elapsedMs: number;
1297
+ };
1298
+ gas: {
1299
+ callGasLimit: string;
1300
+ verificationGasLimit: string;
1301
+ preVerificationGas: string;
1302
+ maxFeePerGasWei: string;
1303
+ maxPriorityFeePerGasWei: string;
1304
+ verificationGasMultiplier: "3";
1305
+ estimatedPrefundWei: string;
1306
+ reserveWei: string;
1307
+ estimatedRequiredWei: string;
1308
+ reserveBps: "2500";
1309
+ };
1310
+ estimatedGasCostUsdMicros?: string | undefined;
1311
+ } | undefined;
1312
+ };
1313
+ } | undefined;
1314
+ payer: "sponsor";
1315
+ 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;
1316
+ reviewRequired?: true | undefined;
1317
+ };
1318
+ walletAuthorityChangeIncluded: false;
1319
+ automaticExecutionEnabled: false;
1320
+ }>>;
1321
+ }>>;
1322
+ export { SPONSORED_PREPARE_INPUT, SPONSORED_READ_INPUT, SPONSORED_SUBMIT_INPUT, SPONSORED_GAS_REVIEW_INPUT } from './execution-sponsored-definition.js';