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.
- package/README.md +76 -18
- package/dist/account-userop-policy-definition.d.ts +14 -0
- package/dist/account-userop-policy-definition.js +12 -0
- package/dist/account-userop-policy-relation.d.ts +371 -0
- package/dist/account-userop-policy-relation.js +87 -0
- package/dist/adapter/cdp-signer.d.ts +76 -9
- package/dist/adapter/cdp-signer.js +274 -33
- package/dist/adapter/evm-call-failure.d.ts +29 -0
- package/dist/adapter/evm-call-failure.js +109 -0
- package/dist/adapter/refusal.d.ts +1 -1
- package/dist/adapter/refusal.js +13 -0
- package/dist/adapter/route-simulator.d.ts +91 -0
- package/dist/adapter/route-simulator.js +143 -0
- package/dist/adapter-cdp-index.d.ts +1 -1
- package/dist/executable-equities.d.ts +55 -0
- package/dist/executable-equities.js +116 -0
- package/dist/executable-yield-markets.d.ts +261 -0
- package/dist/executable-yield-markets.js +154 -0
- package/dist/execution-account-gas-quote.d.ts +141 -0
- package/dist/execution-account-gas-quote.js +443 -0
- package/dist/execution-account-gas-review.d.ts +123 -0
- package/dist/execution-account-gas-review.js +104 -0
- package/dist/execution-account-gas-runtime.d.ts +33 -0
- package/dist/execution-account-gas-runtime.js +131 -0
- package/dist/execution-account-gas-view.d.ts +936 -0
- package/dist/execution-account-gas-view.js +56 -0
- package/dist/execution-config.d.ts +3 -0
- package/dist/execution-config.js +4 -0
- package/dist/execution-delegated-definition.d.ts +7 -6
- package/dist/execution-delegated-definition.js +13 -2
- package/dist/execution-delegation-admin-definition.d.ts +127 -5
- package/dist/execution-delegation-admin-definition.js +155 -5
- package/dist/execution-delegation-admin.d.ts +48 -2
- package/dist/execution-delegation-admin.js +422 -12
- package/dist/execution-delegation-cap-store.d.ts +386 -0
- package/dist/execution-delegation-cap-store.js +1150 -0
- package/dist/execution-delegation-exit-definition.d.ts +309 -0
- package/dist/execution-delegation-exit-definition.js +204 -0
- package/dist/execution-delegation-exit-store.d.ts +114 -0
- package/dist/execution-delegation-exit-store.js +671 -0
- package/dist/execution-delegation-exit.d.ts +4 -0
- package/dist/execution-delegation-exit.js +614 -0
- package/dist/execution-delegation-finality.d.ts +22 -0
- package/dist/execution-delegation-finality.js +90 -0
- package/dist/execution-delegation-operation-store.d.ts +129 -0
- package/dist/execution-delegation-operation-store.js +1107 -0
- package/dist/execution-delegation-operations-definition.d.ts +282 -0
- package/dist/execution-delegation-operations-definition.js +117 -0
- package/dist/execution-delegation-operations.d.ts +6 -0
- package/dist/execution-delegation-operations.js +282 -0
- package/dist/execution-delegation-policy.d.ts +154 -8
- package/dist/execution-delegation-policy.js +273 -40
- package/dist/execution-delegation.d.ts +51 -0
- package/dist/execution-delegation.js +441 -31
- package/dist/execution-errors.d.ts +1 -1
- package/dist/execution-errors.js +122 -0
- package/dist/execution-index.d.ts +7 -2
- package/dist/execution-index.js +7 -2
- package/dist/execution-journal-schema.d.ts +96 -0
- package/dist/execution-journal-schema.js +368 -0
- package/dist/execution-journal-tables.d.ts +14 -0
- package/dist/execution-journal-tables.js +227 -0
- package/dist/execution-policy-compatibility.d.ts +34 -0
- package/dist/execution-policy-compatibility.js +76 -0
- package/dist/execution-registration.d.ts +54 -2
- package/dist/execution-registration.js +151 -5
- package/dist/execution-sponsored-account-profile.d.ts +32 -0
- package/dist/execution-sponsored-account-profile.js +59 -0
- package/dist/execution-sponsored-account.d.ts +1519 -0
- package/dist/execution-sponsored-account.js +222 -0
- package/dist/execution-sponsored-definition.d.ts +1713 -0
- package/dist/execution-sponsored-definition.js +185 -0
- package/dist/execution-sponsored-gas-policy.d.ts +27 -0
- package/dist/execution-sponsored-gas-policy.js +110 -0
- package/dist/execution-sponsored-hosted.d.ts +3 -0
- package/dist/execution-sponsored-hosted.js +71 -0
- package/dist/execution-sponsored-index.d.ts +1322 -0
- package/dist/execution-sponsored-index.js +102 -0
- package/dist/execution-sponsored-mcp-definition.d.ts +1662 -0
- package/dist/execution-sponsored-mcp-definition.js +94 -0
- package/dist/execution-sponsored-receipt.d.ts +47 -0
- package/dist/execution-sponsored-receipt.js +74 -0
- package/dist/execution-sponsored-registration.d.ts +14 -0
- package/dist/execution-sponsored-registration.js +77 -0
- package/dist/execution-sponsored-runtime.d.ts +84 -0
- package/dist/execution-sponsored-runtime.js +149 -0
- package/dist/execution-sponsored-settlement.d.ts +15 -0
- package/dist/execution-sponsored-settlement.js +88 -0
- package/dist/execution-sponsored-store.d.ts +67 -0
- package/dist/execution-sponsored-store.js +517 -0
- package/dist/execution-sponsored-transport.d.ts +90 -0
- package/dist/execution-sponsored-transport.js +180 -0
- package/dist/execution-tool-definitions.d.ts +21 -21
- package/dist/execution-tool-definitions.js +0 -7
- package/dist/execution-tools.d.ts +53 -1
- package/dist/execution-tools.js +171 -13
- package/dist/execution-worker-guard.d.ts +28 -0
- package/dist/execution-worker-guard.js +124 -0
- package/dist/hybrid-yield-index.d.ts +10 -0
- package/dist/hybrid-yield-index.js +11 -0
- package/dist/hybrid-yield-markets.d.ts +96 -0
- package/dist/hybrid-yield-markets.js +124 -0
- package/dist/hybrid-yield.d.ts +411 -0
- package/dist/hybrid-yield.js +155 -0
- package/dist/hyperliquid-order-builder.js +4 -0
- package/dist/lifi-execution-client.d.ts +6 -0
- package/dist/lifi-execution-client.js +3 -0
- package/dist/lp-userop-account.d.ts +461 -0
- package/dist/lp-userop-account.js +417 -0
- package/dist/lp-userop-authority.d.ts +49 -0
- package/dist/lp-userop-authority.js +211 -0
- package/dist/lp-userop-definition.d.ts +233 -0
- package/dist/lp-userop-definition.js +85 -0
- package/dist/lp-userop-hosted.d.ts +3 -0
- package/dist/lp-userop-hosted.js +73 -0
- package/dist/lp-userop-index.d.ts +1569 -0
- package/dist/lp-userop-index.js +112 -0
- package/dist/lp-userop-mcp-definition.d.ts +1220 -0
- package/dist/lp-userop-mcp-definition.js +46 -0
- package/dist/lp-userop-operation.d.ts +1230 -0
- package/dist/lp-userop-operation.js +140 -0
- package/dist/lp-userop-registration.d.ts +14 -0
- package/dist/lp-userop-registration.js +70 -0
- package/dist/lp-userop-settlement.d.ts +89 -0
- package/dist/lp-userop-settlement.js +184 -0
- package/dist/lp-userop.d.ts +643 -0
- package/dist/lp-userop.js +343 -0
- package/dist/native-yield-account-definition.d.ts +1192 -0
- package/dist/native-yield-account-definition.js +232 -0
- package/dist/native-yield-account-gas.d.ts +58 -0
- package/dist/native-yield-account-gas.js +228 -0
- package/dist/native-yield-account-index.d.ts +23 -0
- package/dist/native-yield-account-index.js +28 -0
- package/dist/native-yield-account-policy.d.ts +168 -0
- package/dist/native-yield-account-policy.js +525 -0
- package/dist/native-yield-account-rpc.d.ts +8 -0
- package/dist/native-yield-account-rpc.js +128 -0
- package/dist/native-yield-account-runtime.d.ts +71 -0
- package/dist/native-yield-account-runtime.js +125 -0
- package/dist/native-yield-account-store.d.ts +40 -0
- package/dist/native-yield-account-store.js +307 -0
- package/dist/native-yield-account.d.ts +662 -0
- package/dist/native-yield-account.js +371 -0
- package/dist/native-yield-consent-store.d.ts +20 -0
- package/dist/native-yield-consent-store.js +317 -0
- package/dist/native-yield-definition.d.ts +288 -0
- package/dist/native-yield-definition.js +105 -0
- package/dist/native-yield-reader.d.ts +4 -0
- package/dist/native-yield-reader.js +137 -0
- package/dist/native-yield-settlement.d.ts +48 -0
- package/dist/native-yield-settlement.js +167 -0
- package/dist/native-yield-simulation.d.ts +18 -0
- package/dist/native-yield-simulation.js +45 -0
- package/dist/native-yield-userop-account.d.ts +675 -0
- package/dist/native-yield-userop-account.js +357 -0
- package/dist/native-yield-userop-authority.d.ts +214 -0
- package/dist/native-yield-userop-authority.js +296 -0
- package/dist/native-yield-userop-definition.d.ts +331 -0
- package/dist/native-yield-userop-definition.js +105 -0
- package/dist/native-yield-userop-hosted.d.ts +3 -0
- package/dist/native-yield-userop-hosted.js +71 -0
- package/dist/native-yield-userop-index.d.ts +1522 -0
- package/dist/native-yield-userop-index.js +142 -0
- package/dist/native-yield-userop-mcp-definition.d.ts +1356 -0
- package/dist/native-yield-userop-mcp-definition.js +50 -0
- package/dist/native-yield-userop-operation.d.ts +845 -0
- package/dist/native-yield-userop-operation.js +127 -0
- package/dist/native-yield-userop-policy.d.ts +23 -0
- package/dist/native-yield-userop-policy.js +25 -0
- package/dist/native-yield-userop-registration.d.ts +17 -0
- package/dist/native-yield-userop-registration.js +76 -0
- package/dist/native-yield-userop-settlement.d.ts +8 -0
- package/dist/native-yield-userop-settlement.js +79 -0
- package/dist/native-yield-userop-simulation.d.ts +18 -0
- package/dist/native-yield-userop-simulation.js +34 -0
- package/dist/native-yield-userop.d.ts +35 -0
- package/dist/native-yield-userop.js +156 -0
- package/dist/native-yield-verify.d.ts +30 -0
- package/dist/native-yield-verify.js +141 -0
- package/dist/native-yield.d.ts +17 -0
- package/dist/native-yield.js +119 -0
- package/dist/stdio-main.js +0 -0
- package/dist/stock-buy-definition.d.ts +338 -0
- package/dist/stock-buy-definition.js +127 -0
- package/dist/stock-buy-oracle.d.ts +8 -0
- package/dist/stock-buy-oracle.js +22 -0
- package/dist/stock-buy.d.ts +17 -0
- package/dist/stock-buy.js +164 -0
- package/dist/tool-definitions.d.ts +3 -1
- package/dist/tool-definitions.js +55 -2
- package/dist/vendor/lp-v3/lp-v3-atomic-contract.d.ts +445 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-contract.js +90 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-evidence.d.ts +14 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-evidence.js +82 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-index.d.ts +80 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-index.js +19 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-plan.d.ts +43 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-plan.js +112 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.d.ts +312 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-contract.js +41 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-index.d.ts +3 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-index.js +3 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.d.ts +49 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read-rpc.js +88 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read.d.ts +17 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-read.js +232 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-settlement.d.ts +105 -0
- package/dist/vendor/lp-v3/lp-v3-atomic-settlement.js +162 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.d.ts +606 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-contract.js +59 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.d.ts +168 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-index.js +23 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.d.ts +32 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-observation.js +228 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.d.ts +11 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-plan.js +91 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.d.ts +9 -0
- package/dist/vendor/lp-v3/lp-v3-collect-protocol-reconcile.js +124 -0
- package/dist/vendor/lp-v3/lp-v3-contract.d.ts +538 -0
- package/dist/vendor/lp-v3/lp-v3-contract.js +137 -0
- package/dist/vendor/lp-v3/lp-v3-evidence.d.ts +25 -0
- package/dist/vendor/lp-v3/lp-v3-evidence.js +168 -0
- package/dist/vendor/lp-v3/lp-v3-plan.d.ts +22 -0
- package/dist/vendor/lp-v3/lp-v3-plan.js +135 -0
- package/dist/vendor/lp-v3/types.d.ts +131 -0
- package/dist/vendor/lp-v3/types.js +6 -0
- package/dist/vendor/lp-v3/v4-math.d.ts +18 -0
- package/dist/vendor/lp-v3/v4-math.js +90 -0
- package/dist/yield-deposit-definition.d.ts +374 -0
- package/dist/yield-deposit-definition.js +123 -0
- package/dist/yield-deposit.d.ts +16 -0
- package/dist/yield-deposit.js +149 -0
- package/dist/yield-route-semantics.d.ts +27 -0
- package/dist/yield-route-semantics.js +71 -0
- package/dist/yield-withdraw-definition.d.ts +357 -0
- package/dist/yield-withdraw-definition.js +90 -0
- package/dist/yield-withdraw.d.ts +11 -0
- package/dist/yield-withdraw.js +122 -0
- package/package.json +239 -7
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const lpV3CollectProtocolIntentSchema: z.ZodObject<{
|
|
3
|
+
action: z.ZodLiteral<"collect">;
|
|
4
|
+
tokenId: z.ZodString;
|
|
5
|
+
amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
6
|
+
amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
7
|
+
protocol: z.ZodLiteral<"uniswap-v3">;
|
|
8
|
+
chainId: z.ZodLiteral<8453>;
|
|
9
|
+
operationId: z.ZodString;
|
|
10
|
+
account: z.ZodString;
|
|
11
|
+
recipient: z.ZodString;
|
|
12
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
13
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
14
|
+
pool: z.ZodString;
|
|
15
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
16
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
17
|
+
fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
|
|
18
|
+
tickLower: z.ZodNumber;
|
|
19
|
+
tickUpper: z.ZodNumber;
|
|
20
|
+
deadline: z.ZodNumber;
|
|
21
|
+
nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
|
|
22
|
+
guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
|
|
23
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
24
|
+
}, z.core.$strict>;
|
|
25
|
+
export type LpV3CollectProtocolIntent = z.infer<typeof lpV3CollectProtocolIntentSchema>;
|
|
26
|
+
export declare const lpV3CollectProtocolObservationSchema: z.ZodObject<{
|
|
27
|
+
chainId: z.ZodLiteral<8453>;
|
|
28
|
+
fee: z.ZodNumber;
|
|
29
|
+
blockNumber: z.ZodString;
|
|
30
|
+
blockHash: z.ZodString;
|
|
31
|
+
account: z.ZodString;
|
|
32
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
33
|
+
blockTimestamp: z.ZodNumber;
|
|
34
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
35
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
36
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
37
|
+
usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
|
|
38
|
+
factoryCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
39
|
+
managerCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
40
|
+
token0CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
41
|
+
token1CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
42
|
+
usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
43
|
+
pool: z.ZodString;
|
|
44
|
+
balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
45
|
+
allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
46
|
+
factoryPool: z.ZodString;
|
|
47
|
+
tick: z.ZodNumber;
|
|
48
|
+
observedAt: z.ZodNumber;
|
|
49
|
+
managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
50
|
+
usdcPaused: z.ZodLiteral<false>;
|
|
51
|
+
accountBlacklisted: z.ZodLiteral<false>;
|
|
52
|
+
managerBlacklisted: z.ZodLiteral<false>;
|
|
53
|
+
poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
54
|
+
tickSpacing: z.ZodNumber;
|
|
55
|
+
sqrtPriceX96: z.ZodString;
|
|
56
|
+
unlocked: z.ZodLiteral<true>;
|
|
57
|
+
position: z.ZodObject<{
|
|
58
|
+
tokenId: z.ZodString;
|
|
59
|
+
owner: z.ZodString;
|
|
60
|
+
token0: z.ZodString;
|
|
61
|
+
token1: z.ZodString;
|
|
62
|
+
fee: z.ZodNumber;
|
|
63
|
+
tickLower: z.ZodNumber;
|
|
64
|
+
tickUpper: z.ZodNumber;
|
|
65
|
+
liquidity: z.ZodString;
|
|
66
|
+
tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
67
|
+
approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
|
|
68
|
+
}, z.core.$strict>;
|
|
69
|
+
managerNativeBalance: z.ZodString;
|
|
70
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
71
|
+
accountCode: z.ZodString;
|
|
72
|
+
accountCodeHash: z.ZodString;
|
|
73
|
+
guard: z.ZodObject<{
|
|
74
|
+
address: z.ZodString;
|
|
75
|
+
runtimeCodeHash: z.ZodString;
|
|
76
|
+
configurationHash: z.ZodString;
|
|
77
|
+
deploymentChainId: z.ZodLiteral<8453>;
|
|
78
|
+
ownerApprovalForAll: z.ZodLiteral<false>;
|
|
79
|
+
guardBlacklisted: z.ZodLiteral<false>;
|
|
80
|
+
poolBlacklisted: z.ZodLiteral<false>;
|
|
81
|
+
tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
|
|
82
|
+
tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
83
|
+
}, z.core.$strict>;
|
|
84
|
+
}, z.core.$strict>;
|
|
85
|
+
export type LpV3CollectProtocolObservation = z.infer<typeof lpV3CollectProtocolObservationSchema>;
|
|
86
|
+
export declare const LP_V3_COLLECT_PROTOCOL_NO_AUTHORITY: Readonly<{
|
|
87
|
+
readonly executionAuthorized: false;
|
|
88
|
+
readonly transportVerified: false;
|
|
89
|
+
readonly claimReleased: false;
|
|
90
|
+
readonly retainClaim: true;
|
|
91
|
+
readonly retrySafe: false;
|
|
92
|
+
}>;
|
|
93
|
+
export declare const lpV3CollectProtocolPlanSchema: z.ZodObject<{
|
|
94
|
+
intent: z.ZodObject<{
|
|
95
|
+
action: z.ZodLiteral<"collect">;
|
|
96
|
+
tokenId: z.ZodString;
|
|
97
|
+
amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
98
|
+
amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
99
|
+
protocol: z.ZodLiteral<"uniswap-v3">;
|
|
100
|
+
chainId: z.ZodLiteral<8453>;
|
|
101
|
+
operationId: z.ZodString;
|
|
102
|
+
account: z.ZodString;
|
|
103
|
+
recipient: z.ZodString;
|
|
104
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
105
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
106
|
+
pool: z.ZodString;
|
|
107
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
108
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
109
|
+
fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
|
|
110
|
+
tickLower: z.ZodNumber;
|
|
111
|
+
tickUpper: z.ZodNumber;
|
|
112
|
+
deadline: z.ZodNumber;
|
|
113
|
+
nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
|
|
114
|
+
guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
|
|
115
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
intentCommitment: z.ZodString;
|
|
118
|
+
policyCommitment: z.ZodString;
|
|
119
|
+
guardDeployment: z.ZodObject<{
|
|
120
|
+
id: z.ZodLiteral<"base-weth-usdc-collect-v1">;
|
|
121
|
+
chainId: z.ZodLiteral<8453>;
|
|
122
|
+
address: z.ZodString;
|
|
123
|
+
runtimeCodeHash: z.ZodString;
|
|
124
|
+
configurationHash: z.ZodLiteral<`0x${string}`>;
|
|
125
|
+
codeVersion: z.ZodLiteral<"OttoV3CollectGuard-v1">;
|
|
126
|
+
deploymentBlock: z.ZodString;
|
|
127
|
+
reviewReference: z.ZodString;
|
|
128
|
+
}, z.core.$strict>;
|
|
129
|
+
calls: z.ZodTuple<[z.ZodObject<{
|
|
130
|
+
step: z.ZodEnum<{
|
|
131
|
+
mutation: "mutation";
|
|
132
|
+
"erc20-approve": "erc20-approve";
|
|
133
|
+
"erc20-cleanup": "erc20-cleanup";
|
|
134
|
+
"nft-approve": "nft-approve";
|
|
135
|
+
"nft-clear": "nft-clear";
|
|
136
|
+
}>;
|
|
137
|
+
tokenIndex: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
138
|
+
chainId: z.ZodLiteral<8453>;
|
|
139
|
+
from: z.ZodString;
|
|
140
|
+
to: z.ZodString;
|
|
141
|
+
value: z.ZodLiteral<"0">;
|
|
142
|
+
data: z.ZodString;
|
|
143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
144
|
+
step: z.ZodEnum<{
|
|
145
|
+
mutation: "mutation";
|
|
146
|
+
"erc20-approve": "erc20-approve";
|
|
147
|
+
"erc20-cleanup": "erc20-cleanup";
|
|
148
|
+
"nft-approve": "nft-approve";
|
|
149
|
+
"nft-clear": "nft-clear";
|
|
150
|
+
}>;
|
|
151
|
+
tokenIndex: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
152
|
+
chainId: z.ZodLiteral<8453>;
|
|
153
|
+
from: z.ZodString;
|
|
154
|
+
to: z.ZodString;
|
|
155
|
+
value: z.ZodLiteral<"0">;
|
|
156
|
+
data: z.ZodString;
|
|
157
|
+
}, z.core.$strict>], null>;
|
|
158
|
+
preparedBlock: z.ZodObject<{
|
|
159
|
+
number: z.ZodString;
|
|
160
|
+
hash: z.ZodString;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
preparedObservationCommitment: z.ZodString;
|
|
163
|
+
planCommitment: z.ZodString;
|
|
164
|
+
executionAuthorized: z.ZodLiteral<false>;
|
|
165
|
+
transportVerified: z.ZodLiteral<false>;
|
|
166
|
+
claimReleased: z.ZodLiteral<false>;
|
|
167
|
+
retainClaim: z.ZodLiteral<true>;
|
|
168
|
+
retrySafe: z.ZodLiteral<false>;
|
|
169
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
170
|
+
kind: z.ZodLiteral<"lp-v3-collect-protocol">;
|
|
171
|
+
}, z.core.$strict>;
|
|
172
|
+
export type LpV3CollectProtocolPlan = z.infer<typeof lpV3CollectProtocolPlanSchema>;
|
|
173
|
+
export declare const lpV3CollectProtocolCheckSchema: z.ZodObject<{
|
|
174
|
+
planCommitment: z.ZodString;
|
|
175
|
+
intentCommitment: z.ZodString;
|
|
176
|
+
policyCommitment: z.ZodString;
|
|
177
|
+
baselineCommitment: z.ZodString;
|
|
178
|
+
checkedAt: z.ZodNumber;
|
|
179
|
+
checkCommitment: z.ZodString;
|
|
180
|
+
executionAuthorized: z.ZodLiteral<false>;
|
|
181
|
+
transportVerified: z.ZodLiteral<false>;
|
|
182
|
+
claimReleased: z.ZodLiteral<false>;
|
|
183
|
+
retainClaim: z.ZodLiteral<true>;
|
|
184
|
+
retrySafe: z.ZodLiteral<false>;
|
|
185
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
186
|
+
kind: z.ZodLiteral<"lp-v3-collect-protocol-check">;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
export type LpV3CollectProtocolCheck = z.infer<typeof lpV3CollectProtocolCheckSchema>;
|
|
189
|
+
export declare const lpV3CollectProtocolLogSchema: z.ZodObject<{
|
|
190
|
+
address: z.ZodString;
|
|
191
|
+
topics: z.ZodArray<z.ZodString>;
|
|
192
|
+
data: z.ZodString;
|
|
193
|
+
logIndex: z.ZodNumber;
|
|
194
|
+
transactionHash: z.ZodString;
|
|
195
|
+
transactionIndex: z.ZodNumber;
|
|
196
|
+
blockHash: z.ZodString;
|
|
197
|
+
blockNumber: z.ZodString;
|
|
198
|
+
removed: z.ZodLiteral<false>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
export type LpV3CollectProtocolLog = z.infer<typeof lpV3CollectProtocolLogSchema>;
|
|
201
|
+
export declare const lpV3CollectProtocolBindingSchema: z.ZodObject<{
|
|
202
|
+
chainId: z.ZodLiteral<8453>;
|
|
203
|
+
userOpHash: z.ZodString;
|
|
204
|
+
account: z.ZodString;
|
|
205
|
+
entryPoint: z.ZodString;
|
|
206
|
+
transactionHash: z.ZodString;
|
|
207
|
+
blockHash: z.ZodString;
|
|
208
|
+
blockNumber: z.ZodString;
|
|
209
|
+
blockTimestamp: z.ZodNumber;
|
|
210
|
+
transactionIndex: z.ZodNumber;
|
|
211
|
+
userOpNonce: z.ZodString;
|
|
212
|
+
windowStartLogIndex: z.ZodNumber;
|
|
213
|
+
userOpEventLogIndex: z.ZodNumber;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
export type LpV3CollectProtocolBinding = z.infer<typeof lpV3CollectProtocolBindingSchema>;
|
|
216
|
+
export declare const lpV3CollectProtocolEvidenceSchema: z.ZodObject<{
|
|
217
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
218
|
+
planCommitment: z.ZodString;
|
|
219
|
+
status: z.ZodEnum<{
|
|
220
|
+
success: "success";
|
|
221
|
+
reverted: "reverted";
|
|
222
|
+
}>;
|
|
223
|
+
binding: z.ZodObject<{
|
|
224
|
+
chainId: z.ZodLiteral<8453>;
|
|
225
|
+
userOpHash: z.ZodString;
|
|
226
|
+
account: z.ZodString;
|
|
227
|
+
entryPoint: z.ZodString;
|
|
228
|
+
transactionHash: z.ZodString;
|
|
229
|
+
blockHash: z.ZodString;
|
|
230
|
+
blockNumber: z.ZodString;
|
|
231
|
+
blockTimestamp: z.ZodNumber;
|
|
232
|
+
transactionIndex: z.ZodNumber;
|
|
233
|
+
userOpNonce: z.ZodString;
|
|
234
|
+
windowStartLogIndex: z.ZodNumber;
|
|
235
|
+
userOpEventLogIndex: z.ZodNumber;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
logs: z.ZodArray<z.ZodObject<{
|
|
238
|
+
address: z.ZodString;
|
|
239
|
+
topics: z.ZodArray<z.ZodString>;
|
|
240
|
+
data: z.ZodString;
|
|
241
|
+
logIndex: z.ZodNumber;
|
|
242
|
+
transactionHash: z.ZodString;
|
|
243
|
+
transactionIndex: z.ZodNumber;
|
|
244
|
+
blockHash: z.ZodString;
|
|
245
|
+
blockNumber: z.ZodString;
|
|
246
|
+
removed: z.ZodLiteral<false>;
|
|
247
|
+
}, z.core.$strict>>;
|
|
248
|
+
post: z.ZodObject<{
|
|
249
|
+
chainId: z.ZodLiteral<8453>;
|
|
250
|
+
fee: z.ZodNumber;
|
|
251
|
+
blockNumber: z.ZodString;
|
|
252
|
+
blockHash: z.ZodString;
|
|
253
|
+
account: z.ZodString;
|
|
254
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
255
|
+
blockTimestamp: z.ZodNumber;
|
|
256
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
257
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
258
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
259
|
+
usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
|
|
260
|
+
factoryCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
261
|
+
managerCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
262
|
+
token0CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
263
|
+
token1CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
264
|
+
usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
265
|
+
pool: z.ZodString;
|
|
266
|
+
balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
267
|
+
allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
268
|
+
factoryPool: z.ZodString;
|
|
269
|
+
tick: z.ZodNumber;
|
|
270
|
+
observedAt: z.ZodNumber;
|
|
271
|
+
managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
272
|
+
usdcPaused: z.ZodLiteral<false>;
|
|
273
|
+
accountBlacklisted: z.ZodLiteral<false>;
|
|
274
|
+
managerBlacklisted: z.ZodLiteral<false>;
|
|
275
|
+
poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
276
|
+
tickSpacing: z.ZodNumber;
|
|
277
|
+
sqrtPriceX96: z.ZodString;
|
|
278
|
+
unlocked: z.ZodLiteral<true>;
|
|
279
|
+
position: z.ZodObject<{
|
|
280
|
+
tokenId: z.ZodString;
|
|
281
|
+
owner: z.ZodString;
|
|
282
|
+
token0: z.ZodString;
|
|
283
|
+
token1: z.ZodString;
|
|
284
|
+
fee: z.ZodNumber;
|
|
285
|
+
tickLower: z.ZodNumber;
|
|
286
|
+
tickUpper: z.ZodNumber;
|
|
287
|
+
liquidity: z.ZodString;
|
|
288
|
+
tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
289
|
+
approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
managerNativeBalance: z.ZodString;
|
|
292
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
293
|
+
accountCode: z.ZodString;
|
|
294
|
+
accountCodeHash: z.ZodString;
|
|
295
|
+
guard: z.ZodObject<{
|
|
296
|
+
address: z.ZodString;
|
|
297
|
+
runtimeCodeHash: z.ZodString;
|
|
298
|
+
configurationHash: z.ZodString;
|
|
299
|
+
deploymentChainId: z.ZodLiteral<8453>;
|
|
300
|
+
ownerApprovalForAll: z.ZodLiteral<false>;
|
|
301
|
+
guardBlacklisted: z.ZodLiteral<false>;
|
|
302
|
+
poolBlacklisted: z.ZodLiteral<false>;
|
|
303
|
+
tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
|
|
304
|
+
tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
305
|
+
}, z.core.$strict>;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
}, z.core.$strict>;
|
|
308
|
+
export type LpV3CollectProtocolEvidence = z.infer<typeof lpV3CollectProtocolEvidenceSchema>;
|
|
309
|
+
export declare const lpV3CollectProtocolReconcileInputSchema: z.ZodObject<{
|
|
310
|
+
plan: z.ZodObject<{
|
|
311
|
+
intent: z.ZodObject<{
|
|
312
|
+
action: z.ZodLiteral<"collect">;
|
|
313
|
+
tokenId: z.ZodString;
|
|
314
|
+
amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
315
|
+
amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
316
|
+
protocol: z.ZodLiteral<"uniswap-v3">;
|
|
317
|
+
chainId: z.ZodLiteral<8453>;
|
|
318
|
+
operationId: z.ZodString;
|
|
319
|
+
account: z.ZodString;
|
|
320
|
+
recipient: z.ZodString;
|
|
321
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
322
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
323
|
+
pool: z.ZodString;
|
|
324
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
325
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
326
|
+
fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
|
|
327
|
+
tickLower: z.ZodNumber;
|
|
328
|
+
tickUpper: z.ZodNumber;
|
|
329
|
+
deadline: z.ZodNumber;
|
|
330
|
+
nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
|
|
331
|
+
guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
|
|
332
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
intentCommitment: z.ZodString;
|
|
335
|
+
policyCommitment: z.ZodString;
|
|
336
|
+
guardDeployment: z.ZodObject<{
|
|
337
|
+
id: z.ZodLiteral<"base-weth-usdc-collect-v1">;
|
|
338
|
+
chainId: z.ZodLiteral<8453>;
|
|
339
|
+
address: z.ZodString;
|
|
340
|
+
runtimeCodeHash: z.ZodString;
|
|
341
|
+
configurationHash: z.ZodLiteral<`0x${string}`>;
|
|
342
|
+
codeVersion: z.ZodLiteral<"OttoV3CollectGuard-v1">;
|
|
343
|
+
deploymentBlock: z.ZodString;
|
|
344
|
+
reviewReference: z.ZodString;
|
|
345
|
+
}, z.core.$strict>;
|
|
346
|
+
calls: z.ZodTuple<[z.ZodObject<{
|
|
347
|
+
step: z.ZodEnum<{
|
|
348
|
+
mutation: "mutation";
|
|
349
|
+
"erc20-approve": "erc20-approve";
|
|
350
|
+
"erc20-cleanup": "erc20-cleanup";
|
|
351
|
+
"nft-approve": "nft-approve";
|
|
352
|
+
"nft-clear": "nft-clear";
|
|
353
|
+
}>;
|
|
354
|
+
tokenIndex: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
355
|
+
chainId: z.ZodLiteral<8453>;
|
|
356
|
+
from: z.ZodString;
|
|
357
|
+
to: z.ZodString;
|
|
358
|
+
value: z.ZodLiteral<"0">;
|
|
359
|
+
data: z.ZodString;
|
|
360
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
361
|
+
step: z.ZodEnum<{
|
|
362
|
+
mutation: "mutation";
|
|
363
|
+
"erc20-approve": "erc20-approve";
|
|
364
|
+
"erc20-cleanup": "erc20-cleanup";
|
|
365
|
+
"nft-approve": "nft-approve";
|
|
366
|
+
"nft-clear": "nft-clear";
|
|
367
|
+
}>;
|
|
368
|
+
tokenIndex: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
369
|
+
chainId: z.ZodLiteral<8453>;
|
|
370
|
+
from: z.ZodString;
|
|
371
|
+
to: z.ZodString;
|
|
372
|
+
value: z.ZodLiteral<"0">;
|
|
373
|
+
data: z.ZodString;
|
|
374
|
+
}, z.core.$strict>], null>;
|
|
375
|
+
preparedBlock: z.ZodObject<{
|
|
376
|
+
number: z.ZodString;
|
|
377
|
+
hash: z.ZodString;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
preparedObservationCommitment: z.ZodString;
|
|
380
|
+
planCommitment: z.ZodString;
|
|
381
|
+
executionAuthorized: z.ZodLiteral<false>;
|
|
382
|
+
transportVerified: z.ZodLiteral<false>;
|
|
383
|
+
claimReleased: z.ZodLiteral<false>;
|
|
384
|
+
retainClaim: z.ZodLiteral<true>;
|
|
385
|
+
retrySafe: z.ZodLiteral<false>;
|
|
386
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
387
|
+
kind: z.ZodLiteral<"lp-v3-collect-protocol">;
|
|
388
|
+
}, z.core.$strict>;
|
|
389
|
+
independentIntent: z.ZodObject<{
|
|
390
|
+
action: z.ZodLiteral<"collect">;
|
|
391
|
+
tokenId: z.ZodString;
|
|
392
|
+
amountMax: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
393
|
+
amountMin: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
394
|
+
protocol: z.ZodLiteral<"uniswap-v3">;
|
|
395
|
+
chainId: z.ZodLiteral<8453>;
|
|
396
|
+
operationId: z.ZodString;
|
|
397
|
+
account: z.ZodString;
|
|
398
|
+
recipient: z.ZodString;
|
|
399
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
400
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
401
|
+
pool: z.ZodString;
|
|
402
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
403
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
404
|
+
fee: z.ZodUnion<readonly [z.ZodLiteral<100>, z.ZodLiteral<500>, z.ZodLiteral<3000>, z.ZodLiteral<10000>]>;
|
|
405
|
+
tickLower: z.ZodNumber;
|
|
406
|
+
tickUpper: z.ZodNumber;
|
|
407
|
+
deadline: z.ZodNumber;
|
|
408
|
+
nftApprovalPolicy: z.ZodLiteral<"zero-before-and-after">;
|
|
409
|
+
guardDeploymentId: z.ZodLiteral<"base-weth-usdc-collect-v1">;
|
|
410
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
baseline: z.ZodObject<{
|
|
413
|
+
chainId: z.ZodLiteral<8453>;
|
|
414
|
+
fee: z.ZodNumber;
|
|
415
|
+
blockNumber: z.ZodString;
|
|
416
|
+
blockHash: z.ZodString;
|
|
417
|
+
account: z.ZodString;
|
|
418
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
419
|
+
blockTimestamp: z.ZodNumber;
|
|
420
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
421
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
422
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
423
|
+
usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
|
|
424
|
+
factoryCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
425
|
+
managerCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
426
|
+
token0CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
427
|
+
token1CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
428
|
+
usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
429
|
+
pool: z.ZodString;
|
|
430
|
+
balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
431
|
+
allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
432
|
+
factoryPool: z.ZodString;
|
|
433
|
+
tick: z.ZodNumber;
|
|
434
|
+
observedAt: z.ZodNumber;
|
|
435
|
+
managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
436
|
+
usdcPaused: z.ZodLiteral<false>;
|
|
437
|
+
accountBlacklisted: z.ZodLiteral<false>;
|
|
438
|
+
managerBlacklisted: z.ZodLiteral<false>;
|
|
439
|
+
poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
440
|
+
tickSpacing: z.ZodNumber;
|
|
441
|
+
sqrtPriceX96: z.ZodString;
|
|
442
|
+
unlocked: z.ZodLiteral<true>;
|
|
443
|
+
position: z.ZodObject<{
|
|
444
|
+
tokenId: z.ZodString;
|
|
445
|
+
owner: z.ZodString;
|
|
446
|
+
token0: z.ZodString;
|
|
447
|
+
token1: z.ZodString;
|
|
448
|
+
fee: z.ZodNumber;
|
|
449
|
+
tickLower: z.ZodNumber;
|
|
450
|
+
tickUpper: z.ZodNumber;
|
|
451
|
+
liquidity: z.ZodString;
|
|
452
|
+
tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
453
|
+
approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
|
|
454
|
+
}, z.core.$strict>;
|
|
455
|
+
managerNativeBalance: z.ZodString;
|
|
456
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
457
|
+
accountCode: z.ZodString;
|
|
458
|
+
accountCodeHash: z.ZodString;
|
|
459
|
+
guard: z.ZodObject<{
|
|
460
|
+
address: z.ZodString;
|
|
461
|
+
runtimeCodeHash: z.ZodString;
|
|
462
|
+
configurationHash: z.ZodString;
|
|
463
|
+
deploymentChainId: z.ZodLiteral<8453>;
|
|
464
|
+
ownerApprovalForAll: z.ZodLiteral<false>;
|
|
465
|
+
guardBlacklisted: z.ZodLiteral<false>;
|
|
466
|
+
poolBlacklisted: z.ZodLiteral<false>;
|
|
467
|
+
tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
|
|
468
|
+
tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
469
|
+
}, z.core.$strict>;
|
|
470
|
+
}, z.core.$strict>;
|
|
471
|
+
check: z.ZodObject<{
|
|
472
|
+
planCommitment: z.ZodString;
|
|
473
|
+
intentCommitment: z.ZodString;
|
|
474
|
+
policyCommitment: z.ZodString;
|
|
475
|
+
baselineCommitment: z.ZodString;
|
|
476
|
+
checkedAt: z.ZodNumber;
|
|
477
|
+
checkCommitment: z.ZodString;
|
|
478
|
+
executionAuthorized: z.ZodLiteral<false>;
|
|
479
|
+
transportVerified: z.ZodLiteral<false>;
|
|
480
|
+
claimReleased: z.ZodLiteral<false>;
|
|
481
|
+
retainClaim: z.ZodLiteral<true>;
|
|
482
|
+
retrySafe: z.ZodLiteral<false>;
|
|
483
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
484
|
+
kind: z.ZodLiteral<"lp-v3-collect-protocol-check">;
|
|
485
|
+
}, z.core.$strict>;
|
|
486
|
+
evidence: z.ZodObject<{
|
|
487
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
488
|
+
planCommitment: z.ZodString;
|
|
489
|
+
status: z.ZodEnum<{
|
|
490
|
+
success: "success";
|
|
491
|
+
reverted: "reverted";
|
|
492
|
+
}>;
|
|
493
|
+
binding: z.ZodObject<{
|
|
494
|
+
chainId: z.ZodLiteral<8453>;
|
|
495
|
+
userOpHash: z.ZodString;
|
|
496
|
+
account: z.ZodString;
|
|
497
|
+
entryPoint: z.ZodString;
|
|
498
|
+
transactionHash: z.ZodString;
|
|
499
|
+
blockHash: z.ZodString;
|
|
500
|
+
blockNumber: z.ZodString;
|
|
501
|
+
blockTimestamp: z.ZodNumber;
|
|
502
|
+
transactionIndex: z.ZodNumber;
|
|
503
|
+
userOpNonce: z.ZodString;
|
|
504
|
+
windowStartLogIndex: z.ZodNumber;
|
|
505
|
+
userOpEventLogIndex: z.ZodNumber;
|
|
506
|
+
}, z.core.$strict>;
|
|
507
|
+
logs: z.ZodArray<z.ZodObject<{
|
|
508
|
+
address: z.ZodString;
|
|
509
|
+
topics: z.ZodArray<z.ZodString>;
|
|
510
|
+
data: z.ZodString;
|
|
511
|
+
logIndex: z.ZodNumber;
|
|
512
|
+
transactionHash: z.ZodString;
|
|
513
|
+
transactionIndex: z.ZodNumber;
|
|
514
|
+
blockHash: z.ZodString;
|
|
515
|
+
blockNumber: z.ZodString;
|
|
516
|
+
removed: z.ZodLiteral<false>;
|
|
517
|
+
}, z.core.$strict>>;
|
|
518
|
+
post: z.ZodObject<{
|
|
519
|
+
chainId: z.ZodLiteral<8453>;
|
|
520
|
+
fee: z.ZodNumber;
|
|
521
|
+
blockNumber: z.ZodString;
|
|
522
|
+
blockHash: z.ZodString;
|
|
523
|
+
account: z.ZodString;
|
|
524
|
+
factory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
525
|
+
blockTimestamp: z.ZodNumber;
|
|
526
|
+
manager: z.ZodLiteral<"0x03a520b32c04bf3beef7beb72e919cf822ed34f1">;
|
|
527
|
+
token0: z.ZodLiteral<"0x4200000000000000000000000000000000000006">;
|
|
528
|
+
token1: z.ZodLiteral<"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913">;
|
|
529
|
+
usdcImplementation: z.ZodLiteral<"0x2ce6311ddae708829bc0784c967b7d77d19fd779">;
|
|
530
|
+
factoryCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
531
|
+
managerCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
532
|
+
token0CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
533
|
+
token1CodeHash: z.ZodLiteral<`0x${string}`>;
|
|
534
|
+
usdcImplementationCodeHash: z.ZodLiteral<`0x${string}`>;
|
|
535
|
+
pool: z.ZodString;
|
|
536
|
+
balances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
537
|
+
allowances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
538
|
+
factoryPool: z.ZodString;
|
|
539
|
+
tick: z.ZodNumber;
|
|
540
|
+
observedAt: z.ZodNumber;
|
|
541
|
+
managerFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
542
|
+
usdcPaused: z.ZodLiteral<false>;
|
|
543
|
+
accountBlacklisted: z.ZodLiteral<false>;
|
|
544
|
+
managerBlacklisted: z.ZodLiteral<false>;
|
|
545
|
+
poolFactory: z.ZodLiteral<"0x33128a8fc17869897dce68ed026d694621f6fdfd">;
|
|
546
|
+
tickSpacing: z.ZodNumber;
|
|
547
|
+
sqrtPriceX96: z.ZodString;
|
|
548
|
+
unlocked: z.ZodLiteral<true>;
|
|
549
|
+
position: z.ZodObject<{
|
|
550
|
+
tokenId: z.ZodString;
|
|
551
|
+
owner: z.ZodString;
|
|
552
|
+
token0: z.ZodString;
|
|
553
|
+
token1: z.ZodString;
|
|
554
|
+
fee: z.ZodNumber;
|
|
555
|
+
tickLower: z.ZodNumber;
|
|
556
|
+
tickUpper: z.ZodNumber;
|
|
557
|
+
liquidity: z.ZodString;
|
|
558
|
+
tokensOwed: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
559
|
+
approved: z.ZodUnion<readonly [z.ZodString, z.ZodLiteral<"0x0000000000000000000000000000000000000000">]>;
|
|
560
|
+
}, z.core.$strict>;
|
|
561
|
+
managerNativeBalance: z.ZodString;
|
|
562
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
563
|
+
accountCode: z.ZodString;
|
|
564
|
+
accountCodeHash: z.ZodString;
|
|
565
|
+
guard: z.ZodObject<{
|
|
566
|
+
address: z.ZodString;
|
|
567
|
+
runtimeCodeHash: z.ZodString;
|
|
568
|
+
configurationHash: z.ZodString;
|
|
569
|
+
deploymentChainId: z.ZodLiteral<8453>;
|
|
570
|
+
ownerApprovalForAll: z.ZodLiteral<false>;
|
|
571
|
+
guardBlacklisted: z.ZodLiteral<false>;
|
|
572
|
+
poolBlacklisted: z.ZodLiteral<false>;
|
|
573
|
+
tokenAllowances: z.ZodTuple<[z.ZodLiteral<"0">, z.ZodLiteral<"0">], null>;
|
|
574
|
+
tokenBalances: z.ZodTuple<[z.ZodString, z.ZodString], null>;
|
|
575
|
+
}, z.core.$strict>;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
}, z.core.$strict>;
|
|
578
|
+
}, z.core.$strict>;
|
|
579
|
+
export type LpV3CollectProtocolReconcileInput = z.infer<typeof lpV3CollectProtocolReconcileInputSchema>;
|
|
580
|
+
export type LpV3CollectProtocolAccounting = typeof LP_V3_COLLECT_PROTOCOL_NO_AUTHORITY & ({
|
|
581
|
+
status: 'HELD';
|
|
582
|
+
settlement: 'UNKNOWN';
|
|
583
|
+
reason: string;
|
|
584
|
+
} | {
|
|
585
|
+
status: 'PROTOCOL_ACCOUNTED';
|
|
586
|
+
outcome: 'collected' | 'reverted';
|
|
587
|
+
planCommitment: string;
|
|
588
|
+
baselineCommitment: string;
|
|
589
|
+
effectsCommitment: string;
|
|
590
|
+
postObservationCommitment: string;
|
|
591
|
+
accountingCommitment: string;
|
|
592
|
+
userOpHash: string;
|
|
593
|
+
transactionHash: string;
|
|
594
|
+
blockHash: string;
|
|
595
|
+
blockNumber: string;
|
|
596
|
+
owner: string;
|
|
597
|
+
tokenId: string;
|
|
598
|
+
collectedRaw: [string, string];
|
|
599
|
+
liquidityDelta: '0';
|
|
600
|
+
nftTokenApprovalCleared: true;
|
|
601
|
+
erc20AllowancesCleared: true;
|
|
602
|
+
accountingBasis: 'guard-call-and-operation-logs';
|
|
603
|
+
ownerBalancesAtBlock: [string, string];
|
|
604
|
+
profitClassification: 'UNKNOWN';
|
|
605
|
+
distributableProfitRaw: null;
|
|
606
|
+
});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { keccak256 } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { lpAddress, lpHash, lpUint } from './lp-v3-contract.js';
|
|
4
|
+
import { lpV3AtomicIntentSchema, lpV3AtomicChainEvidenceSchema, lpV3AtomicGuardEvidenceSchema, lpV3GuardDeploymentSchema, lpV3AtomicCallSchema, } from './lp-v3-atomic-contract.js';
|
|
5
|
+
export const lpV3CollectProtocolIntentSchema = lpV3AtomicIntentSchema.options[1].extend({ schemaVersion: z.literal(3) }).strict();
|
|
6
|
+
const code = z.string().regex(/^0x(?:[0-9a-f]{2})+$/).max(131_074);
|
|
7
|
+
// Actual code is preserved. Its hash is an observation, never an account-profile
|
|
8
|
+
// approval. Original EOA schemas and runtime brands remain separate and strict.
|
|
9
|
+
export const lpV3CollectProtocolObservationSchema = lpV3AtomicChainEvidenceSchema.omit({ accountCode: true, canonical: true }).extend({
|
|
10
|
+
schemaVersion: z.literal(3), accountCode: code, accountCodeHash: lpHash,
|
|
11
|
+
guard: lpV3AtomicGuardEvidenceSchema,
|
|
12
|
+
}).strict().refine(e => keccak256(e.accountCode) === e.accountCodeHash, { message: 'LP_PROTOCOL_ACCOUNT_CODE_HASH_MISMATCH' });
|
|
13
|
+
const noAuthority = {
|
|
14
|
+
executionAuthorized: z.literal(false), transportVerified: z.literal(false),
|
|
15
|
+
claimReleased: z.literal(false), retainClaim: z.literal(true), retrySafe: z.literal(false),
|
|
16
|
+
};
|
|
17
|
+
export const LP_V3_COLLECT_PROTOCOL_NO_AUTHORITY = Object.freeze({
|
|
18
|
+
executionAuthorized: false, transportVerified: false, claimReleased: false, retainClaim: true, retrySafe: false,
|
|
19
|
+
});
|
|
20
|
+
export const lpV3CollectProtocolPlanSchema = z.object({
|
|
21
|
+
schemaVersion: z.literal(3), kind: z.literal('lp-v3-collect-protocol'), ...noAuthority,
|
|
22
|
+
intent: lpV3CollectProtocolIntentSchema, intentCommitment: lpHash, policyCommitment: lpHash,
|
|
23
|
+
guardDeployment: lpV3GuardDeploymentSchema,
|
|
24
|
+
calls: z.tuple([lpV3AtomicCallSchema, lpV3AtomicCallSchema]),
|
|
25
|
+
preparedBlock: z.object({ number: lpUint(), hash: lpHash }).strict(), preparedObservationCommitment: lpHash,
|
|
26
|
+
planCommitment: lpHash,
|
|
27
|
+
}).strict();
|
|
28
|
+
// Persist this small NON-AUTHORIZING record alongside the independently observed
|
|
29
|
+
// baseline in the host's existing operation journal. No LP store is introduced.
|
|
30
|
+
export const lpV3CollectProtocolCheckSchema = z.object({
|
|
31
|
+
schemaVersion: z.literal(3), kind: z.literal('lp-v3-collect-protocol-check'), ...noAuthority,
|
|
32
|
+
planCommitment: lpHash, intentCommitment: lpHash, policyCommitment: lpHash,
|
|
33
|
+
baselineCommitment: lpHash, checkedAt: z.number().int().positive().safe(), checkCommitment: lpHash,
|
|
34
|
+
}).strict();
|
|
35
|
+
const index = z.number().int().nonnegative().safe();
|
|
36
|
+
export const lpV3CollectProtocolLogSchema = z.object({
|
|
37
|
+
address: lpAddress, topics: z.array(z.string().regex(/^0x[0-9a-f]{64}$/)).max(4),
|
|
38
|
+
data: z.string().regex(/^0x(?:[0-9a-f]{2})*$/).max(131_074), logIndex: index,
|
|
39
|
+
transactionHash: lpHash, transactionIndex: index, blockHash: lpHash, blockNumber: lpUint(), removed: z.literal(false),
|
|
40
|
+
}).strict();
|
|
41
|
+
export const lpV3CollectProtocolBindingSchema = z.object({
|
|
42
|
+
chainId: z.literal(8453),
|
|
43
|
+
userOpHash: lpHash, account: lpAddress, entryPoint: lpAddress, transactionHash: lpHash,
|
|
44
|
+
blockHash: lpHash, blockNumber: lpUint(), blockTimestamp: z.number().int().positive().safe(), transactionIndex: index,
|
|
45
|
+
userOpNonce: lpUint(), windowStartLogIndex: index, userOpEventLogIndex: index,
|
|
46
|
+
}).strict();
|
|
47
|
+
export const lpV3CollectProtocolEvidenceSchema = z.object({
|
|
48
|
+
schemaVersion: z.literal(3), planCommitment: lpHash, status: z.enum(['success', 'reverted']),
|
|
49
|
+
// Complete sponsoredOperationLogs slice. Both boundary indices are EXCLUSIVE.
|
|
50
|
+
// Canonical inclusion, UserOp status and attribution are exclusively host gates.
|
|
51
|
+
binding: lpV3CollectProtocolBindingSchema, logs: z.array(lpV3CollectProtocolLogSchema).max(4096),
|
|
52
|
+
post: lpV3CollectProtocolObservationSchema,
|
|
53
|
+
}).strict();
|
|
54
|
+
export const lpV3CollectProtocolReconcileInputSchema = z.object({
|
|
55
|
+
plan: lpV3CollectProtocolPlanSchema, independentIntent: lpV3CollectProtocolIntentSchema,
|
|
56
|
+
baseline: lpV3CollectProtocolObservationSchema, check: lpV3CollectProtocolCheckSchema,
|
|
57
|
+
evidence: lpV3CollectProtocolEvidenceSchema,
|
|
58
|
+
}).strict();
|
|
59
|
+
//# sourceMappingURL=lp-v3-collect-protocol-contract.js.map
|