@0gfoundation/0g-agentdna 0.0.0-stage → 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/GUIDE.md +975 -0
- package/LICENSE +21 -0
- package/MIGRATION.md +84 -0
- package/MIGRATION.zh.md +70 -0
- package/PROVIDERS.md +273 -0
- package/PROVIDERS.zh.md +234 -0
- package/README.md +334 -2
- package/dist/AgentClient.d.ts +312 -0
- package/dist/AgentClient.d.ts.map +1 -0
- package/dist/AgentClient.js +715 -0
- package/dist/AgentClient.js.map +1 -0
- package/dist/AgenticID.d.ts +823 -0
- package/dist/AgenticID.d.ts.map +1 -0
- package/dist/AgenticID.js +1188 -0
- package/dist/AgenticID.js.map +1 -0
- package/dist/AgenticIDClient.d.ts +68 -0
- package/dist/AgenticIDClient.d.ts.map +1 -0
- package/dist/AgenticIDClient.js +198 -0
- package/dist/AgenticIDClient.js.map +1 -0
- package/dist/AttestorClient.d.ts +465 -0
- package/dist/AttestorClient.d.ts.map +1 -0
- package/dist/AttestorClient.js +1030 -0
- package/dist/AttestorClient.js.map +1 -0
- package/dist/Providers.d.ts +72 -0
- package/dist/Providers.d.ts.map +1 -0
- package/dist/Providers.js +182 -0
- package/dist/Providers.js.map +1 -0
- package/dist/ReputationClient.d.ts +213 -0
- package/dist/ReputationClient.d.ts.map +1 -0
- package/dist/ReputationClient.js +708 -0
- package/dist/ReputationClient.js.map +1 -0
- package/dist/SandboxClient.d.ts +107 -0
- package/dist/SandboxClient.d.ts.map +1 -0
- package/dist/SandboxClient.js +200 -0
- package/dist/SandboxClient.js.map +1 -0
- package/dist/ServeProof.d.ts +161 -0
- package/dist/ServeProof.d.ts.map +1 -0
- package/dist/ServeProof.js +230 -0
- package/dist/ServeProof.js.map +1 -0
- package/dist/ServeSession.d.ts +180 -0
- package/dist/ServeSession.d.ts.map +1 -0
- package/dist/ServeSession.js +336 -0
- package/dist/ServeSession.js.map +1 -0
- package/dist/Settings.d.ts +179 -0
- package/dist/Settings.d.ts.map +1 -0
- package/dist/Settings.js +247 -0
- package/dist/Settings.js.map +1 -0
- package/dist/abi.d.ts +2216 -0
- package/dist/abi.d.ts.map +1 -0
- package/dist/abi.js +1248 -0
- package/dist/abi.js.map +1 -0
- package/dist/cli/commands/cells.d.ts +62 -0
- package/dist/cli/commands/cells.d.ts.map +1 -0
- package/dist/cli/commands/cells.js +113 -0
- package/dist/cli/commands/cells.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +15 -0
- package/dist/cli/commands/doctor.d.ts.map +1 -0
- package/dist/cli/commands/doctor.js +236 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/interactive.d.ts +115 -0
- package/dist/cli/commands/interactive.d.ts.map +1 -0
- package/dist/cli/commands/interactive.js +3052 -0
- package/dist/cli/commands/interactive.js.map +1 -0
- package/dist/cli/commands/list.d.ts +31 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js +91 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/providers.d.ts +3 -0
- package/dist/cli/commands/providers.d.ts.map +1 -0
- package/dist/cli/commands/providers.js +21 -0
- package/dist/cli/commands/providers.js.map +1 -0
- package/dist/cli/commands/settings.d.ts +22 -0
- package/dist/cli/commands/settings.d.ts.map +1 -0
- package/dist/cli/commands/settings.js +188 -0
- package/dist/cli/commands/settings.js.map +1 -0
- package/dist/cli/commands/status.d.ts +16 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +148 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/update.d.ts +21 -0
- package/dist/cli/commands/update.d.ts.map +1 -0
- package/dist/cli/commands/update.js +95 -0
- package/dist/cli/commands/update.js.map +1 -0
- package/dist/cli/config.d.ts +73 -0
- package/dist/cli/config.d.ts.map +1 -0
- package/dist/cli/config.js +239 -0
- package/dist/cli/config.js.map +1 -0
- package/dist/cli/env.d.ts +36 -0
- package/dist/cli/env.d.ts.map +1 -0
- package/dist/cli/env.js +74 -0
- package/dist/cli/env.js.map +1 -0
- package/dist/cli/envelope.d.ts +33 -0
- package/dist/cli/envelope.d.ts.map +1 -0
- package/dist/cli/envelope.js +62 -0
- package/dist/cli/envelope.js.map +1 -0
- package/dist/cli/errors.d.ts +48 -0
- package/dist/cli/errors.d.ts.map +1 -0
- package/dist/cli/errors.js +81 -0
- package/dist/cli/errors.js.map +1 -0
- package/dist/cli/inference.d.ts +21 -0
- package/dist/cli/inference.d.ts.map +1 -0
- package/dist/cli/inference.js +60 -0
- package/dist/cli/inference.js.map +1 -0
- package/dist/cli/logo.d.ts +21 -0
- package/dist/cli/logo.d.ts.map +1 -0
- package/dist/cli/logo.js +131 -0
- package/dist/cli/logo.js.map +1 -0
- package/dist/cli/main.d.ts +14 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +223 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/proofs.d.ts +67 -0
- package/dist/cli/proofs.d.ts.map +1 -0
- package/dist/cli/proofs.js +133 -0
- package/dist/cli/proofs.js.map +1 -0
- package/dist/cli/ref.d.ts +39 -0
- package/dist/cli/ref.d.ts.map +1 -0
- package/dist/cli/ref.js +48 -0
- package/dist/cli/ref.js.map +1 -0
- package/dist/cli/sdk.d.ts +24 -0
- package/dist/cli/sdk.d.ts.map +1 -0
- package/dist/cli/sdk.js +65 -0
- package/dist/cli/sdk.js.map +1 -0
- package/dist/cli/settings.d.ts +66 -0
- package/dist/cli/settings.d.ts.map +1 -0
- package/dist/cli/settings.js +137 -0
- package/dist/cli/settings.js.map +1 -0
- package/dist/cli/tokenize.d.ts +61 -0
- package/dist/cli/tokenize.d.ts.map +1 -0
- package/dist/cli/tokenize.js +157 -0
- package/dist/cli/tokenize.js.map +1 -0
- package/dist/cli/types.d.ts +25 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.js +8 -0
- package/dist/cli/types.js.map +1 -0
- package/dist/constants.d.ts +107 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +74 -0
- package/dist/constants.js.map +1 -0
- package/dist/context.d.ts +108 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +64 -0
- package/dist/context.js.map +1 -0
- package/dist/index.d.ts +45 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +118 -0
- package/dist/index.js.map +1 -0
- package/dist/provider-catalog.json +23 -0
- package/dist/seal.d.ts +47 -0
- package/dist/seal.d.ts.map +1 -0
- package/dist/seal.js +145 -0
- package/dist/seal.js.map +1 -0
- package/dist/secretEnv.d.ts +119 -0
- package/dist/secretEnv.d.ts.map +1 -0
- package/dist/secretEnv.js +199 -0
- package/dist/secretEnv.js.map +1 -0
- package/dist/taskHash.d.ts +39 -0
- package/dist/taskHash.d.ts.map +1 -0
- package/dist/taskHash.js +119 -0
- package/dist/taskHash.js.map +1 -0
- package/dist/types.d.ts +336 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +19 -0
- package/dist/types.js.map +1 -0
- package/package.json +75 -4
- package/scripts/sync-providers.cjs +8 -0
- package/src/AgentClient.ts +897 -0
- package/src/AgenticID.ts +1382 -0
- package/src/AgenticIDClient.ts +238 -0
- package/src/AttestorClient.ts +1306 -0
- package/src/Providers.ts +176 -0
- package/src/ReputationClient.ts +821 -0
- package/src/SandboxClient.ts +227 -0
- package/src/ServeProof.ts +290 -0
- package/src/ServeSession.ts +421 -0
- package/src/Settings.ts +296 -0
- package/src/abi.ts +1282 -0
- package/src/cli/commands/cells.ts +107 -0
- package/src/cli/commands/doctor.ts +235 -0
- package/src/cli/commands/interactive.ts +2738 -0
- package/src/cli/commands/list.ts +95 -0
- package/src/cli/commands/providers.ts +16 -0
- package/src/cli/commands/settings.ts +197 -0
- package/src/cli/commands/status.ts +170 -0
- package/src/cli/commands/update.ts +86 -0
- package/src/cli/config.ts +225 -0
- package/src/cli/env.ts +90 -0
- package/src/cli/envelope.ts +57 -0
- package/src/cli/errors.ts +114 -0
- package/src/cli/inference.ts +57 -0
- package/src/cli/logo.ts +125 -0
- package/src/cli/main.ts +235 -0
- package/src/cli/proofs.ts +160 -0
- package/src/cli/ref.ts +58 -0
- package/src/cli/sdk.ts +65 -0
- package/src/cli/settings.ts +153 -0
- package/src/cli/tokenize.ts +131 -0
- package/src/cli/types.ts +27 -0
- package/src/constants.ts +106 -0
- package/src/context.ts +161 -0
- package/src/index.ts +129 -0
- package/src/provider-catalog.json +23 -0
- package/src/seal.ts +163 -0
- package/src/secretEnv.ts +250 -0
- package/src/taskHash.ts +100 -0
- package/src/types.ts +357 -0
package/dist/abi.d.ts
ADDED
|
@@ -0,0 +1,2216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file abi.ts
|
|
3
|
+
* @description Contract ABIs for the 0G AgenticID protocol, manually authored from Solidity source.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* ABI for the AgenticID contract.
|
|
7
|
+
* Inherits ERC-8004 and ERC-7857.
|
|
8
|
+
*/
|
|
9
|
+
export declare const agenticIDAbi: readonly [{
|
|
10
|
+
readonly type: "function";
|
|
11
|
+
readonly name: "register";
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
13
|
+
readonly inputs: readonly [{
|
|
14
|
+
readonly name: "agentURI";
|
|
15
|
+
readonly type: "string";
|
|
16
|
+
}, {
|
|
17
|
+
readonly name: "metadata";
|
|
18
|
+
readonly type: "tuple[]";
|
|
19
|
+
readonly components: readonly [{
|
|
20
|
+
readonly name: "metadataKey";
|
|
21
|
+
readonly type: "string";
|
|
22
|
+
}, {
|
|
23
|
+
readonly name: "metadataValue";
|
|
24
|
+
readonly type: "bytes";
|
|
25
|
+
}];
|
|
26
|
+
}, {
|
|
27
|
+
readonly name: "intelligentDatas";
|
|
28
|
+
readonly type: "tuple[]";
|
|
29
|
+
readonly components: readonly [{
|
|
30
|
+
readonly name: "dataDescription";
|
|
31
|
+
readonly type: "string";
|
|
32
|
+
}, {
|
|
33
|
+
readonly name: "dataHash";
|
|
34
|
+
readonly type: "bytes32";
|
|
35
|
+
}];
|
|
36
|
+
}, {
|
|
37
|
+
readonly name: "sealedKeys";
|
|
38
|
+
readonly type: "bytes[]";
|
|
39
|
+
}];
|
|
40
|
+
readonly outputs: readonly [{
|
|
41
|
+
readonly name: "agentId";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
}];
|
|
44
|
+
}, {
|
|
45
|
+
readonly type: "function";
|
|
46
|
+
readonly name: "registerWithSeal";
|
|
47
|
+
readonly stateMutability: "nonpayable";
|
|
48
|
+
readonly inputs: readonly [{
|
|
49
|
+
readonly name: "to";
|
|
50
|
+
readonly type: "address";
|
|
51
|
+
}, {
|
|
52
|
+
readonly name: "agentURI";
|
|
53
|
+
readonly type: "string";
|
|
54
|
+
}, {
|
|
55
|
+
readonly name: "metadata";
|
|
56
|
+
readonly type: "tuple[]";
|
|
57
|
+
readonly components: readonly [{
|
|
58
|
+
readonly name: "metadataKey";
|
|
59
|
+
readonly type: "string";
|
|
60
|
+
}, {
|
|
61
|
+
readonly name: "metadataValue";
|
|
62
|
+
readonly type: "bytes";
|
|
63
|
+
}];
|
|
64
|
+
}, {
|
|
65
|
+
readonly name: "intelligentDatas";
|
|
66
|
+
readonly type: "tuple[]";
|
|
67
|
+
readonly components: readonly [{
|
|
68
|
+
readonly name: "dataDescription";
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
}, {
|
|
71
|
+
readonly name: "dataHash";
|
|
72
|
+
readonly type: "bytes32";
|
|
73
|
+
}];
|
|
74
|
+
}, {
|
|
75
|
+
readonly name: "sealedKeys";
|
|
76
|
+
readonly type: "bytes[]";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "agentSeal_";
|
|
79
|
+
readonly type: "address";
|
|
80
|
+
}, {
|
|
81
|
+
readonly name: "sealId";
|
|
82
|
+
readonly type: "bytes32";
|
|
83
|
+
}];
|
|
84
|
+
readonly outputs: readonly [{
|
|
85
|
+
readonly name: "agentId";
|
|
86
|
+
readonly type: "uint256";
|
|
87
|
+
}];
|
|
88
|
+
}, {
|
|
89
|
+
readonly type: "function";
|
|
90
|
+
readonly name: "tokenURI";
|
|
91
|
+
readonly stateMutability: "view";
|
|
92
|
+
readonly inputs: readonly [{
|
|
93
|
+
readonly name: "tokenId";
|
|
94
|
+
readonly type: "uint256";
|
|
95
|
+
}];
|
|
96
|
+
readonly outputs: readonly [{
|
|
97
|
+
readonly name: "";
|
|
98
|
+
readonly type: "string";
|
|
99
|
+
}];
|
|
100
|
+
}, {
|
|
101
|
+
readonly type: "function";
|
|
102
|
+
readonly name: "getAgentSeal";
|
|
103
|
+
readonly stateMutability: "view";
|
|
104
|
+
readonly inputs: readonly [{
|
|
105
|
+
readonly name: "agentId";
|
|
106
|
+
readonly type: "uint256";
|
|
107
|
+
}];
|
|
108
|
+
readonly outputs: readonly [{
|
|
109
|
+
readonly name: "";
|
|
110
|
+
readonly type: "address";
|
|
111
|
+
}];
|
|
112
|
+
}, {
|
|
113
|
+
readonly type: "function";
|
|
114
|
+
readonly name: "getSealId";
|
|
115
|
+
readonly stateMutability: "view";
|
|
116
|
+
readonly inputs: readonly [{
|
|
117
|
+
readonly name: "agentId";
|
|
118
|
+
readonly type: "uint256";
|
|
119
|
+
}];
|
|
120
|
+
readonly outputs: readonly [{
|
|
121
|
+
readonly name: "";
|
|
122
|
+
readonly type: "bytes32";
|
|
123
|
+
}];
|
|
124
|
+
}, {
|
|
125
|
+
readonly type: "function";
|
|
126
|
+
readonly name: "getAgentIdBySealId";
|
|
127
|
+
readonly stateMutability: "view";
|
|
128
|
+
readonly inputs: readonly [{
|
|
129
|
+
readonly name: "sealId";
|
|
130
|
+
readonly type: "bytes32";
|
|
131
|
+
}];
|
|
132
|
+
readonly outputs: readonly [{
|
|
133
|
+
readonly name: "";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
}, {
|
|
137
|
+
readonly type: "function";
|
|
138
|
+
readonly name: "isSealIdBound";
|
|
139
|
+
readonly stateMutability: "view";
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "sealId";
|
|
142
|
+
readonly type: "bytes32";
|
|
143
|
+
}];
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly name: "";
|
|
146
|
+
readonly type: "bool";
|
|
147
|
+
}];
|
|
148
|
+
}, {
|
|
149
|
+
readonly type: "function";
|
|
150
|
+
readonly name: "addTrustedAttestor";
|
|
151
|
+
readonly stateMutability: "nonpayable";
|
|
152
|
+
readonly inputs: readonly [{
|
|
153
|
+
readonly name: "attestor";
|
|
154
|
+
readonly type: "address";
|
|
155
|
+
}];
|
|
156
|
+
readonly outputs: readonly [];
|
|
157
|
+
}, {
|
|
158
|
+
readonly type: "function";
|
|
159
|
+
readonly name: "removeTrustedAttestor";
|
|
160
|
+
readonly stateMutability: "nonpayable";
|
|
161
|
+
readonly inputs: readonly [{
|
|
162
|
+
readonly name: "attestor";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
}];
|
|
165
|
+
readonly outputs: readonly [];
|
|
166
|
+
}, {
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
readonly name: "isTrustedAttestor";
|
|
169
|
+
readonly stateMutability: "view";
|
|
170
|
+
readonly inputs: readonly [{
|
|
171
|
+
readonly name: "attestor";
|
|
172
|
+
readonly type: "address";
|
|
173
|
+
}];
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly name: "";
|
|
176
|
+
readonly type: "bool";
|
|
177
|
+
}];
|
|
178
|
+
}, {
|
|
179
|
+
readonly type: "function";
|
|
180
|
+
readonly name: "addValidFrameworkHash";
|
|
181
|
+
readonly stateMutability: "nonpayable";
|
|
182
|
+
readonly inputs: readonly [{
|
|
183
|
+
readonly name: "frameworkHash";
|
|
184
|
+
readonly type: "bytes32";
|
|
185
|
+
}];
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
}, {
|
|
188
|
+
readonly type: "function";
|
|
189
|
+
readonly name: "removeValidFrameworkHash";
|
|
190
|
+
readonly stateMutability: "nonpayable";
|
|
191
|
+
readonly inputs: readonly [{
|
|
192
|
+
readonly name: "frameworkHash";
|
|
193
|
+
readonly type: "bytes32";
|
|
194
|
+
}];
|
|
195
|
+
readonly outputs: readonly [];
|
|
196
|
+
}, {
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
readonly name: "isValidFrameworkHash";
|
|
199
|
+
readonly stateMutability: "view";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "frameworkHash";
|
|
202
|
+
readonly type: "bytes32";
|
|
203
|
+
}];
|
|
204
|
+
readonly outputs: readonly [{
|
|
205
|
+
readonly name: "";
|
|
206
|
+
readonly type: "bool";
|
|
207
|
+
}];
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "function";
|
|
210
|
+
readonly name: "transferFrom";
|
|
211
|
+
readonly stateMutability: "nonpayable";
|
|
212
|
+
readonly inputs: readonly [{
|
|
213
|
+
readonly name: "from";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}, {
|
|
216
|
+
readonly name: "to";
|
|
217
|
+
readonly type: "address";
|
|
218
|
+
}, {
|
|
219
|
+
readonly name: "tokenId";
|
|
220
|
+
readonly type: "uint256";
|
|
221
|
+
}];
|
|
222
|
+
readonly outputs: readonly [];
|
|
223
|
+
}, {
|
|
224
|
+
readonly type: "function";
|
|
225
|
+
readonly name: "safeTransferFrom";
|
|
226
|
+
readonly stateMutability: "nonpayable";
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly name: "from";
|
|
229
|
+
readonly type: "address";
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "to";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "tokenId";
|
|
235
|
+
readonly type: "uint256";
|
|
236
|
+
}, {
|
|
237
|
+
readonly name: "data";
|
|
238
|
+
readonly type: "bytes";
|
|
239
|
+
}];
|
|
240
|
+
readonly outputs: readonly [];
|
|
241
|
+
}, {
|
|
242
|
+
readonly type: "function";
|
|
243
|
+
readonly name: "iTransferFrom";
|
|
244
|
+
readonly stateMutability: "nonpayable";
|
|
245
|
+
readonly inputs: readonly [{
|
|
246
|
+
readonly name: "from";
|
|
247
|
+
readonly type: "address";
|
|
248
|
+
}, {
|
|
249
|
+
readonly name: "to";
|
|
250
|
+
readonly type: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "tokenId";
|
|
253
|
+
readonly type: "uint256";
|
|
254
|
+
}, {
|
|
255
|
+
readonly name: "proofs";
|
|
256
|
+
readonly type: "tuple[]";
|
|
257
|
+
readonly components: readonly [{
|
|
258
|
+
readonly name: "accessProof";
|
|
259
|
+
readonly type: "tuple";
|
|
260
|
+
readonly components: readonly [{
|
|
261
|
+
readonly name: "dataHash";
|
|
262
|
+
readonly type: "bytes32";
|
|
263
|
+
}, {
|
|
264
|
+
readonly name: "targetPubkey";
|
|
265
|
+
readonly type: "bytes";
|
|
266
|
+
}, {
|
|
267
|
+
readonly name: "nonce";
|
|
268
|
+
readonly type: "bytes";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "deadline";
|
|
271
|
+
readonly type: "uint256";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "proof";
|
|
274
|
+
readonly type: "bytes";
|
|
275
|
+
}];
|
|
276
|
+
}, {
|
|
277
|
+
readonly name: "ownershipProof";
|
|
278
|
+
readonly type: "tuple";
|
|
279
|
+
readonly components: readonly [{
|
|
280
|
+
readonly name: "oracleType";
|
|
281
|
+
readonly type: "uint8";
|
|
282
|
+
}, {
|
|
283
|
+
readonly name: "dataHash";
|
|
284
|
+
readonly type: "bytes32";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "sealedKey";
|
|
287
|
+
readonly type: "bytes";
|
|
288
|
+
}, {
|
|
289
|
+
readonly name: "targetPubkey";
|
|
290
|
+
readonly type: "bytes";
|
|
291
|
+
}, {
|
|
292
|
+
readonly name: "nonce";
|
|
293
|
+
readonly type: "bytes";
|
|
294
|
+
}, {
|
|
295
|
+
readonly name: "deadline";
|
|
296
|
+
readonly type: "uint256";
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "proof";
|
|
299
|
+
readonly type: "bytes";
|
|
300
|
+
}];
|
|
301
|
+
}];
|
|
302
|
+
}];
|
|
303
|
+
readonly outputs: readonly [{
|
|
304
|
+
readonly name: "";
|
|
305
|
+
readonly type: "tuple[]";
|
|
306
|
+
readonly components: readonly [{
|
|
307
|
+
readonly name: "dataHash";
|
|
308
|
+
readonly type: "bytes32";
|
|
309
|
+
}, {
|
|
310
|
+
readonly name: "sealedKey";
|
|
311
|
+
readonly type: "bytes";
|
|
312
|
+
}];
|
|
313
|
+
}];
|
|
314
|
+
}, {
|
|
315
|
+
readonly type: "function";
|
|
316
|
+
readonly name: "iCloneFrom";
|
|
317
|
+
readonly stateMutability: "nonpayable";
|
|
318
|
+
readonly inputs: readonly [{
|
|
319
|
+
readonly name: "from";
|
|
320
|
+
readonly type: "address";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "to";
|
|
323
|
+
readonly type: "address";
|
|
324
|
+
}, {
|
|
325
|
+
readonly name: "tokenId";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
}, {
|
|
328
|
+
readonly name: "proofs";
|
|
329
|
+
readonly type: "tuple[]";
|
|
330
|
+
readonly components: readonly [{
|
|
331
|
+
readonly name: "accessProof";
|
|
332
|
+
readonly type: "tuple";
|
|
333
|
+
readonly components: readonly [{
|
|
334
|
+
readonly name: "dataHash";
|
|
335
|
+
readonly type: "bytes32";
|
|
336
|
+
}, {
|
|
337
|
+
readonly name: "targetPubkey";
|
|
338
|
+
readonly type: "bytes";
|
|
339
|
+
}, {
|
|
340
|
+
readonly name: "nonce";
|
|
341
|
+
readonly type: "bytes";
|
|
342
|
+
}, {
|
|
343
|
+
readonly name: "deadline";
|
|
344
|
+
readonly type: "uint256";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "proof";
|
|
347
|
+
readonly type: "bytes";
|
|
348
|
+
}];
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "ownershipProof";
|
|
351
|
+
readonly type: "tuple";
|
|
352
|
+
readonly components: readonly [{
|
|
353
|
+
readonly name: "oracleType";
|
|
354
|
+
readonly type: "uint8";
|
|
355
|
+
}, {
|
|
356
|
+
readonly name: "dataHash";
|
|
357
|
+
readonly type: "bytes32";
|
|
358
|
+
}, {
|
|
359
|
+
readonly name: "sealedKey";
|
|
360
|
+
readonly type: "bytes";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "targetPubkey";
|
|
363
|
+
readonly type: "bytes";
|
|
364
|
+
}, {
|
|
365
|
+
readonly name: "nonce";
|
|
366
|
+
readonly type: "bytes";
|
|
367
|
+
}, {
|
|
368
|
+
readonly name: "deadline";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
}, {
|
|
371
|
+
readonly name: "proof";
|
|
372
|
+
readonly type: "bytes";
|
|
373
|
+
}];
|
|
374
|
+
}];
|
|
375
|
+
}];
|
|
376
|
+
readonly outputs: readonly [{
|
|
377
|
+
readonly name: "newTokenId";
|
|
378
|
+
readonly type: "uint256";
|
|
379
|
+
}];
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
readonly name: "update";
|
|
383
|
+
readonly stateMutability: "nonpayable";
|
|
384
|
+
readonly inputs: readonly [{
|
|
385
|
+
readonly name: "tokenId";
|
|
386
|
+
readonly type: "uint256";
|
|
387
|
+
}, {
|
|
388
|
+
readonly name: "newDatas";
|
|
389
|
+
readonly type: "tuple[]";
|
|
390
|
+
readonly components: readonly [{
|
|
391
|
+
readonly name: "dataDescription";
|
|
392
|
+
readonly type: "string";
|
|
393
|
+
}, {
|
|
394
|
+
readonly name: "dataHash";
|
|
395
|
+
readonly type: "bytes32";
|
|
396
|
+
}];
|
|
397
|
+
}, {
|
|
398
|
+
readonly name: "sealedKeys";
|
|
399
|
+
readonly type: "bytes[]";
|
|
400
|
+
}];
|
|
401
|
+
readonly outputs: readonly [];
|
|
402
|
+
}, {
|
|
403
|
+
readonly type: "function";
|
|
404
|
+
readonly name: "updateAt";
|
|
405
|
+
readonly stateMutability: "nonpayable";
|
|
406
|
+
readonly inputs: readonly [{
|
|
407
|
+
readonly name: "tokenId";
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "index";
|
|
411
|
+
readonly type: "uint256";
|
|
412
|
+
}, {
|
|
413
|
+
readonly name: "newData";
|
|
414
|
+
readonly type: "tuple";
|
|
415
|
+
readonly components: readonly [{
|
|
416
|
+
readonly name: "dataDescription";
|
|
417
|
+
readonly type: "string";
|
|
418
|
+
}, {
|
|
419
|
+
readonly name: "dataHash";
|
|
420
|
+
readonly type: "bytes32";
|
|
421
|
+
}];
|
|
422
|
+
}, {
|
|
423
|
+
readonly name: "sealedKey";
|
|
424
|
+
readonly type: "bytes";
|
|
425
|
+
}];
|
|
426
|
+
readonly outputs: readonly [];
|
|
427
|
+
}, {
|
|
428
|
+
readonly type: "function";
|
|
429
|
+
readonly name: "intelligentDatasOf";
|
|
430
|
+
readonly stateMutability: "view";
|
|
431
|
+
readonly inputs: readonly [{
|
|
432
|
+
readonly name: "tokenId";
|
|
433
|
+
readonly type: "uint256";
|
|
434
|
+
}];
|
|
435
|
+
readonly outputs: readonly [{
|
|
436
|
+
readonly name: "";
|
|
437
|
+
readonly type: "tuple[]";
|
|
438
|
+
readonly components: readonly [{
|
|
439
|
+
readonly name: "dataDescription";
|
|
440
|
+
readonly type: "string";
|
|
441
|
+
}, {
|
|
442
|
+
readonly name: "dataHash";
|
|
443
|
+
readonly type: "bytes32";
|
|
444
|
+
}];
|
|
445
|
+
}];
|
|
446
|
+
}, {
|
|
447
|
+
readonly type: "function";
|
|
448
|
+
readonly name: "sealedKeysOf";
|
|
449
|
+
readonly stateMutability: "view";
|
|
450
|
+
readonly inputs: readonly [{
|
|
451
|
+
readonly name: "tokenId";
|
|
452
|
+
readonly type: "uint256";
|
|
453
|
+
}];
|
|
454
|
+
readonly outputs: readonly [{
|
|
455
|
+
readonly name: "";
|
|
456
|
+
readonly type: "bytes[]";
|
|
457
|
+
}];
|
|
458
|
+
}, {
|
|
459
|
+
readonly type: "function";
|
|
460
|
+
readonly name: "setAgentURI";
|
|
461
|
+
readonly stateMutability: "nonpayable";
|
|
462
|
+
readonly inputs: readonly [{
|
|
463
|
+
readonly name: "agentId";
|
|
464
|
+
readonly type: "uint256";
|
|
465
|
+
}, {
|
|
466
|
+
readonly name: "newURI";
|
|
467
|
+
readonly type: "string";
|
|
468
|
+
}];
|
|
469
|
+
readonly outputs: readonly [];
|
|
470
|
+
}, {
|
|
471
|
+
readonly type: "function";
|
|
472
|
+
readonly name: "getMetadata";
|
|
473
|
+
readonly stateMutability: "view";
|
|
474
|
+
readonly inputs: readonly [{
|
|
475
|
+
readonly name: "agentId";
|
|
476
|
+
readonly type: "uint256";
|
|
477
|
+
}, {
|
|
478
|
+
readonly name: "metadataKey";
|
|
479
|
+
readonly type: "string";
|
|
480
|
+
}];
|
|
481
|
+
readonly outputs: readonly [{
|
|
482
|
+
readonly name: "";
|
|
483
|
+
readonly type: "bytes";
|
|
484
|
+
}];
|
|
485
|
+
}, {
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
readonly name: "setMetadata";
|
|
488
|
+
readonly stateMutability: "nonpayable";
|
|
489
|
+
readonly inputs: readonly [{
|
|
490
|
+
readonly name: "agentId";
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
}, {
|
|
493
|
+
readonly name: "metadataKey";
|
|
494
|
+
readonly type: "string";
|
|
495
|
+
}, {
|
|
496
|
+
readonly name: "metadataValue";
|
|
497
|
+
readonly type: "bytes";
|
|
498
|
+
}];
|
|
499
|
+
readonly outputs: readonly [];
|
|
500
|
+
}, {
|
|
501
|
+
readonly type: "function";
|
|
502
|
+
readonly name: "setAgentWallet";
|
|
503
|
+
readonly stateMutability: "nonpayable";
|
|
504
|
+
readonly inputs: readonly [{
|
|
505
|
+
readonly name: "agentId";
|
|
506
|
+
readonly type: "uint256";
|
|
507
|
+
}, {
|
|
508
|
+
readonly name: "newWallet";
|
|
509
|
+
readonly type: "address";
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "deadline";
|
|
512
|
+
readonly type: "uint256";
|
|
513
|
+
}, {
|
|
514
|
+
readonly name: "signature";
|
|
515
|
+
readonly type: "bytes";
|
|
516
|
+
}];
|
|
517
|
+
readonly outputs: readonly [];
|
|
518
|
+
}, {
|
|
519
|
+
readonly type: "function";
|
|
520
|
+
readonly name: "getAgentWallet";
|
|
521
|
+
readonly stateMutability: "view";
|
|
522
|
+
readonly inputs: readonly [{
|
|
523
|
+
readonly name: "agentId";
|
|
524
|
+
readonly type: "uint256";
|
|
525
|
+
}];
|
|
526
|
+
readonly outputs: readonly [{
|
|
527
|
+
readonly name: "";
|
|
528
|
+
readonly type: "address";
|
|
529
|
+
}];
|
|
530
|
+
}, {
|
|
531
|
+
readonly type: "function";
|
|
532
|
+
readonly name: "unsetAgentWallet";
|
|
533
|
+
readonly stateMutability: "nonpayable";
|
|
534
|
+
readonly inputs: readonly [{
|
|
535
|
+
readonly name: "agentId";
|
|
536
|
+
readonly type: "uint256";
|
|
537
|
+
}];
|
|
538
|
+
readonly outputs: readonly [];
|
|
539
|
+
}, {
|
|
540
|
+
readonly type: "function";
|
|
541
|
+
readonly name: "authorizeUsage";
|
|
542
|
+
readonly stateMutability: "nonpayable";
|
|
543
|
+
readonly inputs: readonly [{
|
|
544
|
+
readonly name: "tokenId";
|
|
545
|
+
readonly type: "uint256";
|
|
546
|
+
}, {
|
|
547
|
+
readonly name: "user";
|
|
548
|
+
readonly type: "address";
|
|
549
|
+
}];
|
|
550
|
+
readonly outputs: readonly [];
|
|
551
|
+
}, {
|
|
552
|
+
readonly type: "function";
|
|
553
|
+
readonly name: "batchAuthorizeUsage";
|
|
554
|
+
readonly stateMutability: "nonpayable";
|
|
555
|
+
readonly inputs: readonly [{
|
|
556
|
+
readonly name: "tokenId";
|
|
557
|
+
readonly type: "uint256";
|
|
558
|
+
}, {
|
|
559
|
+
readonly name: "users";
|
|
560
|
+
readonly type: "address[]";
|
|
561
|
+
}];
|
|
562
|
+
readonly outputs: readonly [];
|
|
563
|
+
}, {
|
|
564
|
+
readonly type: "function";
|
|
565
|
+
readonly name: "revokeAuthorization";
|
|
566
|
+
readonly stateMutability: "nonpayable";
|
|
567
|
+
readonly inputs: readonly [{
|
|
568
|
+
readonly name: "tokenId";
|
|
569
|
+
readonly type: "uint256";
|
|
570
|
+
}, {
|
|
571
|
+
readonly name: "user";
|
|
572
|
+
readonly type: "address";
|
|
573
|
+
}];
|
|
574
|
+
readonly outputs: readonly [];
|
|
575
|
+
}, {
|
|
576
|
+
readonly type: "function";
|
|
577
|
+
readonly name: "clearAuthorizedUsers";
|
|
578
|
+
readonly stateMutability: "nonpayable";
|
|
579
|
+
readonly inputs: readonly [{
|
|
580
|
+
readonly name: "tokenId";
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
}];
|
|
583
|
+
readonly outputs: readonly [];
|
|
584
|
+
}, {
|
|
585
|
+
readonly type: "function";
|
|
586
|
+
readonly name: "authorizedUsersOf";
|
|
587
|
+
readonly stateMutability: "view";
|
|
588
|
+
readonly inputs: readonly [{
|
|
589
|
+
readonly name: "tokenId";
|
|
590
|
+
readonly type: "uint256";
|
|
591
|
+
}];
|
|
592
|
+
readonly outputs: readonly [{
|
|
593
|
+
readonly name: "";
|
|
594
|
+
readonly type: "address[]";
|
|
595
|
+
}];
|
|
596
|
+
}, {
|
|
597
|
+
readonly type: "function";
|
|
598
|
+
readonly name: "setAccessDelegate";
|
|
599
|
+
readonly stateMutability: "nonpayable";
|
|
600
|
+
readonly inputs: readonly [{
|
|
601
|
+
readonly name: "delegate";
|
|
602
|
+
readonly type: "address";
|
|
603
|
+
}];
|
|
604
|
+
readonly outputs: readonly [];
|
|
605
|
+
}, {
|
|
606
|
+
readonly type: "function";
|
|
607
|
+
readonly name: "getAccessDelegate";
|
|
608
|
+
readonly stateMutability: "view";
|
|
609
|
+
readonly inputs: readonly [{
|
|
610
|
+
readonly name: "user";
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
}];
|
|
613
|
+
readonly outputs: readonly [{
|
|
614
|
+
readonly name: "";
|
|
615
|
+
readonly type: "address";
|
|
616
|
+
}];
|
|
617
|
+
}, {
|
|
618
|
+
readonly type: "function";
|
|
619
|
+
readonly name: "ownerOf";
|
|
620
|
+
readonly stateMutability: "view";
|
|
621
|
+
readonly inputs: readonly [{
|
|
622
|
+
readonly name: "tokenId";
|
|
623
|
+
readonly type: "uint256";
|
|
624
|
+
}];
|
|
625
|
+
readonly outputs: readonly [{
|
|
626
|
+
readonly name: "";
|
|
627
|
+
readonly type: "address";
|
|
628
|
+
}];
|
|
629
|
+
}, {
|
|
630
|
+
readonly type: "function";
|
|
631
|
+
readonly name: "getApproved";
|
|
632
|
+
readonly stateMutability: "view";
|
|
633
|
+
readonly inputs: readonly [{
|
|
634
|
+
readonly name: "tokenId";
|
|
635
|
+
readonly type: "uint256";
|
|
636
|
+
}];
|
|
637
|
+
readonly outputs: readonly [{
|
|
638
|
+
readonly name: "";
|
|
639
|
+
readonly type: "address";
|
|
640
|
+
}];
|
|
641
|
+
}, {
|
|
642
|
+
readonly type: "function";
|
|
643
|
+
readonly name: "isApprovedForAll";
|
|
644
|
+
readonly stateMutability: "view";
|
|
645
|
+
readonly inputs: readonly [{
|
|
646
|
+
readonly name: "owner";
|
|
647
|
+
readonly type: "address";
|
|
648
|
+
}, {
|
|
649
|
+
readonly name: "operator";
|
|
650
|
+
readonly type: "address";
|
|
651
|
+
}];
|
|
652
|
+
readonly outputs: readonly [{
|
|
653
|
+
readonly name: "";
|
|
654
|
+
readonly type: "bool";
|
|
655
|
+
}];
|
|
656
|
+
}, {
|
|
657
|
+
readonly type: "function";
|
|
658
|
+
readonly name: "balanceOf";
|
|
659
|
+
readonly stateMutability: "view";
|
|
660
|
+
readonly inputs: readonly [{
|
|
661
|
+
readonly name: "owner";
|
|
662
|
+
readonly type: "address";
|
|
663
|
+
}];
|
|
664
|
+
readonly outputs: readonly [{
|
|
665
|
+
readonly name: "";
|
|
666
|
+
readonly type: "uint256";
|
|
667
|
+
}];
|
|
668
|
+
}, {
|
|
669
|
+
readonly type: "function";
|
|
670
|
+
readonly name: "pause";
|
|
671
|
+
readonly stateMutability: "nonpayable";
|
|
672
|
+
readonly inputs: readonly [];
|
|
673
|
+
readonly outputs: readonly [];
|
|
674
|
+
}, {
|
|
675
|
+
readonly type: "function";
|
|
676
|
+
readonly name: "unpause";
|
|
677
|
+
readonly stateMutability: "nonpayable";
|
|
678
|
+
readonly inputs: readonly [];
|
|
679
|
+
readonly outputs: readonly [];
|
|
680
|
+
}, {
|
|
681
|
+
readonly type: "function";
|
|
682
|
+
readonly name: "pauser";
|
|
683
|
+
readonly stateMutability: "view";
|
|
684
|
+
readonly inputs: readonly [];
|
|
685
|
+
readonly outputs: readonly [{
|
|
686
|
+
readonly name: "";
|
|
687
|
+
readonly type: "address";
|
|
688
|
+
}];
|
|
689
|
+
}, {
|
|
690
|
+
readonly type: "function";
|
|
691
|
+
readonly name: "setPauser";
|
|
692
|
+
readonly stateMutability: "nonpayable";
|
|
693
|
+
readonly inputs: readonly [{
|
|
694
|
+
readonly name: "newPauser";
|
|
695
|
+
readonly type: "address";
|
|
696
|
+
}];
|
|
697
|
+
readonly outputs: readonly [];
|
|
698
|
+
}, {
|
|
699
|
+
readonly type: "function";
|
|
700
|
+
readonly name: "setVerifier";
|
|
701
|
+
readonly stateMutability: "nonpayable";
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly name: "newVerifier";
|
|
704
|
+
readonly type: "address";
|
|
705
|
+
}];
|
|
706
|
+
readonly outputs: readonly [];
|
|
707
|
+
}, {
|
|
708
|
+
readonly type: "event";
|
|
709
|
+
readonly name: "AgentSealSet";
|
|
710
|
+
readonly inputs: readonly [{
|
|
711
|
+
readonly name: "agentId";
|
|
712
|
+
readonly type: "uint256";
|
|
713
|
+
readonly indexed: true;
|
|
714
|
+
}, {
|
|
715
|
+
readonly name: "agentSeal";
|
|
716
|
+
readonly type: "address";
|
|
717
|
+
readonly indexed: true;
|
|
718
|
+
}, {
|
|
719
|
+
readonly name: "sealId";
|
|
720
|
+
readonly type: "bytes32";
|
|
721
|
+
readonly indexed: true;
|
|
722
|
+
}];
|
|
723
|
+
}, {
|
|
724
|
+
readonly type: "event";
|
|
725
|
+
readonly name: "Updated";
|
|
726
|
+
readonly inputs: readonly [{
|
|
727
|
+
readonly name: "tokenId";
|
|
728
|
+
readonly type: "uint256";
|
|
729
|
+
readonly indexed: true;
|
|
730
|
+
}, {
|
|
731
|
+
readonly name: "oldDatas";
|
|
732
|
+
readonly type: "tuple[]";
|
|
733
|
+
readonly indexed: false;
|
|
734
|
+
readonly components: readonly [{
|
|
735
|
+
readonly name: "dataDescription";
|
|
736
|
+
readonly type: "string";
|
|
737
|
+
}, {
|
|
738
|
+
readonly name: "dataHash";
|
|
739
|
+
readonly type: "bytes32";
|
|
740
|
+
}];
|
|
741
|
+
}, {
|
|
742
|
+
readonly name: "newDatas";
|
|
743
|
+
readonly type: "tuple[]";
|
|
744
|
+
readonly indexed: false;
|
|
745
|
+
readonly components: readonly [{
|
|
746
|
+
readonly name: "dataDescription";
|
|
747
|
+
readonly type: "string";
|
|
748
|
+
}, {
|
|
749
|
+
readonly name: "dataHash";
|
|
750
|
+
readonly type: "bytes32";
|
|
751
|
+
}];
|
|
752
|
+
}, {
|
|
753
|
+
readonly name: "sealedKeys";
|
|
754
|
+
readonly type: "bytes[]";
|
|
755
|
+
readonly indexed: false;
|
|
756
|
+
}];
|
|
757
|
+
}, {
|
|
758
|
+
readonly type: "event";
|
|
759
|
+
readonly name: "Transfer";
|
|
760
|
+
readonly inputs: readonly [{
|
|
761
|
+
readonly name: "from";
|
|
762
|
+
readonly type: "address";
|
|
763
|
+
readonly indexed: true;
|
|
764
|
+
}, {
|
|
765
|
+
readonly name: "to";
|
|
766
|
+
readonly type: "address";
|
|
767
|
+
readonly indexed: true;
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "tokenId";
|
|
770
|
+
readonly type: "uint256";
|
|
771
|
+
readonly indexed: true;
|
|
772
|
+
}];
|
|
773
|
+
}, {
|
|
774
|
+
readonly type: "event";
|
|
775
|
+
readonly name: "Paused";
|
|
776
|
+
readonly inputs: readonly [{
|
|
777
|
+
readonly name: "account";
|
|
778
|
+
readonly type: "address";
|
|
779
|
+
readonly indexed: false;
|
|
780
|
+
}];
|
|
781
|
+
}, {
|
|
782
|
+
readonly type: "event";
|
|
783
|
+
readonly name: "Unpaused";
|
|
784
|
+
readonly inputs: readonly [{
|
|
785
|
+
readonly name: "account";
|
|
786
|
+
readonly type: "address";
|
|
787
|
+
readonly indexed: false;
|
|
788
|
+
}];
|
|
789
|
+
}];
|
|
790
|
+
/**
|
|
791
|
+
* Official canonical ERC-8004 ReputationRegistry (the fixed 0x8004B… singleton;
|
|
792
|
+
* v2.0.0). Feedback STORAGE lives here — clients call `giveFeedback` directly,
|
|
793
|
+
* so attribution is native msg.sender and every 8004 reader sees it. It has no
|
|
794
|
+
* ServeProof parameter and no custom errors (plain require strings).
|
|
795
|
+
* TEE verification marks live in the separate VerifiedFeedbackRegistry
|
|
796
|
+
* (`verifiedFeedbackAbi` below).
|
|
797
|
+
*/
|
|
798
|
+
export declare const canonicalReputationAbi: readonly [{
|
|
799
|
+
readonly type: "function";
|
|
800
|
+
readonly name: "giveFeedback";
|
|
801
|
+
readonly stateMutability: "nonpayable";
|
|
802
|
+
readonly inputs: readonly [{
|
|
803
|
+
readonly name: "agentId";
|
|
804
|
+
readonly type: "uint256";
|
|
805
|
+
}, {
|
|
806
|
+
readonly name: "value";
|
|
807
|
+
readonly type: "int128";
|
|
808
|
+
}, {
|
|
809
|
+
readonly name: "valueDecimals";
|
|
810
|
+
readonly type: "uint8";
|
|
811
|
+
}, {
|
|
812
|
+
readonly name: "tag1";
|
|
813
|
+
readonly type: "string";
|
|
814
|
+
}, {
|
|
815
|
+
readonly name: "tag2";
|
|
816
|
+
readonly type: "string";
|
|
817
|
+
}, {
|
|
818
|
+
readonly name: "endpoint";
|
|
819
|
+
readonly type: "string";
|
|
820
|
+
}, {
|
|
821
|
+
readonly name: "feedbackURI";
|
|
822
|
+
readonly type: "string";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "feedbackHash";
|
|
825
|
+
readonly type: "bytes32";
|
|
826
|
+
}];
|
|
827
|
+
readonly outputs: readonly [];
|
|
828
|
+
}, {
|
|
829
|
+
readonly type: "function";
|
|
830
|
+
readonly name: "revokeFeedback";
|
|
831
|
+
readonly stateMutability: "nonpayable";
|
|
832
|
+
readonly inputs: readonly [{
|
|
833
|
+
readonly name: "agentId";
|
|
834
|
+
readonly type: "uint256";
|
|
835
|
+
}, {
|
|
836
|
+
readonly name: "feedbackIndex";
|
|
837
|
+
readonly type: "uint64";
|
|
838
|
+
}];
|
|
839
|
+
readonly outputs: readonly [];
|
|
840
|
+
}, {
|
|
841
|
+
readonly type: "function";
|
|
842
|
+
readonly name: "appendResponse";
|
|
843
|
+
readonly stateMutability: "nonpayable";
|
|
844
|
+
readonly inputs: readonly [{
|
|
845
|
+
readonly name: "agentId";
|
|
846
|
+
readonly type: "uint256";
|
|
847
|
+
}, {
|
|
848
|
+
readonly name: "clientAddress";
|
|
849
|
+
readonly type: "address";
|
|
850
|
+
}, {
|
|
851
|
+
readonly name: "feedbackIndex";
|
|
852
|
+
readonly type: "uint64";
|
|
853
|
+
}, {
|
|
854
|
+
readonly name: "responseURI";
|
|
855
|
+
readonly type: "string";
|
|
856
|
+
}, {
|
|
857
|
+
readonly name: "responseHash";
|
|
858
|
+
readonly type: "bytes32";
|
|
859
|
+
}];
|
|
860
|
+
readonly outputs: readonly [];
|
|
861
|
+
}, {
|
|
862
|
+
readonly type: "function";
|
|
863
|
+
readonly name: "readFeedback";
|
|
864
|
+
readonly stateMutability: "view";
|
|
865
|
+
readonly inputs: readonly [{
|
|
866
|
+
readonly name: "agentId";
|
|
867
|
+
readonly type: "uint256";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "clientAddress";
|
|
870
|
+
readonly type: "address";
|
|
871
|
+
}, {
|
|
872
|
+
readonly name: "feedbackIndex";
|
|
873
|
+
readonly type: "uint64";
|
|
874
|
+
}];
|
|
875
|
+
readonly outputs: readonly [{
|
|
876
|
+
readonly name: "value";
|
|
877
|
+
readonly type: "int128";
|
|
878
|
+
}, {
|
|
879
|
+
readonly name: "valueDecimals";
|
|
880
|
+
readonly type: "uint8";
|
|
881
|
+
}, {
|
|
882
|
+
readonly name: "tag1";
|
|
883
|
+
readonly type: "string";
|
|
884
|
+
}, {
|
|
885
|
+
readonly name: "tag2";
|
|
886
|
+
readonly type: "string";
|
|
887
|
+
}, {
|
|
888
|
+
readonly name: "isRevoked";
|
|
889
|
+
readonly type: "bool";
|
|
890
|
+
}];
|
|
891
|
+
}, {
|
|
892
|
+
readonly type: "function";
|
|
893
|
+
readonly name: "readAllFeedback";
|
|
894
|
+
readonly stateMutability: "view";
|
|
895
|
+
readonly inputs: readonly [{
|
|
896
|
+
readonly name: "agentId";
|
|
897
|
+
readonly type: "uint256";
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "clientAddresses";
|
|
900
|
+
readonly type: "address[]";
|
|
901
|
+
}, {
|
|
902
|
+
readonly name: "tag1";
|
|
903
|
+
readonly type: "string";
|
|
904
|
+
}, {
|
|
905
|
+
readonly name: "tag2";
|
|
906
|
+
readonly type: "string";
|
|
907
|
+
}, {
|
|
908
|
+
readonly name: "includeRevoked";
|
|
909
|
+
readonly type: "bool";
|
|
910
|
+
}];
|
|
911
|
+
readonly outputs: readonly [{
|
|
912
|
+
readonly name: "clients";
|
|
913
|
+
readonly type: "address[]";
|
|
914
|
+
}, {
|
|
915
|
+
readonly name: "feedbackIndexes";
|
|
916
|
+
readonly type: "uint64[]";
|
|
917
|
+
}, {
|
|
918
|
+
readonly name: "values";
|
|
919
|
+
readonly type: "int128[]";
|
|
920
|
+
}, {
|
|
921
|
+
readonly name: "valueDecimals";
|
|
922
|
+
readonly type: "uint8[]";
|
|
923
|
+
}, {
|
|
924
|
+
readonly name: "tag1s";
|
|
925
|
+
readonly type: "string[]";
|
|
926
|
+
}, {
|
|
927
|
+
readonly name: "tag2s";
|
|
928
|
+
readonly type: "string[]";
|
|
929
|
+
}, {
|
|
930
|
+
readonly name: "revokedStatuses";
|
|
931
|
+
readonly type: "bool[]";
|
|
932
|
+
}];
|
|
933
|
+
}, {
|
|
934
|
+
readonly type: "function";
|
|
935
|
+
readonly name: "getSummary";
|
|
936
|
+
readonly stateMutability: "view";
|
|
937
|
+
readonly inputs: readonly [{
|
|
938
|
+
readonly name: "agentId";
|
|
939
|
+
readonly type: "uint256";
|
|
940
|
+
}, {
|
|
941
|
+
readonly name: "clientAddresses";
|
|
942
|
+
readonly type: "address[]";
|
|
943
|
+
}, {
|
|
944
|
+
readonly name: "tag1";
|
|
945
|
+
readonly type: "string";
|
|
946
|
+
}, {
|
|
947
|
+
readonly name: "tag2";
|
|
948
|
+
readonly type: "string";
|
|
949
|
+
}];
|
|
950
|
+
readonly outputs: readonly [{
|
|
951
|
+
readonly name: "count";
|
|
952
|
+
readonly type: "uint64";
|
|
953
|
+
}, {
|
|
954
|
+
readonly name: "summaryValue";
|
|
955
|
+
readonly type: "int128";
|
|
956
|
+
}, {
|
|
957
|
+
readonly name: "summaryValueDecimals";
|
|
958
|
+
readonly type: "uint8";
|
|
959
|
+
}];
|
|
960
|
+
}, {
|
|
961
|
+
readonly type: "function";
|
|
962
|
+
readonly name: "getResponseCount";
|
|
963
|
+
readonly stateMutability: "view";
|
|
964
|
+
readonly inputs: readonly [{
|
|
965
|
+
readonly name: "agentId";
|
|
966
|
+
readonly type: "uint256";
|
|
967
|
+
}, {
|
|
968
|
+
readonly name: "clientAddress";
|
|
969
|
+
readonly type: "address";
|
|
970
|
+
}, {
|
|
971
|
+
readonly name: "feedbackIndex";
|
|
972
|
+
readonly type: "uint64";
|
|
973
|
+
}, {
|
|
974
|
+
readonly name: "responders";
|
|
975
|
+
readonly type: "address[]";
|
|
976
|
+
}];
|
|
977
|
+
readonly outputs: readonly [{
|
|
978
|
+
readonly name: "count";
|
|
979
|
+
readonly type: "uint64";
|
|
980
|
+
}];
|
|
981
|
+
}, {
|
|
982
|
+
readonly type: "function";
|
|
983
|
+
readonly name: "getClients";
|
|
984
|
+
readonly stateMutability: "view";
|
|
985
|
+
readonly inputs: readonly [{
|
|
986
|
+
readonly name: "agentId";
|
|
987
|
+
readonly type: "uint256";
|
|
988
|
+
}];
|
|
989
|
+
readonly outputs: readonly [{
|
|
990
|
+
readonly name: "";
|
|
991
|
+
readonly type: "address[]";
|
|
992
|
+
}];
|
|
993
|
+
}, {
|
|
994
|
+
readonly type: "function";
|
|
995
|
+
readonly name: "getLastIndex";
|
|
996
|
+
readonly stateMutability: "view";
|
|
997
|
+
readonly inputs: readonly [{
|
|
998
|
+
readonly name: "agentId";
|
|
999
|
+
readonly type: "uint256";
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly name: "clientAddress";
|
|
1002
|
+
readonly type: "address";
|
|
1003
|
+
}];
|
|
1004
|
+
readonly outputs: readonly [{
|
|
1005
|
+
readonly name: "";
|
|
1006
|
+
readonly type: "uint64";
|
|
1007
|
+
}];
|
|
1008
|
+
}, {
|
|
1009
|
+
readonly type: "function";
|
|
1010
|
+
readonly name: "getIdentityRegistry";
|
|
1011
|
+
readonly stateMutability: "view";
|
|
1012
|
+
readonly inputs: readonly [];
|
|
1013
|
+
readonly outputs: readonly [{
|
|
1014
|
+
readonly name: "";
|
|
1015
|
+
readonly type: "address";
|
|
1016
|
+
}];
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly type: "function";
|
|
1019
|
+
readonly name: "getVersion";
|
|
1020
|
+
readonly stateMutability: "pure";
|
|
1021
|
+
readonly inputs: readonly [];
|
|
1022
|
+
readonly outputs: readonly [{
|
|
1023
|
+
readonly name: "";
|
|
1024
|
+
readonly type: "string";
|
|
1025
|
+
}];
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly type: "event";
|
|
1028
|
+
readonly name: "NewFeedback";
|
|
1029
|
+
readonly inputs: readonly [{
|
|
1030
|
+
readonly name: "agentId";
|
|
1031
|
+
readonly type: "uint256";
|
|
1032
|
+
readonly indexed: true;
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly name: "clientAddress";
|
|
1035
|
+
readonly type: "address";
|
|
1036
|
+
readonly indexed: true;
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly name: "feedbackIndex";
|
|
1039
|
+
readonly type: "uint64";
|
|
1040
|
+
readonly indexed: false;
|
|
1041
|
+
}, {
|
|
1042
|
+
readonly name: "value";
|
|
1043
|
+
readonly type: "int128";
|
|
1044
|
+
readonly indexed: false;
|
|
1045
|
+
}, {
|
|
1046
|
+
readonly name: "valueDecimals";
|
|
1047
|
+
readonly type: "uint8";
|
|
1048
|
+
readonly indexed: false;
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly name: "indexedTag1";
|
|
1051
|
+
readonly type: "string";
|
|
1052
|
+
readonly indexed: true;
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly name: "tag1";
|
|
1055
|
+
readonly type: "string";
|
|
1056
|
+
readonly indexed: false;
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly name: "tag2";
|
|
1059
|
+
readonly type: "string";
|
|
1060
|
+
readonly indexed: false;
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly name: "endpoint";
|
|
1063
|
+
readonly type: "string";
|
|
1064
|
+
readonly indexed: false;
|
|
1065
|
+
}, {
|
|
1066
|
+
readonly name: "feedbackURI";
|
|
1067
|
+
readonly type: "string";
|
|
1068
|
+
readonly indexed: false;
|
|
1069
|
+
}, {
|
|
1070
|
+
readonly name: "feedbackHash";
|
|
1071
|
+
readonly type: "bytes32";
|
|
1072
|
+
readonly indexed: false;
|
|
1073
|
+
}];
|
|
1074
|
+
}, {
|
|
1075
|
+
readonly type: "event";
|
|
1076
|
+
readonly name: "FeedbackRevoked";
|
|
1077
|
+
readonly inputs: readonly [{
|
|
1078
|
+
readonly name: "agentId";
|
|
1079
|
+
readonly type: "uint256";
|
|
1080
|
+
readonly indexed: true;
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly name: "clientAddress";
|
|
1083
|
+
readonly type: "address";
|
|
1084
|
+
readonly indexed: true;
|
|
1085
|
+
}, {
|
|
1086
|
+
readonly name: "feedbackIndex";
|
|
1087
|
+
readonly type: "uint64";
|
|
1088
|
+
readonly indexed: true;
|
|
1089
|
+
}];
|
|
1090
|
+
}, {
|
|
1091
|
+
readonly type: "event";
|
|
1092
|
+
readonly name: "ResponseAppended";
|
|
1093
|
+
readonly inputs: readonly [{
|
|
1094
|
+
readonly name: "agentId";
|
|
1095
|
+
readonly type: "uint256";
|
|
1096
|
+
readonly indexed: true;
|
|
1097
|
+
}, {
|
|
1098
|
+
readonly name: "clientAddress";
|
|
1099
|
+
readonly type: "address";
|
|
1100
|
+
readonly indexed: true;
|
|
1101
|
+
}, {
|
|
1102
|
+
readonly name: "feedbackIndex";
|
|
1103
|
+
readonly type: "uint64";
|
|
1104
|
+
readonly indexed: false;
|
|
1105
|
+
}, {
|
|
1106
|
+
readonly name: "responder";
|
|
1107
|
+
readonly type: "address";
|
|
1108
|
+
readonly indexed: true;
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly name: "responseURI";
|
|
1111
|
+
readonly type: "string";
|
|
1112
|
+
readonly indexed: false;
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly name: "responseHash";
|
|
1115
|
+
readonly type: "bytes32";
|
|
1116
|
+
readonly indexed: false;
|
|
1117
|
+
}];
|
|
1118
|
+
}];
|
|
1119
|
+
/**
|
|
1120
|
+
* VerifiedFeedbackRegistry — the local TEE-verification layer over the
|
|
1121
|
+
* canonical ERC-8004 ReputationRegistry. `attestFeedback` marks a canonical
|
|
1122
|
+
* entry as backed by a ServeProof; the `getVerified*` reads expose the marks
|
|
1123
|
+
* so readers can intersect them with canonical entries.
|
|
1124
|
+
*/
|
|
1125
|
+
export declare const verifiedFeedbackAbi: readonly [{
|
|
1126
|
+
readonly type: "error";
|
|
1127
|
+
readonly name: "ECDSAInvalidSignature";
|
|
1128
|
+
readonly inputs: readonly [];
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly type: "error";
|
|
1131
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
1132
|
+
readonly inputs: readonly [{
|
|
1133
|
+
readonly name: "length";
|
|
1134
|
+
readonly type: "uint256";
|
|
1135
|
+
}];
|
|
1136
|
+
}, {
|
|
1137
|
+
readonly type: "error";
|
|
1138
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
1139
|
+
readonly inputs: readonly [{
|
|
1140
|
+
readonly name: "s";
|
|
1141
|
+
readonly type: "bytes32";
|
|
1142
|
+
}];
|
|
1143
|
+
}, {
|
|
1144
|
+
readonly type: "error";
|
|
1145
|
+
readonly name: "EnforcedPause";
|
|
1146
|
+
readonly inputs: readonly [];
|
|
1147
|
+
}, {
|
|
1148
|
+
readonly type: "error";
|
|
1149
|
+
readonly name: "ExpectedPause";
|
|
1150
|
+
readonly inputs: readonly [];
|
|
1151
|
+
}, {
|
|
1152
|
+
readonly type: "error";
|
|
1153
|
+
readonly name: "InvalidInitialization";
|
|
1154
|
+
readonly inputs: readonly [];
|
|
1155
|
+
}, {
|
|
1156
|
+
readonly type: "error";
|
|
1157
|
+
readonly name: "NonceAlreadyUsed";
|
|
1158
|
+
readonly inputs: readonly [{
|
|
1159
|
+
readonly name: "key";
|
|
1160
|
+
readonly type: "bytes32";
|
|
1161
|
+
}];
|
|
1162
|
+
}, {
|
|
1163
|
+
readonly type: "error";
|
|
1164
|
+
readonly name: "NonceDeadlineTooFar";
|
|
1165
|
+
readonly inputs: readonly [{
|
|
1166
|
+
readonly name: "deadline";
|
|
1167
|
+
readonly type: "uint256";
|
|
1168
|
+
}, {
|
|
1169
|
+
readonly name: "maxDeadline";
|
|
1170
|
+
readonly type: "uint256";
|
|
1171
|
+
}];
|
|
1172
|
+
}, {
|
|
1173
|
+
readonly type: "error";
|
|
1174
|
+
readonly name: "NonceExpired";
|
|
1175
|
+
readonly inputs: readonly [{
|
|
1176
|
+
readonly name: "deadline";
|
|
1177
|
+
readonly type: "uint256";
|
|
1178
|
+
}, {
|
|
1179
|
+
readonly name: "nowTimestamp";
|
|
1180
|
+
readonly type: "uint256";
|
|
1181
|
+
}];
|
|
1182
|
+
}, {
|
|
1183
|
+
readonly type: "error";
|
|
1184
|
+
readonly name: "NonceMaxAgeDecrease";
|
|
1185
|
+
readonly inputs: readonly [{
|
|
1186
|
+
readonly name: "currentMaxAge";
|
|
1187
|
+
readonly type: "uint256";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly name: "newMaxAge";
|
|
1190
|
+
readonly type: "uint256";
|
|
1191
|
+
}];
|
|
1192
|
+
}, {
|
|
1193
|
+
readonly type: "error";
|
|
1194
|
+
readonly name: "NonceMaxAgeOutOfRange";
|
|
1195
|
+
readonly inputs: readonly [{
|
|
1196
|
+
readonly name: "maxAge";
|
|
1197
|
+
readonly type: "uint256";
|
|
1198
|
+
}];
|
|
1199
|
+
}, {
|
|
1200
|
+
readonly type: "error";
|
|
1201
|
+
readonly name: "NotInitializing";
|
|
1202
|
+
readonly inputs: readonly [];
|
|
1203
|
+
}, {
|
|
1204
|
+
readonly type: "error";
|
|
1205
|
+
readonly name: "OwnableInvalidOwner";
|
|
1206
|
+
readonly inputs: readonly [{
|
|
1207
|
+
readonly name: "owner";
|
|
1208
|
+
readonly type: "address";
|
|
1209
|
+
}];
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly type: "error";
|
|
1212
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
1213
|
+
readonly inputs: readonly [{
|
|
1214
|
+
readonly name: "account";
|
|
1215
|
+
readonly type: "address";
|
|
1216
|
+
}];
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly type: "error";
|
|
1219
|
+
readonly name: "VerifiedFeedbackAlreadyVerified";
|
|
1220
|
+
readonly inputs: readonly [{
|
|
1221
|
+
readonly name: "agentId";
|
|
1222
|
+
readonly type: "uint256";
|
|
1223
|
+
}, {
|
|
1224
|
+
readonly name: "clientAddress";
|
|
1225
|
+
readonly type: "address";
|
|
1226
|
+
}, {
|
|
1227
|
+
readonly name: "feedbackIndex";
|
|
1228
|
+
readonly type: "uint64";
|
|
1229
|
+
}];
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly type: "error";
|
|
1232
|
+
readonly name: "VerifiedFeedbackClientsRequired";
|
|
1233
|
+
readonly inputs: readonly [];
|
|
1234
|
+
}, {
|
|
1235
|
+
readonly type: "error";
|
|
1236
|
+
readonly name: "VerifiedFeedbackInvalidProofSignature";
|
|
1237
|
+
readonly inputs: readonly [];
|
|
1238
|
+
}, {
|
|
1239
|
+
readonly type: "error";
|
|
1240
|
+
readonly name: "VerifiedFeedbackNoAgentSeal";
|
|
1241
|
+
readonly inputs: readonly [];
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly type: "error";
|
|
1244
|
+
readonly name: "VerifiedFeedbackNoSuchEntry";
|
|
1245
|
+
readonly inputs: readonly [{
|
|
1246
|
+
readonly name: "agentId";
|
|
1247
|
+
readonly type: "uint256";
|
|
1248
|
+
}, {
|
|
1249
|
+
readonly name: "clientAddress";
|
|
1250
|
+
readonly type: "address";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly name: "feedbackIndex";
|
|
1253
|
+
readonly type: "uint64";
|
|
1254
|
+
}, {
|
|
1255
|
+
readonly name: "lastIndex";
|
|
1256
|
+
readonly type: "uint64";
|
|
1257
|
+
}];
|
|
1258
|
+
}, {
|
|
1259
|
+
readonly type: "error";
|
|
1260
|
+
readonly name: "VerifiedFeedbackNotPauser";
|
|
1261
|
+
readonly inputs: readonly [];
|
|
1262
|
+
}, {
|
|
1263
|
+
readonly type: "error";
|
|
1264
|
+
readonly name: "VerifiedFeedbackNotVerified";
|
|
1265
|
+
readonly inputs: readonly [{
|
|
1266
|
+
readonly name: "agentId";
|
|
1267
|
+
readonly type: "uint256";
|
|
1268
|
+
}, {
|
|
1269
|
+
readonly name: "clientAddress";
|
|
1270
|
+
readonly type: "address";
|
|
1271
|
+
}, {
|
|
1272
|
+
readonly name: "feedbackIndex";
|
|
1273
|
+
readonly type: "uint64";
|
|
1274
|
+
}];
|
|
1275
|
+
}, {
|
|
1276
|
+
readonly type: "error";
|
|
1277
|
+
readonly name: "VerifiedFeedbackProofAgentMismatch";
|
|
1278
|
+
readonly inputs: readonly [{
|
|
1279
|
+
readonly name: "agentId";
|
|
1280
|
+
readonly type: "uint256";
|
|
1281
|
+
}, {
|
|
1282
|
+
readonly name: "proofAgentId";
|
|
1283
|
+
readonly type: "uint256";
|
|
1284
|
+
}];
|
|
1285
|
+
}, {
|
|
1286
|
+
readonly type: "error";
|
|
1287
|
+
readonly name: "VerifiedFeedbackProofSubmitterMismatch";
|
|
1288
|
+
readonly inputs: readonly [{
|
|
1289
|
+
readonly name: "submitter";
|
|
1290
|
+
readonly type: "address";
|
|
1291
|
+
}, {
|
|
1292
|
+
readonly name: "sender";
|
|
1293
|
+
readonly type: "address";
|
|
1294
|
+
}];
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly type: "error";
|
|
1297
|
+
readonly name: "VerifiedFeedbackSelfFeedback";
|
|
1298
|
+
readonly inputs: readonly [{
|
|
1299
|
+
readonly name: "agentId";
|
|
1300
|
+
readonly type: "uint256";
|
|
1301
|
+
}, {
|
|
1302
|
+
readonly name: "submitter";
|
|
1303
|
+
readonly type: "address";
|
|
1304
|
+
}];
|
|
1305
|
+
}, {
|
|
1306
|
+
readonly type: "error";
|
|
1307
|
+
readonly name: "VerifiedFeedbackSummaryOverflow";
|
|
1308
|
+
readonly inputs: readonly [];
|
|
1309
|
+
}, {
|
|
1310
|
+
readonly type: "error";
|
|
1311
|
+
readonly name: "VerifiedFeedbackTaskMismatch";
|
|
1312
|
+
readonly inputs: readonly [{
|
|
1313
|
+
readonly name: "expected";
|
|
1314
|
+
readonly type: "bytes32";
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly name: "actual";
|
|
1317
|
+
readonly type: "bytes32";
|
|
1318
|
+
}];
|
|
1319
|
+
}, {
|
|
1320
|
+
readonly type: "error";
|
|
1321
|
+
readonly name: "VerifiedFeedbackInvalidTaskReveal";
|
|
1322
|
+
readonly inputs: readonly [];
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly type: "error";
|
|
1325
|
+
readonly name: "VerifiedFeedbackValueOutOfRange";
|
|
1326
|
+
readonly inputs: readonly [{
|
|
1327
|
+
readonly name: "value";
|
|
1328
|
+
readonly type: "int128";
|
|
1329
|
+
}, {
|
|
1330
|
+
readonly name: "valueDecimals";
|
|
1331
|
+
readonly type: "uint8";
|
|
1332
|
+
}];
|
|
1333
|
+
}, {
|
|
1334
|
+
readonly type: "error";
|
|
1335
|
+
readonly name: "VerifiedFeedbackEndpointRequired";
|
|
1336
|
+
readonly inputs: readonly [];
|
|
1337
|
+
}, {
|
|
1338
|
+
readonly type: "error";
|
|
1339
|
+
readonly name: "VerifiedFeedbackInvalidProofTimestamp";
|
|
1340
|
+
readonly inputs: readonly [];
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly type: "function";
|
|
1343
|
+
readonly name: "attestFeedback";
|
|
1344
|
+
readonly stateMutability: "nonpayable";
|
|
1345
|
+
readonly inputs: readonly [{
|
|
1346
|
+
readonly name: "agentId";
|
|
1347
|
+
readonly type: "uint256";
|
|
1348
|
+
}, {
|
|
1349
|
+
readonly name: "feedbackIndex";
|
|
1350
|
+
readonly type: "uint64";
|
|
1351
|
+
}, {
|
|
1352
|
+
readonly name: "proof";
|
|
1353
|
+
readonly type: "tuple";
|
|
1354
|
+
readonly components: readonly [{
|
|
1355
|
+
readonly name: "agentId";
|
|
1356
|
+
readonly type: "uint256";
|
|
1357
|
+
}, {
|
|
1358
|
+
readonly name: "submitter";
|
|
1359
|
+
readonly type: "address";
|
|
1360
|
+
}, {
|
|
1361
|
+
readonly name: "timestamp";
|
|
1362
|
+
readonly type: "uint256";
|
|
1363
|
+
}, {
|
|
1364
|
+
readonly name: "deadline";
|
|
1365
|
+
readonly type: "uint256";
|
|
1366
|
+
}, {
|
|
1367
|
+
readonly name: "taskHash";
|
|
1368
|
+
readonly type: "bytes32";
|
|
1369
|
+
}, {
|
|
1370
|
+
readonly name: "dataHashes";
|
|
1371
|
+
readonly type: "bytes32[]";
|
|
1372
|
+
}, {
|
|
1373
|
+
readonly name: "frameworkHash";
|
|
1374
|
+
readonly type: "bytes32";
|
|
1375
|
+
}, {
|
|
1376
|
+
readonly name: "signature";
|
|
1377
|
+
readonly type: "bytes";
|
|
1378
|
+
}];
|
|
1379
|
+
}];
|
|
1380
|
+
readonly outputs: readonly [];
|
|
1381
|
+
}, {
|
|
1382
|
+
readonly type: "function";
|
|
1383
|
+
readonly name: "attestFeedbackWithTask";
|
|
1384
|
+
readonly stateMutability: "nonpayable";
|
|
1385
|
+
readonly inputs: readonly [{
|
|
1386
|
+
readonly name: "agentId";
|
|
1387
|
+
readonly type: "uint256";
|
|
1388
|
+
}, {
|
|
1389
|
+
readonly name: "feedbackIndex";
|
|
1390
|
+
readonly type: "uint64";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly name: "proof";
|
|
1393
|
+
readonly type: "tuple";
|
|
1394
|
+
readonly components: readonly [{
|
|
1395
|
+
readonly name: "agentId";
|
|
1396
|
+
readonly type: "uint256";
|
|
1397
|
+
}, {
|
|
1398
|
+
readonly name: "submitter";
|
|
1399
|
+
readonly type: "address";
|
|
1400
|
+
}, {
|
|
1401
|
+
readonly name: "timestamp";
|
|
1402
|
+
readonly type: "uint256";
|
|
1403
|
+
}, {
|
|
1404
|
+
readonly name: "deadline";
|
|
1405
|
+
readonly type: "uint256";
|
|
1406
|
+
}, {
|
|
1407
|
+
readonly name: "taskHash";
|
|
1408
|
+
readonly type: "bytes32";
|
|
1409
|
+
}, {
|
|
1410
|
+
readonly name: "dataHashes";
|
|
1411
|
+
readonly type: "bytes32[]";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly name: "frameworkHash";
|
|
1414
|
+
readonly type: "bytes32";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly name: "signature";
|
|
1417
|
+
readonly type: "bytes";
|
|
1418
|
+
}];
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly name: "task";
|
|
1421
|
+
readonly type: "tuple";
|
|
1422
|
+
readonly components: readonly [{
|
|
1423
|
+
readonly name: "method";
|
|
1424
|
+
readonly type: "string";
|
|
1425
|
+
}, {
|
|
1426
|
+
readonly name: "uri";
|
|
1427
|
+
readonly type: "string";
|
|
1428
|
+
}, {
|
|
1429
|
+
readonly name: "reqBodyHash";
|
|
1430
|
+
readonly type: "bytes32";
|
|
1431
|
+
}, {
|
|
1432
|
+
readonly name: "respBodyHash";
|
|
1433
|
+
readonly type: "bytes32";
|
|
1434
|
+
}, {
|
|
1435
|
+
readonly name: "statusCode";
|
|
1436
|
+
readonly type: "uint16";
|
|
1437
|
+
}];
|
|
1438
|
+
}];
|
|
1439
|
+
readonly outputs: readonly [];
|
|
1440
|
+
}, {
|
|
1441
|
+
readonly type: "function";
|
|
1442
|
+
readonly name: "isVerified";
|
|
1443
|
+
readonly stateMutability: "view";
|
|
1444
|
+
readonly inputs: readonly [{
|
|
1445
|
+
readonly name: "agentId";
|
|
1446
|
+
readonly type: "uint256";
|
|
1447
|
+
}, {
|
|
1448
|
+
readonly name: "clientAddress";
|
|
1449
|
+
readonly type: "address";
|
|
1450
|
+
}, {
|
|
1451
|
+
readonly name: "feedbackIndex";
|
|
1452
|
+
readonly type: "uint64";
|
|
1453
|
+
}];
|
|
1454
|
+
readonly outputs: readonly [{
|
|
1455
|
+
readonly name: "";
|
|
1456
|
+
readonly type: "bool";
|
|
1457
|
+
}];
|
|
1458
|
+
}, {
|
|
1459
|
+
readonly type: "function";
|
|
1460
|
+
readonly name: "getServeData";
|
|
1461
|
+
readonly stateMutability: "view";
|
|
1462
|
+
readonly inputs: readonly [{
|
|
1463
|
+
readonly name: "agentId";
|
|
1464
|
+
readonly type: "uint256";
|
|
1465
|
+
}, {
|
|
1466
|
+
readonly name: "clientAddress";
|
|
1467
|
+
readonly type: "address";
|
|
1468
|
+
}, {
|
|
1469
|
+
readonly name: "feedbackIndex";
|
|
1470
|
+
readonly type: "uint64";
|
|
1471
|
+
}];
|
|
1472
|
+
readonly outputs: readonly [{
|
|
1473
|
+
readonly name: "dataHashes";
|
|
1474
|
+
readonly type: "bytes32[]";
|
|
1475
|
+
}, {
|
|
1476
|
+
readonly name: "frameworkHash";
|
|
1477
|
+
readonly type: "bytes32";
|
|
1478
|
+
}];
|
|
1479
|
+
}, {
|
|
1480
|
+
readonly type: "function";
|
|
1481
|
+
readonly name: "getVerifiedIndexes";
|
|
1482
|
+
readonly stateMutability: "view";
|
|
1483
|
+
readonly inputs: readonly [{
|
|
1484
|
+
readonly name: "agentId";
|
|
1485
|
+
readonly type: "uint256";
|
|
1486
|
+
}, {
|
|
1487
|
+
readonly name: "clientAddress";
|
|
1488
|
+
readonly type: "address";
|
|
1489
|
+
}];
|
|
1490
|
+
readonly outputs: readonly [{
|
|
1491
|
+
readonly name: "";
|
|
1492
|
+
readonly type: "uint64[]";
|
|
1493
|
+
}];
|
|
1494
|
+
}, {
|
|
1495
|
+
readonly type: "function";
|
|
1496
|
+
readonly name: "getVerifiedClients";
|
|
1497
|
+
readonly stateMutability: "view";
|
|
1498
|
+
readonly inputs: readonly [{
|
|
1499
|
+
readonly name: "agentId";
|
|
1500
|
+
readonly type: "uint256";
|
|
1501
|
+
}];
|
|
1502
|
+
readonly outputs: readonly [{
|
|
1503
|
+
readonly name: "";
|
|
1504
|
+
readonly type: "address[]";
|
|
1505
|
+
}];
|
|
1506
|
+
}, {
|
|
1507
|
+
readonly type: "function";
|
|
1508
|
+
readonly name: "getVerifiedEndpoint";
|
|
1509
|
+
readonly stateMutability: "view";
|
|
1510
|
+
readonly inputs: readonly [{
|
|
1511
|
+
readonly name: "agentId";
|
|
1512
|
+
readonly type: "uint256";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly name: "clientAddress";
|
|
1515
|
+
readonly type: "address";
|
|
1516
|
+
}, {
|
|
1517
|
+
readonly name: "feedbackIndex";
|
|
1518
|
+
readonly type: "uint64";
|
|
1519
|
+
}];
|
|
1520
|
+
readonly outputs: readonly [{
|
|
1521
|
+
readonly name: "";
|
|
1522
|
+
readonly type: "string";
|
|
1523
|
+
}];
|
|
1524
|
+
}, {
|
|
1525
|
+
readonly type: "function";
|
|
1526
|
+
readonly name: "getVerifiedSummaryForEndpoint";
|
|
1527
|
+
readonly stateMutability: "view";
|
|
1528
|
+
readonly inputs: readonly [{
|
|
1529
|
+
readonly name: "agentId";
|
|
1530
|
+
readonly type: "uint256";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly name: "clientAddresses";
|
|
1533
|
+
readonly type: "address[]";
|
|
1534
|
+
}, {
|
|
1535
|
+
readonly name: "uri";
|
|
1536
|
+
readonly type: "string";
|
|
1537
|
+
}];
|
|
1538
|
+
readonly outputs: readonly [{
|
|
1539
|
+
readonly name: "count";
|
|
1540
|
+
readonly type: "uint64";
|
|
1541
|
+
}, {
|
|
1542
|
+
readonly name: "summaryValue";
|
|
1543
|
+
readonly type: "int128";
|
|
1544
|
+
}, {
|
|
1545
|
+
readonly name: "summaryValueDecimals";
|
|
1546
|
+
readonly type: "uint8";
|
|
1547
|
+
}];
|
|
1548
|
+
}, {
|
|
1549
|
+
readonly type: "function";
|
|
1550
|
+
readonly name: "getVerifiedSummary";
|
|
1551
|
+
readonly stateMutability: "view";
|
|
1552
|
+
readonly inputs: readonly [{
|
|
1553
|
+
readonly name: "agentId";
|
|
1554
|
+
readonly type: "uint256";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly name: "clientAddresses";
|
|
1557
|
+
readonly type: "address[]";
|
|
1558
|
+
}, {
|
|
1559
|
+
readonly name: "tag1";
|
|
1560
|
+
readonly type: "string";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly name: "tag2";
|
|
1563
|
+
readonly type: "string";
|
|
1564
|
+
}];
|
|
1565
|
+
readonly outputs: readonly [{
|
|
1566
|
+
readonly name: "count";
|
|
1567
|
+
readonly type: "uint64";
|
|
1568
|
+
}, {
|
|
1569
|
+
readonly name: "summaryValue";
|
|
1570
|
+
readonly type: "int128";
|
|
1571
|
+
}, {
|
|
1572
|
+
readonly name: "summaryValueDecimals";
|
|
1573
|
+
readonly type: "uint8";
|
|
1574
|
+
}];
|
|
1575
|
+
}, {
|
|
1576
|
+
readonly type: "function";
|
|
1577
|
+
readonly name: "getIdentityRegistry";
|
|
1578
|
+
readonly stateMutability: "view";
|
|
1579
|
+
readonly inputs: readonly [];
|
|
1580
|
+
readonly outputs: readonly [{
|
|
1581
|
+
readonly name: "";
|
|
1582
|
+
readonly type: "address";
|
|
1583
|
+
}];
|
|
1584
|
+
}, {
|
|
1585
|
+
readonly type: "function";
|
|
1586
|
+
readonly name: "getCanonicalReputation";
|
|
1587
|
+
readonly stateMutability: "view";
|
|
1588
|
+
readonly inputs: readonly [];
|
|
1589
|
+
readonly outputs: readonly [{
|
|
1590
|
+
readonly name: "";
|
|
1591
|
+
readonly type: "address";
|
|
1592
|
+
}];
|
|
1593
|
+
}, {
|
|
1594
|
+
readonly type: "function";
|
|
1595
|
+
readonly name: "isNonceConsumed";
|
|
1596
|
+
readonly stateMutability: "view";
|
|
1597
|
+
readonly inputs: readonly [{
|
|
1598
|
+
readonly name: "key";
|
|
1599
|
+
readonly type: "bytes32";
|
|
1600
|
+
}];
|
|
1601
|
+
readonly outputs: readonly [{
|
|
1602
|
+
readonly name: "";
|
|
1603
|
+
readonly type: "bool";
|
|
1604
|
+
}];
|
|
1605
|
+
}, {
|
|
1606
|
+
readonly type: "event";
|
|
1607
|
+
readonly name: "FeedbackVerified";
|
|
1608
|
+
readonly inputs: readonly [{
|
|
1609
|
+
readonly name: "agentId";
|
|
1610
|
+
readonly type: "uint256";
|
|
1611
|
+
readonly indexed: true;
|
|
1612
|
+
}, {
|
|
1613
|
+
readonly name: "clientAddress";
|
|
1614
|
+
readonly type: "address";
|
|
1615
|
+
readonly indexed: true;
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly name: "feedbackIndex";
|
|
1618
|
+
readonly type: "uint64";
|
|
1619
|
+
readonly indexed: true;
|
|
1620
|
+
}, {
|
|
1621
|
+
readonly name: "dataHashes";
|
|
1622
|
+
readonly type: "bytes32[]";
|
|
1623
|
+
readonly indexed: false;
|
|
1624
|
+
}, {
|
|
1625
|
+
readonly name: "frameworkHash";
|
|
1626
|
+
readonly type: "bytes32";
|
|
1627
|
+
readonly indexed: false;
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly name: "taskHash";
|
|
1630
|
+
readonly type: "bytes32";
|
|
1631
|
+
readonly indexed: false;
|
|
1632
|
+
}, {
|
|
1633
|
+
readonly name: "uri";
|
|
1634
|
+
readonly type: "string";
|
|
1635
|
+
readonly indexed: false;
|
|
1636
|
+
}];
|
|
1637
|
+
}];
|
|
1638
|
+
/**
|
|
1639
|
+
* FeedbackBatcher — EIP-7702 delegate target. A client EOA attaches this code
|
|
1640
|
+
* to itself (type-4 authorization) and self-calls to execute the canonical
|
|
1641
|
+
* giveFeedback + attestFeedback pair atomically, with msg.sender = the EOA
|
|
1642
|
+
* for both inner calls.
|
|
1643
|
+
*/
|
|
1644
|
+
export declare const feedbackBatcherAbi: readonly [{
|
|
1645
|
+
readonly type: "error";
|
|
1646
|
+
readonly name: "BatcherNotSelf";
|
|
1647
|
+
readonly inputs: readonly [];
|
|
1648
|
+
}, {
|
|
1649
|
+
readonly type: "function";
|
|
1650
|
+
readonly name: "giveFeedbackAndAttest";
|
|
1651
|
+
readonly stateMutability: "nonpayable";
|
|
1652
|
+
readonly inputs: readonly [{
|
|
1653
|
+
readonly name: "agentId";
|
|
1654
|
+
readonly type: "uint256";
|
|
1655
|
+
}, {
|
|
1656
|
+
readonly name: "value";
|
|
1657
|
+
readonly type: "int128";
|
|
1658
|
+
}, {
|
|
1659
|
+
readonly name: "valueDecimals";
|
|
1660
|
+
readonly type: "uint8";
|
|
1661
|
+
}, {
|
|
1662
|
+
readonly name: "tag1";
|
|
1663
|
+
readonly type: "string";
|
|
1664
|
+
}, {
|
|
1665
|
+
readonly name: "tag2";
|
|
1666
|
+
readonly type: "string";
|
|
1667
|
+
}, {
|
|
1668
|
+
readonly name: "endpoint";
|
|
1669
|
+
readonly type: "string";
|
|
1670
|
+
}, {
|
|
1671
|
+
readonly name: "feedbackURI";
|
|
1672
|
+
readonly type: "string";
|
|
1673
|
+
}, {
|
|
1674
|
+
readonly name: "feedbackHash";
|
|
1675
|
+
readonly type: "bytes32";
|
|
1676
|
+
}, {
|
|
1677
|
+
readonly name: "proof";
|
|
1678
|
+
readonly type: "tuple";
|
|
1679
|
+
readonly components: readonly [{
|
|
1680
|
+
readonly name: "agentId";
|
|
1681
|
+
readonly type: "uint256";
|
|
1682
|
+
}, {
|
|
1683
|
+
readonly name: "submitter";
|
|
1684
|
+
readonly type: "address";
|
|
1685
|
+
}, {
|
|
1686
|
+
readonly name: "timestamp";
|
|
1687
|
+
readonly type: "uint256";
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly name: "deadline";
|
|
1690
|
+
readonly type: "uint256";
|
|
1691
|
+
}, {
|
|
1692
|
+
readonly name: "taskHash";
|
|
1693
|
+
readonly type: "bytes32";
|
|
1694
|
+
}, {
|
|
1695
|
+
readonly name: "dataHashes";
|
|
1696
|
+
readonly type: "bytes32[]";
|
|
1697
|
+
}, {
|
|
1698
|
+
readonly name: "frameworkHash";
|
|
1699
|
+
readonly type: "bytes32";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly name: "signature";
|
|
1702
|
+
readonly type: "bytes";
|
|
1703
|
+
}];
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly name: "task";
|
|
1706
|
+
readonly type: "tuple";
|
|
1707
|
+
readonly components: readonly [{
|
|
1708
|
+
readonly name: "method";
|
|
1709
|
+
readonly type: "string";
|
|
1710
|
+
}, {
|
|
1711
|
+
readonly name: "uri";
|
|
1712
|
+
readonly type: "string";
|
|
1713
|
+
}, {
|
|
1714
|
+
readonly name: "reqBodyHash";
|
|
1715
|
+
readonly type: "bytes32";
|
|
1716
|
+
}, {
|
|
1717
|
+
readonly name: "respBodyHash";
|
|
1718
|
+
readonly type: "bytes32";
|
|
1719
|
+
}, {
|
|
1720
|
+
readonly name: "statusCode";
|
|
1721
|
+
readonly type: "uint16";
|
|
1722
|
+
}];
|
|
1723
|
+
}];
|
|
1724
|
+
readonly outputs: readonly [{
|
|
1725
|
+
readonly name: "feedbackIndex";
|
|
1726
|
+
readonly type: "uint64";
|
|
1727
|
+
}];
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly type: "function";
|
|
1730
|
+
readonly name: "canonicalReputation";
|
|
1731
|
+
readonly stateMutability: "view";
|
|
1732
|
+
readonly inputs: readonly [];
|
|
1733
|
+
readonly outputs: readonly [{
|
|
1734
|
+
readonly name: "";
|
|
1735
|
+
readonly type: "address";
|
|
1736
|
+
}];
|
|
1737
|
+
}, {
|
|
1738
|
+
readonly type: "function";
|
|
1739
|
+
readonly name: "verifiedFeedback";
|
|
1740
|
+
readonly stateMutability: "view";
|
|
1741
|
+
readonly inputs: readonly [];
|
|
1742
|
+
readonly outputs: readonly [{
|
|
1743
|
+
readonly name: "";
|
|
1744
|
+
readonly type: "address";
|
|
1745
|
+
}];
|
|
1746
|
+
}];
|
|
1747
|
+
/**
|
|
1748
|
+
* CloneGate — policy-mode cloning SATELLITE of AgenticID (the core contract
|
|
1749
|
+
* sits at the EIP-170 bytecode ceiling; clone policy + lineage live here).
|
|
1750
|
+
* The owner opts in with setCloneAuthorizer; the attestor mints through
|
|
1751
|
+
* cloneFrom, which consults the policy atomically. cloneAuthorizerOf returns
|
|
1752
|
+
* the EFFECTIVE authorizer: 0 when unset, cleared, or auto-invalidated by an
|
|
1753
|
+
* ownership transfer since it was set.
|
|
1754
|
+
*/
|
|
1755
|
+
export declare const cloneGateAbi: readonly [{
|
|
1756
|
+
readonly type: "error";
|
|
1757
|
+
readonly name: "CloneGateNotTrustedAttestor";
|
|
1758
|
+
readonly inputs: readonly [];
|
|
1759
|
+
}, {
|
|
1760
|
+
readonly type: "error";
|
|
1761
|
+
readonly name: "CloneGateNotTokenOwner";
|
|
1762
|
+
readonly inputs: readonly [{
|
|
1763
|
+
readonly name: "caller";
|
|
1764
|
+
readonly type: "address";
|
|
1765
|
+
}, {
|
|
1766
|
+
readonly name: "tokenId";
|
|
1767
|
+
readonly type: "uint256";
|
|
1768
|
+
}, {
|
|
1769
|
+
readonly name: "owner";
|
|
1770
|
+
readonly type: "address";
|
|
1771
|
+
}];
|
|
1772
|
+
}, {
|
|
1773
|
+
readonly type: "error";
|
|
1774
|
+
readonly name: "CloneGateDenied";
|
|
1775
|
+
readonly inputs: readonly [{
|
|
1776
|
+
readonly name: "sourceAgentId";
|
|
1777
|
+
readonly type: "uint256";
|
|
1778
|
+
}, {
|
|
1779
|
+
readonly name: "authorizer";
|
|
1780
|
+
readonly type: "address";
|
|
1781
|
+
}];
|
|
1782
|
+
}, {
|
|
1783
|
+
readonly type: "error";
|
|
1784
|
+
readonly name: "CloneGateDataHashMismatch";
|
|
1785
|
+
readonly inputs: readonly [{
|
|
1786
|
+
readonly name: "index";
|
|
1787
|
+
readonly type: "uint256";
|
|
1788
|
+
}, {
|
|
1789
|
+
readonly name: "onChain";
|
|
1790
|
+
readonly type: "bytes32";
|
|
1791
|
+
}, {
|
|
1792
|
+
readonly name: "submitted";
|
|
1793
|
+
readonly type: "bytes32";
|
|
1794
|
+
}];
|
|
1795
|
+
}, {
|
|
1796
|
+
readonly type: "error";
|
|
1797
|
+
readonly name: "CloneGateArityMismatch";
|
|
1798
|
+
readonly inputs: readonly [{
|
|
1799
|
+
readonly name: "expected";
|
|
1800
|
+
readonly type: "uint256";
|
|
1801
|
+
}, {
|
|
1802
|
+
readonly name: "got";
|
|
1803
|
+
readonly type: "uint256";
|
|
1804
|
+
}];
|
|
1805
|
+
}, {
|
|
1806
|
+
readonly type: "function";
|
|
1807
|
+
readonly name: "setCloneAuthorizer";
|
|
1808
|
+
readonly stateMutability: "nonpayable";
|
|
1809
|
+
readonly inputs: readonly [{
|
|
1810
|
+
readonly name: "tokenId";
|
|
1811
|
+
readonly type: "uint256";
|
|
1812
|
+
}, {
|
|
1813
|
+
readonly name: "authorizer";
|
|
1814
|
+
readonly type: "address";
|
|
1815
|
+
}];
|
|
1816
|
+
readonly outputs: readonly [];
|
|
1817
|
+
}, {
|
|
1818
|
+
readonly type: "function";
|
|
1819
|
+
readonly name: "cloneAuthorizerOf";
|
|
1820
|
+
readonly stateMutability: "view";
|
|
1821
|
+
readonly inputs: readonly [{
|
|
1822
|
+
readonly name: "tokenId";
|
|
1823
|
+
readonly type: "uint256";
|
|
1824
|
+
}];
|
|
1825
|
+
readonly outputs: readonly [{
|
|
1826
|
+
readonly name: "";
|
|
1827
|
+
readonly type: "address";
|
|
1828
|
+
}];
|
|
1829
|
+
}, {
|
|
1830
|
+
readonly type: "function";
|
|
1831
|
+
readonly name: "cloneSourceOf";
|
|
1832
|
+
readonly stateMutability: "view";
|
|
1833
|
+
readonly inputs: readonly [{
|
|
1834
|
+
readonly name: "agentId_";
|
|
1835
|
+
readonly type: "uint256";
|
|
1836
|
+
}];
|
|
1837
|
+
readonly outputs: readonly [{
|
|
1838
|
+
readonly name: "";
|
|
1839
|
+
readonly type: "uint256";
|
|
1840
|
+
}];
|
|
1841
|
+
}, {
|
|
1842
|
+
readonly type: "function";
|
|
1843
|
+
readonly name: "cloneFrom";
|
|
1844
|
+
readonly stateMutability: "nonpayable";
|
|
1845
|
+
readonly inputs: readonly [{
|
|
1846
|
+
readonly name: "sourceAgentId";
|
|
1847
|
+
readonly type: "uint256";
|
|
1848
|
+
}, {
|
|
1849
|
+
readonly name: "to";
|
|
1850
|
+
readonly type: "address";
|
|
1851
|
+
}, {
|
|
1852
|
+
readonly name: "dataHashes";
|
|
1853
|
+
readonly type: "bytes32[]";
|
|
1854
|
+
}, {
|
|
1855
|
+
readonly name: "sealedKeys";
|
|
1856
|
+
readonly type: "bytes[]";
|
|
1857
|
+
}, {
|
|
1858
|
+
readonly name: "newAgentSeal";
|
|
1859
|
+
readonly type: "address";
|
|
1860
|
+
}, {
|
|
1861
|
+
readonly name: "newSealId";
|
|
1862
|
+
readonly type: "bytes32";
|
|
1863
|
+
}, {
|
|
1864
|
+
readonly name: "caller";
|
|
1865
|
+
readonly type: "address";
|
|
1866
|
+
}, {
|
|
1867
|
+
readonly name: "authData";
|
|
1868
|
+
readonly type: "bytes";
|
|
1869
|
+
}];
|
|
1870
|
+
readonly outputs: readonly [{
|
|
1871
|
+
readonly name: "agentId_";
|
|
1872
|
+
readonly type: "uint256";
|
|
1873
|
+
}];
|
|
1874
|
+
}, {
|
|
1875
|
+
readonly type: "event";
|
|
1876
|
+
readonly name: "CloneAuthorizerSet";
|
|
1877
|
+
readonly inputs: readonly [{
|
|
1878
|
+
readonly name: "tokenId";
|
|
1879
|
+
readonly type: "uint256";
|
|
1880
|
+
readonly indexed: true;
|
|
1881
|
+
}, {
|
|
1882
|
+
readonly name: "authorizer";
|
|
1883
|
+
readonly type: "address";
|
|
1884
|
+
readonly indexed: true;
|
|
1885
|
+
}, {
|
|
1886
|
+
readonly name: "owner";
|
|
1887
|
+
readonly type: "address";
|
|
1888
|
+
readonly indexed: false;
|
|
1889
|
+
}];
|
|
1890
|
+
}, {
|
|
1891
|
+
readonly type: "event";
|
|
1892
|
+
readonly name: "ClonedFrom";
|
|
1893
|
+
readonly inputs: readonly [{
|
|
1894
|
+
readonly name: "sourceAgentId";
|
|
1895
|
+
readonly type: "uint256";
|
|
1896
|
+
readonly indexed: true;
|
|
1897
|
+
}, {
|
|
1898
|
+
readonly name: "newAgentId";
|
|
1899
|
+
readonly type: "uint256";
|
|
1900
|
+
readonly indexed: true;
|
|
1901
|
+
}, {
|
|
1902
|
+
readonly name: "to";
|
|
1903
|
+
readonly type: "address";
|
|
1904
|
+
readonly indexed: true;
|
|
1905
|
+
}, {
|
|
1906
|
+
readonly name: "caller";
|
|
1907
|
+
readonly type: "address";
|
|
1908
|
+
readonly indexed: false;
|
|
1909
|
+
}];
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly type: "function";
|
|
1912
|
+
readonly name: "agenticId";
|
|
1913
|
+
readonly stateMutability: "view";
|
|
1914
|
+
readonly inputs: readonly [];
|
|
1915
|
+
readonly outputs: readonly [{
|
|
1916
|
+
readonly name: "";
|
|
1917
|
+
readonly type: "address";
|
|
1918
|
+
}];
|
|
1919
|
+
}];
|
|
1920
|
+
/**
|
|
1921
|
+
* StandardCloneAuthorizer — the OFFICIAL stock clone policy: a per-buyer
|
|
1922
|
+
* permission switch keyed (sourceAgentId, buyer), grant/revoke gated on the
|
|
1923
|
+
* source's current owner. The SDK's grantClone/revokeClone/cloneGrantOf
|
|
1924
|
+
* helpers speak this ABI to whatever authorizer the token has configured —
|
|
1925
|
+
* they only work when that policy IS the standard one (a custom policy has
|
|
1926
|
+
* its own management surface).
|
|
1927
|
+
*/
|
|
1928
|
+
export declare const standardCloneAuthorizerAbi: readonly [{
|
|
1929
|
+
readonly type: "function";
|
|
1930
|
+
readonly name: "grant";
|
|
1931
|
+
readonly stateMutability: "nonpayable";
|
|
1932
|
+
readonly inputs: readonly [{
|
|
1933
|
+
readonly name: "sourceAgentId";
|
|
1934
|
+
readonly type: "uint256";
|
|
1935
|
+
}, {
|
|
1936
|
+
readonly name: "buyer";
|
|
1937
|
+
readonly type: "address";
|
|
1938
|
+
}];
|
|
1939
|
+
readonly outputs: readonly [];
|
|
1940
|
+
}, {
|
|
1941
|
+
readonly type: "function";
|
|
1942
|
+
readonly name: "revoke";
|
|
1943
|
+
readonly stateMutability: "nonpayable";
|
|
1944
|
+
readonly inputs: readonly [{
|
|
1945
|
+
readonly name: "sourceAgentId";
|
|
1946
|
+
readonly type: "uint256";
|
|
1947
|
+
}, {
|
|
1948
|
+
readonly name: "buyer";
|
|
1949
|
+
readonly type: "address";
|
|
1950
|
+
}];
|
|
1951
|
+
readonly outputs: readonly [];
|
|
1952
|
+
}, {
|
|
1953
|
+
readonly type: "function";
|
|
1954
|
+
readonly name: "grantOf";
|
|
1955
|
+
readonly stateMutability: "view";
|
|
1956
|
+
readonly inputs: readonly [{
|
|
1957
|
+
readonly name: "sourceAgentId";
|
|
1958
|
+
readonly type: "uint256";
|
|
1959
|
+
}, {
|
|
1960
|
+
readonly name: "buyer";
|
|
1961
|
+
readonly type: "address";
|
|
1962
|
+
}];
|
|
1963
|
+
readonly outputs: readonly [{
|
|
1964
|
+
readonly name: "grantor";
|
|
1965
|
+
readonly type: "address";
|
|
1966
|
+
}, {
|
|
1967
|
+
readonly name: "effective";
|
|
1968
|
+
readonly type: "bool";
|
|
1969
|
+
}];
|
|
1970
|
+
}, {
|
|
1971
|
+
readonly type: "function";
|
|
1972
|
+
readonly name: "canClone";
|
|
1973
|
+
readonly stateMutability: "view";
|
|
1974
|
+
readonly inputs: readonly [{
|
|
1975
|
+
readonly name: "sourceAgentId";
|
|
1976
|
+
readonly type: "uint256";
|
|
1977
|
+
}, {
|
|
1978
|
+
readonly name: "targetOwner";
|
|
1979
|
+
readonly type: "address";
|
|
1980
|
+
}, {
|
|
1981
|
+
readonly name: "caller";
|
|
1982
|
+
readonly type: "address";
|
|
1983
|
+
}, {
|
|
1984
|
+
readonly name: "data";
|
|
1985
|
+
readonly type: "bytes";
|
|
1986
|
+
}];
|
|
1987
|
+
readonly outputs: readonly [{
|
|
1988
|
+
readonly name: "";
|
|
1989
|
+
readonly type: "bool";
|
|
1990
|
+
}];
|
|
1991
|
+
}, {
|
|
1992
|
+
readonly type: "error";
|
|
1993
|
+
readonly name: "StdCloneAuthNotSeller";
|
|
1994
|
+
readonly inputs: readonly [{
|
|
1995
|
+
readonly name: "caller";
|
|
1996
|
+
readonly type: "address";
|
|
1997
|
+
}, {
|
|
1998
|
+
readonly name: "sourceAgentId";
|
|
1999
|
+
readonly type: "uint256";
|
|
2000
|
+
}, {
|
|
2001
|
+
readonly name: "seller";
|
|
2002
|
+
readonly type: "address";
|
|
2003
|
+
}];
|
|
2004
|
+
}, {
|
|
2005
|
+
readonly type: "event";
|
|
2006
|
+
readonly name: "CloneGranted";
|
|
2007
|
+
readonly inputs: readonly [{
|
|
2008
|
+
readonly name: "sourceAgentId";
|
|
2009
|
+
readonly type: "uint256";
|
|
2010
|
+
readonly indexed: true;
|
|
2011
|
+
}, {
|
|
2012
|
+
readonly name: "buyer";
|
|
2013
|
+
readonly type: "address";
|
|
2014
|
+
readonly indexed: true;
|
|
2015
|
+
}, {
|
|
2016
|
+
readonly name: "seller";
|
|
2017
|
+
readonly type: "address";
|
|
2018
|
+
readonly indexed: false;
|
|
2019
|
+
}];
|
|
2020
|
+
}, {
|
|
2021
|
+
readonly type: "event";
|
|
2022
|
+
readonly name: "CloneRevoked";
|
|
2023
|
+
readonly inputs: readonly [{
|
|
2024
|
+
readonly name: "sourceAgentId";
|
|
2025
|
+
readonly type: "uint256";
|
|
2026
|
+
readonly indexed: true;
|
|
2027
|
+
}, {
|
|
2028
|
+
readonly name: "buyer";
|
|
2029
|
+
readonly type: "address";
|
|
2030
|
+
readonly indexed: true;
|
|
2031
|
+
}, {
|
|
2032
|
+
readonly name: "seller";
|
|
2033
|
+
readonly type: "address";
|
|
2034
|
+
readonly indexed: false;
|
|
2035
|
+
}];
|
|
2036
|
+
}];
|
|
2037
|
+
/**
|
|
2038
|
+
* TappRegistry — trust-root acknowledgement. `ack` acknowledges the set of
|
|
2039
|
+
* TEE components (attestor, kms, sandbox) the deploy/sandbox flow depends on.
|
|
2040
|
+
*/
|
|
2041
|
+
export declare const tappRegistryAbi: readonly [{
|
|
2042
|
+
readonly type: "function";
|
|
2043
|
+
readonly name: "acknowledgeApps";
|
|
2044
|
+
readonly stateMutability: "nonpayable";
|
|
2045
|
+
readonly inputs: readonly [{
|
|
2046
|
+
readonly name: "appIds";
|
|
2047
|
+
readonly type: "string[]";
|
|
2048
|
+
}];
|
|
2049
|
+
readonly outputs: readonly [];
|
|
2050
|
+
}, {
|
|
2051
|
+
readonly type: "function";
|
|
2052
|
+
readonly name: "isAcknowledged";
|
|
2053
|
+
readonly stateMutability: "view";
|
|
2054
|
+
readonly inputs: readonly [{
|
|
2055
|
+
readonly name: "user";
|
|
2056
|
+
readonly type: "address";
|
|
2057
|
+
}, {
|
|
2058
|
+
readonly name: "appId";
|
|
2059
|
+
readonly type: "string";
|
|
2060
|
+
}];
|
|
2061
|
+
readonly outputs: readonly [{
|
|
2062
|
+
readonly name: "";
|
|
2063
|
+
readonly type: "bool";
|
|
2064
|
+
}];
|
|
2065
|
+
}, {
|
|
2066
|
+
readonly type: "function";
|
|
2067
|
+
readonly name: "getAckVersion";
|
|
2068
|
+
readonly stateMutability: "view";
|
|
2069
|
+
readonly inputs: readonly [{
|
|
2070
|
+
readonly name: "appId";
|
|
2071
|
+
readonly type: "string";
|
|
2072
|
+
}];
|
|
2073
|
+
readonly outputs: readonly [{
|
|
2074
|
+
readonly name: "";
|
|
2075
|
+
readonly type: "uint256";
|
|
2076
|
+
}];
|
|
2077
|
+
}, {
|
|
2078
|
+
readonly type: "function";
|
|
2079
|
+
readonly name: "getAppInfo";
|
|
2080
|
+
readonly stateMutability: "view";
|
|
2081
|
+
readonly inputs: readonly [{
|
|
2082
|
+
readonly name: "appId";
|
|
2083
|
+
readonly type: "string";
|
|
2084
|
+
}];
|
|
2085
|
+
readonly outputs: readonly [{
|
|
2086
|
+
readonly name: "";
|
|
2087
|
+
readonly type: "tuple";
|
|
2088
|
+
readonly components: readonly [{
|
|
2089
|
+
readonly name: "composeHash";
|
|
2090
|
+
readonly type: "bytes";
|
|
2091
|
+
}, {
|
|
2092
|
+
readonly name: "volumesHash";
|
|
2093
|
+
readonly type: "bytes";
|
|
2094
|
+
}, {
|
|
2095
|
+
readonly name: "imageHashes";
|
|
2096
|
+
readonly type: "bytes[]";
|
|
2097
|
+
}, {
|
|
2098
|
+
readonly name: "owner";
|
|
2099
|
+
readonly type: "address";
|
|
2100
|
+
}, {
|
|
2101
|
+
readonly name: "registeredAt";
|
|
2102
|
+
readonly type: "uint256";
|
|
2103
|
+
}];
|
|
2104
|
+
}];
|
|
2105
|
+
}, {
|
|
2106
|
+
readonly type: "function";
|
|
2107
|
+
readonly name: "getNodeList";
|
|
2108
|
+
readonly stateMutability: "view";
|
|
2109
|
+
readonly inputs: readonly [{
|
|
2110
|
+
readonly name: "appId";
|
|
2111
|
+
readonly type: "string";
|
|
2112
|
+
}];
|
|
2113
|
+
readonly outputs: readonly [{
|
|
2114
|
+
readonly name: "";
|
|
2115
|
+
readonly type: "address[]";
|
|
2116
|
+
}];
|
|
2117
|
+
}];
|
|
2118
|
+
/**
|
|
2119
|
+
* SandboxServing — prepaid sandbox balance. `deposit` funds the caller's (or a
|
|
2120
|
+
* recipient's) balance held against a provider; `getBalance` reads it.
|
|
2121
|
+
*/
|
|
2122
|
+
export declare const sandboxServingAbi: readonly [{
|
|
2123
|
+
readonly type: "function";
|
|
2124
|
+
readonly name: "deposit";
|
|
2125
|
+
readonly stateMutability: "payable";
|
|
2126
|
+
readonly inputs: readonly [{
|
|
2127
|
+
readonly name: "recipient";
|
|
2128
|
+
readonly type: "address";
|
|
2129
|
+
}, {
|
|
2130
|
+
readonly name: "provider";
|
|
2131
|
+
readonly type: "address";
|
|
2132
|
+
}];
|
|
2133
|
+
readonly outputs: readonly [];
|
|
2134
|
+
}, {
|
|
2135
|
+
readonly type: "function";
|
|
2136
|
+
readonly name: "requestRefund";
|
|
2137
|
+
readonly stateMutability: "nonpayable";
|
|
2138
|
+
readonly inputs: readonly [{
|
|
2139
|
+
readonly name: "provider";
|
|
2140
|
+
readonly type: "address";
|
|
2141
|
+
}, {
|
|
2142
|
+
readonly name: "amount";
|
|
2143
|
+
readonly type: "uint256";
|
|
2144
|
+
}];
|
|
2145
|
+
readonly outputs: readonly [];
|
|
2146
|
+
}, {
|
|
2147
|
+
readonly type: "function";
|
|
2148
|
+
readonly name: "withdrawRefund";
|
|
2149
|
+
readonly stateMutability: "nonpayable";
|
|
2150
|
+
readonly inputs: readonly [{
|
|
2151
|
+
readonly name: "provider";
|
|
2152
|
+
readonly type: "address";
|
|
2153
|
+
}];
|
|
2154
|
+
readonly outputs: readonly [];
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly type: "function";
|
|
2157
|
+
readonly name: "getBalance";
|
|
2158
|
+
readonly stateMutability: "view";
|
|
2159
|
+
readonly inputs: readonly [{
|
|
2160
|
+
readonly name: "user";
|
|
2161
|
+
readonly type: "address";
|
|
2162
|
+
}, {
|
|
2163
|
+
readonly name: "provider";
|
|
2164
|
+
readonly type: "address";
|
|
2165
|
+
}];
|
|
2166
|
+
readonly outputs: readonly [{
|
|
2167
|
+
readonly name: "balance";
|
|
2168
|
+
readonly type: "uint256";
|
|
2169
|
+
}, {
|
|
2170
|
+
readonly name: "pendingRefund";
|
|
2171
|
+
readonly type: "uint256";
|
|
2172
|
+
}, {
|
|
2173
|
+
readonly name: "refundUnlockAt";
|
|
2174
|
+
readonly type: "uint256";
|
|
2175
|
+
}];
|
|
2176
|
+
}, {
|
|
2177
|
+
readonly type: "function";
|
|
2178
|
+
readonly name: "services";
|
|
2179
|
+
readonly stateMutability: "view";
|
|
2180
|
+
readonly inputs: readonly [{
|
|
2181
|
+
readonly name: "provider";
|
|
2182
|
+
readonly type: "address";
|
|
2183
|
+
}];
|
|
2184
|
+
readonly outputs: readonly [{
|
|
2185
|
+
readonly name: "url";
|
|
2186
|
+
readonly type: "string";
|
|
2187
|
+
}, {
|
|
2188
|
+
readonly name: "appId";
|
|
2189
|
+
readonly type: "string";
|
|
2190
|
+
}, {
|
|
2191
|
+
readonly name: "pricePerCPUPerMin";
|
|
2192
|
+
readonly type: "uint256";
|
|
2193
|
+
}, {
|
|
2194
|
+
readonly name: "pricePerMemGBPerMin";
|
|
2195
|
+
readonly type: "uint256";
|
|
2196
|
+
}, {
|
|
2197
|
+
readonly name: "createFee";
|
|
2198
|
+
readonly type: "uint256";
|
|
2199
|
+
}];
|
|
2200
|
+
}, {
|
|
2201
|
+
readonly type: "function";
|
|
2202
|
+
readonly name: "isTEEAcknowledged";
|
|
2203
|
+
readonly stateMutability: "view";
|
|
2204
|
+
readonly inputs: readonly [{
|
|
2205
|
+
readonly name: "user";
|
|
2206
|
+
readonly type: "address";
|
|
2207
|
+
}, {
|
|
2208
|
+
readonly name: "provider";
|
|
2209
|
+
readonly type: "address";
|
|
2210
|
+
}];
|
|
2211
|
+
readonly outputs: readonly [{
|
|
2212
|
+
readonly name: "";
|
|
2213
|
+
readonly type: "bool";
|
|
2214
|
+
}];
|
|
2215
|
+
}];
|
|
2216
|
+
//# sourceMappingURL=abi.d.ts.map
|