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