otto-intel-mcp 0.1.3 → 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 (221) hide show
  1. package/README.md +74 -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 +32 -4
  7. package/dist/adapter/cdp-signer.js +128 -37
  8. package/dist/adapter-cdp-index.d.ts +1 -1
  9. package/dist/execution-account-gas-quote.d.ts +141 -0
  10. package/dist/execution-account-gas-quote.js +443 -0
  11. package/dist/execution-account-gas-review.d.ts +123 -0
  12. package/dist/execution-account-gas-review.js +104 -0
  13. package/dist/execution-account-gas-runtime.d.ts +33 -0
  14. package/dist/execution-account-gas-runtime.js +131 -0
  15. package/dist/execution-account-gas-view.d.ts +936 -0
  16. package/dist/execution-account-gas-view.js +56 -0
  17. package/dist/execution-config.d.ts +3 -0
  18. package/dist/execution-config.js +4 -0
  19. package/dist/execution-delegated-definition.d.ts +6 -6
  20. package/dist/execution-delegated-definition.js +1 -1
  21. package/dist/execution-delegation-admin-definition.d.ts +12 -11
  22. package/dist/execution-delegation-admin-definition.js +6 -5
  23. package/dist/execution-delegation-admin.d.ts +5 -5
  24. package/dist/execution-delegation-admin.js +157 -49
  25. package/dist/execution-delegation-cap-store.d.ts +22 -5
  26. package/dist/execution-delegation-cap-store.js +74 -7
  27. package/dist/execution-delegation-exit-definition.d.ts +309 -0
  28. package/dist/execution-delegation-exit-definition.js +204 -0
  29. package/dist/execution-delegation-exit-store.d.ts +114 -0
  30. package/dist/execution-delegation-exit-store.js +671 -0
  31. package/dist/execution-delegation-exit.d.ts +4 -0
  32. package/dist/execution-delegation-exit.js +614 -0
  33. package/dist/execution-delegation-finality.d.ts +22 -0
  34. package/dist/execution-delegation-finality.js +90 -0
  35. package/dist/execution-delegation-operation-store.d.ts +129 -0
  36. package/dist/execution-delegation-operation-store.js +1107 -0
  37. package/dist/execution-delegation-operations-definition.d.ts +282 -0
  38. package/dist/execution-delegation-operations-definition.js +117 -0
  39. package/dist/execution-delegation-operations.d.ts +6 -0
  40. package/dist/execution-delegation-operations.js +282 -0
  41. package/dist/execution-delegation-policy.d.ts +1 -2
  42. package/dist/execution-delegation-policy.js +13 -24
  43. package/dist/execution-delegation.d.ts +16 -0
  44. package/dist/execution-delegation.js +221 -26
  45. package/dist/execution-errors.d.ts +1 -1
  46. package/dist/execution-errors.js +27 -3
  47. package/dist/execution-index.d.ts +4 -0
  48. package/dist/execution-index.js +4 -0
  49. package/dist/execution-journal-schema.d.ts +96 -0
  50. package/dist/execution-journal-schema.js +368 -0
  51. package/dist/execution-journal-tables.d.ts +14 -0
  52. package/dist/execution-journal-tables.js +227 -0
  53. package/dist/execution-policy-compatibility.d.ts +34 -0
  54. package/dist/execution-policy-compatibility.js +76 -0
  55. package/dist/execution-registration.d.ts +8 -5
  56. package/dist/execution-registration.js +106 -3
  57. package/dist/execution-sponsored-account-profile.d.ts +32 -0
  58. package/dist/execution-sponsored-account-profile.js +59 -0
  59. package/dist/execution-sponsored-account.d.ts +1519 -0
  60. package/dist/execution-sponsored-account.js +222 -0
  61. package/dist/execution-sponsored-definition.d.ts +1713 -0
  62. package/dist/execution-sponsored-definition.js +185 -0
  63. package/dist/execution-sponsored-gas-policy.d.ts +27 -0
  64. package/dist/execution-sponsored-gas-policy.js +110 -0
  65. package/dist/execution-sponsored-hosted.d.ts +3 -0
  66. package/dist/execution-sponsored-hosted.js +71 -0
  67. package/dist/execution-sponsored-index.d.ts +1322 -0
  68. package/dist/execution-sponsored-index.js +102 -0
  69. package/dist/execution-sponsored-mcp-definition.d.ts +1662 -0
  70. package/dist/execution-sponsored-mcp-definition.js +94 -0
  71. package/dist/execution-sponsored-receipt.d.ts +47 -0
  72. package/dist/execution-sponsored-receipt.js +74 -0
  73. package/dist/execution-sponsored-registration.d.ts +14 -0
  74. package/dist/execution-sponsored-registration.js +77 -0
  75. package/dist/execution-sponsored-runtime.d.ts +84 -0
  76. package/dist/execution-sponsored-runtime.js +149 -0
  77. package/dist/execution-sponsored-settlement.d.ts +15 -0
  78. package/dist/execution-sponsored-settlement.js +88 -0
  79. package/dist/execution-sponsored-store.d.ts +67 -0
  80. package/dist/execution-sponsored-store.js +517 -0
  81. package/dist/execution-sponsored-transport.d.ts +90 -0
  82. package/dist/execution-sponsored-transport.js +180 -0
  83. package/dist/execution-tool-definitions.d.ts +21 -21
  84. package/dist/execution-tool-definitions.js +0 -7
  85. package/dist/execution-tools.d.ts +9 -0
  86. package/dist/execution-tools.js +14 -0
  87. package/dist/execution-worker-guard.d.ts +28 -0
  88. package/dist/execution-worker-guard.js +124 -0
  89. package/dist/hybrid-yield-index.d.ts +10 -0
  90. package/dist/hybrid-yield-index.js +11 -0
  91. package/dist/hybrid-yield-markets.d.ts +96 -0
  92. package/dist/hybrid-yield-markets.js +124 -0
  93. package/dist/hybrid-yield.d.ts +411 -0
  94. package/dist/hybrid-yield.js +155 -0
  95. package/dist/hyperliquid-order-builder.js +4 -0
  96. package/dist/lp-userop-account.d.ts +461 -0
  97. package/dist/lp-userop-account.js +417 -0
  98. package/dist/lp-userop-authority.d.ts +49 -0
  99. package/dist/lp-userop-authority.js +211 -0
  100. package/dist/lp-userop-definition.d.ts +233 -0
  101. package/dist/lp-userop-definition.js +85 -0
  102. package/dist/lp-userop-hosted.d.ts +3 -0
  103. package/dist/lp-userop-hosted.js +73 -0
  104. package/dist/lp-userop-index.d.ts +1569 -0
  105. package/dist/lp-userop-index.js +112 -0
  106. package/dist/lp-userop-mcp-definition.d.ts +1220 -0
  107. package/dist/lp-userop-mcp-definition.js +46 -0
  108. package/dist/lp-userop-operation.d.ts +1230 -0
  109. package/dist/lp-userop-operation.js +140 -0
  110. package/dist/lp-userop-registration.d.ts +14 -0
  111. package/dist/lp-userop-registration.js +70 -0
  112. package/dist/lp-userop-settlement.d.ts +89 -0
  113. package/dist/lp-userop-settlement.js +184 -0
  114. package/dist/lp-userop.d.ts +643 -0
  115. package/dist/lp-userop.js +343 -0
  116. package/dist/native-yield-account-definition.d.ts +1192 -0
  117. package/dist/native-yield-account-definition.js +232 -0
  118. package/dist/native-yield-account-gas.d.ts +58 -0
  119. package/dist/native-yield-account-gas.js +228 -0
  120. package/dist/native-yield-account-index.d.ts +23 -0
  121. package/dist/native-yield-account-index.js +28 -0
  122. package/dist/native-yield-account-policy.d.ts +168 -0
  123. package/dist/native-yield-account-policy.js +525 -0
  124. package/dist/native-yield-account-rpc.d.ts +8 -0
  125. package/dist/native-yield-account-rpc.js +128 -0
  126. package/dist/native-yield-account-runtime.d.ts +71 -0
  127. package/dist/native-yield-account-runtime.js +125 -0
  128. package/dist/native-yield-account-store.d.ts +40 -0
  129. package/dist/native-yield-account-store.js +307 -0
  130. package/dist/native-yield-account.d.ts +662 -0
  131. package/dist/native-yield-account.js +371 -0
  132. package/dist/native-yield-consent-store.d.ts +20 -0
  133. package/dist/native-yield-consent-store.js +317 -0
  134. package/dist/native-yield-definition.d.ts +288 -0
  135. package/dist/native-yield-definition.js +105 -0
  136. package/dist/native-yield-reader.d.ts +4 -0
  137. package/dist/native-yield-reader.js +137 -0
  138. package/dist/native-yield-settlement.d.ts +48 -0
  139. package/dist/native-yield-settlement.js +167 -0
  140. package/dist/native-yield-simulation.d.ts +18 -0
  141. package/dist/native-yield-simulation.js +45 -0
  142. package/dist/native-yield-userop-account.d.ts +675 -0
  143. package/dist/native-yield-userop-account.js +357 -0
  144. package/dist/native-yield-userop-authority.d.ts +214 -0
  145. package/dist/native-yield-userop-authority.js +296 -0
  146. package/dist/native-yield-userop-definition.d.ts +331 -0
  147. package/dist/native-yield-userop-definition.js +105 -0
  148. package/dist/native-yield-userop-hosted.d.ts +3 -0
  149. package/dist/native-yield-userop-hosted.js +71 -0
  150. package/dist/native-yield-userop-index.d.ts +1522 -0
  151. package/dist/native-yield-userop-index.js +142 -0
  152. package/dist/native-yield-userop-mcp-definition.d.ts +1356 -0
  153. package/dist/native-yield-userop-mcp-definition.js +50 -0
  154. package/dist/native-yield-userop-operation.d.ts +845 -0
  155. package/dist/native-yield-userop-operation.js +127 -0
  156. package/dist/native-yield-userop-policy.d.ts +23 -0
  157. package/dist/native-yield-userop-policy.js +25 -0
  158. package/dist/native-yield-userop-registration.d.ts +17 -0
  159. package/dist/native-yield-userop-registration.js +76 -0
  160. package/dist/native-yield-userop-settlement.d.ts +8 -0
  161. package/dist/native-yield-userop-settlement.js +79 -0
  162. package/dist/native-yield-userop-simulation.d.ts +18 -0
  163. package/dist/native-yield-userop-simulation.js +34 -0
  164. package/dist/native-yield-userop.d.ts +35 -0
  165. package/dist/native-yield-userop.js +156 -0
  166. package/dist/native-yield-verify.d.ts +30 -0
  167. package/dist/native-yield-verify.js +141 -0
  168. package/dist/native-yield.d.ts +17 -0
  169. package/dist/native-yield.js +119 -0
  170. package/dist/stdio-main.js +0 -0
  171. package/dist/stock-buy-definition.d.ts +10 -10
  172. package/dist/tool-definitions.d.ts +3 -1
  173. package/dist/tool-definitions.js +54 -1
  174. package/dist/vendor/lp-v3/lp-v3-atomic-contract.d.ts +445 -0
  175. package/dist/vendor/lp-v3/lp-v3-atomic-contract.js +90 -0
  176. package/dist/vendor/lp-v3/lp-v3-atomic-evidence.d.ts +14 -0
  177. package/dist/vendor/lp-v3/lp-v3-atomic-evidence.js +82 -0
  178. package/dist/vendor/lp-v3/lp-v3-atomic-index.d.ts +80 -0
  179. package/dist/vendor/lp-v3/lp-v3-atomic-index.js +19 -0
  180. package/dist/vendor/lp-v3/lp-v3-atomic-plan.d.ts +43 -0
  181. package/dist/vendor/lp-v3/lp-v3-atomic-plan.js +112 -0
  182. package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.d.ts +312 -0
  183. package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.js +41 -0
  184. package/dist/vendor/lp-v3/lp-v3-atomic-read-index.d.ts +3 -0
  185. package/dist/vendor/lp-v3/lp-v3-atomic-read-index.js +3 -0
  186. package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.d.ts +49 -0
  187. package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.js +88 -0
  188. package/dist/vendor/lp-v3/lp-v3-atomic-read.d.ts +17 -0
  189. package/dist/vendor/lp-v3/lp-v3-atomic-read.js +232 -0
  190. package/dist/vendor/lp-v3/lp-v3-atomic-settlement.d.ts +105 -0
  191. package/dist/vendor/lp-v3/lp-v3-atomic-settlement.js +162 -0
  192. package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.d.ts +606 -0
  193. package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.js +59 -0
  194. package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.d.ts +168 -0
  195. package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.js +23 -0
  196. package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.d.ts +32 -0
  197. package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.js +228 -0
  198. package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.d.ts +11 -0
  199. package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.js +91 -0
  200. package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.d.ts +9 -0
  201. package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.js +124 -0
  202. package/dist/vendor/lp-v3/lp-v3-contract.d.ts +538 -0
  203. package/dist/vendor/lp-v3/lp-v3-contract.js +137 -0
  204. package/dist/vendor/lp-v3/lp-v3-evidence.d.ts +25 -0
  205. package/dist/vendor/lp-v3/lp-v3-evidence.js +168 -0
  206. package/dist/vendor/lp-v3/lp-v3-plan.d.ts +22 -0
  207. package/dist/vendor/lp-v3/lp-v3-plan.js +135 -0
  208. package/dist/vendor/lp-v3/types.d.ts +131 -0
  209. package/dist/vendor/lp-v3/types.js +6 -0
  210. package/dist/vendor/lp-v3/v4-math.d.ts +18 -0
  211. package/dist/vendor/lp-v3/v4-math.js +90 -0
  212. package/dist/yield-deposit-definition.d.ts +65 -14
  213. package/dist/yield-deposit-definition.js +6 -4
  214. package/dist/yield-deposit.js +8 -0
  215. package/dist/yield-route-semantics.d.ts +27 -0
  216. package/dist/yield-route-semantics.js +71 -0
  217. package/dist/yield-withdraw-definition.d.ts +62 -11
  218. package/dist/yield-withdraw-definition.js +3 -1
  219. package/dist/yield-withdraw.d.ts +0 -10
  220. package/dist/yield-withdraw.js +2 -0
  221. package/package.json +215 -7
@@ -0,0 +1,643 @@
1
+ /** Read-only LP preparation and atomic account-call verification. No sender or authority issuer. */
2
+ import { type Hex, type PublicClient } from 'viem';
3
+ import { z } from 'zod';
4
+ import { type LpUserOpTerms } from './lp-userop-definition.js';
5
+ import { type LpV3GuardDeployment } from './vendor/lp-v3/lp-v3-atomic-contract.js';
6
+ import { type LpV3FinalityPolicy } from './vendor/lp-v3/lp-v3-atomic-read-contract.js';
7
+ import { type LpV3CollectProtocolReadClient } from './vendor/lp-v3/lp-v3-collect-protocol-index.js';
8
+ export declare const LP_USEROP_BATCH_ABI: readonly [{
9
+ readonly name: "executeBatch";
10
+ readonly type: "function";
11
+ readonly stateMutability: "payable";
12
+ readonly inputs: readonly [{
13
+ readonly type: "tuple[]";
14
+ readonly components: readonly [{
15
+ readonly type: "address";
16
+ readonly name: "target";
17
+ }, {
18
+ readonly type: "uint256";
19
+ readonly name: "value";
20
+ }, {
21
+ readonly type: "bytes";
22
+ readonly name: "data";
23
+ }];
24
+ readonly name: "calls";
25
+ }];
26
+ readonly outputs: readonly [];
27
+ }];
28
+ export declare const LP_USEROP_VERIFICATION_EVIDENCE_SCHEMA: z.ZodObject<{
29
+ baseline: z.ZodObject<{
30
+ chainId: z.ZodLiteral<8453>;
31
+ fee: z.ZodNumber;
32
+ blockNumber: z.ZodString;
33
+ blockHash: z.ZodString;
34
+ account: z.ZodString;
35
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
36
+ blockTimestamp: z.ZodNumber;
37
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
38
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
39
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
40
+ usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
41
+ factoryCodeHash: z.ZodLiteral<`0x${string}`>;
42
+ managerCodeHash: z.ZodLiteral<`0x${string}`>;
43
+ token0CodeHash: z.ZodLiteral<`0x${string}`>;
44
+ token1CodeHash: z.ZodLiteral<`0x${string}`>;
45
+ usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
46
+ pool: z.ZodString;
47
+ balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
48
+ allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
49
+ factoryPool: z.ZodString;
50
+ tick: z.ZodNumber;
51
+ observedAt: z.ZodNumber;
52
+ managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
53
+ usdcPaused: z.ZodLiteral<false>;
54
+ accountBlacklisted: z.ZodLiteral<false>;
55
+ managerBlacklisted: z.ZodLiteral<false>;
56
+ poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
57
+ tickSpacing: z.ZodNumber;
58
+ sqrtPriceX96: z.ZodString;
59
+ unlocked: z.ZodLiteral<true>;
60
+ position: z.ZodObject<{
61
+ tokenId: z.ZodString;
62
+ owner: z.ZodString;
63
+ token0: z.ZodString;
64
+ token1: z.ZodString;
65
+ fee: z.ZodNumber;
66
+ tickLower: z.ZodNumber;
67
+ tickUpper: z.ZodNumber;
68
+ liquidity: z.ZodString;
69
+ tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
70
+ approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
71
+ }, z.core.$strict>;
72
+ managerNativeBalance: z.ZodString;
73
+ schemaVersion: z.ZodLiteral<3>;
74
+ accountCode: z.ZodString;
75
+ accountCodeHash: z.ZodString;
76
+ guard: z.ZodObject<{
77
+ address: z.ZodString;
78
+ runtimeCodeHash: z.ZodString;
79
+ configurationHash: z.ZodString;
80
+ deploymentChainId: z.ZodLiteral<8453>;
81
+ ownerApprovalForAll: z.ZodLiteral<false>;
82
+ guardBlacklisted: z.ZodLiteral<false>;
83
+ poolBlacklisted: z.ZodLiteral<false>;
84
+ tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
85
+ tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
86
+ }, z.core.$strict>;
87
+ }, z.core.$strict>;
88
+ check: z.ZodObject<{
89
+ planCommitment: z.ZodString;
90
+ intentCommitment: z.ZodString;
91
+ policyCommitment: z.ZodString;
92
+ baselineCommitment: z.ZodString;
93
+ checkedAt: z.ZodNumber;
94
+ checkCommitment: z.ZodString;
95
+ executionAuthorized: z.ZodLiteral<false>;
96
+ transportVerified: z.ZodLiteral<false>;
97
+ claimReleased: z.ZodLiteral<false>;
98
+ retainClaim: z.ZodLiteral<true>;
99
+ retrySafe: z.ZodLiteral<false>;
100
+ schemaVersion: z.ZodLiteral<3>;
101
+ kind: z.ZodLiteral<"lp-v3-collect-protocol-check">;
102
+ }, z.core.$strict>;
103
+ verifiedAtMs: z.ZodNumber;
104
+ }, z.core.$strict>;
105
+ export type LpUserOpVerificationEvidence = z.infer<typeof LP_USEROP_VERIFICATION_EVIDENCE_SCHEMA>;
106
+ export declare const LP_USEROP_SUBMIT_EVIDENCE_SCHEMA: z.ZodObject<{
107
+ baseline: z.ZodObject<{
108
+ chainId: z.ZodLiteral<8453>;
109
+ fee: z.ZodNumber;
110
+ blockNumber: z.ZodString;
111
+ blockHash: z.ZodString;
112
+ account: z.ZodString;
113
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
114
+ blockTimestamp: z.ZodNumber;
115
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
116
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
117
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
118
+ usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
119
+ factoryCodeHash: z.ZodLiteral<`0x${string}`>;
120
+ managerCodeHash: z.ZodLiteral<`0x${string}`>;
121
+ token0CodeHash: z.ZodLiteral<`0x${string}`>;
122
+ token1CodeHash: z.ZodLiteral<`0x${string}`>;
123
+ usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
124
+ pool: z.ZodString;
125
+ balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
126
+ allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
127
+ factoryPool: z.ZodString;
128
+ tick: z.ZodNumber;
129
+ observedAt: z.ZodNumber;
130
+ managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
131
+ usdcPaused: z.ZodLiteral<false>;
132
+ accountBlacklisted: z.ZodLiteral<false>;
133
+ managerBlacklisted: z.ZodLiteral<false>;
134
+ poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
135
+ tickSpacing: z.ZodNumber;
136
+ sqrtPriceX96: z.ZodString;
137
+ unlocked: z.ZodLiteral<true>;
138
+ position: z.ZodObject<{
139
+ tokenId: z.ZodString;
140
+ owner: z.ZodString;
141
+ token0: z.ZodString;
142
+ token1: z.ZodString;
143
+ fee: z.ZodNumber;
144
+ tickLower: z.ZodNumber;
145
+ tickUpper: z.ZodNumber;
146
+ liquidity: z.ZodString;
147
+ tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
148
+ approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
149
+ }, z.core.$strict>;
150
+ managerNativeBalance: z.ZodString;
151
+ schemaVersion: z.ZodLiteral<3>;
152
+ accountCode: z.ZodString;
153
+ accountCodeHash: z.ZodString;
154
+ guard: z.ZodObject<{
155
+ address: z.ZodString;
156
+ runtimeCodeHash: z.ZodString;
157
+ configurationHash: z.ZodString;
158
+ deploymentChainId: z.ZodLiteral<8453>;
159
+ ownerApprovalForAll: z.ZodLiteral<false>;
160
+ guardBlacklisted: z.ZodLiteral<false>;
161
+ poolBlacklisted: z.ZodLiteral<false>;
162
+ tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
163
+ tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
164
+ }, z.core.$strict>;
165
+ }, z.core.$strict>;
166
+ check: z.ZodObject<{
167
+ planCommitment: z.ZodString;
168
+ intentCommitment: z.ZodString;
169
+ policyCommitment: z.ZodString;
170
+ baselineCommitment: z.ZodString;
171
+ checkedAt: z.ZodNumber;
172
+ checkCommitment: z.ZodString;
173
+ executionAuthorized: z.ZodLiteral<false>;
174
+ transportVerified: z.ZodLiteral<false>;
175
+ claimReleased: z.ZodLiteral<false>;
176
+ retainClaim: z.ZodLiteral<true>;
177
+ retrySafe: z.ZodLiteral<false>;
178
+ schemaVersion: z.ZodLiteral<3>;
179
+ kind: z.ZodLiteral<"lp-v3-collect-protocol-check">;
180
+ }, z.core.$strict>;
181
+ verifiedAtMs: z.ZodNumber;
182
+ }, z.core.$strict>;
183
+ export type LpUserOpSubmitEvidence = LpUserOpVerificationEvidence;
184
+ export declare const LP_USEROP_ENVELOPE_SCHEMA: z.ZodObject<{
185
+ version: z.ZodLiteral<1>;
186
+ kind: z.ZodLiteral<"lp-collect-userop">;
187
+ input: z.ZodObject<{
188
+ action: z.ZodLiteral<"collect">;
189
+ tokenId: z.ZodString;
190
+ amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
191
+ amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
192
+ protocol: z.ZodLiteral<"uniswap-v3">;
193
+ chainId: z.ZodLiteral<8453>;
194
+ operationId: z.ZodString;
195
+ account: z.ZodString;
196
+ recipient: z.ZodString;
197
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
198
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
199
+ pool: z.ZodString;
200
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
201
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
202
+ fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
203
+ tickLower: z.ZodNumber;
204
+ tickUpper: z.ZodNumber;
205
+ deadline: z.ZodNumber;
206
+ nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
207
+ guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
208
+ schemaVersion: z.ZodLiteral<3>;
209
+ }, z.core.$strict>;
210
+ plan: z.ZodObject<{
211
+ intent: z.ZodObject<{
212
+ action: z.ZodLiteral<"collect">;
213
+ tokenId: z.ZodString;
214
+ amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
215
+ amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
216
+ protocol: z.ZodLiteral<"uniswap-v3">;
217
+ chainId: z.ZodLiteral<8453>;
218
+ operationId: z.ZodString;
219
+ account: z.ZodString;
220
+ recipient: z.ZodString;
221
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
222
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
223
+ pool: z.ZodString;
224
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
225
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
226
+ fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
227
+ tickLower: z.ZodNumber;
228
+ tickUpper: z.ZodNumber;
229
+ deadline: z.ZodNumber;
230
+ nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
231
+ guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
232
+ schemaVersion: z.ZodLiteral<3>;
233
+ }, z.core.$strict>;
234
+ intentCommitment: z.ZodString;
235
+ policyCommitment: z.ZodString;
236
+ guardDeployment: z.ZodObject<{
237
+ id: z.ZodLiteral<"base-weth-usdc-collect-v1">;
238
+ chainId: z.ZodLiteral<8453>;
239
+ address: z.ZodString;
240
+ runtimeCodeHash: z.ZodString;
241
+ configurationHash: z.ZodLiteral<`0x${string}`>;
242
+ codeVersion: z.ZodLiteral<"OttoV3CollectGuard-v1">;
243
+ deploymentBlock: z.ZodString;
244
+ reviewReference: z.ZodString;
245
+ }, z.core.$strict>;
246
+ calls: z.ZodTuple<[z.ZodObject<{
247
+ step: z.ZodEnum<{
248
+ mutation: "mutation";
249
+ "erc20-approve": "erc20-approve";
250
+ "erc20-cleanup": "erc20-cleanup";
251
+ "nft-approve": "nft-approve";
252
+ "nft-clear": "nft-clear";
253
+ }>;
254
+ tokenIndex: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
255
+ chainId: z.ZodLiteral<8453>;
256
+ from: z.ZodString;
257
+ to: z.ZodString;
258
+ value: z.ZodLiteral<"0">;
259
+ data: z.ZodString;
260
+ }, z.core.$strict>, z.ZodObject<{
261
+ step: z.ZodEnum<{
262
+ mutation: "mutation";
263
+ "erc20-approve": "erc20-approve";
264
+ "erc20-cleanup": "erc20-cleanup";
265
+ "nft-approve": "nft-approve";
266
+ "nft-clear": "nft-clear";
267
+ }>;
268
+ tokenIndex: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
269
+ chainId: z.ZodLiteral<8453>;
270
+ from: z.ZodString;
271
+ to: z.ZodString;
272
+ value: z.ZodLiteral<"0">;
273
+ data: z.ZodString;
274
+ }, z.core.$strict>], null>;
275
+ preparedBlock: z.ZodObject<{
276
+ number: z.ZodString;
277
+ hash: z.ZodString;
278
+ }, z.core.$strict>;
279
+ preparedObservationCommitment: z.ZodString;
280
+ planCommitment: z.ZodString;
281
+ executionAuthorized: z.ZodLiteral<false>;
282
+ transportVerified: z.ZodLiteral<false>;
283
+ claimReleased: z.ZodLiteral<false>;
284
+ retainClaim: z.ZodLiteral<true>;
285
+ retrySafe: z.ZodLiteral<false>;
286
+ schemaVersion: z.ZodLiteral<3>;
287
+ kind: z.ZodLiteral<"lp-v3-collect-protocol">;
288
+ }, z.core.$strict>;
289
+ baseline: z.ZodObject<{
290
+ chainId: z.ZodLiteral<8453>;
291
+ fee: z.ZodNumber;
292
+ blockNumber: z.ZodString;
293
+ blockHash: z.ZodString;
294
+ account: z.ZodString;
295
+ factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
296
+ blockTimestamp: z.ZodNumber;
297
+ manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
298
+ token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
299
+ token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
300
+ usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
301
+ factoryCodeHash: z.ZodLiteral<`0x${string}`>;
302
+ managerCodeHash: z.ZodLiteral<`0x${string}`>;
303
+ token0CodeHash: z.ZodLiteral<`0x${string}`>;
304
+ token1CodeHash: z.ZodLiteral<`0x${string}`>;
305
+ usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
306
+ pool: z.ZodString;
307
+ balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
308
+ allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
309
+ factoryPool: z.ZodString;
310
+ tick: z.ZodNumber;
311
+ observedAt: z.ZodNumber;
312
+ managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
313
+ usdcPaused: z.ZodLiteral<false>;
314
+ accountBlacklisted: z.ZodLiteral<false>;
315
+ managerBlacklisted: z.ZodLiteral<false>;
316
+ poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
317
+ tickSpacing: z.ZodNumber;
318
+ sqrtPriceX96: z.ZodString;
319
+ unlocked: z.ZodLiteral<true>;
320
+ position: z.ZodObject<{
321
+ tokenId: z.ZodString;
322
+ owner: z.ZodString;
323
+ token0: z.ZodString;
324
+ token1: z.ZodString;
325
+ fee: z.ZodNumber;
326
+ tickLower: z.ZodNumber;
327
+ tickUpper: z.ZodNumber;
328
+ liquidity: z.ZodString;
329
+ tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
330
+ approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
331
+ }, z.core.$strict>;
332
+ managerNativeBalance: z.ZodString;
333
+ schemaVersion: z.ZodLiteral<3>;
334
+ accountCode: z.ZodString;
335
+ accountCodeHash: z.ZodString;
336
+ guard: z.ZodObject<{
337
+ address: z.ZodString;
338
+ runtimeCodeHash: z.ZodString;
339
+ configurationHash: z.ZodString;
340
+ deploymentChainId: z.ZodLiteral<8453>;
341
+ ownerApprovalForAll: z.ZodLiteral<false>;
342
+ guardBlacklisted: z.ZodLiteral<false>;
343
+ poolBlacklisted: z.ZodLiteral<false>;
344
+ tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
345
+ tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
346
+ }, z.core.$strict>;
347
+ }, z.core.$strict>;
348
+ check: z.ZodObject<{
349
+ planCommitment: z.ZodString;
350
+ intentCommitment: z.ZodString;
351
+ policyCommitment: z.ZodString;
352
+ baselineCommitment: z.ZodString;
353
+ checkedAt: z.ZodNumber;
354
+ checkCommitment: z.ZodString;
355
+ executionAuthorized: z.ZodLiteral<false>;
356
+ transportVerified: z.ZodLiteral<false>;
357
+ claimReleased: z.ZodLiteral<false>;
358
+ retainClaim: z.ZodLiteral<true>;
359
+ retrySafe: z.ZodLiteral<false>;
360
+ schemaVersion: z.ZodLiteral<3>;
361
+ kind: z.ZodLiteral<"lp-v3-collect-protocol-check">;
362
+ }, z.core.$strict>;
363
+ terms: z.ZodObject<{
364
+ version: z.ZodLiteral<1>;
365
+ ruleset: z.ZodLiteral<"lp-guarded-collect-userop-v1">;
366
+ userId: z.ZodString;
367
+ account: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
368
+ chainId: z.ZodLiteral<8453>;
369
+ authorityDigest: z.ZodString;
370
+ lpActivationCommitment: z.ZodString;
371
+ sponsoredActivationId: z.ZodString;
372
+ sponsoredActivationDigest: z.ZodString;
373
+ projectId: z.ZodString;
374
+ policyId: z.ZodString;
375
+ policyRulesDigest: z.ZodString;
376
+ providerEnforcementEvidenceDigest: z.ZodString;
377
+ providerEndpoint: z.ZodLiteral<"cdp-end-user-smart-account-send-v1">;
378
+ guardDeployment: z.ZodObject<{
379
+ id: z.ZodLiteral<"base-weth-usdc-collect-v1">;
380
+ chainId: z.ZodLiteral<8453>;
381
+ address: z.ZodString;
382
+ runtimeCodeHash: z.ZodString;
383
+ configurationHash: z.ZodLiteral<`0x${string}`>;
384
+ codeVersion: z.ZodLiteral<"OttoV3CollectGuard-v1">;
385
+ deploymentBlock: z.ZodString;
386
+ reviewReference: z.ZodString;
387
+ }, z.core.$strict>;
388
+ finalityPolicy: z.ZodObject<{
389
+ schemaVersion: z.ZodLiteral<1>;
390
+ id: z.ZodLiteral<"base-finalized-lp-v1">;
391
+ chainId: z.ZodLiteral<8453>;
392
+ blockTag: z.ZodLiteral<"finalized">;
393
+ reviewReference: z.ZodString;
394
+ minFinalizedConfirmations: z.ZodNumber;
395
+ maxHeadAgeSeconds: z.ZodNumber;
396
+ maxFinalizedLagSeconds: z.ZodNumber;
397
+ maxReadDurationSeconds: z.ZodNumber;
398
+ }, z.core.$strict>;
399
+ delegate: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
400
+ delegateCodeHash: z.ZodString;
401
+ implementation: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
402
+ implementationCodeHash: z.ZodString;
403
+ delegateBatchAbi: z.ZodLiteral<"coinbase-executeBatch-v1">;
404
+ delegateBatchReviewDigest: z.ZodString;
405
+ entryPoint: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
406
+ entryPointCodeHash: z.ZodString;
407
+ entryPointVersion: z.ZodLiteral<"0.6">;
408
+ ownerProfile: z.ZodObject<{
409
+ kind: z.ZodLiteral<"sole-eoa-owner">;
410
+ nextOwnerIndex: z.ZodLiteral<"1">;
411
+ ownerCount: z.ZodLiteral<"1">;
412
+ ownerAtIndex0: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
413
+ spendPermissionsEnabled: z.ZodLiteral<false>;
414
+ }, z.core.$strict>;
415
+ paymaster: z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>;
416
+ paymasterCodeHash: z.ZodString;
417
+ sponsorshipPolicyId: z.ZodString;
418
+ maxGasCostWei: z.ZodString;
419
+ maxUserGasCostWei: z.ZodString;
420
+ maxTotalGasCostWei: z.ZodString;
421
+ maximumCollectAtomic: z.ZodTuple<[z.ZodString, z.ZodString], null>;
422
+ intentCommitment: z.ZodString;
423
+ reviewCreatedAtMs: z.ZodNumber;
424
+ reviewExpiresAtMs: z.ZodNumber;
425
+ initialNftApproval: z.ZodLiteral<"0x0000000000000000000000000000000000000000">;
426
+ finalNftApproval: z.ZodLiteral<"0x0000000000000000000000000000000000000000">;
427
+ execution: z.ZodLiteral<"atomic-nft-approve-guarded-collect">;
428
+ principalDebitAuthorized: z.ZodLiteral<false>;
429
+ }, z.core.$strict>;
430
+ finalityPolicy: z.ZodObject<{
431
+ schemaVersion: z.ZodLiteral<1>;
432
+ id: z.ZodLiteral<"base-finalized-lp-v1">;
433
+ chainId: z.ZodLiteral<8453>;
434
+ blockTag: z.ZodLiteral<"finalized">;
435
+ reviewReference: z.ZodString;
436
+ minFinalizedConfirmations: z.ZodNumber;
437
+ maxHeadAgeSeconds: z.ZodNumber;
438
+ maxFinalizedLagSeconds: z.ZodNumber;
439
+ maxReadDurationSeconds: z.ZodNumber;
440
+ }, z.core.$strict>;
441
+ preparedAtMs: z.ZodNumber;
442
+ validUntilMs: z.ZodNumber;
443
+ commitment: z.ZodString;
444
+ }, z.core.$strict>;
445
+ export type LpUserOpEnvelope = z.infer<typeof LP_USEROP_ENVELOPE_SCHEMA>;
446
+ export interface LpUserOpRuntime {
447
+ readonly client: PublicClient;
448
+ /** Immutable startup policy, independently selected by the host. No request override. */
449
+ readonly guardDeployments: readonly LpV3GuardDeployment[];
450
+ readonly finalityPolicy: LpV3FinalityPolicy;
451
+ readonly nowMs?: () => number;
452
+ }
453
+ export interface VerifiedLpUserOp {
454
+ readonly envelope: LpUserOpEnvelope;
455
+ readonly verificationOnly: true;
456
+ }
457
+ export declare class LpUserOpError extends Error {
458
+ readonly code: string;
459
+ constructor(code: string);
460
+ }
461
+ export declare function requireLpUserOp(value: unknown, code: string): asserts value;
462
+ export declare function lpUserOpNow(runtime: LpUserOpRuntime): number;
463
+ /** Preserve the canonical library's EIP-1898 request objects through viem's custom RPC schema. */
464
+ export declare function lpUserOpProtocolClient(client: PublicClient): LpV3CollectProtocolReadClient;
465
+ export declare function lpUserOpProtocol(runtime: LpUserOpRuntime, envelope?: LpUserOpEnvelope): Readonly<{
466
+ policy: readonly {
467
+ id: "base-weth-usdc-collect-v1";
468
+ chainId: 8453;
469
+ address: string;
470
+ runtimeCodeHash: string;
471
+ configurationHash: `0x${string}`;
472
+ codeVersion: "OttoV3CollectGuard-v1";
473
+ deploymentBlock: string;
474
+ reviewReference: string;
475
+ }[];
476
+ collectProtocolEvidence: (intent: unknown, readOptions: import("./vendor/lp-v3/lp-v3-collect-protocol-observation.js").LpV3CollectProtocolObservationOptions) => Promise<{
477
+ chainId: 8453;
478
+ fee: number;
479
+ blockNumber: string;
480
+ blockHash: string;
481
+ account: string;
482
+ factory: "0x33128a8fc17869897dce68ed026d694621f6fdfd";
483
+ blockTimestamp: number;
484
+ manager: "0x03a520b32c04bf3beef7beb72e919cf822ed34f1";
485
+ token0: "0x4200000000000000000000000000000000000006";
486
+ token1: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913";
487
+ usdcImplementation: "0x2ce6311ddae708829bc0784c967b7d77d19fd779";
488
+ factoryCodeHash: `0x${string}`;
489
+ managerCodeHash: `0x${string}`;
490
+ token0CodeHash: `0x${string}`;
491
+ token1CodeHash: `0x${string}`;
492
+ usdcImplementationCodeHash: `0x${string}`;
493
+ pool: string;
494
+ balances: [string, string];
495
+ allowances: [string, string];
496
+ factoryPool: string;
497
+ tick: number;
498
+ observedAt: number;
499
+ managerFactory: "0x33128a8fc17869897dce68ed026d694621f6fdfd";
500
+ usdcPaused: false;
501
+ accountBlacklisted: false;
502
+ managerBlacklisted: false;
503
+ poolFactory: "0x33128a8fc17869897dce68ed026d694621f6fdfd";
504
+ tickSpacing: number;
505
+ sqrtPriceX96: string;
506
+ unlocked: true;
507
+ position: {
508
+ tokenId: string;
509
+ owner: string;
510
+ token0: string;
511
+ token1: string;
512
+ fee: number;
513
+ tickLower: number;
514
+ tickUpper: number;
515
+ liquidity: string;
516
+ tokensOwed: [string, string];
517
+ approved: string;
518
+ };
519
+ managerNativeBalance: string;
520
+ schemaVersion: 3;
521
+ accountCode: string;
522
+ accountCodeHash: string;
523
+ guard: {
524
+ address: string;
525
+ runtimeCodeHash: string;
526
+ configurationHash: string;
527
+ deploymentChainId: 8453;
528
+ ownerApprovalForAll: false;
529
+ guardBlacklisted: false;
530
+ poolBlacklisted: false;
531
+ tokenAllowances: ["0", "0"];
532
+ tokenBalances: [string, string];
533
+ };
534
+ }>;
535
+ prepare: (intent: unknown, observation: unknown, verifyOptions?: import("./vendor/lp-v3/lp-v3-plan.js").LpV3VerifyOptions) => {
536
+ intent: {
537
+ action: "collect";
538
+ tokenId: string;
539
+ amountMax: [string, string];
540
+ amountMin: [string, string];
541
+ protocol: "uniswap-v3";
542
+ chainId: 8453;
543
+ operationId: string;
544
+ account: string;
545
+ recipient: string;
546
+ manager: "0x03a520b32c04bf3beef7beb72e919cf822ed34f1";
547
+ factory: "0x33128a8fc17869897dce68ed026d694621f6fdfd";
548
+ pool: string;
549
+ token0: "0x4200000000000000000000000000000000000006";
550
+ token1: "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913";
551
+ fee: 10000 | 100 | 500 | 3000;
552
+ tickLower: number;
553
+ tickUpper: number;
554
+ deadline: number;
555
+ nftApprovalPolicy: "zero-before-and-after";
556
+ guardDeploymentId: "base-weth-usdc-collect-v1";
557
+ schemaVersion: 3;
558
+ };
559
+ intentCommitment: string;
560
+ policyCommitment: string;
561
+ guardDeployment: {
562
+ id: "base-weth-usdc-collect-v1";
563
+ chainId: 8453;
564
+ address: string;
565
+ runtimeCodeHash: string;
566
+ configurationHash: `0x${string}`;
567
+ codeVersion: "OttoV3CollectGuard-v1";
568
+ deploymentBlock: string;
569
+ reviewReference: string;
570
+ };
571
+ calls: [{
572
+ step: "mutation" | "erc20-approve" | "erc20-cleanup" | "nft-approve" | "nft-clear";
573
+ tokenIndex: 0 | 1 | null;
574
+ chainId: 8453;
575
+ from: string;
576
+ to: string;
577
+ value: "0";
578
+ data: string;
579
+ }, {
580
+ step: "mutation" | "erc20-approve" | "erc20-cleanup" | "nft-approve" | "nft-clear";
581
+ tokenIndex: 0 | 1 | null;
582
+ chainId: 8453;
583
+ from: string;
584
+ to: string;
585
+ value: "0";
586
+ data: string;
587
+ }];
588
+ preparedBlock: {
589
+ number: string;
590
+ hash: string;
591
+ };
592
+ preparedObservationCommitment: string;
593
+ planCommitment: string;
594
+ executionAuthorized: false;
595
+ transportVerified: false;
596
+ claimReleased: false;
597
+ retainClaim: true;
598
+ retrySafe: false;
599
+ schemaVersion: 3;
600
+ kind: "lp-v3-collect-protocol";
601
+ };
602
+ validatePrepared: (plan: unknown, independentIntent: unknown, observation: unknown, verifyOptions?: import("./vendor/lp-v3/lp-v3-plan.js").LpV3VerifyOptions) => {
603
+ planCommitment: string;
604
+ intentCommitment: string;
605
+ policyCommitment: string;
606
+ baselineCommitment: string;
607
+ checkedAt: number;
608
+ checkCommitment: string;
609
+ executionAuthorized: false;
610
+ transportVerified: false;
611
+ claimReleased: false;
612
+ retainClaim: true;
613
+ retrySafe: false;
614
+ schemaVersion: 3;
615
+ kind: "lp-v3-collect-protocol-check";
616
+ };
617
+ reconcileCollectProtocol: (input: unknown, verifyOptions?: import("./vendor/lp-v3/lp-v3-plan.js").LpV3VerifyOptions) => import("./vendor/lp-v3/lp-v3-collect-protocol-contract.js").LpV3CollectProtocolAccounting;
618
+ }>;
619
+ /** Bound every awaited read phase with both clocks; event-loop pauses cannot bypass the timer. */
620
+ export declare function boundedLpUserOpRead<T>(runtime: LpUserOpRuntime, work: () => Promise<T>): Promise<T>;
621
+ /** Durable-record validation is not freshness, transport, execution or claim-release authority. */
622
+ export declare function assertLpUserOpEnvelope(raw: unknown): LpUserOpEnvelope;
623
+ export declare function assertLpUserOpAccountState(runtime: LpUserOpRuntime, terms: LpUserOpTerms, blockNumber: bigint, blockHash: Hex): Promise<void>;
624
+ export declare function prepareLpUserOp(runtime: LpUserOpRuntime, rawInput: unknown, independentTerms: LpUserOpTerms): Promise<LpUserOpEnvelope>;
625
+ export declare function verifyLpUserOp(runtime: LpUserOpRuntime, rawEnvelope: unknown, independentTerms: LpUserOpTerms): Promise<VerifiedLpUserOp>;
626
+ export declare function assertVerifiedLpUserOp(value: VerifiedLpUserOp): LpUserOpEnvelope;
627
+ /** Final read-age boundary after every blocking writer lock and immediately before provider start. */
628
+ export declare function assertFreshVerifiedLpUserOp(value: VerifiedLpUserOp, nowMs: number): void;
629
+ export declare function lpUserOpVerificationEvidence(value: VerifiedLpUserOp): LpUserOpVerificationEvidence;
630
+ export declare function lpUserOpCalls(value: VerifiedLpUserOp): {
631
+ to: string;
632
+ data: string;
633
+ value: "0";
634
+ }[];
635
+ /** Exact persisted request reconstruction after Stop or expiry; conveys no new sending authority. */
636
+ export declare function lpUserOpRecordedCalls(rawEnvelope: LpUserOpEnvelope): {
637
+ to: string;
638
+ data: string;
639
+ value: "0";
640
+ }[];
641
+ export declare function lpUserOpBatchData(envelope: LpUserOpEnvelope): Hex;
642
+ /** Entire reviewed executeBatch, called from the EntryPoint at the verified block, without overrides. */
643
+ export declare function simulateLpUserOp(runtime: LpUserOpRuntime, envelope: LpUserOpEnvelope, independentTerms: LpUserOpTerms): Promise<VerifiedLpUserOp>;