agentex-creator-sdk 1.0.0

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 (97) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE +21 -0
  3. package/README.md +195 -0
  4. package/dist/packages/contracts/src/deployer-investigation.d.ts +1015 -0
  5. package/dist/packages/contracts/src/deployer-investigation.js +101 -0
  6. package/dist/packages/contracts/src/index.d.ts +1701 -0
  7. package/dist/packages/contracts/src/index.js +380 -0
  8. package/dist/packages/contracts/src/indexed-activity.d.ts +684 -0
  9. package/dist/packages/contracts/src/indexed-activity.js +71 -0
  10. package/dist/packages/contracts/src/indexed-agents.d.ts +299 -0
  11. package/dist/packages/contracts/src/indexed-agents.js +131 -0
  12. package/dist/packages/contracts/src/inspection.d.ts +906 -0
  13. package/dist/packages/contracts/src/inspection.js +114 -0
  14. package/dist/packages/contracts/src/kinds.d.ts +5398 -0
  15. package/dist/packages/contracts/src/kinds.js +156 -0
  16. package/dist/packages/contracts/src/report-presentation.d.ts +346 -0
  17. package/dist/packages/contracts/src/report-presentation.js +120 -0
  18. package/dist/packages/contracts/src/solana-inspection.d.ts +451 -0
  19. package/dist/packages/contracts/src/solana-inspection.js +94 -0
  20. package/dist/packages/contracts/src/token-market.d.ts +193 -0
  21. package/dist/packages/contracts/src/token-market.js +335 -0
  22. package/dist/packages/contracts/src/wallet-analysis.d.ts +866 -0
  23. package/dist/packages/contracts/src/wallet-analysis.js +89 -0
  24. package/dist/packages/contracts/src/watchtower.d.ts +1141 -0
  25. package/dist/packages/contracts/src/watchtower.js +196 -0
  26. package/dist/packages/contracts/src/workflow.d.ts +1568 -0
  27. package/dist/packages/contracts/src/workflow.js +651 -0
  28. package/dist/packages/inspector/src/decode.d.ts +23 -0
  29. package/dist/packages/inspector/src/decode.js +150 -0
  30. package/dist/packages/inspector/src/scope.d.ts +87 -0
  31. package/dist/packages/inspector/src/scope.js +64 -0
  32. package/dist/packages/model/src/analysis.d.ts +149 -0
  33. package/dist/packages/model/src/analysis.js +387 -0
  34. package/dist/packages/model/src/pricing.d.ts +38 -0
  35. package/dist/packages/model/src/pricing.js +49 -0
  36. package/dist/packages/model/src/retry.d.ts +20 -0
  37. package/dist/packages/model/src/retry.js +31 -0
  38. package/dist/packages/model/src/schema.d.ts +10 -0
  39. package/dist/packages/model/src/schema.js +51 -0
  40. package/dist/packages/model/src/summary.d.ts +91 -0
  41. package/dist/packages/model/src/summary.js +177 -0
  42. package/dist/packages/model/src/types.d.ts +81 -0
  43. package/dist/packages/model/src/types.js +19 -0
  44. package/dist/packages/monitoring/src/delivery.d.ts +32 -0
  45. package/dist/packages/monitoring/src/delivery.js +53 -0
  46. package/dist/packages/providers/src/chain-transport.d.ts +42 -0
  47. package/dist/packages/providers/src/chain-transport.js +57 -0
  48. package/dist/packages/providers/src/coverage.d.ts +105 -0
  49. package/dist/packages/providers/src/coverage.js +260 -0
  50. package/dist/packages/providers/src/health.d.ts +273 -0
  51. package/dist/packages/providers/src/health.js +505 -0
  52. package/dist/packages/providers/src/keyed.d.ts +96 -0
  53. package/dist/packages/providers/src/keyed.js +240 -0
  54. package/dist/packages/providers/src/snapshot.d.ts +61 -0
  55. package/dist/packages/providers/src/snapshot.js +77 -0
  56. package/dist/packages/publication/src/fixtures.d.ts +45 -0
  57. package/dist/packages/publication/src/fixtures.js +350 -0
  58. package/dist/packages/research/src/index.d.ts +188 -0
  59. package/dist/packages/research/src/index.js +829 -0
  60. package/dist/packages/runtime/src/checkpoints.d.ts +65 -0
  61. package/dist/packages/runtime/src/checkpoints.js +214 -0
  62. package/dist/packages/runtime/src/policy.d.ts +57 -0
  63. package/dist/packages/runtime/src/policy.js +296 -0
  64. package/dist/packages/sdk/src/bin/agentex-buyer.d.ts +2 -0
  65. package/dist/packages/sdk/src/bin/agentex-buyer.js +4 -0
  66. package/dist/packages/sdk/src/bin/agentex.d.ts +2 -0
  67. package/dist/packages/sdk/src/bin/agentex.js +3 -0
  68. package/dist/packages/sdk/src/buyer-cli.d.ts +10 -0
  69. package/dist/packages/sdk/src/buyer-cli.js +210 -0
  70. package/dist/packages/sdk/src/buyer.d.ts +534 -0
  71. package/dist/packages/sdk/src/buyer.js +441 -0
  72. package/dist/packages/sdk/src/cli.d.ts +14 -0
  73. package/dist/packages/sdk/src/cli.js +149 -0
  74. package/dist/packages/sdk/src/errors.d.ts +31 -0
  75. package/dist/packages/sdk/src/errors.js +24 -0
  76. package/dist/packages/sdk/src/index.d.ts +236 -0
  77. package/dist/packages/sdk/src/index.js +150 -0
  78. package/dist/packages/sdk/src/local.d.ts +11 -0
  79. package/dist/packages/sdk/src/local.js +110 -0
  80. package/dist/packages/sdk/src/rails.d.ts +59 -0
  81. package/dist/packages/sdk/src/rails.js +96 -0
  82. package/dist/packages/sdk/src/report.d.ts +121 -0
  83. package/dist/packages/sdk/src/report.js +114 -0
  84. package/dist/packages/sdk/src/version.d.ts +2 -0
  85. package/dist/packages/sdk/src/version.js +2 -0
  86. package/dist/packages/watchtower/src/index.d.ts +150 -0
  87. package/dist/packages/watchtower/src/index.js +786 -0
  88. package/dist/packages/workflow/src/registry.d.ts +61 -0
  89. package/dist/packages/workflow/src/registry.js +76 -0
  90. package/examples/README.md +34 -0
  91. package/examples/cli-usage.sh +30 -0
  92. package/examples/fixtures/base-weth-input.json +4 -0
  93. package/examples/focused-researcher.json +127 -0
  94. package/examples/pay-with-eth-robinhood.mts +37 -0
  95. package/examples/pay-with-usdc.mts +41 -0
  96. package/examples/quickstart.mts +73 -0
  97. package/package.json +50 -0
@@ -0,0 +1,1141 @@
1
+ import { z } from 'zod';
2
+ /** Watchtower window contracts (P04 package interface). Kept outside index.ts so modules initialise without a circular import. */
3
+ export declare const WATCH_SCHEMA_ID: "agentex.watchtower-window.v1";
4
+ export declare const WATCH_TOOL: "evm.watch-logs@0.1.0";
5
+ export declare const WATCH_MAX_WINDOW_BLOCKS = 2000;
6
+ export declare const WATCH_MAX_LOGS = 100;
7
+ export declare const WATCH_MAX_RULES = 8;
8
+ export declare const WATCH_RPC_CEILING = 16;
9
+ export declare const WATCH_RPC_METHODS: readonly ["eth_chainId", "eth_getBlockByNumber", "eth_getLogs"];
10
+ export declare const AUTHORITY_EVENTS: readonly ["Upgraded", "AdminChanged", "BeaconUpgraded", "OwnershipTransferred"];
11
+ /** Watchtower 0.3.0: OpenZeppelin/Compound Governor, OpenZeppelin TimelockController and Compound Timelock events. */
12
+ export declare const GOVERNANCE_EVENTS: readonly ["ProposalCreated", "ProposalQueued", "ProposalExecuted", "ProposalCanceled", "CallScheduled", "CallExecuted", "Cancelled", "MinDelayChange", "QueueTransaction", "ExecuteTransaction", "CancelTransaction", "NewDelay", "NewAdmin", "NewPendingAdmin"];
13
+ /** Watchtower 0.3.0: OpenZeppelin AccessControl and Pausable events. */
14
+ export declare const CONTROL_EVENTS: readonly ["RoleGranted", "RoleRevoked", "RoleAdminChanged", "Paused", "Unpaused"];
15
+ /** Watchtower 0.3.0: pool events of Uniswap V2-compatible, Uniswap V3-compatible and Aerodrome (Solidly) pools. */
16
+ export declare const POOL_EVENTS: readonly ["Swap", "Mint", "Burn"];
17
+ export declare const POOL_DEXES: readonly ["uniswap-v2", "uniswap-v3", "aerodrome"];
18
+ /** Rule types added in Watchtower 0.3.0. Versions 0.1.0 and 0.2.0 refuse them, so a pinned monitor never gains a rule its version did not declare. */
19
+ export declare const WATCH_RULES_V3: readonly ["wallet-token-flow", "pool-activity", "governance-change", "control-change"];
20
+ export declare const BlockNumberSchema: z.ZodString;
21
+ export declare const WatchRuleIdSchema: z.ZodString;
22
+ /** Rule types that would need indexes the platform does not have. They fail validation instead of silently matching nothing. */
23
+ export declare const UNSUPPORTED_WATCH_RULES: Readonly<Record<string, string>>;
24
+ export declare const SupportedWatchRuleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ id: z.ZodString;
26
+ type: z.ZodLiteral<"erc20-transfer">;
27
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
28
+ from: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
29
+ to: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
30
+ minimumAtomic: z.ZodOptional<z.ZodString>;
31
+ }, z.core.$strict>, z.ZodObject<{
32
+ id: z.ZodString;
33
+ type: z.ZodLiteral<"erc20-approval">;
34
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
35
+ owner: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
36
+ spender: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ id: z.ZodString;
39
+ type: z.ZodLiteral<"authority-change">;
40
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
41
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
42
+ Upgraded: "Upgraded";
43
+ AdminChanged: "AdminChanged";
44
+ BeaconUpgraded: "BeaconUpgraded";
45
+ OwnershipTransferred: "OwnershipTransferred";
46
+ }>>>;
47
+ }, z.core.$strict>, z.ZodObject<{
48
+ id: z.ZodString;
49
+ type: z.ZodLiteral<"wallet-token-flow">;
50
+ wallet: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
51
+ tokens: z.ZodArray<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
52
+ direction: z.ZodEnum<{
53
+ out: "out";
54
+ in: "in";
55
+ }>;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ id: z.ZodString;
58
+ type: z.ZodLiteral<"pool-activity">;
59
+ pool: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
60
+ dex: z.ZodEnum<{
61
+ "uniswap-v2": "uniswap-v2";
62
+ "uniswap-v3": "uniswap-v3";
63
+ aerodrome: "aerodrome";
64
+ }>;
65
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
66
+ Swap: "Swap";
67
+ Mint: "Mint";
68
+ Burn: "Burn";
69
+ }>>>;
70
+ minimumAmount0Atomic: z.ZodOptional<z.ZodString>;
71
+ minimumAmount1Atomic: z.ZodOptional<z.ZodString>;
72
+ }, z.core.$strict>, z.ZodObject<{
73
+ id: z.ZodString;
74
+ type: z.ZodLiteral<"governance-change">;
75
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
76
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
77
+ ProposalCreated: "ProposalCreated";
78
+ ProposalQueued: "ProposalQueued";
79
+ ProposalExecuted: "ProposalExecuted";
80
+ ProposalCanceled: "ProposalCanceled";
81
+ CallScheduled: "CallScheduled";
82
+ CallExecuted: "CallExecuted";
83
+ Cancelled: "Cancelled";
84
+ MinDelayChange: "MinDelayChange";
85
+ QueueTransaction: "QueueTransaction";
86
+ ExecuteTransaction: "ExecuteTransaction";
87
+ CancelTransaction: "CancelTransaction";
88
+ NewDelay: "NewDelay";
89
+ NewAdmin: "NewAdmin";
90
+ NewPendingAdmin: "NewPendingAdmin";
91
+ }>>>;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ id: z.ZodString;
94
+ type: z.ZodLiteral<"control-change">;
95
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
96
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
97
+ RoleGranted: "RoleGranted";
98
+ RoleRevoked: "RoleRevoked";
99
+ RoleAdminChanged: "RoleAdminChanged";
100
+ Paused: "Paused";
101
+ Unpaused: "Unpaused";
102
+ }>>>;
103
+ }, z.core.$strict>], "type">;
104
+ export type WatchRule = z.infer<typeof SupportedWatchRuleSchema>;
105
+ export declare const WatchRuleSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
106
+ id: z.ZodString;
107
+ type: z.ZodLiteral<"erc20-transfer">;
108
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
109
+ from: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
110
+ to: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
111
+ minimumAtomic: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strict>, z.ZodObject<{
113
+ id: z.ZodString;
114
+ type: z.ZodLiteral<"erc20-approval">;
115
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
116
+ owner: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
117
+ spender: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
118
+ }, z.core.$strict>, z.ZodObject<{
119
+ id: z.ZodString;
120
+ type: z.ZodLiteral<"authority-change">;
121
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
122
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
123
+ Upgraded: "Upgraded";
124
+ AdminChanged: "AdminChanged";
125
+ BeaconUpgraded: "BeaconUpgraded";
126
+ OwnershipTransferred: "OwnershipTransferred";
127
+ }>>>;
128
+ }, z.core.$strict>, z.ZodObject<{
129
+ id: z.ZodString;
130
+ type: z.ZodLiteral<"wallet-token-flow">;
131
+ wallet: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
132
+ tokens: z.ZodArray<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
133
+ direction: z.ZodEnum<{
134
+ out: "out";
135
+ in: "in";
136
+ }>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ id: z.ZodString;
139
+ type: z.ZodLiteral<"pool-activity">;
140
+ pool: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
141
+ dex: z.ZodEnum<{
142
+ "uniswap-v2": "uniswap-v2";
143
+ "uniswap-v3": "uniswap-v3";
144
+ aerodrome: "aerodrome";
145
+ }>;
146
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
147
+ Swap: "Swap";
148
+ Mint: "Mint";
149
+ Burn: "Burn";
150
+ }>>>;
151
+ minimumAmount0Atomic: z.ZodOptional<z.ZodString>;
152
+ minimumAmount1Atomic: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strict>, z.ZodObject<{
154
+ id: z.ZodString;
155
+ type: z.ZodLiteral<"governance-change">;
156
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
157
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
158
+ ProposalCreated: "ProposalCreated";
159
+ ProposalQueued: "ProposalQueued";
160
+ ProposalExecuted: "ProposalExecuted";
161
+ ProposalCanceled: "ProposalCanceled";
162
+ CallScheduled: "CallScheduled";
163
+ CallExecuted: "CallExecuted";
164
+ Cancelled: "Cancelled";
165
+ MinDelayChange: "MinDelayChange";
166
+ QueueTransaction: "QueueTransaction";
167
+ ExecuteTransaction: "ExecuteTransaction";
168
+ CancelTransaction: "CancelTransaction";
169
+ NewDelay: "NewDelay";
170
+ NewAdmin: "NewAdmin";
171
+ NewPendingAdmin: "NewPendingAdmin";
172
+ }>>>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ id: z.ZodString;
175
+ type: z.ZodLiteral<"control-change">;
176
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
177
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
178
+ RoleGranted: "RoleGranted";
179
+ RoleRevoked: "RoleRevoked";
180
+ RoleAdminChanged: "RoleAdminChanged";
181
+ Paused: "Paused";
182
+ Unpaused: "Unpaused";
183
+ }>>>;
184
+ }, z.core.$strict>], "type">, unknown>;
185
+ /** One bounded, inclusive block window at or below the latest head. Monitors create consecutive windows; a manual run can inspect one. */
186
+ export declare const WatchtowerWindowInputSchema: z.ZodObject<{
187
+ chain: z.ZodEnum<{
188
+ ethereum: "ethereum";
189
+ base: "base";
190
+ robinhood: "robinhood";
191
+ }>;
192
+ fromBlock: z.ZodString;
193
+ toBlock: z.ZodString;
194
+ rules: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
195
+ id: z.ZodString;
196
+ type: z.ZodLiteral<"erc20-transfer">;
197
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
198
+ from: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
199
+ to: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
200
+ minimumAtomic: z.ZodOptional<z.ZodString>;
201
+ }, z.core.$strict>, z.ZodObject<{
202
+ id: z.ZodString;
203
+ type: z.ZodLiteral<"erc20-approval">;
204
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
205
+ owner: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
206
+ spender: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
207
+ }, z.core.$strict>, z.ZodObject<{
208
+ id: z.ZodString;
209
+ type: z.ZodLiteral<"authority-change">;
210
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
211
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
212
+ Upgraded: "Upgraded";
213
+ AdminChanged: "AdminChanged";
214
+ BeaconUpgraded: "BeaconUpgraded";
215
+ OwnershipTransferred: "OwnershipTransferred";
216
+ }>>>;
217
+ }, z.core.$strict>, z.ZodObject<{
218
+ id: z.ZodString;
219
+ type: z.ZodLiteral<"wallet-token-flow">;
220
+ wallet: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
221
+ tokens: z.ZodArray<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
222
+ direction: z.ZodEnum<{
223
+ out: "out";
224
+ in: "in";
225
+ }>;
226
+ }, z.core.$strict>, z.ZodObject<{
227
+ id: z.ZodString;
228
+ type: z.ZodLiteral<"pool-activity">;
229
+ pool: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
230
+ dex: z.ZodEnum<{
231
+ "uniswap-v2": "uniswap-v2";
232
+ "uniswap-v3": "uniswap-v3";
233
+ aerodrome: "aerodrome";
234
+ }>;
235
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
236
+ Swap: "Swap";
237
+ Mint: "Mint";
238
+ Burn: "Burn";
239
+ }>>>;
240
+ minimumAmount0Atomic: z.ZodOptional<z.ZodString>;
241
+ minimumAmount1Atomic: z.ZodOptional<z.ZodString>;
242
+ }, z.core.$strict>, z.ZodObject<{
243
+ id: z.ZodString;
244
+ type: z.ZodLiteral<"governance-change">;
245
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
246
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
247
+ ProposalCreated: "ProposalCreated";
248
+ ProposalQueued: "ProposalQueued";
249
+ ProposalExecuted: "ProposalExecuted";
250
+ ProposalCanceled: "ProposalCanceled";
251
+ CallScheduled: "CallScheduled";
252
+ CallExecuted: "CallExecuted";
253
+ Cancelled: "Cancelled";
254
+ MinDelayChange: "MinDelayChange";
255
+ QueueTransaction: "QueueTransaction";
256
+ ExecuteTransaction: "ExecuteTransaction";
257
+ CancelTransaction: "CancelTransaction";
258
+ NewDelay: "NewDelay";
259
+ NewAdmin: "NewAdmin";
260
+ NewPendingAdmin: "NewPendingAdmin";
261
+ }>>>;
262
+ }, z.core.$strict>, z.ZodObject<{
263
+ id: z.ZodString;
264
+ type: z.ZodLiteral<"control-change">;
265
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
266
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
267
+ RoleGranted: "RoleGranted";
268
+ RoleRevoked: "RoleRevoked";
269
+ RoleAdminChanged: "RoleAdminChanged";
270
+ Paused: "Paused";
271
+ Unpaused: "Unpaused";
272
+ }>>>;
273
+ }, z.core.$strict>], "type">, unknown>>;
274
+ maximumLogs: z.ZodDefault<z.ZodNumber>;
275
+ }, z.core.$strict>;
276
+ export type WatchtowerWindowInput = z.infer<typeof WatchtowerWindowInputSchema>;
277
+ /** Worst-case RPC reads for one window: identity, latest head, from/to headers, one eth_getLogs per rule, a covered-through header and the final recheck. */
278
+ export declare const watchWindowRpcEstimate: (rules: number) => number;
279
+ export declare const WATCHTOWER_MANIFEST: {
280
+ schemaVersion: "1.0";
281
+ id: string;
282
+ version: string;
283
+ name: string;
284
+ description: string;
285
+ author: {
286
+ id: string;
287
+ name: string;
288
+ ownership: "first-party" | "independent";
289
+ };
290
+ license: string;
291
+ visibility: "private" | "source-visible" | "source-private";
292
+ chains: ("ethereum" | "base" | "robinhood")[];
293
+ inputSchema: {
294
+ type: "object";
295
+ properties: Record<string, {
296
+ type: "string" | "number" | "boolean" | "array" | "integer";
297
+ description: string;
298
+ enum?: (string | number | boolean)[] | undefined;
299
+ }>;
300
+ required: string[];
301
+ additionalProperties: false;
302
+ };
303
+ outputSchemaId: "agentex.token-research.v1" | "agentex.transaction-inspection.v1" | "agentex.watchtower-window.v1";
304
+ tools: {
305
+ id: string;
306
+ version: string;
307
+ capability: "evm.read";
308
+ chains: ("ethereum" | "base" | "robinhood")[];
309
+ addressScope: "input-address" | "input-transaction" | "input-watch-scope";
310
+ maximumCalls: number;
311
+ }[];
312
+ modelPolicy: {
313
+ mode: "deterministic";
314
+ maximumModelTokens: 0;
315
+ };
316
+ limits: {
317
+ maximumRpcCalls: number;
318
+ maximumDurationMs: number;
319
+ maximumOutputBytes: number;
320
+ maximumGraphDepth: number;
321
+ maximumPages: 0;
322
+ maximumExecutionAtomic: string;
323
+ };
324
+ workflow: ({
325
+ type: "input";
326
+ id: string;
327
+ dependsOn: string[];
328
+ } | {
329
+ type: "tool";
330
+ tool: string;
331
+ arguments: Record<string, {
332
+ source: "input";
333
+ path: string;
334
+ } | {
335
+ source: "node";
336
+ nodeId: string;
337
+ path: string;
338
+ }>;
339
+ id: string;
340
+ dependsOn: string[];
341
+ } | {
342
+ type: "condition";
343
+ field: {
344
+ source: "input";
345
+ path: string;
346
+ } | {
347
+ source: "node";
348
+ nodeId: string;
349
+ path: string;
350
+ };
351
+ operator: "equals" | "exists";
352
+ whenTrue: string;
353
+ whenFalse: string;
354
+ id: string;
355
+ dependsOn: string[];
356
+ value?: string | number | boolean | undefined;
357
+ } | {
358
+ type: "output";
359
+ from: string;
360
+ id: string;
361
+ dependsOn: string[];
362
+ })[];
363
+ testCases: string[];
364
+ researchPolicy?: {
365
+ readOwner: boolean;
366
+ readProxySlots: boolean;
367
+ } | undefined;
368
+ policy?: {
369
+ analysis: {
370
+ mode: "summary";
371
+ maximumOutputTokens: number;
372
+ maximumCostMicrousd: number;
373
+ };
374
+ } | undefined;
375
+ marketPolicy?: {
376
+ discoverPools: boolean;
377
+ recentHolderActivity: boolean;
378
+ } | undefined;
379
+ };
380
+ /** Watchtower 0.2.0: identical graph, tool, limits and output schema to 0.1.0 (kept byte-identical, hash f5ad5883…); instant-read wording for new drafts. */
381
+ export declare const WATCHTOWER_MANIFEST_V2: {
382
+ schemaVersion: "1.0";
383
+ id: string;
384
+ version: string;
385
+ name: string;
386
+ description: string;
387
+ author: {
388
+ id: string;
389
+ name: string;
390
+ ownership: "first-party" | "independent";
391
+ };
392
+ license: string;
393
+ visibility: "private" | "source-visible" | "source-private";
394
+ chains: ("ethereum" | "base" | "robinhood")[];
395
+ inputSchema: {
396
+ type: "object";
397
+ properties: Record<string, {
398
+ type: "string" | "number" | "boolean" | "array" | "integer";
399
+ description: string;
400
+ enum?: (string | number | boolean)[] | undefined;
401
+ }>;
402
+ required: string[];
403
+ additionalProperties: false;
404
+ };
405
+ outputSchemaId: "agentex.token-research.v1" | "agentex.transaction-inspection.v1" | "agentex.watchtower-window.v1";
406
+ tools: {
407
+ id: string;
408
+ version: string;
409
+ capability: "evm.read";
410
+ chains: ("ethereum" | "base" | "robinhood")[];
411
+ addressScope: "input-address" | "input-transaction" | "input-watch-scope";
412
+ maximumCalls: number;
413
+ }[];
414
+ modelPolicy: {
415
+ mode: "deterministic";
416
+ maximumModelTokens: 0;
417
+ };
418
+ limits: {
419
+ maximumRpcCalls: number;
420
+ maximumDurationMs: number;
421
+ maximumOutputBytes: number;
422
+ maximumGraphDepth: number;
423
+ maximumPages: 0;
424
+ maximumExecutionAtomic: string;
425
+ };
426
+ workflow: ({
427
+ type: "input";
428
+ id: string;
429
+ dependsOn: string[];
430
+ } | {
431
+ type: "tool";
432
+ tool: string;
433
+ arguments: Record<string, {
434
+ source: "input";
435
+ path: string;
436
+ } | {
437
+ source: "node";
438
+ nodeId: string;
439
+ path: string;
440
+ }>;
441
+ id: string;
442
+ dependsOn: string[];
443
+ } | {
444
+ type: "condition";
445
+ field: {
446
+ source: "input";
447
+ path: string;
448
+ } | {
449
+ source: "node";
450
+ nodeId: string;
451
+ path: string;
452
+ };
453
+ operator: "equals" | "exists";
454
+ whenTrue: string;
455
+ whenFalse: string;
456
+ id: string;
457
+ dependsOn: string[];
458
+ value?: string | number | boolean | undefined;
459
+ } | {
460
+ type: "output";
461
+ from: string;
462
+ id: string;
463
+ dependsOn: string[];
464
+ })[];
465
+ testCases: string[];
466
+ researchPolicy?: {
467
+ readOwner: boolean;
468
+ readProxySlots: boolean;
469
+ } | undefined;
470
+ policy?: {
471
+ analysis: {
472
+ mode: "summary";
473
+ maximumOutputTokens: number;
474
+ maximumCostMicrousd: number;
475
+ };
476
+ } | undefined;
477
+ marketPolicy?: {
478
+ discoverPools: boolean;
479
+ recentHolderActivity: boolean;
480
+ } | undefined;
481
+ };
482
+ /**
483
+ * Watchtower 0.3.0: the same bounded window graph, tool and output schema, plus wallet token flows across a token list, pool swaps and
484
+ * liquidity changes, governance and timelock events and access-control or pause events, and Robinhood Chain. New drafts start from it.
485
+ */
486
+ export declare const WATCHTOWER_MANIFEST_V3: {
487
+ schemaVersion: "1.0";
488
+ id: string;
489
+ version: string;
490
+ name: string;
491
+ description: string;
492
+ author: {
493
+ id: string;
494
+ name: string;
495
+ ownership: "first-party" | "independent";
496
+ };
497
+ license: string;
498
+ visibility: "private" | "source-visible" | "source-private";
499
+ chains: ("ethereum" | "base" | "robinhood")[];
500
+ inputSchema: {
501
+ type: "object";
502
+ properties: Record<string, {
503
+ type: "string" | "number" | "boolean" | "array" | "integer";
504
+ description: string;
505
+ enum?: (string | number | boolean)[] | undefined;
506
+ }>;
507
+ required: string[];
508
+ additionalProperties: false;
509
+ };
510
+ outputSchemaId: "agentex.token-research.v1" | "agentex.transaction-inspection.v1" | "agentex.watchtower-window.v1";
511
+ tools: {
512
+ id: string;
513
+ version: string;
514
+ capability: "evm.read";
515
+ chains: ("ethereum" | "base" | "robinhood")[];
516
+ addressScope: "input-address" | "input-transaction" | "input-watch-scope";
517
+ maximumCalls: number;
518
+ }[];
519
+ modelPolicy: {
520
+ mode: "deterministic";
521
+ maximumModelTokens: 0;
522
+ };
523
+ limits: {
524
+ maximumRpcCalls: number;
525
+ maximumDurationMs: number;
526
+ maximumOutputBytes: number;
527
+ maximumGraphDepth: number;
528
+ maximumPages: 0;
529
+ maximumExecutionAtomic: string;
530
+ };
531
+ workflow: ({
532
+ type: "input";
533
+ id: string;
534
+ dependsOn: string[];
535
+ } | {
536
+ type: "tool";
537
+ tool: string;
538
+ arguments: Record<string, {
539
+ source: "input";
540
+ path: string;
541
+ } | {
542
+ source: "node";
543
+ nodeId: string;
544
+ path: string;
545
+ }>;
546
+ id: string;
547
+ dependsOn: string[];
548
+ } | {
549
+ type: "condition";
550
+ field: {
551
+ source: "input";
552
+ path: string;
553
+ } | {
554
+ source: "node";
555
+ nodeId: string;
556
+ path: string;
557
+ };
558
+ operator: "equals" | "exists";
559
+ whenTrue: string;
560
+ whenFalse: string;
561
+ id: string;
562
+ dependsOn: string[];
563
+ value?: string | number | boolean | undefined;
564
+ } | {
565
+ type: "output";
566
+ from: string;
567
+ id: string;
568
+ dependsOn: string[];
569
+ })[];
570
+ testCases: string[];
571
+ researchPolicy?: {
572
+ readOwner: boolean;
573
+ readProxySlots: boolean;
574
+ } | undefined;
575
+ policy?: {
576
+ analysis: {
577
+ mode: "summary";
578
+ maximumOutputTokens: number;
579
+ maximumCostMicrousd: number;
580
+ };
581
+ } | undefined;
582
+ marketPolicy?: {
583
+ discoverPools: boolean;
584
+ recentHolderActivity: boolean;
585
+ } | undefined;
586
+ };
587
+ /** The rule types an exact Watchtower version declares. Returns the refusal for the first rule its version cannot run, or null. */
588
+ export declare function watchRuleRefusal(version: string, rules: readonly {
589
+ id: string;
590
+ type: string;
591
+ }[]): string | null;
592
+ export declare const SupportedWatchtowerManifestSchema: z.ZodObject<{
593
+ schemaVersion: z.ZodLiteral<"1.0">;
594
+ id: z.ZodString;
595
+ version: z.ZodString;
596
+ name: z.ZodString;
597
+ description: z.ZodString;
598
+ author: z.ZodObject<{
599
+ id: z.ZodString;
600
+ name: z.ZodString;
601
+ ownership: z.ZodEnum<{
602
+ "first-party": "first-party";
603
+ independent: "independent";
604
+ }>;
605
+ }, z.core.$strict>;
606
+ license: z.ZodString;
607
+ visibility: z.ZodEnum<{
608
+ private: "private";
609
+ "source-visible": "source-visible";
610
+ "source-private": "source-private";
611
+ }>;
612
+ chains: z.ZodArray<z.ZodEnum<{
613
+ ethereum: "ethereum";
614
+ base: "base";
615
+ robinhood: "robinhood";
616
+ }>>;
617
+ inputSchema: z.ZodObject<{
618
+ type: z.ZodLiteral<"object">;
619
+ properties: z.ZodRecord<z.ZodString, z.ZodObject<{
620
+ type: z.ZodEnum<{
621
+ string: "string";
622
+ number: "number";
623
+ boolean: "boolean";
624
+ array: "array";
625
+ integer: "integer";
626
+ }>;
627
+ description: z.ZodString;
628
+ enum: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
629
+ }, z.core.$strict>>;
630
+ required: z.ZodArray<z.ZodString>;
631
+ additionalProperties: z.ZodLiteral<false>;
632
+ }, z.core.$strict>;
633
+ outputSchemaId: z.ZodEnum<{
634
+ "agentex.token-research.v1": "agentex.token-research.v1";
635
+ "agentex.transaction-inspection.v1": "agentex.transaction-inspection.v1";
636
+ "agentex.watchtower-window.v1": "agentex.watchtower-window.v1";
637
+ }>;
638
+ tools: z.ZodArray<z.ZodObject<{
639
+ id: z.ZodString;
640
+ version: z.ZodString;
641
+ capability: z.ZodLiteral<"evm.read">;
642
+ chains: z.ZodArray<z.ZodEnum<{
643
+ ethereum: "ethereum";
644
+ base: "base";
645
+ robinhood: "robinhood";
646
+ }>>;
647
+ addressScope: z.ZodEnum<{
648
+ "input-address": "input-address";
649
+ "input-transaction": "input-transaction";
650
+ "input-watch-scope": "input-watch-scope";
651
+ }>;
652
+ maximumCalls: z.ZodNumber;
653
+ }, z.core.$strict>>;
654
+ modelPolicy: z.ZodObject<{
655
+ mode: z.ZodLiteral<"deterministic">;
656
+ maximumModelTokens: z.ZodLiteral<0>;
657
+ }, z.core.$strict>;
658
+ researchPolicy: z.ZodOptional<z.ZodObject<{
659
+ readOwner: z.ZodBoolean;
660
+ readProxySlots: z.ZodBoolean;
661
+ }, z.core.$strict>>;
662
+ policy: z.ZodOptional<z.ZodObject<{
663
+ analysis: z.ZodObject<{
664
+ mode: z.ZodLiteral<"summary">;
665
+ maximumOutputTokens: z.ZodNumber;
666
+ maximumCostMicrousd: z.ZodNumber;
667
+ }, z.core.$strict>;
668
+ }, z.core.$strict>>;
669
+ marketPolicy: z.ZodOptional<z.ZodObject<{
670
+ discoverPools: z.ZodBoolean;
671
+ recentHolderActivity: z.ZodBoolean;
672
+ }, z.core.$strict>>;
673
+ limits: z.ZodObject<{
674
+ maximumRpcCalls: z.ZodNumber;
675
+ maximumDurationMs: z.ZodNumber;
676
+ maximumOutputBytes: z.ZodNumber;
677
+ maximumGraphDepth: z.ZodNumber;
678
+ maximumPages: z.ZodLiteral<0>;
679
+ maximumExecutionAtomic: z.ZodString;
680
+ }, z.core.$strict>;
681
+ workflow: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
682
+ type: z.ZodLiteral<"input">;
683
+ id: z.ZodString;
684
+ dependsOn: z.ZodArray<z.ZodString>;
685
+ }, z.core.$strict>, z.ZodObject<{
686
+ type: z.ZodLiteral<"tool">;
687
+ tool: z.ZodString;
688
+ arguments: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
689
+ source: z.ZodLiteral<"input">;
690
+ path: z.ZodString;
691
+ }, z.core.$strict>, z.ZodObject<{
692
+ source: z.ZodLiteral<"node">;
693
+ nodeId: z.ZodString;
694
+ path: z.ZodString;
695
+ }, z.core.$strict>], "source">>;
696
+ id: z.ZodString;
697
+ dependsOn: z.ZodArray<z.ZodString>;
698
+ }, z.core.$strict>, z.ZodObject<{
699
+ type: z.ZodLiteral<"condition">;
700
+ field: z.ZodDiscriminatedUnion<[z.ZodObject<{
701
+ source: z.ZodLiteral<"input">;
702
+ path: z.ZodString;
703
+ }, z.core.$strict>, z.ZodObject<{
704
+ source: z.ZodLiteral<"node">;
705
+ nodeId: z.ZodString;
706
+ path: z.ZodString;
707
+ }, z.core.$strict>], "source">;
708
+ operator: z.ZodEnum<{
709
+ equals: "equals";
710
+ exists: "exists";
711
+ }>;
712
+ value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
713
+ whenTrue: z.ZodString;
714
+ whenFalse: z.ZodString;
715
+ id: z.ZodString;
716
+ dependsOn: z.ZodArray<z.ZodString>;
717
+ }, z.core.$strict>, z.ZodObject<{
718
+ type: z.ZodLiteral<"output">;
719
+ from: z.ZodString;
720
+ id: z.ZodString;
721
+ dependsOn: z.ZodArray<z.ZodString>;
722
+ }, z.core.$strict>], "type">>;
723
+ testCases: z.ZodArray<z.ZodString>;
724
+ }, z.core.$strict>;
725
+ export declare const WatchEvidenceItemSchema: z.ZodObject<{
726
+ id: z.ZodString;
727
+ tool: z.ZodLiteral<"evm.watch-logs@0.1.0">;
728
+ source: z.ZodObject<{
729
+ kind: z.ZodLiteral<"rpc">;
730
+ provider: z.ZodString;
731
+ method: z.ZodString;
732
+ documentationUrl: z.ZodURL;
733
+ }, z.core.$strict>;
734
+ chain: z.ZodEnum<{
735
+ ethereum: "ethereum";
736
+ base: "base";
737
+ robinhood: "robinhood";
738
+ }>;
739
+ chainId: z.ZodNumber;
740
+ request: z.ZodArray<z.ZodJSONSchema>;
741
+ snapshot: z.ZodNullable<z.ZodObject<{
742
+ blockNumber: z.ZodString;
743
+ blockHash: z.ZodString;
744
+ }, z.core.$strict>>;
745
+ observedAt: z.ZodISODateTime;
746
+ finality: z.ZodEnum<{
747
+ finalized: "finalized";
748
+ "sequencer-confirmed": "sequencer-confirmed";
749
+ unverified: "unverified";
750
+ }>;
751
+ canonicality: z.ZodEnum<{
752
+ "verified-at-completion": "verified-at-completion";
753
+ unchecked: "unchecked";
754
+ changed: "changed";
755
+ }>;
756
+ completeness: z.ZodEnum<{
757
+ error: "error";
758
+ "complete-for-request": "complete-for-request";
759
+ }>;
760
+ result: z.ZodJSONSchema;
761
+ contentHash: z.ZodString;
762
+ privacy: z.ZodLiteral<"public-chain-data">;
763
+ }, z.core.$strict>;
764
+ export type WatchEvidenceItem = z.infer<typeof WatchEvidenceItemSchema>;
765
+ export declare const WatchIgnoredReasonSchema: z.ZodEnum<{
766
+ "address-mismatch": "address-mismatch";
767
+ "topic-mismatch": "topic-mismatch";
768
+ "data-mismatch": "data-mismatch";
769
+ "filter-mismatch": "filter-mismatch";
770
+ "below-minimum": "below-minimum";
771
+ removed: "removed";
772
+ "outside-coverage": "outside-coverage";
773
+ }>;
774
+ export type WatchIgnoredReason = z.infer<typeof WatchIgnoredReasonSchema>;
775
+ export declare const WatchEventSchema: z.ZodObject<{
776
+ eventKey: z.ZodString;
777
+ ruleId: z.ZodString;
778
+ ruleType: z.ZodEnum<{
779
+ "authority-change": "authority-change";
780
+ "wallet-token-flow": "wallet-token-flow";
781
+ "pool-activity": "pool-activity";
782
+ "governance-change": "governance-change";
783
+ "control-change": "control-change";
784
+ "erc20-transfer": "erc20-transfer";
785
+ "erc20-approval": "erc20-approval";
786
+ }>;
787
+ event: z.ZodEnum<{
788
+ Upgraded: "Upgraded";
789
+ AdminChanged: "AdminChanged";
790
+ BeaconUpgraded: "BeaconUpgraded";
791
+ OwnershipTransferred: "OwnershipTransferred";
792
+ ProposalCreated: "ProposalCreated";
793
+ ProposalQueued: "ProposalQueued";
794
+ ProposalExecuted: "ProposalExecuted";
795
+ ProposalCanceled: "ProposalCanceled";
796
+ CallScheduled: "CallScheduled";
797
+ CallExecuted: "CallExecuted";
798
+ Cancelled: "Cancelled";
799
+ MinDelayChange: "MinDelayChange";
800
+ QueueTransaction: "QueueTransaction";
801
+ ExecuteTransaction: "ExecuteTransaction";
802
+ CancelTransaction: "CancelTransaction";
803
+ NewDelay: "NewDelay";
804
+ NewAdmin: "NewAdmin";
805
+ NewPendingAdmin: "NewPendingAdmin";
806
+ RoleGranted: "RoleGranted";
807
+ RoleRevoked: "RoleRevoked";
808
+ RoleAdminChanged: "RoleAdminChanged";
809
+ Paused: "Paused";
810
+ Unpaused: "Unpaused";
811
+ Swap: "Swap";
812
+ Mint: "Mint";
813
+ Burn: "Burn";
814
+ Transfer: "Transfer";
815
+ Approval: "Approval";
816
+ }>;
817
+ blockNumber: z.ZodString;
818
+ blockHash: z.ZodString;
819
+ transactionHash: z.ZodString;
820
+ logIndex: z.ZodNumber;
821
+ address: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
822
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
823
+ explanation: z.ZodString;
824
+ evidenceIds: z.ZodArray<z.ZodString>;
825
+ }, z.core.$strict>;
826
+ export type WatchEvent = z.infer<typeof WatchEventSchema>;
827
+ export declare const WatchRuleCoverageSchema: z.ZodObject<{
828
+ id: z.ZodString;
829
+ type: z.ZodEnum<{
830
+ "authority-change": "authority-change";
831
+ "wallet-token-flow": "wallet-token-flow";
832
+ "pool-activity": "pool-activity";
833
+ "governance-change": "governance-change";
834
+ "control-change": "control-change";
835
+ "erc20-transfer": "erc20-transfer";
836
+ "erc20-approval": "erc20-approval";
837
+ }>;
838
+ coverage: z.ZodEnum<{
839
+ unavailable: "unavailable";
840
+ "not-read": "not-read";
841
+ truncated: "truncated";
842
+ complete: "complete";
843
+ }>;
844
+ logsReturned: z.ZodNumber;
845
+ logsMatched: z.ZodNumber;
846
+ ignored: z.ZodRecord<z.ZodEnum<{
847
+ "address-mismatch": "address-mismatch";
848
+ "topic-mismatch": "topic-mismatch";
849
+ "data-mismatch": "data-mismatch";
850
+ "filter-mismatch": "filter-mismatch";
851
+ "below-minimum": "below-minimum";
852
+ removed: "removed";
853
+ "outside-coverage": "outside-coverage";
854
+ }> & z.core.$partial, z.ZodNumber>;
855
+ coveredThroughBlock: z.ZodNullable<z.ZodString>;
856
+ reason: z.ZodString;
857
+ evidenceIds: z.ZodArray<z.ZodString>;
858
+ }, z.core.$strict>;
859
+ export declare const WatchtowerWindowReportSchema: z.ZodObject<{
860
+ schemaVersion: z.ZodLiteral<"agentex.watchtower-window.v1">;
861
+ agentVersion: z.ZodString;
862
+ manifestHash: z.ZodString;
863
+ input: z.ZodObject<{
864
+ chain: z.ZodEnum<{
865
+ ethereum: "ethereum";
866
+ base: "base";
867
+ robinhood: "robinhood";
868
+ }>;
869
+ fromBlock: z.ZodString;
870
+ toBlock: z.ZodString;
871
+ rules: z.ZodArray<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
872
+ id: z.ZodString;
873
+ type: z.ZodLiteral<"erc20-transfer">;
874
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
875
+ from: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
876
+ to: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
877
+ minimumAtomic: z.ZodOptional<z.ZodString>;
878
+ }, z.core.$strict>, z.ZodObject<{
879
+ id: z.ZodString;
880
+ type: z.ZodLiteral<"erc20-approval">;
881
+ token: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
882
+ owner: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
883
+ spender: z.ZodOptional<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
884
+ }, z.core.$strict>, z.ZodObject<{
885
+ id: z.ZodString;
886
+ type: z.ZodLiteral<"authority-change">;
887
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
888
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
889
+ Upgraded: "Upgraded";
890
+ AdminChanged: "AdminChanged";
891
+ BeaconUpgraded: "BeaconUpgraded";
892
+ OwnershipTransferred: "OwnershipTransferred";
893
+ }>>>;
894
+ }, z.core.$strict>, z.ZodObject<{
895
+ id: z.ZodString;
896
+ type: z.ZodLiteral<"wallet-token-flow">;
897
+ wallet: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
898
+ tokens: z.ZodArray<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
899
+ direction: z.ZodEnum<{
900
+ out: "out";
901
+ in: "in";
902
+ }>;
903
+ }, z.core.$strict>, z.ZodObject<{
904
+ id: z.ZodString;
905
+ type: z.ZodLiteral<"pool-activity">;
906
+ pool: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
907
+ dex: z.ZodEnum<{
908
+ "uniswap-v2": "uniswap-v2";
909
+ "uniswap-v3": "uniswap-v3";
910
+ aerodrome: "aerodrome";
911
+ }>;
912
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
913
+ Swap: "Swap";
914
+ Mint: "Mint";
915
+ Burn: "Burn";
916
+ }>>>;
917
+ minimumAmount0Atomic: z.ZodOptional<z.ZodString>;
918
+ minimumAmount1Atomic: z.ZodOptional<z.ZodString>;
919
+ }, z.core.$strict>, z.ZodObject<{
920
+ id: z.ZodString;
921
+ type: z.ZodLiteral<"governance-change">;
922
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
923
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
924
+ ProposalCreated: "ProposalCreated";
925
+ ProposalQueued: "ProposalQueued";
926
+ ProposalExecuted: "ProposalExecuted";
927
+ ProposalCanceled: "ProposalCanceled";
928
+ CallScheduled: "CallScheduled";
929
+ CallExecuted: "CallExecuted";
930
+ Cancelled: "Cancelled";
931
+ MinDelayChange: "MinDelayChange";
932
+ QueueTransaction: "QueueTransaction";
933
+ ExecuteTransaction: "ExecuteTransaction";
934
+ CancelTransaction: "CancelTransaction";
935
+ NewDelay: "NewDelay";
936
+ NewAdmin: "NewAdmin";
937
+ NewPendingAdmin: "NewPendingAdmin";
938
+ }>>>;
939
+ }, z.core.$strict>, z.ZodObject<{
940
+ id: z.ZodString;
941
+ type: z.ZodLiteral<"control-change">;
942
+ contract: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
943
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
944
+ RoleGranted: "RoleGranted";
945
+ RoleRevoked: "RoleRevoked";
946
+ RoleAdminChanged: "RoleAdminChanged";
947
+ Paused: "Paused";
948
+ Unpaused: "Unpaused";
949
+ }>>>;
950
+ }, z.core.$strict>], "type">, unknown>>;
951
+ maximumLogs: z.ZodDefault<z.ZodNumber>;
952
+ }, z.core.$strict>;
953
+ status: z.ZodEnum<{
954
+ complete: "complete";
955
+ partial: "partial";
956
+ failed: "failed";
957
+ }>;
958
+ generatedAt: z.ZodISODateTime;
959
+ chainId: z.ZodNullable<z.ZodNumber>;
960
+ window: z.ZodObject<{
961
+ fromBlock: z.ZodString;
962
+ toBlock: z.ZodString;
963
+ fromBlockHash: z.ZodNullable<z.ZodString>;
964
+ toBlockHash: z.ZodNullable<z.ZodString>;
965
+ toBlockTimestamp: z.ZodNullable<z.ZodString>;
966
+ finality: z.ZodEnum<{
967
+ finalized: "finalized";
968
+ "sequencer-confirmed": "sequencer-confirmed";
969
+ }>;
970
+ canonicality: z.ZodEnum<{
971
+ "verified-at-completion": "verified-at-completion";
972
+ unchecked: "unchecked";
973
+ changed: "changed";
974
+ }>;
975
+ coverage: z.ZodEnum<{
976
+ unavailable: "unavailable";
977
+ complete: "complete";
978
+ partial: "partial";
979
+ }>;
980
+ coveredThroughBlock: z.ZodNullable<z.ZodString>;
981
+ coveredThroughBlockHash: z.ZodNullable<z.ZodString>;
982
+ finalizedBlock: z.ZodNullable<z.ZodString>;
983
+ finalityLagBlocks: z.ZodNullable<z.ZodNumber>;
984
+ dataLagSeconds: z.ZodNullable<z.ZodNumber>;
985
+ headBlock: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ headLagBlocks: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
987
+ }, z.core.$strict>;
988
+ rules: z.ZodArray<z.ZodObject<{
989
+ id: z.ZodString;
990
+ type: z.ZodEnum<{
991
+ "authority-change": "authority-change";
992
+ "wallet-token-flow": "wallet-token-flow";
993
+ "pool-activity": "pool-activity";
994
+ "governance-change": "governance-change";
995
+ "control-change": "control-change";
996
+ "erc20-transfer": "erc20-transfer";
997
+ "erc20-approval": "erc20-approval";
998
+ }>;
999
+ coverage: z.ZodEnum<{
1000
+ unavailable: "unavailable";
1001
+ "not-read": "not-read";
1002
+ truncated: "truncated";
1003
+ complete: "complete";
1004
+ }>;
1005
+ logsReturned: z.ZodNumber;
1006
+ logsMatched: z.ZodNumber;
1007
+ ignored: z.ZodRecord<z.ZodEnum<{
1008
+ "address-mismatch": "address-mismatch";
1009
+ "topic-mismatch": "topic-mismatch";
1010
+ "data-mismatch": "data-mismatch";
1011
+ "filter-mismatch": "filter-mismatch";
1012
+ "below-minimum": "below-minimum";
1013
+ removed: "removed";
1014
+ "outside-coverage": "outside-coverage";
1015
+ }> & z.core.$partial, z.ZodNumber>;
1016
+ coveredThroughBlock: z.ZodNullable<z.ZodString>;
1017
+ reason: z.ZodString;
1018
+ evidenceIds: z.ZodArray<z.ZodString>;
1019
+ }, z.core.$strict>>;
1020
+ events: z.ZodArray<z.ZodObject<{
1021
+ eventKey: z.ZodString;
1022
+ ruleId: z.ZodString;
1023
+ ruleType: z.ZodEnum<{
1024
+ "authority-change": "authority-change";
1025
+ "wallet-token-flow": "wallet-token-flow";
1026
+ "pool-activity": "pool-activity";
1027
+ "governance-change": "governance-change";
1028
+ "control-change": "control-change";
1029
+ "erc20-transfer": "erc20-transfer";
1030
+ "erc20-approval": "erc20-approval";
1031
+ }>;
1032
+ event: z.ZodEnum<{
1033
+ Upgraded: "Upgraded";
1034
+ AdminChanged: "AdminChanged";
1035
+ BeaconUpgraded: "BeaconUpgraded";
1036
+ OwnershipTransferred: "OwnershipTransferred";
1037
+ ProposalCreated: "ProposalCreated";
1038
+ ProposalQueued: "ProposalQueued";
1039
+ ProposalExecuted: "ProposalExecuted";
1040
+ ProposalCanceled: "ProposalCanceled";
1041
+ CallScheduled: "CallScheduled";
1042
+ CallExecuted: "CallExecuted";
1043
+ Cancelled: "Cancelled";
1044
+ MinDelayChange: "MinDelayChange";
1045
+ QueueTransaction: "QueueTransaction";
1046
+ ExecuteTransaction: "ExecuteTransaction";
1047
+ CancelTransaction: "CancelTransaction";
1048
+ NewDelay: "NewDelay";
1049
+ NewAdmin: "NewAdmin";
1050
+ NewPendingAdmin: "NewPendingAdmin";
1051
+ RoleGranted: "RoleGranted";
1052
+ RoleRevoked: "RoleRevoked";
1053
+ RoleAdminChanged: "RoleAdminChanged";
1054
+ Paused: "Paused";
1055
+ Unpaused: "Unpaused";
1056
+ Swap: "Swap";
1057
+ Mint: "Mint";
1058
+ Burn: "Burn";
1059
+ Transfer: "Transfer";
1060
+ Approval: "Approval";
1061
+ }>;
1062
+ blockNumber: z.ZodString;
1063
+ blockHash: z.ZodString;
1064
+ transactionHash: z.ZodString;
1065
+ logIndex: z.ZodNumber;
1066
+ address: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
1067
+ fields: z.ZodRecord<z.ZodString, z.ZodString>;
1068
+ explanation: z.ZodString;
1069
+ evidenceIds: z.ZodArray<z.ZodString>;
1070
+ }, z.core.$strict>>;
1071
+ unknowns: z.ZodArray<z.ZodString>;
1072
+ limitations: z.ZodArray<z.ZodString>;
1073
+ errors: z.ZodArray<z.ZodObject<{
1074
+ category: z.ZodEnum<{
1075
+ "no-contract": "no-contract";
1076
+ "provider-unavailable": "provider-unavailable";
1077
+ "history-unavailable": "history-unavailable";
1078
+ "rate-limited": "rate-limited";
1079
+ timeout: "timeout";
1080
+ cancelled: "cancelled";
1081
+ unsupported: "unsupported";
1082
+ "contract-reverted": "contract-reverted";
1083
+ "invalid-response": "invalid-response";
1084
+ "chain-mismatch": "chain-mismatch";
1085
+ "snapshot-changed": "snapshot-changed";
1086
+ "limit-exceeded": "limit-exceeded";
1087
+ unconfigured: "unconfigured";
1088
+ }>;
1089
+ message: z.ZodString;
1090
+ step: z.ZodString;
1091
+ evidenceId: z.ZodOptional<z.ZodString>;
1092
+ }, z.core.$strict>>;
1093
+ evidence: z.ZodArray<z.ZodObject<{
1094
+ id: z.ZodString;
1095
+ tool: z.ZodLiteral<"evm.watch-logs@0.1.0">;
1096
+ source: z.ZodObject<{
1097
+ kind: z.ZodLiteral<"rpc">;
1098
+ provider: z.ZodString;
1099
+ method: z.ZodString;
1100
+ documentationUrl: z.ZodURL;
1101
+ }, z.core.$strict>;
1102
+ chain: z.ZodEnum<{
1103
+ ethereum: "ethereum";
1104
+ base: "base";
1105
+ robinhood: "robinhood";
1106
+ }>;
1107
+ chainId: z.ZodNumber;
1108
+ request: z.ZodArray<z.ZodJSONSchema>;
1109
+ snapshot: z.ZodNullable<z.ZodObject<{
1110
+ blockNumber: z.ZodString;
1111
+ blockHash: z.ZodString;
1112
+ }, z.core.$strict>>;
1113
+ observedAt: z.ZodISODateTime;
1114
+ finality: z.ZodEnum<{
1115
+ finalized: "finalized";
1116
+ "sequencer-confirmed": "sequencer-confirmed";
1117
+ unverified: "unverified";
1118
+ }>;
1119
+ canonicality: z.ZodEnum<{
1120
+ "verified-at-completion": "verified-at-completion";
1121
+ unchecked: "unchecked";
1122
+ changed: "changed";
1123
+ }>;
1124
+ completeness: z.ZodEnum<{
1125
+ error: "error";
1126
+ "complete-for-request": "complete-for-request";
1127
+ }>;
1128
+ result: z.ZodJSONSchema;
1129
+ contentHash: z.ZodString;
1130
+ privacy: z.ZodLiteral<"public-chain-data">;
1131
+ }, z.core.$strict>>;
1132
+ usage: z.ZodObject<{
1133
+ rpcCalls: z.ZodNumber;
1134
+ maximumRpcCalls: z.ZodNumber;
1135
+ elapsedMs: z.ZodNumber;
1136
+ modelTokens: z.ZodLiteral<0>;
1137
+ providerCostAtomic: z.ZodNull;
1138
+ providerCostStatus: z.ZodLiteral<"unpriced">;
1139
+ }, z.core.$strict>;
1140
+ }, z.core.$strict>;
1141
+ export type WatchtowerWindowReport = z.infer<typeof WatchtowerWindowReportSchema>;