@towns-protocol/generated 0.0.415 → 0.0.418

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.
@@ -0,0 +1,289 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IIdentityRegistry,
9
+ IIdentityRegistryInterface,
10
+ } from "../IIdentityRegistry";
11
+
12
+ const _abi = [
13
+ {
14
+ type: "function",
15
+ name: "getMetadata",
16
+ inputs: [
17
+ {
18
+ name: "agentId",
19
+ type: "uint256",
20
+ internalType: "uint256",
21
+ },
22
+ {
23
+ name: "metadataKey",
24
+ type: "string",
25
+ internalType: "string",
26
+ },
27
+ ],
28
+ outputs: [
29
+ {
30
+ name: "",
31
+ type: "bytes",
32
+ internalType: "bytes",
33
+ },
34
+ ],
35
+ stateMutability: "view",
36
+ },
37
+ {
38
+ type: "function",
39
+ name: "register",
40
+ inputs: [],
41
+ outputs: [
42
+ {
43
+ name: "agentId",
44
+ type: "uint256",
45
+ internalType: "uint256",
46
+ },
47
+ ],
48
+ stateMutability: "nonpayable",
49
+ },
50
+ {
51
+ type: "function",
52
+ name: "register",
53
+ inputs: [
54
+ {
55
+ name: "agentUri",
56
+ type: "string",
57
+ internalType: "string",
58
+ },
59
+ {
60
+ name: "metadata",
61
+ type: "tuple[]",
62
+ internalType: "struct IIdentityRegistryBase.MetadataEntry[]",
63
+ components: [
64
+ {
65
+ name: "metadataKey",
66
+ type: "string",
67
+ internalType: "string",
68
+ },
69
+ {
70
+ name: "metadataValue",
71
+ type: "bytes",
72
+ internalType: "bytes",
73
+ },
74
+ ],
75
+ },
76
+ ],
77
+ outputs: [
78
+ {
79
+ name: "agentId",
80
+ type: "uint256",
81
+ internalType: "uint256",
82
+ },
83
+ ],
84
+ stateMutability: "nonpayable",
85
+ },
86
+ {
87
+ type: "function",
88
+ name: "register",
89
+ inputs: [
90
+ {
91
+ name: "agentUri",
92
+ type: "string",
93
+ internalType: "string",
94
+ },
95
+ ],
96
+ outputs: [
97
+ {
98
+ name: "agentId",
99
+ type: "uint256",
100
+ internalType: "uint256",
101
+ },
102
+ ],
103
+ stateMutability: "nonpayable",
104
+ },
105
+ {
106
+ type: "function",
107
+ name: "setAgentUri",
108
+ inputs: [
109
+ {
110
+ name: "agentId",
111
+ type: "uint256",
112
+ internalType: "uint256",
113
+ },
114
+ {
115
+ name: "agentUri",
116
+ type: "string",
117
+ internalType: "string",
118
+ },
119
+ ],
120
+ outputs: [],
121
+ stateMutability: "nonpayable",
122
+ },
123
+ {
124
+ type: "function",
125
+ name: "setMetadata",
126
+ inputs: [
127
+ {
128
+ name: "agentId",
129
+ type: "uint256",
130
+ internalType: "uint256",
131
+ },
132
+ {
133
+ name: "metadataKey",
134
+ type: "string",
135
+ internalType: "string",
136
+ },
137
+ {
138
+ name: "metadataValue",
139
+ type: "bytes",
140
+ internalType: "bytes",
141
+ },
142
+ ],
143
+ outputs: [],
144
+ stateMutability: "nonpayable",
145
+ },
146
+ {
147
+ type: "function",
148
+ name: "tokenURI",
149
+ inputs: [
150
+ {
151
+ name: "agentId",
152
+ type: "uint256",
153
+ internalType: "uint256",
154
+ },
155
+ ],
156
+ outputs: [
157
+ {
158
+ name: "",
159
+ type: "string",
160
+ internalType: "string",
161
+ },
162
+ ],
163
+ stateMutability: "view",
164
+ },
165
+ {
166
+ type: "event",
167
+ name: "MetadataSet",
168
+ inputs: [
169
+ {
170
+ name: "agentId",
171
+ type: "uint256",
172
+ indexed: true,
173
+ internalType: "uint256",
174
+ },
175
+ {
176
+ name: "indexedKey",
177
+ type: "string",
178
+ indexed: true,
179
+ internalType: "string",
180
+ },
181
+ {
182
+ name: "metadataKey",
183
+ type: "string",
184
+ indexed: false,
185
+ internalType: "string",
186
+ },
187
+ {
188
+ name: "metadataValue",
189
+ type: "bytes",
190
+ indexed: false,
191
+ internalType: "bytes",
192
+ },
193
+ ],
194
+ anonymous: false,
195
+ },
196
+ {
197
+ type: "event",
198
+ name: "Registered",
199
+ inputs: [
200
+ {
201
+ name: "agentId",
202
+ type: "uint256",
203
+ indexed: true,
204
+ internalType: "uint256",
205
+ },
206
+ {
207
+ name: "agentUri",
208
+ type: "string",
209
+ indexed: false,
210
+ internalType: "string",
211
+ },
212
+ {
213
+ name: "owner",
214
+ type: "address",
215
+ indexed: true,
216
+ internalType: "address",
217
+ },
218
+ ],
219
+ anonymous: false,
220
+ },
221
+ {
222
+ type: "event",
223
+ name: "UriUpdated",
224
+ inputs: [
225
+ {
226
+ name: "agentId",
227
+ type: "uint256",
228
+ indexed: true,
229
+ internalType: "uint256",
230
+ },
231
+ {
232
+ name: "agentUri",
233
+ type: "string",
234
+ indexed: false,
235
+ internalType: "string",
236
+ },
237
+ {
238
+ name: "updatedBy",
239
+ type: "address",
240
+ indexed: true,
241
+ internalType: "address",
242
+ },
243
+ ],
244
+ anonymous: false,
245
+ },
246
+ {
247
+ type: "error",
248
+ name: "IdentityRegistry__AgentAlreadyPromoted",
249
+ inputs: [],
250
+ },
251
+ {
252
+ type: "error",
253
+ name: "IdentityRegistry__AgentBanned",
254
+ inputs: [],
255
+ },
256
+ {
257
+ type: "error",
258
+ name: "IdentityRegistry__AgentDoesNotExist",
259
+ inputs: [],
260
+ },
261
+ {
262
+ type: "error",
263
+ name: "IdentityRegistry__AgentNotRegistered",
264
+ inputs: [],
265
+ },
266
+ {
267
+ type: "error",
268
+ name: "IdentityRegistry__NotAuthorized",
269
+ inputs: [],
270
+ },
271
+ {
272
+ type: "error",
273
+ name: "IdentityRegistry__TooManyMetadataEntries",
274
+ inputs: [],
275
+ },
276
+ ] as const;
277
+
278
+ export class IIdentityRegistry__factory {
279
+ static readonly abi = _abi;
280
+ static createInterface(): IIdentityRegistryInterface {
281
+ return new utils.Interface(_abi) as IIdentityRegistryInterface;
282
+ }
283
+ static connect(
284
+ address: string,
285
+ signerOrProvider: Signer | Provider
286
+ ): IIdentityRegistry {
287
+ return new Contract(address, _abi, signerOrProvider) as IIdentityRegistry;
288
+ }
289
+ }