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.
- package/CHANGELOG.md +36 -0
- package/LICENSE +21 -0
- package/README.md +195 -0
- package/dist/packages/contracts/src/deployer-investigation.d.ts +1015 -0
- package/dist/packages/contracts/src/deployer-investigation.js +101 -0
- package/dist/packages/contracts/src/index.d.ts +1701 -0
- package/dist/packages/contracts/src/index.js +380 -0
- package/dist/packages/contracts/src/indexed-activity.d.ts +684 -0
- package/dist/packages/contracts/src/indexed-activity.js +71 -0
- package/dist/packages/contracts/src/indexed-agents.d.ts +299 -0
- package/dist/packages/contracts/src/indexed-agents.js +131 -0
- package/dist/packages/contracts/src/inspection.d.ts +906 -0
- package/dist/packages/contracts/src/inspection.js +114 -0
- package/dist/packages/contracts/src/kinds.d.ts +5398 -0
- package/dist/packages/contracts/src/kinds.js +156 -0
- package/dist/packages/contracts/src/report-presentation.d.ts +346 -0
- package/dist/packages/contracts/src/report-presentation.js +120 -0
- package/dist/packages/contracts/src/solana-inspection.d.ts +451 -0
- package/dist/packages/contracts/src/solana-inspection.js +94 -0
- package/dist/packages/contracts/src/token-market.d.ts +193 -0
- package/dist/packages/contracts/src/token-market.js +335 -0
- package/dist/packages/contracts/src/wallet-analysis.d.ts +866 -0
- package/dist/packages/contracts/src/wallet-analysis.js +89 -0
- package/dist/packages/contracts/src/watchtower.d.ts +1141 -0
- package/dist/packages/contracts/src/watchtower.js +196 -0
- package/dist/packages/contracts/src/workflow.d.ts +1568 -0
- package/dist/packages/contracts/src/workflow.js +651 -0
- package/dist/packages/inspector/src/decode.d.ts +23 -0
- package/dist/packages/inspector/src/decode.js +150 -0
- package/dist/packages/inspector/src/scope.d.ts +87 -0
- package/dist/packages/inspector/src/scope.js +64 -0
- package/dist/packages/model/src/analysis.d.ts +149 -0
- package/dist/packages/model/src/analysis.js +387 -0
- package/dist/packages/model/src/pricing.d.ts +38 -0
- package/dist/packages/model/src/pricing.js +49 -0
- package/dist/packages/model/src/retry.d.ts +20 -0
- package/dist/packages/model/src/retry.js +31 -0
- package/dist/packages/model/src/schema.d.ts +10 -0
- package/dist/packages/model/src/schema.js +51 -0
- package/dist/packages/model/src/summary.d.ts +91 -0
- package/dist/packages/model/src/summary.js +177 -0
- package/dist/packages/model/src/types.d.ts +81 -0
- package/dist/packages/model/src/types.js +19 -0
- package/dist/packages/monitoring/src/delivery.d.ts +32 -0
- package/dist/packages/monitoring/src/delivery.js +53 -0
- package/dist/packages/providers/src/chain-transport.d.ts +42 -0
- package/dist/packages/providers/src/chain-transport.js +57 -0
- package/dist/packages/providers/src/coverage.d.ts +105 -0
- package/dist/packages/providers/src/coverage.js +260 -0
- package/dist/packages/providers/src/health.d.ts +273 -0
- package/dist/packages/providers/src/health.js +505 -0
- package/dist/packages/providers/src/keyed.d.ts +96 -0
- package/dist/packages/providers/src/keyed.js +240 -0
- package/dist/packages/providers/src/snapshot.d.ts +61 -0
- package/dist/packages/providers/src/snapshot.js +77 -0
- package/dist/packages/publication/src/fixtures.d.ts +45 -0
- package/dist/packages/publication/src/fixtures.js +350 -0
- package/dist/packages/research/src/index.d.ts +188 -0
- package/dist/packages/research/src/index.js +829 -0
- package/dist/packages/runtime/src/checkpoints.d.ts +65 -0
- package/dist/packages/runtime/src/checkpoints.js +214 -0
- package/dist/packages/runtime/src/policy.d.ts +57 -0
- package/dist/packages/runtime/src/policy.js +296 -0
- package/dist/packages/sdk/src/bin/agentex-buyer.d.ts +2 -0
- package/dist/packages/sdk/src/bin/agentex-buyer.js +4 -0
- package/dist/packages/sdk/src/bin/agentex.d.ts +2 -0
- package/dist/packages/sdk/src/bin/agentex.js +3 -0
- package/dist/packages/sdk/src/buyer-cli.d.ts +10 -0
- package/dist/packages/sdk/src/buyer-cli.js +210 -0
- package/dist/packages/sdk/src/buyer.d.ts +534 -0
- package/dist/packages/sdk/src/buyer.js +441 -0
- package/dist/packages/sdk/src/cli.d.ts +14 -0
- package/dist/packages/sdk/src/cli.js +149 -0
- package/dist/packages/sdk/src/errors.d.ts +31 -0
- package/dist/packages/sdk/src/errors.js +24 -0
- package/dist/packages/sdk/src/index.d.ts +236 -0
- package/dist/packages/sdk/src/index.js +150 -0
- package/dist/packages/sdk/src/local.d.ts +11 -0
- package/dist/packages/sdk/src/local.js +110 -0
- package/dist/packages/sdk/src/rails.d.ts +59 -0
- package/dist/packages/sdk/src/rails.js +96 -0
- package/dist/packages/sdk/src/report.d.ts +121 -0
- package/dist/packages/sdk/src/report.js +114 -0
- package/dist/packages/sdk/src/version.d.ts +2 -0
- package/dist/packages/sdk/src/version.js +2 -0
- package/dist/packages/watchtower/src/index.d.ts +150 -0
- package/dist/packages/watchtower/src/index.js +786 -0
- package/dist/packages/workflow/src/registry.d.ts +61 -0
- package/dist/packages/workflow/src/registry.js +76 -0
- package/examples/README.md +34 -0
- package/examples/cli-usage.sh +30 -0
- package/examples/fixtures/base-weth-input.json +4 -0
- package/examples/focused-researcher.json +127 -0
- package/examples/pay-with-eth-robinhood.mts +37 -0
- package/examples/pay-with-usdc.mts +41 -0
- package/examples/quickstart.mts +73 -0
- package/package.json +50 -0
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Transaction Inspector contracts. Kept outside index.ts so both modules initialise without a circular import. */
|
|
3
|
+
export declare const INSPECTION_MAX_DATA_BYTES = 16384;
|
|
4
|
+
export declare const INSPECTION_RPC_CEILING = 24;
|
|
5
|
+
export declare const INSPECTION_TOOL: "evm.inspect-transaction@0.1.0";
|
|
6
|
+
export declare const CalldataSchema: z.ZodString;
|
|
7
|
+
/** A proposed, unsigned payload. There is deliberately no signature, nonce, key or broadcast field. */
|
|
8
|
+
export declare const TransactionInspectionInputSchema: z.ZodObject<{
|
|
9
|
+
chain: z.ZodEnum<{
|
|
10
|
+
ethereum: "ethereum";
|
|
11
|
+
base: "base";
|
|
12
|
+
robinhood: "robinhood";
|
|
13
|
+
}>;
|
|
14
|
+
from: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
|
|
15
|
+
to: z.ZodDefault<z.ZodNullable<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>>;
|
|
16
|
+
data: z.ZodString;
|
|
17
|
+
value: z.ZodDefault<z.ZodString>;
|
|
18
|
+
snapshotBlock: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export type TransactionInspectionInput = z.infer<typeof TransactionInspectionInputSchema>;
|
|
21
|
+
export declare const TRANSACTION_INSPECTOR_MANIFEST: {
|
|
22
|
+
schemaVersion: "1.0";
|
|
23
|
+
id: string;
|
|
24
|
+
version: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string;
|
|
27
|
+
author: {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
ownership: "first-party" | "independent";
|
|
31
|
+
};
|
|
32
|
+
license: string;
|
|
33
|
+
visibility: "private" | "source-visible" | "source-private";
|
|
34
|
+
chains: ("ethereum" | "base" | "robinhood")[];
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: "object";
|
|
37
|
+
properties: Record<string, {
|
|
38
|
+
type: "string" | "number" | "boolean" | "array" | "integer";
|
|
39
|
+
description: string;
|
|
40
|
+
enum?: (string | number | boolean)[] | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
required: string[];
|
|
43
|
+
additionalProperties: false;
|
|
44
|
+
};
|
|
45
|
+
outputSchemaId: "agentex.token-research.v1" | "agentex.transaction-inspection.v1" | "agentex.watchtower-window.v1";
|
|
46
|
+
tools: {
|
|
47
|
+
id: string;
|
|
48
|
+
version: string;
|
|
49
|
+
capability: "evm.read";
|
|
50
|
+
chains: ("ethereum" | "base" | "robinhood")[];
|
|
51
|
+
addressScope: "input-address" | "input-transaction" | "input-watch-scope";
|
|
52
|
+
maximumCalls: number;
|
|
53
|
+
}[];
|
|
54
|
+
modelPolicy: {
|
|
55
|
+
mode: "deterministic";
|
|
56
|
+
maximumModelTokens: 0;
|
|
57
|
+
};
|
|
58
|
+
limits: {
|
|
59
|
+
maximumRpcCalls: number;
|
|
60
|
+
maximumDurationMs: number;
|
|
61
|
+
maximumOutputBytes: number;
|
|
62
|
+
maximumGraphDepth: number;
|
|
63
|
+
maximumPages: 0;
|
|
64
|
+
maximumExecutionAtomic: string;
|
|
65
|
+
};
|
|
66
|
+
workflow: ({
|
|
67
|
+
type: "input";
|
|
68
|
+
id: string;
|
|
69
|
+
dependsOn: string[];
|
|
70
|
+
} | {
|
|
71
|
+
type: "tool";
|
|
72
|
+
tool: string;
|
|
73
|
+
arguments: Record<string, {
|
|
74
|
+
source: "input";
|
|
75
|
+
path: string;
|
|
76
|
+
} | {
|
|
77
|
+
source: "node";
|
|
78
|
+
nodeId: string;
|
|
79
|
+
path: string;
|
|
80
|
+
}>;
|
|
81
|
+
id: string;
|
|
82
|
+
dependsOn: string[];
|
|
83
|
+
} | {
|
|
84
|
+
type: "condition";
|
|
85
|
+
field: {
|
|
86
|
+
source: "input";
|
|
87
|
+
path: string;
|
|
88
|
+
} | {
|
|
89
|
+
source: "node";
|
|
90
|
+
nodeId: string;
|
|
91
|
+
path: string;
|
|
92
|
+
};
|
|
93
|
+
operator: "equals" | "exists";
|
|
94
|
+
whenTrue: string;
|
|
95
|
+
whenFalse: string;
|
|
96
|
+
id: string;
|
|
97
|
+
dependsOn: string[];
|
|
98
|
+
value?: string | number | boolean | undefined;
|
|
99
|
+
} | {
|
|
100
|
+
type: "output";
|
|
101
|
+
from: string;
|
|
102
|
+
id: string;
|
|
103
|
+
dependsOn: string[];
|
|
104
|
+
})[];
|
|
105
|
+
testCases: string[];
|
|
106
|
+
researchPolicy?: {
|
|
107
|
+
readOwner: boolean;
|
|
108
|
+
readProxySlots: boolean;
|
|
109
|
+
} | undefined;
|
|
110
|
+
policy?: {
|
|
111
|
+
analysis: {
|
|
112
|
+
mode: "summary";
|
|
113
|
+
maximumOutputTokens: number;
|
|
114
|
+
maximumCostMicrousd: number;
|
|
115
|
+
};
|
|
116
|
+
} | undefined;
|
|
117
|
+
marketPolicy?: {
|
|
118
|
+
discoverPools: boolean;
|
|
119
|
+
recentHolderActivity: boolean;
|
|
120
|
+
} | undefined;
|
|
121
|
+
};
|
|
122
|
+
/** Transaction Inspector 0.2.0: identical graph, tool, limits and output schema to 0.1.0 (kept byte-identical, hash 4dab080b…); instant-read wording for new drafts. */
|
|
123
|
+
export declare const TRANSACTION_INSPECTOR_MANIFEST_V2: {
|
|
124
|
+
schemaVersion: "1.0";
|
|
125
|
+
id: string;
|
|
126
|
+
version: string;
|
|
127
|
+
name: string;
|
|
128
|
+
description: string;
|
|
129
|
+
author: {
|
|
130
|
+
id: string;
|
|
131
|
+
name: string;
|
|
132
|
+
ownership: "first-party" | "independent";
|
|
133
|
+
};
|
|
134
|
+
license: string;
|
|
135
|
+
visibility: "private" | "source-visible" | "source-private";
|
|
136
|
+
chains: ("ethereum" | "base" | "robinhood")[];
|
|
137
|
+
inputSchema: {
|
|
138
|
+
type: "object";
|
|
139
|
+
properties: Record<string, {
|
|
140
|
+
type: "string" | "number" | "boolean" | "array" | "integer";
|
|
141
|
+
description: string;
|
|
142
|
+
enum?: (string | number | boolean)[] | undefined;
|
|
143
|
+
}>;
|
|
144
|
+
required: string[];
|
|
145
|
+
additionalProperties: false;
|
|
146
|
+
};
|
|
147
|
+
outputSchemaId: "agentex.token-research.v1" | "agentex.transaction-inspection.v1" | "agentex.watchtower-window.v1";
|
|
148
|
+
tools: {
|
|
149
|
+
id: string;
|
|
150
|
+
version: string;
|
|
151
|
+
capability: "evm.read";
|
|
152
|
+
chains: ("ethereum" | "base" | "robinhood")[];
|
|
153
|
+
addressScope: "input-address" | "input-transaction" | "input-watch-scope";
|
|
154
|
+
maximumCalls: number;
|
|
155
|
+
}[];
|
|
156
|
+
modelPolicy: {
|
|
157
|
+
mode: "deterministic";
|
|
158
|
+
maximumModelTokens: 0;
|
|
159
|
+
};
|
|
160
|
+
limits: {
|
|
161
|
+
maximumRpcCalls: number;
|
|
162
|
+
maximumDurationMs: number;
|
|
163
|
+
maximumOutputBytes: number;
|
|
164
|
+
maximumGraphDepth: number;
|
|
165
|
+
maximumPages: 0;
|
|
166
|
+
maximumExecutionAtomic: string;
|
|
167
|
+
};
|
|
168
|
+
workflow: ({
|
|
169
|
+
type: "input";
|
|
170
|
+
id: string;
|
|
171
|
+
dependsOn: string[];
|
|
172
|
+
} | {
|
|
173
|
+
type: "tool";
|
|
174
|
+
tool: string;
|
|
175
|
+
arguments: Record<string, {
|
|
176
|
+
source: "input";
|
|
177
|
+
path: string;
|
|
178
|
+
} | {
|
|
179
|
+
source: "node";
|
|
180
|
+
nodeId: string;
|
|
181
|
+
path: string;
|
|
182
|
+
}>;
|
|
183
|
+
id: string;
|
|
184
|
+
dependsOn: string[];
|
|
185
|
+
} | {
|
|
186
|
+
type: "condition";
|
|
187
|
+
field: {
|
|
188
|
+
source: "input";
|
|
189
|
+
path: string;
|
|
190
|
+
} | {
|
|
191
|
+
source: "node";
|
|
192
|
+
nodeId: string;
|
|
193
|
+
path: string;
|
|
194
|
+
};
|
|
195
|
+
operator: "equals" | "exists";
|
|
196
|
+
whenTrue: string;
|
|
197
|
+
whenFalse: string;
|
|
198
|
+
id: string;
|
|
199
|
+
dependsOn: string[];
|
|
200
|
+
value?: string | number | boolean | undefined;
|
|
201
|
+
} | {
|
|
202
|
+
type: "output";
|
|
203
|
+
from: string;
|
|
204
|
+
id: string;
|
|
205
|
+
dependsOn: string[];
|
|
206
|
+
})[];
|
|
207
|
+
testCases: string[];
|
|
208
|
+
researchPolicy?: {
|
|
209
|
+
readOwner: boolean;
|
|
210
|
+
readProxySlots: boolean;
|
|
211
|
+
} | undefined;
|
|
212
|
+
policy?: {
|
|
213
|
+
analysis: {
|
|
214
|
+
mode: "summary";
|
|
215
|
+
maximumOutputTokens: number;
|
|
216
|
+
maximumCostMicrousd: number;
|
|
217
|
+
};
|
|
218
|
+
} | undefined;
|
|
219
|
+
marketPolicy?: {
|
|
220
|
+
discoverPools: boolean;
|
|
221
|
+
recentHolderActivity: boolean;
|
|
222
|
+
} | undefined;
|
|
223
|
+
};
|
|
224
|
+
/** Executable manifest subset for the transaction inspector: fixed graph and tool, selectable chains and lower limits only. */
|
|
225
|
+
export declare const SupportedTransactionInspectorManifestSchema: z.ZodObject<{
|
|
226
|
+
schemaVersion: z.ZodLiteral<"1.0">;
|
|
227
|
+
id: z.ZodString;
|
|
228
|
+
version: z.ZodString;
|
|
229
|
+
name: z.ZodString;
|
|
230
|
+
description: z.ZodString;
|
|
231
|
+
author: z.ZodObject<{
|
|
232
|
+
id: z.ZodString;
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
ownership: z.ZodEnum<{
|
|
235
|
+
"first-party": "first-party";
|
|
236
|
+
independent: "independent";
|
|
237
|
+
}>;
|
|
238
|
+
}, z.core.$strict>;
|
|
239
|
+
license: z.ZodString;
|
|
240
|
+
visibility: z.ZodEnum<{
|
|
241
|
+
private: "private";
|
|
242
|
+
"source-visible": "source-visible";
|
|
243
|
+
"source-private": "source-private";
|
|
244
|
+
}>;
|
|
245
|
+
chains: z.ZodArray<z.ZodEnum<{
|
|
246
|
+
ethereum: "ethereum";
|
|
247
|
+
base: "base";
|
|
248
|
+
robinhood: "robinhood";
|
|
249
|
+
}>>;
|
|
250
|
+
inputSchema: z.ZodObject<{
|
|
251
|
+
type: z.ZodLiteral<"object">;
|
|
252
|
+
properties: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
253
|
+
type: z.ZodEnum<{
|
|
254
|
+
string: "string";
|
|
255
|
+
number: "number";
|
|
256
|
+
boolean: "boolean";
|
|
257
|
+
array: "array";
|
|
258
|
+
integer: "integer";
|
|
259
|
+
}>;
|
|
260
|
+
description: z.ZodString;
|
|
261
|
+
enum: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
262
|
+
}, z.core.$strict>>;
|
|
263
|
+
required: z.ZodArray<z.ZodString>;
|
|
264
|
+
additionalProperties: z.ZodLiteral<false>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
outputSchemaId: z.ZodEnum<{
|
|
267
|
+
"agentex.token-research.v1": "agentex.token-research.v1";
|
|
268
|
+
"agentex.transaction-inspection.v1": "agentex.transaction-inspection.v1";
|
|
269
|
+
"agentex.watchtower-window.v1": "agentex.watchtower-window.v1";
|
|
270
|
+
}>;
|
|
271
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
272
|
+
id: z.ZodString;
|
|
273
|
+
version: z.ZodString;
|
|
274
|
+
capability: z.ZodLiteral<"evm.read">;
|
|
275
|
+
chains: z.ZodArray<z.ZodEnum<{
|
|
276
|
+
ethereum: "ethereum";
|
|
277
|
+
base: "base";
|
|
278
|
+
robinhood: "robinhood";
|
|
279
|
+
}>>;
|
|
280
|
+
addressScope: z.ZodEnum<{
|
|
281
|
+
"input-address": "input-address";
|
|
282
|
+
"input-transaction": "input-transaction";
|
|
283
|
+
"input-watch-scope": "input-watch-scope";
|
|
284
|
+
}>;
|
|
285
|
+
maximumCalls: z.ZodNumber;
|
|
286
|
+
}, z.core.$strict>>;
|
|
287
|
+
modelPolicy: z.ZodObject<{
|
|
288
|
+
mode: z.ZodLiteral<"deterministic">;
|
|
289
|
+
maximumModelTokens: z.ZodLiteral<0>;
|
|
290
|
+
}, z.core.$strict>;
|
|
291
|
+
researchPolicy: z.ZodOptional<z.ZodObject<{
|
|
292
|
+
readOwner: z.ZodBoolean;
|
|
293
|
+
readProxySlots: z.ZodBoolean;
|
|
294
|
+
}, z.core.$strict>>;
|
|
295
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
296
|
+
analysis: z.ZodObject<{
|
|
297
|
+
mode: z.ZodLiteral<"summary">;
|
|
298
|
+
maximumOutputTokens: z.ZodNumber;
|
|
299
|
+
maximumCostMicrousd: z.ZodNumber;
|
|
300
|
+
}, z.core.$strict>;
|
|
301
|
+
}, z.core.$strict>>;
|
|
302
|
+
marketPolicy: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
discoverPools: z.ZodBoolean;
|
|
304
|
+
recentHolderActivity: z.ZodBoolean;
|
|
305
|
+
}, z.core.$strict>>;
|
|
306
|
+
limits: z.ZodObject<{
|
|
307
|
+
maximumRpcCalls: z.ZodNumber;
|
|
308
|
+
maximumDurationMs: z.ZodNumber;
|
|
309
|
+
maximumOutputBytes: z.ZodNumber;
|
|
310
|
+
maximumGraphDepth: z.ZodNumber;
|
|
311
|
+
maximumPages: z.ZodLiteral<0>;
|
|
312
|
+
maximumExecutionAtomic: z.ZodString;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
workflow: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
+
type: z.ZodLiteral<"input">;
|
|
316
|
+
id: z.ZodString;
|
|
317
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
318
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
319
|
+
type: z.ZodLiteral<"tool">;
|
|
320
|
+
tool: z.ZodString;
|
|
321
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
322
|
+
source: z.ZodLiteral<"input">;
|
|
323
|
+
path: z.ZodString;
|
|
324
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
+
source: z.ZodLiteral<"node">;
|
|
326
|
+
nodeId: z.ZodString;
|
|
327
|
+
path: z.ZodString;
|
|
328
|
+
}, z.core.$strict>], "source">>;
|
|
329
|
+
id: z.ZodString;
|
|
330
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
331
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
332
|
+
type: z.ZodLiteral<"condition">;
|
|
333
|
+
field: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
334
|
+
source: z.ZodLiteral<"input">;
|
|
335
|
+
path: z.ZodString;
|
|
336
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
337
|
+
source: z.ZodLiteral<"node">;
|
|
338
|
+
nodeId: z.ZodString;
|
|
339
|
+
path: z.ZodString;
|
|
340
|
+
}, z.core.$strict>], "source">;
|
|
341
|
+
operator: z.ZodEnum<{
|
|
342
|
+
equals: "equals";
|
|
343
|
+
exists: "exists";
|
|
344
|
+
}>;
|
|
345
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean, z.ZodNumber]>>;
|
|
346
|
+
whenTrue: z.ZodString;
|
|
347
|
+
whenFalse: z.ZodString;
|
|
348
|
+
id: z.ZodString;
|
|
349
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
type: z.ZodLiteral<"output">;
|
|
352
|
+
from: z.ZodString;
|
|
353
|
+
id: z.ZodString;
|
|
354
|
+
dependsOn: z.ZodArray<z.ZodString>;
|
|
355
|
+
}, z.core.$strict>], "type">>;
|
|
356
|
+
testCases: z.ZodArray<z.ZodString>;
|
|
357
|
+
}, z.core.$strict>;
|
|
358
|
+
export declare const InspectionEvidenceItemSchema: z.ZodObject<{
|
|
359
|
+
id: z.ZodString;
|
|
360
|
+
tool: z.ZodLiteral<"evm.inspect-transaction@0.1.0">;
|
|
361
|
+
source: z.ZodObject<{
|
|
362
|
+
kind: z.ZodLiteral<"rpc">;
|
|
363
|
+
provider: z.ZodString;
|
|
364
|
+
method: z.ZodString;
|
|
365
|
+
documentationUrl: z.ZodURL;
|
|
366
|
+
}, z.core.$strict>;
|
|
367
|
+
chain: z.ZodEnum<{
|
|
368
|
+
ethereum: "ethereum";
|
|
369
|
+
base: "base";
|
|
370
|
+
robinhood: "robinhood";
|
|
371
|
+
}>;
|
|
372
|
+
chainId: z.ZodNumber;
|
|
373
|
+
request: z.ZodArray<z.ZodJSONSchema>;
|
|
374
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
375
|
+
blockNumber: z.ZodString;
|
|
376
|
+
blockHash: z.ZodString;
|
|
377
|
+
}, z.core.$strict>>;
|
|
378
|
+
observedAt: z.ZodISODateTime;
|
|
379
|
+
finality: z.ZodEnum<{
|
|
380
|
+
finalized: "finalized";
|
|
381
|
+
"sequencer-confirmed": "sequencer-confirmed";
|
|
382
|
+
unverified: "unverified";
|
|
383
|
+
}>;
|
|
384
|
+
canonicality: z.ZodEnum<{
|
|
385
|
+
"verified-at-completion": "verified-at-completion";
|
|
386
|
+
unchecked: "unchecked";
|
|
387
|
+
changed: "changed";
|
|
388
|
+
}>;
|
|
389
|
+
completeness: z.ZodEnum<{
|
|
390
|
+
error: "error";
|
|
391
|
+
"complete-for-request": "complete-for-request";
|
|
392
|
+
}>;
|
|
393
|
+
result: z.ZodJSONSchema;
|
|
394
|
+
contentHash: z.ZodString;
|
|
395
|
+
privacy: z.ZodLiteral<"public-chain-data">;
|
|
396
|
+
}, z.core.$strict>;
|
|
397
|
+
export type InspectionEvidenceItem = z.infer<typeof InspectionEvidenceItemSchema>;
|
|
398
|
+
export declare const INSPECTION_RPC_METHODS: readonly ["eth_chainId", "eth_getBlockByNumber", "eth_getCode", "eth_getStorageAt", "eth_call", "eth_estimateGas"];
|
|
399
|
+
export declare const DecodedActionKindSchema: z.ZodEnum<{
|
|
400
|
+
unknown: "unknown";
|
|
401
|
+
"contract-creation": "contract-creation";
|
|
402
|
+
"native-transfer": "native-transfer";
|
|
403
|
+
"erc20.transfer": "erc20.transfer";
|
|
404
|
+
"erc20.approve": "erc20.approve";
|
|
405
|
+
"erc20-or-erc721.transferFrom": "erc20-or-erc721.transferFrom";
|
|
406
|
+
"erc20.increaseAllowance": "erc20.increaseAllowance";
|
|
407
|
+
"erc20.decreaseAllowance": "erc20.decreaseAllowance";
|
|
408
|
+
"eip2612.permit": "eip2612.permit";
|
|
409
|
+
"erc721-or-erc1155.setApprovalForAll": "erc721-or-erc1155.setApprovalForAll";
|
|
410
|
+
"erc721.safeTransferFrom": "erc721.safeTransferFrom";
|
|
411
|
+
"erc1155.safeTransferFrom": "erc1155.safeTransferFrom";
|
|
412
|
+
"weth.deposit": "weth.deposit";
|
|
413
|
+
"weth.withdraw": "weth.withdraw";
|
|
414
|
+
multicall: "multicall";
|
|
415
|
+
}>;
|
|
416
|
+
export type DecodedActionKind = z.infer<typeof DecodedActionKindSchema>;
|
|
417
|
+
export declare const DecodedActionSchema: z.ZodObject<{
|
|
418
|
+
path: z.ZodString;
|
|
419
|
+
depth: z.ZodNumber;
|
|
420
|
+
target: z.ZodNullable<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
|
|
421
|
+
status: z.ZodEnum<{
|
|
422
|
+
unknown: "unknown";
|
|
423
|
+
decoded: "decoded";
|
|
424
|
+
invalid: "invalid";
|
|
425
|
+
"bound-reached": "bound-reached";
|
|
426
|
+
}>;
|
|
427
|
+
kind: z.ZodEnum<{
|
|
428
|
+
unknown: "unknown";
|
|
429
|
+
"contract-creation": "contract-creation";
|
|
430
|
+
"native-transfer": "native-transfer";
|
|
431
|
+
"erc20.transfer": "erc20.transfer";
|
|
432
|
+
"erc20.approve": "erc20.approve";
|
|
433
|
+
"erc20-or-erc721.transferFrom": "erc20-or-erc721.transferFrom";
|
|
434
|
+
"erc20.increaseAllowance": "erc20.increaseAllowance";
|
|
435
|
+
"erc20.decreaseAllowance": "erc20.decreaseAllowance";
|
|
436
|
+
"eip2612.permit": "eip2612.permit";
|
|
437
|
+
"erc721-or-erc1155.setApprovalForAll": "erc721-or-erc1155.setApprovalForAll";
|
|
438
|
+
"erc721.safeTransferFrom": "erc721.safeTransferFrom";
|
|
439
|
+
"erc1155.safeTransferFrom": "erc1155.safeTransferFrom";
|
|
440
|
+
"weth.deposit": "weth.deposit";
|
|
441
|
+
"weth.withdraw": "weth.withdraw";
|
|
442
|
+
multicall: "multicall";
|
|
443
|
+
}>;
|
|
444
|
+
selector: z.ZodNullable<z.ZodString>;
|
|
445
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
446
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
447
|
+
notes: z.ZodArray<z.ZodString>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
export type DecodedAction = z.infer<typeof DecodedActionSchema>;
|
|
450
|
+
export declare const InspectionFindingCodeSchema: z.ZodEnum<{
|
|
451
|
+
"contract-creation": "contract-creation";
|
|
452
|
+
"unlimited-approval": "unlimited-approval";
|
|
453
|
+
"approval-grantee-without-code": "approval-grantee-without-code";
|
|
454
|
+
"operator-approval-granted": "operator-approval-granted";
|
|
455
|
+
"operator-grantee-without-code": "operator-grantee-without-code";
|
|
456
|
+
"native-value-sent": "native-value-sent";
|
|
457
|
+
"upgradeable-proxy-target": "upgradeable-proxy-target";
|
|
458
|
+
"target-without-code": "target-without-code";
|
|
459
|
+
"simulation-reverted": "simulation-reverted";
|
|
460
|
+
"unknown-action": "unknown-action";
|
|
461
|
+
"invalid-calldata": "invalid-calldata";
|
|
462
|
+
"decoding-bound-reached": "decoding-bound-reached";
|
|
463
|
+
}>;
|
|
464
|
+
export type InspectionFindingCode = z.infer<typeof InspectionFindingCodeSchema>;
|
|
465
|
+
export declare const TransactionInspectionReportSchema: z.ZodObject<{
|
|
466
|
+
schemaVersion: z.ZodLiteral<"agentex.transaction-inspection.v1">;
|
|
467
|
+
agentVersion: z.ZodString;
|
|
468
|
+
manifestHash: z.ZodString;
|
|
469
|
+
input: z.ZodObject<{
|
|
470
|
+
chain: z.ZodEnum<{
|
|
471
|
+
ethereum: "ethereum";
|
|
472
|
+
base: "base";
|
|
473
|
+
robinhood: "robinhood";
|
|
474
|
+
}>;
|
|
475
|
+
from: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
|
|
476
|
+
to: z.ZodDefault<z.ZodNullable<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>>;
|
|
477
|
+
data: z.ZodString;
|
|
478
|
+
value: z.ZodDefault<z.ZodString>;
|
|
479
|
+
snapshotBlock: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strict>;
|
|
481
|
+
status: z.ZodEnum<{
|
|
482
|
+
complete: "complete";
|
|
483
|
+
partial: "partial";
|
|
484
|
+
failed: "failed";
|
|
485
|
+
}>;
|
|
486
|
+
generatedAt: z.ZodISODateTime;
|
|
487
|
+
chainId: z.ZodNullable<z.ZodNumber>;
|
|
488
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
489
|
+
blockNumber: z.ZodString;
|
|
490
|
+
blockHash: z.ZodString;
|
|
491
|
+
timestamp: z.ZodString;
|
|
492
|
+
finality: z.ZodEnum<{
|
|
493
|
+
finalized: "finalized";
|
|
494
|
+
"sequencer-confirmed": "sequencer-confirmed";
|
|
495
|
+
}>;
|
|
496
|
+
canonicality: z.ZodEnum<{
|
|
497
|
+
"verified-at-completion": "verified-at-completion";
|
|
498
|
+
unchecked: "unchecked";
|
|
499
|
+
changed: "changed";
|
|
500
|
+
}>;
|
|
501
|
+
}, z.core.$strict>>;
|
|
502
|
+
transaction: z.ZodObject<{
|
|
503
|
+
kind: z.ZodEnum<{
|
|
504
|
+
"contract-creation": "contract-creation";
|
|
505
|
+
"native-transfer": "native-transfer";
|
|
506
|
+
call: "call";
|
|
507
|
+
}>;
|
|
508
|
+
selector: z.ZodNullable<z.ZodString>;
|
|
509
|
+
dataBytes: z.ZodNumber;
|
|
510
|
+
dataHash: z.ZodString;
|
|
511
|
+
valueAtomic: z.ZodString;
|
|
512
|
+
valueFormatted: z.ZodString;
|
|
513
|
+
valueUnit: z.ZodLiteral<"native-18-decimals">;
|
|
514
|
+
}, z.core.$strict>;
|
|
515
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
516
|
+
path: z.ZodString;
|
|
517
|
+
depth: z.ZodNumber;
|
|
518
|
+
target: z.ZodNullable<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
|
|
519
|
+
status: z.ZodEnum<{
|
|
520
|
+
unknown: "unknown";
|
|
521
|
+
decoded: "decoded";
|
|
522
|
+
invalid: "invalid";
|
|
523
|
+
"bound-reached": "bound-reached";
|
|
524
|
+
}>;
|
|
525
|
+
kind: z.ZodEnum<{
|
|
526
|
+
unknown: "unknown";
|
|
527
|
+
"contract-creation": "contract-creation";
|
|
528
|
+
"native-transfer": "native-transfer";
|
|
529
|
+
"erc20.transfer": "erc20.transfer";
|
|
530
|
+
"erc20.approve": "erc20.approve";
|
|
531
|
+
"erc20-or-erc721.transferFrom": "erc20-or-erc721.transferFrom";
|
|
532
|
+
"erc20.increaseAllowance": "erc20.increaseAllowance";
|
|
533
|
+
"erc20.decreaseAllowance": "erc20.decreaseAllowance";
|
|
534
|
+
"eip2612.permit": "eip2612.permit";
|
|
535
|
+
"erc721-or-erc1155.setApprovalForAll": "erc721-or-erc1155.setApprovalForAll";
|
|
536
|
+
"erc721.safeTransferFrom": "erc721.safeTransferFrom";
|
|
537
|
+
"erc1155.safeTransferFrom": "erc1155.safeTransferFrom";
|
|
538
|
+
"weth.deposit": "weth.deposit";
|
|
539
|
+
"weth.withdraw": "weth.withdraw";
|
|
540
|
+
multicall: "multicall";
|
|
541
|
+
}>;
|
|
542
|
+
selector: z.ZodNullable<z.ZodString>;
|
|
543
|
+
signature: z.ZodNullable<z.ZodString>;
|
|
544
|
+
arguments: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
|
|
545
|
+
notes: z.ZodArray<z.ZodString>;
|
|
546
|
+
}, z.core.$strict>>;
|
|
547
|
+
target: z.ZodObject<{
|
|
548
|
+
address: z.ZodNullable<z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>>;
|
|
549
|
+
codePresent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
550
|
+
status: z.ZodLiteral<"observed">;
|
|
551
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
552
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
553
|
+
note: z.ZodOptional<z.ZodString>;
|
|
554
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
555
|
+
status: z.ZodEnum<{
|
|
556
|
+
error: "error";
|
|
557
|
+
unknown: "unknown";
|
|
558
|
+
unsupported: "unsupported";
|
|
559
|
+
"not-detected": "not-detected";
|
|
560
|
+
"not-applicable": "not-applicable";
|
|
561
|
+
}>;
|
|
562
|
+
reason: z.ZodString;
|
|
563
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
564
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
565
|
+
status: z.ZodLiteral<"skipped">;
|
|
566
|
+
reason: z.ZodString;
|
|
567
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
568
|
+
}, z.core.$strict>], "status">;
|
|
569
|
+
codeHash: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
570
|
+
status: z.ZodLiteral<"observed">;
|
|
571
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
572
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
573
|
+
note: z.ZodOptional<z.ZodString>;
|
|
574
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
575
|
+
status: z.ZodEnum<{
|
|
576
|
+
error: "error";
|
|
577
|
+
unknown: "unknown";
|
|
578
|
+
unsupported: "unsupported";
|
|
579
|
+
"not-detected": "not-detected";
|
|
580
|
+
"not-applicable": "not-applicable";
|
|
581
|
+
}>;
|
|
582
|
+
reason: z.ZodString;
|
|
583
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
584
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
585
|
+
status: z.ZodLiteral<"skipped">;
|
|
586
|
+
reason: z.ZodString;
|
|
587
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
588
|
+
}, z.core.$strict>], "status">;
|
|
589
|
+
implementation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
590
|
+
status: z.ZodLiteral<"observed">;
|
|
591
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
592
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
593
|
+
note: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
595
|
+
status: z.ZodEnum<{
|
|
596
|
+
error: "error";
|
|
597
|
+
unknown: "unknown";
|
|
598
|
+
unsupported: "unsupported";
|
|
599
|
+
"not-detected": "not-detected";
|
|
600
|
+
"not-applicable": "not-applicable";
|
|
601
|
+
}>;
|
|
602
|
+
reason: z.ZodString;
|
|
603
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
604
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
605
|
+
status: z.ZodLiteral<"skipped">;
|
|
606
|
+
reason: z.ZodString;
|
|
607
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
608
|
+
}, z.core.$strict>], "status">;
|
|
609
|
+
admin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
610
|
+
status: z.ZodLiteral<"observed">;
|
|
611
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
612
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
613
|
+
note: z.ZodOptional<z.ZodString>;
|
|
614
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
615
|
+
status: z.ZodEnum<{
|
|
616
|
+
error: "error";
|
|
617
|
+
unknown: "unknown";
|
|
618
|
+
unsupported: "unsupported";
|
|
619
|
+
"not-detected": "not-detected";
|
|
620
|
+
"not-applicable": "not-applicable";
|
|
621
|
+
}>;
|
|
622
|
+
reason: z.ZodString;
|
|
623
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
624
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
625
|
+
status: z.ZodLiteral<"skipped">;
|
|
626
|
+
reason: z.ZodString;
|
|
627
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
628
|
+
}, z.core.$strict>], "status">;
|
|
629
|
+
beacon: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
630
|
+
status: z.ZodLiteral<"observed">;
|
|
631
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
632
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
633
|
+
note: z.ZodOptional<z.ZodString>;
|
|
634
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
635
|
+
status: z.ZodEnum<{
|
|
636
|
+
error: "error";
|
|
637
|
+
unknown: "unknown";
|
|
638
|
+
unsupported: "unsupported";
|
|
639
|
+
"not-detected": "not-detected";
|
|
640
|
+
"not-applicable": "not-applicable";
|
|
641
|
+
}>;
|
|
642
|
+
reason: z.ZodString;
|
|
643
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
644
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
645
|
+
status: z.ZodLiteral<"skipped">;
|
|
646
|
+
reason: z.ZodString;
|
|
647
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
648
|
+
}, z.core.$strict>], "status">;
|
|
649
|
+
tokenName: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
650
|
+
status: z.ZodLiteral<"observed">;
|
|
651
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
652
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
653
|
+
note: z.ZodOptional<z.ZodString>;
|
|
654
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
655
|
+
status: z.ZodEnum<{
|
|
656
|
+
error: "error";
|
|
657
|
+
unknown: "unknown";
|
|
658
|
+
unsupported: "unsupported";
|
|
659
|
+
"not-detected": "not-detected";
|
|
660
|
+
"not-applicable": "not-applicable";
|
|
661
|
+
}>;
|
|
662
|
+
reason: z.ZodString;
|
|
663
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
664
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
665
|
+
status: z.ZodLiteral<"skipped">;
|
|
666
|
+
reason: z.ZodString;
|
|
667
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
668
|
+
}, z.core.$strict>], "status">;
|
|
669
|
+
tokenSymbol: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
670
|
+
status: z.ZodLiteral<"observed">;
|
|
671
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
672
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
673
|
+
note: z.ZodOptional<z.ZodString>;
|
|
674
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
675
|
+
status: z.ZodEnum<{
|
|
676
|
+
error: "error";
|
|
677
|
+
unknown: "unknown";
|
|
678
|
+
unsupported: "unsupported";
|
|
679
|
+
"not-detected": "not-detected";
|
|
680
|
+
"not-applicable": "not-applicable";
|
|
681
|
+
}>;
|
|
682
|
+
reason: z.ZodString;
|
|
683
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
684
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
685
|
+
status: z.ZodLiteral<"skipped">;
|
|
686
|
+
reason: z.ZodString;
|
|
687
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
688
|
+
}, z.core.$strict>], "status">;
|
|
689
|
+
tokenDecimals: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
690
|
+
status: z.ZodLiteral<"observed">;
|
|
691
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
692
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
693
|
+
note: z.ZodOptional<z.ZodString>;
|
|
694
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
695
|
+
status: z.ZodEnum<{
|
|
696
|
+
error: "error";
|
|
697
|
+
unknown: "unknown";
|
|
698
|
+
unsupported: "unsupported";
|
|
699
|
+
"not-detected": "not-detected";
|
|
700
|
+
"not-applicable": "not-applicable";
|
|
701
|
+
}>;
|
|
702
|
+
reason: z.ZodString;
|
|
703
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
704
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
705
|
+
status: z.ZodLiteral<"skipped">;
|
|
706
|
+
reason: z.ZodString;
|
|
707
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
708
|
+
}, z.core.$strict>], "status">;
|
|
709
|
+
}, z.core.$strict>;
|
|
710
|
+
grantees: z.ZodArray<z.ZodObject<{
|
|
711
|
+
address: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
|
|
712
|
+
owner: z.ZodString & z.ZodType<`0x${string}`, string, z.core.$ZodTypeInternals<`0x${string}`, string>>;
|
|
713
|
+
role: z.ZodEnum<{
|
|
714
|
+
operator: "operator";
|
|
715
|
+
spender: "spender";
|
|
716
|
+
}>;
|
|
717
|
+
actionPaths: z.ZodArray<z.ZodString>;
|
|
718
|
+
codePresent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
719
|
+
status: z.ZodLiteral<"observed">;
|
|
720
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
721
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
722
|
+
note: z.ZodOptional<z.ZodString>;
|
|
723
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
724
|
+
status: z.ZodEnum<{
|
|
725
|
+
error: "error";
|
|
726
|
+
unknown: "unknown";
|
|
727
|
+
unsupported: "unsupported";
|
|
728
|
+
"not-detected": "not-detected";
|
|
729
|
+
"not-applicable": "not-applicable";
|
|
730
|
+
}>;
|
|
731
|
+
reason: z.ZodString;
|
|
732
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
733
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
734
|
+
status: z.ZodLiteral<"skipped">;
|
|
735
|
+
reason: z.ZodString;
|
|
736
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
737
|
+
}, z.core.$strict>], "status">;
|
|
738
|
+
currentAllowance: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
739
|
+
status: z.ZodLiteral<"observed">;
|
|
740
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
741
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
742
|
+
note: z.ZodOptional<z.ZodString>;
|
|
743
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
744
|
+
status: z.ZodEnum<{
|
|
745
|
+
error: "error";
|
|
746
|
+
unknown: "unknown";
|
|
747
|
+
unsupported: "unsupported";
|
|
748
|
+
"not-detected": "not-detected";
|
|
749
|
+
"not-applicable": "not-applicable";
|
|
750
|
+
}>;
|
|
751
|
+
reason: z.ZodString;
|
|
752
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
753
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
754
|
+
status: z.ZodLiteral<"skipped">;
|
|
755
|
+
reason: z.ZodString;
|
|
756
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
757
|
+
}, z.core.$strict>], "status">;
|
|
758
|
+
}, z.core.$strict>>;
|
|
759
|
+
simulation: z.ZodObject<{
|
|
760
|
+
semantics: z.ZodLiteral<"eth_call-at-snapshot-not-asset-flow">;
|
|
761
|
+
call: z.ZodObject<{
|
|
762
|
+
status: z.ZodEnum<{
|
|
763
|
+
error: "error";
|
|
764
|
+
success: "success";
|
|
765
|
+
"not-run": "not-run";
|
|
766
|
+
reverted: "reverted";
|
|
767
|
+
"execution-error": "execution-error";
|
|
768
|
+
}>;
|
|
769
|
+
reason: z.ZodString;
|
|
770
|
+
returnData: z.ZodNullable<z.ZodString>;
|
|
771
|
+
returnDataBytes: z.ZodNullable<z.ZodNumber>;
|
|
772
|
+
returnDataHash: z.ZodNullable<z.ZodString>;
|
|
773
|
+
revertData: z.ZodNullable<z.ZodString>;
|
|
774
|
+
revertReason: z.ZodNullable<z.ZodString>;
|
|
775
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
776
|
+
}, z.core.$strict>;
|
|
777
|
+
gasEstimate: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
778
|
+
status: z.ZodLiteral<"observed">;
|
|
779
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
780
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
781
|
+
note: z.ZodOptional<z.ZodString>;
|
|
782
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
783
|
+
status: z.ZodEnum<{
|
|
784
|
+
error: "error";
|
|
785
|
+
unknown: "unknown";
|
|
786
|
+
unsupported: "unsupported";
|
|
787
|
+
"not-detected": "not-detected";
|
|
788
|
+
"not-applicable": "not-applicable";
|
|
789
|
+
}>;
|
|
790
|
+
reason: z.ZodString;
|
|
791
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
792
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
793
|
+
status: z.ZodLiteral<"skipped">;
|
|
794
|
+
reason: z.ZodString;
|
|
795
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
796
|
+
}, z.core.$strict>], "status">;
|
|
797
|
+
balanceChanges: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
798
|
+
status: z.ZodLiteral<"observed">;
|
|
799
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
800
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
801
|
+
note: z.ZodOptional<z.ZodString>;
|
|
802
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
803
|
+
status: z.ZodEnum<{
|
|
804
|
+
error: "error";
|
|
805
|
+
unknown: "unknown";
|
|
806
|
+
unsupported: "unsupported";
|
|
807
|
+
"not-detected": "not-detected";
|
|
808
|
+
"not-applicable": "not-applicable";
|
|
809
|
+
}>;
|
|
810
|
+
reason: z.ZodString;
|
|
811
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
812
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
813
|
+
status: z.ZodLiteral<"skipped">;
|
|
814
|
+
reason: z.ZodString;
|
|
815
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
816
|
+
}, z.core.$strict>], "status">;
|
|
817
|
+
}, z.core.$strict>;
|
|
818
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
819
|
+
code: z.ZodEnum<{
|
|
820
|
+
"contract-creation": "contract-creation";
|
|
821
|
+
"unlimited-approval": "unlimited-approval";
|
|
822
|
+
"approval-grantee-without-code": "approval-grantee-without-code";
|
|
823
|
+
"operator-approval-granted": "operator-approval-granted";
|
|
824
|
+
"operator-grantee-without-code": "operator-grantee-without-code";
|
|
825
|
+
"native-value-sent": "native-value-sent";
|
|
826
|
+
"upgradeable-proxy-target": "upgradeable-proxy-target";
|
|
827
|
+
"target-without-code": "target-without-code";
|
|
828
|
+
"simulation-reverted": "simulation-reverted";
|
|
829
|
+
"unknown-action": "unknown-action";
|
|
830
|
+
"invalid-calldata": "invalid-calldata";
|
|
831
|
+
"decoding-bound-reached": "decoding-bound-reached";
|
|
832
|
+
}>;
|
|
833
|
+
message: z.ZodString;
|
|
834
|
+
actionPaths: z.ZodArray<z.ZodString>;
|
|
835
|
+
evidenceIds: z.ZodArray<z.ZodString>;
|
|
836
|
+
}, z.core.$strict>>;
|
|
837
|
+
limitations: z.ZodArray<z.ZodString>;
|
|
838
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
839
|
+
category: z.ZodEnum<{
|
|
840
|
+
"no-contract": "no-contract";
|
|
841
|
+
"provider-unavailable": "provider-unavailable";
|
|
842
|
+
"history-unavailable": "history-unavailable";
|
|
843
|
+
"rate-limited": "rate-limited";
|
|
844
|
+
timeout: "timeout";
|
|
845
|
+
cancelled: "cancelled";
|
|
846
|
+
unsupported: "unsupported";
|
|
847
|
+
"contract-reverted": "contract-reverted";
|
|
848
|
+
"invalid-response": "invalid-response";
|
|
849
|
+
"chain-mismatch": "chain-mismatch";
|
|
850
|
+
"snapshot-changed": "snapshot-changed";
|
|
851
|
+
"limit-exceeded": "limit-exceeded";
|
|
852
|
+
unconfigured: "unconfigured";
|
|
853
|
+
}>;
|
|
854
|
+
message: z.ZodString;
|
|
855
|
+
step: z.ZodString;
|
|
856
|
+
evidenceId: z.ZodOptional<z.ZodString>;
|
|
857
|
+
}, z.core.$strict>>;
|
|
858
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
859
|
+
id: z.ZodString;
|
|
860
|
+
tool: z.ZodLiteral<"evm.inspect-transaction@0.1.0">;
|
|
861
|
+
source: z.ZodObject<{
|
|
862
|
+
kind: z.ZodLiteral<"rpc">;
|
|
863
|
+
provider: z.ZodString;
|
|
864
|
+
method: z.ZodString;
|
|
865
|
+
documentationUrl: z.ZodURL;
|
|
866
|
+
}, z.core.$strict>;
|
|
867
|
+
chain: z.ZodEnum<{
|
|
868
|
+
ethereum: "ethereum";
|
|
869
|
+
base: "base";
|
|
870
|
+
robinhood: "robinhood";
|
|
871
|
+
}>;
|
|
872
|
+
chainId: z.ZodNumber;
|
|
873
|
+
request: z.ZodArray<z.ZodJSONSchema>;
|
|
874
|
+
snapshot: z.ZodNullable<z.ZodObject<{
|
|
875
|
+
blockNumber: z.ZodString;
|
|
876
|
+
blockHash: z.ZodString;
|
|
877
|
+
}, z.core.$strict>>;
|
|
878
|
+
observedAt: z.ZodISODateTime;
|
|
879
|
+
finality: z.ZodEnum<{
|
|
880
|
+
finalized: "finalized";
|
|
881
|
+
"sequencer-confirmed": "sequencer-confirmed";
|
|
882
|
+
unverified: "unverified";
|
|
883
|
+
}>;
|
|
884
|
+
canonicality: z.ZodEnum<{
|
|
885
|
+
"verified-at-completion": "verified-at-completion";
|
|
886
|
+
unchecked: "unchecked";
|
|
887
|
+
changed: "changed";
|
|
888
|
+
}>;
|
|
889
|
+
completeness: z.ZodEnum<{
|
|
890
|
+
error: "error";
|
|
891
|
+
"complete-for-request": "complete-for-request";
|
|
892
|
+
}>;
|
|
893
|
+
result: z.ZodJSONSchema;
|
|
894
|
+
contentHash: z.ZodString;
|
|
895
|
+
privacy: z.ZodLiteral<"public-chain-data">;
|
|
896
|
+
}, z.core.$strict>>;
|
|
897
|
+
usage: z.ZodObject<{
|
|
898
|
+
rpcCalls: z.ZodNumber;
|
|
899
|
+
maximumRpcCalls: z.ZodNumber;
|
|
900
|
+
elapsedMs: z.ZodNumber;
|
|
901
|
+
modelTokens: z.ZodLiteral<0>;
|
|
902
|
+
providerCostAtomic: z.ZodNull;
|
|
903
|
+
providerCostStatus: z.ZodLiteral<"unpriced">;
|
|
904
|
+
}, z.core.$strict>;
|
|
905
|
+
}, z.core.$strict>;
|
|
906
|
+
export type TransactionInspectionReport = z.infer<typeof TransactionInspectionReportSchema>;
|