agent0-sdk 0.2.1
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/LICENSE +21 -0
- package/README.md +234 -0
- package/dist/core/agent.d.ts +76 -0
- package/dist/core/agent.d.ts.map +1 -0
- package/dist/core/agent.js +477 -0
- package/dist/core/agent.js.map +1 -0
- package/dist/core/contracts.d.ts +688 -0
- package/dist/core/contracts.d.ts.map +1 -0
- package/dist/core/contracts.js +348 -0
- package/dist/core/contracts.js.map +1 -0
- package/dist/core/endpoint-crawler.d.ts +44 -0
- package/dist/core/endpoint-crawler.d.ts.map +1 -0
- package/dist/core/endpoint-crawler.js +280 -0
- package/dist/core/endpoint-crawler.js.map +1 -0
- package/dist/core/feedback-manager.d.ts +98 -0
- package/dist/core/feedback-manager.d.ts.map +1 -0
- package/dist/core/feedback-manager.js +543 -0
- package/dist/core/feedback-manager.js.map +1 -0
- package/dist/core/indexer.d.ts +37 -0
- package/dist/core/indexer.d.ts.map +1 -0
- package/dist/core/indexer.js +189 -0
- package/dist/core/indexer.js.map +1 -0
- package/dist/core/ipfs-client.d.ts +88 -0
- package/dist/core/ipfs-client.d.ts.map +1 -0
- package/dist/core/ipfs-client.js +334 -0
- package/dist/core/ipfs-client.js.map +1 -0
- package/dist/core/sdk.d.ts +177 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +544 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/subgraph-client.d.ts +68 -0
- package/dist/core/subgraph-client.d.ts.map +1 -0
- package/dist/core/subgraph-client.js +635 -0
- package/dist/core/subgraph-client.js.map +1 -0
- package/dist/core/web3-client.d.ts +94 -0
- package/dist/core/web3-client.d.ts.map +1 -0
- package/dist/core/web3-client.js +197 -0
- package/dist/core/web3-client.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/enums.d.ts +22 -0
- package/dist/models/enums.d.ts.map +1 -0
- package/dist/models/enums.js +24 -0
- package/dist/models/enums.js.map +1 -0
- package/dist/models/generated/subgraph-types.d.ts +208 -0
- package/dist/models/generated/subgraph-types.d.ts.map +1 -0
- package/dist/models/generated/subgraph-types.js +2 -0
- package/dist/models/generated/subgraph-types.js.map +1 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +8 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/interfaces.d.ts +125 -0
- package/dist/models/interfaces.d.ts.map +1 -0
- package/dist/models/interfaces.js +5 -0
- package/dist/models/interfaces.js.map +1 -0
- package/dist/models/types.d.ts +11 -0
- package/dist/models/types.d.ts.map +1 -0
- package/dist/models/types.js +5 -0
- package/dist/models/types.js.map +1 -0
- package/dist/utils/constants.d.ts +24 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +28 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/id-format.d.ts +30 -0
- package/dist/utils/id-format.d.ts.map +1 -0
- package/dist/utils/id-format.js +67 -0
- package/dist/utils/id-format.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/validation.d.ts +25 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +61 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +71 -0
|
@@ -0,0 +1,688 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart contract ABIs and interfaces for ERC-8004
|
|
3
|
+
*/
|
|
4
|
+
import type { ChainId } from '../models/types';
|
|
5
|
+
export declare const ERC721_ABI: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "uint256";
|
|
8
|
+
readonly name: "tokenId";
|
|
9
|
+
readonly type: "uint256";
|
|
10
|
+
}];
|
|
11
|
+
readonly name: "ownerOf";
|
|
12
|
+
readonly outputs: readonly [{
|
|
13
|
+
readonly internalType: "address";
|
|
14
|
+
readonly name: "";
|
|
15
|
+
readonly type: "address";
|
|
16
|
+
}];
|
|
17
|
+
readonly stateMutability: "view";
|
|
18
|
+
readonly type: "function";
|
|
19
|
+
}, {
|
|
20
|
+
readonly inputs: readonly [{
|
|
21
|
+
readonly internalType: "address";
|
|
22
|
+
readonly name: "owner";
|
|
23
|
+
readonly type: "address";
|
|
24
|
+
}, {
|
|
25
|
+
readonly internalType: "address";
|
|
26
|
+
readonly name: "operator";
|
|
27
|
+
readonly type: "address";
|
|
28
|
+
}];
|
|
29
|
+
readonly name: "isApprovedForAll";
|
|
30
|
+
readonly outputs: readonly [{
|
|
31
|
+
readonly internalType: "bool";
|
|
32
|
+
readonly name: "";
|
|
33
|
+
readonly type: "bool";
|
|
34
|
+
}];
|
|
35
|
+
readonly stateMutability: "view";
|
|
36
|
+
readonly type: "function";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [{
|
|
39
|
+
readonly internalType: "uint256";
|
|
40
|
+
readonly name: "tokenId";
|
|
41
|
+
readonly type: "uint256";
|
|
42
|
+
}];
|
|
43
|
+
readonly name: "getApproved";
|
|
44
|
+
readonly outputs: readonly [{
|
|
45
|
+
readonly internalType: "address";
|
|
46
|
+
readonly name: "";
|
|
47
|
+
readonly type: "address";
|
|
48
|
+
}];
|
|
49
|
+
readonly stateMutability: "view";
|
|
50
|
+
readonly type: "function";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly internalType: "address";
|
|
54
|
+
readonly name: "from";
|
|
55
|
+
readonly type: "address";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "address";
|
|
58
|
+
readonly name: "to";
|
|
59
|
+
readonly type: "address";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "uint256";
|
|
62
|
+
readonly name: "tokenId";
|
|
63
|
+
readonly type: "uint256";
|
|
64
|
+
}];
|
|
65
|
+
readonly name: "transferFrom";
|
|
66
|
+
readonly outputs: readonly [];
|
|
67
|
+
readonly stateMutability: "nonpayable";
|
|
68
|
+
readonly type: "function";
|
|
69
|
+
}, {
|
|
70
|
+
readonly inputs: readonly [{
|
|
71
|
+
readonly internalType: "address";
|
|
72
|
+
readonly name: "to";
|
|
73
|
+
readonly type: "address";
|
|
74
|
+
}, {
|
|
75
|
+
readonly internalType: "bool";
|
|
76
|
+
readonly name: "approved";
|
|
77
|
+
readonly type: "bool";
|
|
78
|
+
}];
|
|
79
|
+
readonly name: "setApprovalForAll";
|
|
80
|
+
readonly outputs: readonly [];
|
|
81
|
+
readonly stateMutability: "nonpayable";
|
|
82
|
+
readonly type: "function";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [{
|
|
85
|
+
readonly internalType: "uint256";
|
|
86
|
+
readonly name: "tokenId";
|
|
87
|
+
readonly type: "uint256";
|
|
88
|
+
}, {
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
readonly name: "to";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}];
|
|
93
|
+
readonly name: "approve";
|
|
94
|
+
readonly outputs: readonly [];
|
|
95
|
+
readonly stateMutability: "nonpayable";
|
|
96
|
+
readonly type: "function";
|
|
97
|
+
}];
|
|
98
|
+
export declare const ERC721_URI_STORAGE_ABI: readonly [{
|
|
99
|
+
readonly inputs: readonly [{
|
|
100
|
+
readonly internalType: "uint256";
|
|
101
|
+
readonly name: "tokenId";
|
|
102
|
+
readonly type: "uint256";
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "tokenURI";
|
|
105
|
+
readonly outputs: readonly [{
|
|
106
|
+
readonly internalType: "string";
|
|
107
|
+
readonly name: "";
|
|
108
|
+
readonly type: "string";
|
|
109
|
+
}];
|
|
110
|
+
readonly stateMutability: "view";
|
|
111
|
+
readonly type: "function";
|
|
112
|
+
}, {
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly internalType: "uint256";
|
|
115
|
+
readonly name: "tokenId";
|
|
116
|
+
readonly type: "uint256";
|
|
117
|
+
}, {
|
|
118
|
+
readonly internalType: "string";
|
|
119
|
+
readonly name: "_tokenURI";
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "setTokenURI";
|
|
123
|
+
readonly outputs: readonly [];
|
|
124
|
+
readonly stateMutability: "nonpayable";
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
}];
|
|
127
|
+
export declare const IDENTITY_REGISTRY_ABI: readonly [{
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "tokenId";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}];
|
|
133
|
+
readonly name: "ownerOf";
|
|
134
|
+
readonly outputs: readonly [{
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
readonly name: "";
|
|
137
|
+
readonly type: "address";
|
|
138
|
+
}];
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
readonly type: "function";
|
|
141
|
+
}, {
|
|
142
|
+
readonly inputs: readonly [{
|
|
143
|
+
readonly internalType: "address";
|
|
144
|
+
readonly name: "owner";
|
|
145
|
+
readonly type: "address";
|
|
146
|
+
}, {
|
|
147
|
+
readonly internalType: "address";
|
|
148
|
+
readonly name: "operator";
|
|
149
|
+
readonly type: "address";
|
|
150
|
+
}];
|
|
151
|
+
readonly name: "isApprovedForAll";
|
|
152
|
+
readonly outputs: readonly [{
|
|
153
|
+
readonly internalType: "bool";
|
|
154
|
+
readonly name: "";
|
|
155
|
+
readonly type: "bool";
|
|
156
|
+
}];
|
|
157
|
+
readonly stateMutability: "view";
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
}, {
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly internalType: "uint256";
|
|
162
|
+
readonly name: "tokenId";
|
|
163
|
+
readonly type: "uint256";
|
|
164
|
+
}];
|
|
165
|
+
readonly name: "getApproved";
|
|
166
|
+
readonly outputs: readonly [{
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly name: "";
|
|
169
|
+
readonly type: "address";
|
|
170
|
+
}];
|
|
171
|
+
readonly stateMutability: "view";
|
|
172
|
+
readonly type: "function";
|
|
173
|
+
}, {
|
|
174
|
+
readonly inputs: readonly [{
|
|
175
|
+
readonly internalType: "address";
|
|
176
|
+
readonly name: "from";
|
|
177
|
+
readonly type: "address";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "address";
|
|
180
|
+
readonly name: "to";
|
|
181
|
+
readonly type: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "tokenId";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "transferFrom";
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
}, {
|
|
192
|
+
readonly inputs: readonly [{
|
|
193
|
+
readonly internalType: "address";
|
|
194
|
+
readonly name: "to";
|
|
195
|
+
readonly type: "address";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "bool";
|
|
198
|
+
readonly name: "approved";
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
}];
|
|
201
|
+
readonly name: "setApprovalForAll";
|
|
202
|
+
readonly outputs: readonly [];
|
|
203
|
+
readonly stateMutability: "nonpayable";
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
}, {
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
readonly name: "tokenId";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly internalType: "address";
|
|
212
|
+
readonly name: "to";
|
|
213
|
+
readonly type: "address";
|
|
214
|
+
}];
|
|
215
|
+
readonly name: "approve";
|
|
216
|
+
readonly outputs: readonly [];
|
|
217
|
+
readonly stateMutability: "nonpayable";
|
|
218
|
+
readonly type: "function";
|
|
219
|
+
}, {
|
|
220
|
+
readonly inputs: readonly [{
|
|
221
|
+
readonly internalType: "uint256";
|
|
222
|
+
readonly name: "tokenId";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}];
|
|
225
|
+
readonly name: "tokenURI";
|
|
226
|
+
readonly outputs: readonly [{
|
|
227
|
+
readonly internalType: "string";
|
|
228
|
+
readonly name: "";
|
|
229
|
+
readonly type: "string";
|
|
230
|
+
}];
|
|
231
|
+
readonly stateMutability: "view";
|
|
232
|
+
readonly type: "function";
|
|
233
|
+
}, {
|
|
234
|
+
readonly inputs: readonly [{
|
|
235
|
+
readonly internalType: "uint256";
|
|
236
|
+
readonly name: "tokenId";
|
|
237
|
+
readonly type: "uint256";
|
|
238
|
+
}, {
|
|
239
|
+
readonly internalType: "string";
|
|
240
|
+
readonly name: "_tokenURI";
|
|
241
|
+
readonly type: "string";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "setTokenURI";
|
|
244
|
+
readonly outputs: readonly [];
|
|
245
|
+
readonly stateMutability: "nonpayable";
|
|
246
|
+
readonly type: "function";
|
|
247
|
+
}, {
|
|
248
|
+
readonly inputs: readonly [];
|
|
249
|
+
readonly name: "register";
|
|
250
|
+
readonly outputs: readonly [{
|
|
251
|
+
readonly internalType: "uint256";
|
|
252
|
+
readonly name: "agentId";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
}];
|
|
255
|
+
readonly stateMutability: "nonpayable";
|
|
256
|
+
readonly type: "function";
|
|
257
|
+
}, {
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly internalType: "string";
|
|
260
|
+
readonly name: "tokenUri";
|
|
261
|
+
readonly type: "string";
|
|
262
|
+
}];
|
|
263
|
+
readonly name: "register";
|
|
264
|
+
readonly outputs: readonly [{
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
readonly name: "agentId";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}];
|
|
269
|
+
readonly stateMutability: "nonpayable";
|
|
270
|
+
readonly type: "function";
|
|
271
|
+
}, {
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly internalType: "string";
|
|
274
|
+
readonly name: "tokenUri";
|
|
275
|
+
readonly type: "string";
|
|
276
|
+
}, {
|
|
277
|
+
readonly components: readonly [{
|
|
278
|
+
readonly internalType: "string";
|
|
279
|
+
readonly name: "key";
|
|
280
|
+
readonly type: "string";
|
|
281
|
+
}, {
|
|
282
|
+
readonly internalType: "bytes";
|
|
283
|
+
readonly name: "value";
|
|
284
|
+
readonly type: "bytes";
|
|
285
|
+
}];
|
|
286
|
+
readonly internalType: "struct IdentityRegistry.MetadataEntry[]";
|
|
287
|
+
readonly name: "metadata";
|
|
288
|
+
readonly type: "tuple[]";
|
|
289
|
+
}];
|
|
290
|
+
readonly name: "register";
|
|
291
|
+
readonly outputs: readonly [{
|
|
292
|
+
readonly internalType: "uint256";
|
|
293
|
+
readonly name: "agentId";
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
}];
|
|
296
|
+
readonly stateMutability: "nonpayable";
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
}, {
|
|
299
|
+
readonly inputs: readonly [{
|
|
300
|
+
readonly internalType: "uint256";
|
|
301
|
+
readonly name: "agentId";
|
|
302
|
+
readonly type: "uint256";
|
|
303
|
+
}, {
|
|
304
|
+
readonly internalType: "string";
|
|
305
|
+
readonly name: "key";
|
|
306
|
+
readonly type: "string";
|
|
307
|
+
}];
|
|
308
|
+
readonly name: "getMetadata";
|
|
309
|
+
readonly outputs: readonly [{
|
|
310
|
+
readonly internalType: "bytes";
|
|
311
|
+
readonly name: "";
|
|
312
|
+
readonly type: "bytes";
|
|
313
|
+
}];
|
|
314
|
+
readonly stateMutability: "view";
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
}, {
|
|
317
|
+
readonly inputs: readonly [{
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
readonly name: "agentId";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
}, {
|
|
322
|
+
readonly internalType: "string";
|
|
323
|
+
readonly name: "key";
|
|
324
|
+
readonly type: "string";
|
|
325
|
+
}, {
|
|
326
|
+
readonly internalType: "bytes";
|
|
327
|
+
readonly name: "value";
|
|
328
|
+
readonly type: "bytes";
|
|
329
|
+
}];
|
|
330
|
+
readonly name: "setMetadata";
|
|
331
|
+
readonly outputs: readonly [];
|
|
332
|
+
readonly stateMutability: "nonpayable";
|
|
333
|
+
readonly type: "function";
|
|
334
|
+
}, {
|
|
335
|
+
readonly inputs: readonly [{
|
|
336
|
+
readonly internalType: "uint256";
|
|
337
|
+
readonly name: "agentId";
|
|
338
|
+
readonly type: "uint256";
|
|
339
|
+
}, {
|
|
340
|
+
readonly internalType: "string";
|
|
341
|
+
readonly name: "newUri";
|
|
342
|
+
readonly type: "string";
|
|
343
|
+
}];
|
|
344
|
+
readonly name: "setAgentUri";
|
|
345
|
+
readonly outputs: readonly [];
|
|
346
|
+
readonly stateMutability: "nonpayable";
|
|
347
|
+
readonly type: "function";
|
|
348
|
+
}, {
|
|
349
|
+
readonly anonymous: false;
|
|
350
|
+
readonly inputs: readonly [{
|
|
351
|
+
readonly indexed: true;
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
readonly name: "agentId";
|
|
354
|
+
readonly type: "uint256";
|
|
355
|
+
}, {
|
|
356
|
+
readonly indexed: false;
|
|
357
|
+
readonly internalType: "string";
|
|
358
|
+
readonly name: "tokenURI";
|
|
359
|
+
readonly type: "string";
|
|
360
|
+
}, {
|
|
361
|
+
readonly indexed: true;
|
|
362
|
+
readonly internalType: "address";
|
|
363
|
+
readonly name: "owner";
|
|
364
|
+
readonly type: "address";
|
|
365
|
+
}];
|
|
366
|
+
readonly name: "Registered";
|
|
367
|
+
readonly type: "event";
|
|
368
|
+
}, {
|
|
369
|
+
readonly anonymous: false;
|
|
370
|
+
readonly inputs: readonly [{
|
|
371
|
+
readonly indexed: true;
|
|
372
|
+
readonly internalType: "uint256";
|
|
373
|
+
readonly name: "agentId";
|
|
374
|
+
readonly type: "uint256";
|
|
375
|
+
}, {
|
|
376
|
+
readonly indexed: true;
|
|
377
|
+
readonly internalType: "string";
|
|
378
|
+
readonly name: "indexedKey";
|
|
379
|
+
readonly type: "string";
|
|
380
|
+
}, {
|
|
381
|
+
readonly indexed: false;
|
|
382
|
+
readonly internalType: "string";
|
|
383
|
+
readonly name: "key";
|
|
384
|
+
readonly type: "string";
|
|
385
|
+
}, {
|
|
386
|
+
readonly indexed: false;
|
|
387
|
+
readonly internalType: "bytes";
|
|
388
|
+
readonly name: "value";
|
|
389
|
+
readonly type: "bytes";
|
|
390
|
+
}];
|
|
391
|
+
readonly name: "MetadataSet";
|
|
392
|
+
readonly type: "event";
|
|
393
|
+
}];
|
|
394
|
+
export declare const REPUTATION_REGISTRY_ABI: readonly [{
|
|
395
|
+
readonly inputs: readonly [];
|
|
396
|
+
readonly name: "getIdentityRegistry";
|
|
397
|
+
readonly outputs: readonly [{
|
|
398
|
+
readonly internalType: "address";
|
|
399
|
+
readonly name: "";
|
|
400
|
+
readonly type: "address";
|
|
401
|
+
}];
|
|
402
|
+
readonly stateMutability: "view";
|
|
403
|
+
readonly type: "function";
|
|
404
|
+
}, {
|
|
405
|
+
readonly inputs: readonly [{
|
|
406
|
+
readonly internalType: "uint256";
|
|
407
|
+
readonly name: "agentId";
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
}, {
|
|
410
|
+
readonly internalType: "uint8";
|
|
411
|
+
readonly name: "score";
|
|
412
|
+
readonly type: "uint8";
|
|
413
|
+
}, {
|
|
414
|
+
readonly internalType: "bytes32";
|
|
415
|
+
readonly name: "tag1";
|
|
416
|
+
readonly type: "bytes32";
|
|
417
|
+
}, {
|
|
418
|
+
readonly internalType: "bytes32";
|
|
419
|
+
readonly name: "tag2";
|
|
420
|
+
readonly type: "bytes32";
|
|
421
|
+
}, {
|
|
422
|
+
readonly internalType: "string";
|
|
423
|
+
readonly name: "feedbackUri";
|
|
424
|
+
readonly type: "string";
|
|
425
|
+
}, {
|
|
426
|
+
readonly internalType: "bytes32";
|
|
427
|
+
readonly name: "feedbackHash";
|
|
428
|
+
readonly type: "bytes32";
|
|
429
|
+
}, {
|
|
430
|
+
readonly internalType: "bytes";
|
|
431
|
+
readonly name: "feedbackAuth";
|
|
432
|
+
readonly type: "bytes";
|
|
433
|
+
}];
|
|
434
|
+
readonly name: "giveFeedback";
|
|
435
|
+
readonly outputs: readonly [];
|
|
436
|
+
readonly stateMutability: "nonpayable";
|
|
437
|
+
readonly type: "function";
|
|
438
|
+
}, {
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly internalType: "uint256";
|
|
441
|
+
readonly name: "agentId";
|
|
442
|
+
readonly type: "uint256";
|
|
443
|
+
}, {
|
|
444
|
+
readonly internalType: "uint64";
|
|
445
|
+
readonly name: "feedbackIndex";
|
|
446
|
+
readonly type: "uint64";
|
|
447
|
+
}];
|
|
448
|
+
readonly name: "revokeFeedback";
|
|
449
|
+
readonly outputs: readonly [];
|
|
450
|
+
readonly stateMutability: "nonpayable";
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
}, {
|
|
453
|
+
readonly inputs: readonly [{
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
readonly name: "agentId";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
}, {
|
|
458
|
+
readonly internalType: "address";
|
|
459
|
+
readonly name: "clientAddress";
|
|
460
|
+
readonly type: "address";
|
|
461
|
+
}, {
|
|
462
|
+
readonly internalType: "uint64";
|
|
463
|
+
readonly name: "feedbackIndex";
|
|
464
|
+
readonly type: "uint64";
|
|
465
|
+
}, {
|
|
466
|
+
readonly internalType: "string";
|
|
467
|
+
readonly name: "responseUri";
|
|
468
|
+
readonly type: "string";
|
|
469
|
+
}, {
|
|
470
|
+
readonly internalType: "bytes32";
|
|
471
|
+
readonly name: "responseHash";
|
|
472
|
+
readonly type: "bytes32";
|
|
473
|
+
}];
|
|
474
|
+
readonly name: "appendResponse";
|
|
475
|
+
readonly outputs: readonly [];
|
|
476
|
+
readonly stateMutability: "nonpayable";
|
|
477
|
+
readonly type: "function";
|
|
478
|
+
}, {
|
|
479
|
+
readonly inputs: readonly [{
|
|
480
|
+
readonly internalType: "uint256";
|
|
481
|
+
readonly name: "agentId";
|
|
482
|
+
readonly type: "uint256";
|
|
483
|
+
}, {
|
|
484
|
+
readonly internalType: "address";
|
|
485
|
+
readonly name: "clientAddress";
|
|
486
|
+
readonly type: "address";
|
|
487
|
+
}];
|
|
488
|
+
readonly name: "getLastIndex";
|
|
489
|
+
readonly outputs: readonly [{
|
|
490
|
+
readonly internalType: "uint64";
|
|
491
|
+
readonly name: "";
|
|
492
|
+
readonly type: "uint64";
|
|
493
|
+
}];
|
|
494
|
+
readonly stateMutability: "view";
|
|
495
|
+
readonly type: "function";
|
|
496
|
+
}, {
|
|
497
|
+
readonly inputs: readonly [{
|
|
498
|
+
readonly internalType: "uint256";
|
|
499
|
+
readonly name: "agentId";
|
|
500
|
+
readonly type: "uint256";
|
|
501
|
+
}, {
|
|
502
|
+
readonly internalType: "address";
|
|
503
|
+
readonly name: "clientAddress";
|
|
504
|
+
readonly type: "address";
|
|
505
|
+
}, {
|
|
506
|
+
readonly internalType: "uint64";
|
|
507
|
+
readonly name: "index";
|
|
508
|
+
readonly type: "uint64";
|
|
509
|
+
}];
|
|
510
|
+
readonly name: "readFeedback";
|
|
511
|
+
readonly outputs: readonly [{
|
|
512
|
+
readonly internalType: "uint8";
|
|
513
|
+
readonly name: "score";
|
|
514
|
+
readonly type: "uint8";
|
|
515
|
+
}, {
|
|
516
|
+
readonly internalType: "bytes32";
|
|
517
|
+
readonly name: "tag1";
|
|
518
|
+
readonly type: "bytes32";
|
|
519
|
+
}, {
|
|
520
|
+
readonly internalType: "bytes32";
|
|
521
|
+
readonly name: "tag2";
|
|
522
|
+
readonly type: "bytes32";
|
|
523
|
+
}, {
|
|
524
|
+
readonly internalType: "bool";
|
|
525
|
+
readonly name: "isRevoked";
|
|
526
|
+
readonly type: "bool";
|
|
527
|
+
}];
|
|
528
|
+
readonly stateMutability: "view";
|
|
529
|
+
readonly type: "function";
|
|
530
|
+
}, {
|
|
531
|
+
readonly inputs: readonly [{
|
|
532
|
+
readonly internalType: "uint256";
|
|
533
|
+
readonly name: "agentId";
|
|
534
|
+
readonly type: "uint256";
|
|
535
|
+
}, {
|
|
536
|
+
readonly internalType: "address[]";
|
|
537
|
+
readonly name: "clientAddresses";
|
|
538
|
+
readonly type: "address[]";
|
|
539
|
+
}, {
|
|
540
|
+
readonly internalType: "bytes32";
|
|
541
|
+
readonly name: "tag1";
|
|
542
|
+
readonly type: "bytes32";
|
|
543
|
+
}, {
|
|
544
|
+
readonly internalType: "bytes32";
|
|
545
|
+
readonly name: "tag2";
|
|
546
|
+
readonly type: "bytes32";
|
|
547
|
+
}];
|
|
548
|
+
readonly name: "getSummary";
|
|
549
|
+
readonly outputs: readonly [{
|
|
550
|
+
readonly internalType: "uint64";
|
|
551
|
+
readonly name: "count";
|
|
552
|
+
readonly type: "uint64";
|
|
553
|
+
}, {
|
|
554
|
+
readonly internalType: "uint8";
|
|
555
|
+
readonly name: "averageScore";
|
|
556
|
+
readonly type: "uint8";
|
|
557
|
+
}];
|
|
558
|
+
readonly stateMutability: "view";
|
|
559
|
+
readonly type: "function";
|
|
560
|
+
}, {
|
|
561
|
+
readonly anonymous: false;
|
|
562
|
+
readonly inputs: readonly [{
|
|
563
|
+
readonly indexed: true;
|
|
564
|
+
readonly internalType: "uint256";
|
|
565
|
+
readonly name: "agentId";
|
|
566
|
+
readonly type: "uint256";
|
|
567
|
+
}, {
|
|
568
|
+
readonly indexed: true;
|
|
569
|
+
readonly internalType: "address";
|
|
570
|
+
readonly name: "clientAddress";
|
|
571
|
+
readonly type: "address";
|
|
572
|
+
}, {
|
|
573
|
+
readonly indexed: false;
|
|
574
|
+
readonly internalType: "uint8";
|
|
575
|
+
readonly name: "score";
|
|
576
|
+
readonly type: "uint8";
|
|
577
|
+
}, {
|
|
578
|
+
readonly indexed: true;
|
|
579
|
+
readonly internalType: "bytes32";
|
|
580
|
+
readonly name: "tag1";
|
|
581
|
+
readonly type: "bytes32";
|
|
582
|
+
}, {
|
|
583
|
+
readonly indexed: false;
|
|
584
|
+
readonly internalType: "bytes32";
|
|
585
|
+
readonly name: "tag2";
|
|
586
|
+
readonly type: "bytes32";
|
|
587
|
+
}, {
|
|
588
|
+
readonly indexed: false;
|
|
589
|
+
readonly internalType: "string";
|
|
590
|
+
readonly name: "feedbackUri";
|
|
591
|
+
readonly type: "string";
|
|
592
|
+
}, {
|
|
593
|
+
readonly indexed: false;
|
|
594
|
+
readonly internalType: "bytes32";
|
|
595
|
+
readonly name: "feedbackHash";
|
|
596
|
+
readonly type: "bytes32";
|
|
597
|
+
}];
|
|
598
|
+
readonly name: "NewFeedback";
|
|
599
|
+
readonly type: "event";
|
|
600
|
+
}, {
|
|
601
|
+
readonly anonymous: false;
|
|
602
|
+
readonly inputs: readonly [{
|
|
603
|
+
readonly indexed: true;
|
|
604
|
+
readonly internalType: "uint256";
|
|
605
|
+
readonly name: "agentId";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
}, {
|
|
608
|
+
readonly indexed: true;
|
|
609
|
+
readonly internalType: "address";
|
|
610
|
+
readonly name: "clientAddress";
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
}, {
|
|
613
|
+
readonly indexed: true;
|
|
614
|
+
readonly internalType: "uint64";
|
|
615
|
+
readonly name: "feedbackIndex";
|
|
616
|
+
readonly type: "uint64";
|
|
617
|
+
}];
|
|
618
|
+
readonly name: "FeedbackRevoked";
|
|
619
|
+
readonly type: "event";
|
|
620
|
+
}];
|
|
621
|
+
export declare const VALIDATION_REGISTRY_ABI: readonly [{
|
|
622
|
+
readonly inputs: readonly [];
|
|
623
|
+
readonly name: "getIdentityRegistry";
|
|
624
|
+
readonly outputs: readonly [{
|
|
625
|
+
readonly internalType: "address";
|
|
626
|
+
readonly name: "";
|
|
627
|
+
readonly type: "address";
|
|
628
|
+
}];
|
|
629
|
+
readonly stateMutability: "view";
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
}, {
|
|
632
|
+
readonly inputs: readonly [{
|
|
633
|
+
readonly internalType: "address";
|
|
634
|
+
readonly name: "validatorAddress";
|
|
635
|
+
readonly type: "address";
|
|
636
|
+
}, {
|
|
637
|
+
readonly internalType: "uint256";
|
|
638
|
+
readonly name: "agentId";
|
|
639
|
+
readonly type: "uint256";
|
|
640
|
+
}, {
|
|
641
|
+
readonly internalType: "string";
|
|
642
|
+
readonly name: "requestUri";
|
|
643
|
+
readonly type: "string";
|
|
644
|
+
}, {
|
|
645
|
+
readonly internalType: "bytes32";
|
|
646
|
+
readonly name: "requestHash";
|
|
647
|
+
readonly type: "bytes32";
|
|
648
|
+
}];
|
|
649
|
+
readonly name: "validationRequest";
|
|
650
|
+
readonly outputs: readonly [];
|
|
651
|
+
readonly stateMutability: "nonpayable";
|
|
652
|
+
readonly type: "function";
|
|
653
|
+
}, {
|
|
654
|
+
readonly inputs: readonly [{
|
|
655
|
+
readonly internalType: "bytes32";
|
|
656
|
+
readonly name: "requestHash";
|
|
657
|
+
readonly type: "bytes32";
|
|
658
|
+
}, {
|
|
659
|
+
readonly internalType: "uint8";
|
|
660
|
+
readonly name: "response";
|
|
661
|
+
readonly type: "uint8";
|
|
662
|
+
}, {
|
|
663
|
+
readonly internalType: "string";
|
|
664
|
+
readonly name: "responseUri";
|
|
665
|
+
readonly type: "string";
|
|
666
|
+
}, {
|
|
667
|
+
readonly internalType: "bytes32";
|
|
668
|
+
readonly name: "responseHash";
|
|
669
|
+
readonly type: "bytes32";
|
|
670
|
+
}, {
|
|
671
|
+
readonly internalType: "bytes32";
|
|
672
|
+
readonly name: "tag";
|
|
673
|
+
readonly type: "bytes32";
|
|
674
|
+
}];
|
|
675
|
+
readonly name: "validationResponse";
|
|
676
|
+
readonly outputs: readonly [];
|
|
677
|
+
readonly stateMutability: "nonpayable";
|
|
678
|
+
readonly type: "function";
|
|
679
|
+
}];
|
|
680
|
+
/**
|
|
681
|
+
* Contract registry for different chains
|
|
682
|
+
*/
|
|
683
|
+
export declare const DEFAULT_REGISTRIES: Record<ChainId, Record<string, string>>;
|
|
684
|
+
/**
|
|
685
|
+
* Default subgraph URLs for different chains
|
|
686
|
+
*/
|
|
687
|
+
export declare const DEFAULT_SUBGRAPH_URLS: Record<ChainId, string>;
|
|
688
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/core/contracts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwDb,CAAC;AAGX,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBzB,CAAC;AAGX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuFxB,CAAC;AAGX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+G1B,CAAC;AAGX,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiC1B,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAmBtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAGzD,CAAC"}
|