@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.
- package/dev/.contracts-hash +1 -1
- package/dev/abis/IIdentityRegistry.abi.json +265 -0
- package/dev/abis/IIdentityRegistry.abi.ts +265 -0
- package/dev/abis/IIdentityRegistryBase.abi.json +113 -0
- package/dev/abis/IIdentityRegistryBase.abi.ts +113 -0
- package/dev/abis/IReputationRegistry.abi.json +440 -0
- package/dev/abis/IReputationRegistry.abi.ts +440 -0
- package/dev/abis/IReputationRegistryBase.abi.json +119 -0
- package/dev/abis/IReputationRegistryBase.abi.ts +119 -0
- package/dev/typings/IIdentityRegistry.ts +418 -0
- package/dev/typings/IReputationRegistry.ts +678 -0
- package/dev/typings/factories/IIdentityRegistry__factory.ts +289 -0
- package/dev/typings/factories/IReputationRegistry__factory.ts +464 -0
- package/dev/typings/factories/index.ts +2 -0
- package/dev/typings/index.ts +4 -0
- package/package.json +3 -3
- package/scripts/build-contract-types.sh +2 -2
|
@@ -0,0 +1,418 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type {
|
|
17
|
+
FunctionFragment,
|
|
18
|
+
Result,
|
|
19
|
+
EventFragment,
|
|
20
|
+
} from "@ethersproject/abi";
|
|
21
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
22
|
+
import type {
|
|
23
|
+
TypedEventFilter,
|
|
24
|
+
TypedEvent,
|
|
25
|
+
TypedListener,
|
|
26
|
+
OnEvent,
|
|
27
|
+
} from "./common";
|
|
28
|
+
|
|
29
|
+
export declare namespace IIdentityRegistryBase {
|
|
30
|
+
export type MetadataEntryStruct = {
|
|
31
|
+
metadataKey: string;
|
|
32
|
+
metadataValue: BytesLike;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type MetadataEntryStructOutput = [string, string] & {
|
|
36
|
+
metadataKey: string;
|
|
37
|
+
metadataValue: string;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IIdentityRegistryInterface extends utils.Interface {
|
|
42
|
+
functions: {
|
|
43
|
+
"getMetadata(uint256,string)": FunctionFragment;
|
|
44
|
+
"register()": FunctionFragment;
|
|
45
|
+
"register(string,(string,bytes)[])": FunctionFragment;
|
|
46
|
+
"register(string)": FunctionFragment;
|
|
47
|
+
"setAgentUri(uint256,string)": FunctionFragment;
|
|
48
|
+
"setMetadata(uint256,string,bytes)": FunctionFragment;
|
|
49
|
+
"tokenURI(uint256)": FunctionFragment;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
getFunction(
|
|
53
|
+
nameOrSignatureOrTopic:
|
|
54
|
+
| "getMetadata"
|
|
55
|
+
| "register()"
|
|
56
|
+
| "register(string,(string,bytes)[])"
|
|
57
|
+
| "register(string)"
|
|
58
|
+
| "setAgentUri"
|
|
59
|
+
| "setMetadata"
|
|
60
|
+
| "tokenURI"
|
|
61
|
+
): FunctionFragment;
|
|
62
|
+
|
|
63
|
+
encodeFunctionData(
|
|
64
|
+
functionFragment: "getMetadata",
|
|
65
|
+
values: [BigNumberish, string]
|
|
66
|
+
): string;
|
|
67
|
+
encodeFunctionData(
|
|
68
|
+
functionFragment: "register()",
|
|
69
|
+
values?: undefined
|
|
70
|
+
): string;
|
|
71
|
+
encodeFunctionData(
|
|
72
|
+
functionFragment: "register(string,(string,bytes)[])",
|
|
73
|
+
values: [string, IIdentityRegistryBase.MetadataEntryStruct[]]
|
|
74
|
+
): string;
|
|
75
|
+
encodeFunctionData(
|
|
76
|
+
functionFragment: "register(string)",
|
|
77
|
+
values: [string]
|
|
78
|
+
): string;
|
|
79
|
+
encodeFunctionData(
|
|
80
|
+
functionFragment: "setAgentUri",
|
|
81
|
+
values: [BigNumberish, string]
|
|
82
|
+
): string;
|
|
83
|
+
encodeFunctionData(
|
|
84
|
+
functionFragment: "setMetadata",
|
|
85
|
+
values: [BigNumberish, string, BytesLike]
|
|
86
|
+
): string;
|
|
87
|
+
encodeFunctionData(
|
|
88
|
+
functionFragment: "tokenURI",
|
|
89
|
+
values: [BigNumberish]
|
|
90
|
+
): string;
|
|
91
|
+
|
|
92
|
+
decodeFunctionResult(
|
|
93
|
+
functionFragment: "getMetadata",
|
|
94
|
+
data: BytesLike
|
|
95
|
+
): Result;
|
|
96
|
+
decodeFunctionResult(functionFragment: "register()", data: BytesLike): Result;
|
|
97
|
+
decodeFunctionResult(
|
|
98
|
+
functionFragment: "register(string,(string,bytes)[])",
|
|
99
|
+
data: BytesLike
|
|
100
|
+
): Result;
|
|
101
|
+
decodeFunctionResult(
|
|
102
|
+
functionFragment: "register(string)",
|
|
103
|
+
data: BytesLike
|
|
104
|
+
): Result;
|
|
105
|
+
decodeFunctionResult(
|
|
106
|
+
functionFragment: "setAgentUri",
|
|
107
|
+
data: BytesLike
|
|
108
|
+
): Result;
|
|
109
|
+
decodeFunctionResult(
|
|
110
|
+
functionFragment: "setMetadata",
|
|
111
|
+
data: BytesLike
|
|
112
|
+
): Result;
|
|
113
|
+
decodeFunctionResult(functionFragment: "tokenURI", data: BytesLike): Result;
|
|
114
|
+
|
|
115
|
+
events: {
|
|
116
|
+
"MetadataSet(uint256,string,string,bytes)": EventFragment;
|
|
117
|
+
"Registered(uint256,string,address)": EventFragment;
|
|
118
|
+
"UriUpdated(uint256,string,address)": EventFragment;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
getEvent(nameOrSignatureOrTopic: "MetadataSet"): EventFragment;
|
|
122
|
+
getEvent(nameOrSignatureOrTopic: "Registered"): EventFragment;
|
|
123
|
+
getEvent(nameOrSignatureOrTopic: "UriUpdated"): EventFragment;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface MetadataSetEventObject {
|
|
127
|
+
agentId: BigNumber;
|
|
128
|
+
indexedKey: string;
|
|
129
|
+
metadataKey: string;
|
|
130
|
+
metadataValue: string;
|
|
131
|
+
}
|
|
132
|
+
export type MetadataSetEvent = TypedEvent<
|
|
133
|
+
[BigNumber, string, string, string],
|
|
134
|
+
MetadataSetEventObject
|
|
135
|
+
>;
|
|
136
|
+
|
|
137
|
+
export type MetadataSetEventFilter = TypedEventFilter<MetadataSetEvent>;
|
|
138
|
+
|
|
139
|
+
export interface RegisteredEventObject {
|
|
140
|
+
agentId: BigNumber;
|
|
141
|
+
agentUri: string;
|
|
142
|
+
owner: string;
|
|
143
|
+
}
|
|
144
|
+
export type RegisteredEvent = TypedEvent<
|
|
145
|
+
[BigNumber, string, string],
|
|
146
|
+
RegisteredEventObject
|
|
147
|
+
>;
|
|
148
|
+
|
|
149
|
+
export type RegisteredEventFilter = TypedEventFilter<RegisteredEvent>;
|
|
150
|
+
|
|
151
|
+
export interface UriUpdatedEventObject {
|
|
152
|
+
agentId: BigNumber;
|
|
153
|
+
agentUri: string;
|
|
154
|
+
updatedBy: string;
|
|
155
|
+
}
|
|
156
|
+
export type UriUpdatedEvent = TypedEvent<
|
|
157
|
+
[BigNumber, string, string],
|
|
158
|
+
UriUpdatedEventObject
|
|
159
|
+
>;
|
|
160
|
+
|
|
161
|
+
export type UriUpdatedEventFilter = TypedEventFilter<UriUpdatedEvent>;
|
|
162
|
+
|
|
163
|
+
export interface IIdentityRegistry extends BaseContract {
|
|
164
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
165
|
+
attach(addressOrName: string): this;
|
|
166
|
+
deployed(): Promise<this>;
|
|
167
|
+
|
|
168
|
+
interface: IIdentityRegistryInterface;
|
|
169
|
+
|
|
170
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
171
|
+
event: TypedEventFilter<TEvent>,
|
|
172
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
173
|
+
toBlock?: string | number | undefined
|
|
174
|
+
): Promise<Array<TEvent>>;
|
|
175
|
+
|
|
176
|
+
listeners<TEvent extends TypedEvent>(
|
|
177
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
178
|
+
): Array<TypedListener<TEvent>>;
|
|
179
|
+
listeners(eventName?: string): Array<Listener>;
|
|
180
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
181
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
182
|
+
): this;
|
|
183
|
+
removeAllListeners(eventName?: string): this;
|
|
184
|
+
off: OnEvent<this>;
|
|
185
|
+
on: OnEvent<this>;
|
|
186
|
+
once: OnEvent<this>;
|
|
187
|
+
removeListener: OnEvent<this>;
|
|
188
|
+
|
|
189
|
+
functions: {
|
|
190
|
+
getMetadata(
|
|
191
|
+
agentId: BigNumberish,
|
|
192
|
+
metadataKey: string,
|
|
193
|
+
overrides?: CallOverrides
|
|
194
|
+
): Promise<[string]>;
|
|
195
|
+
|
|
196
|
+
"register()"(
|
|
197
|
+
overrides?: Overrides & { from?: string }
|
|
198
|
+
): Promise<ContractTransaction>;
|
|
199
|
+
|
|
200
|
+
"register(string,(string,bytes)[])"(
|
|
201
|
+
agentUri: string,
|
|
202
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
203
|
+
overrides?: Overrides & { from?: string }
|
|
204
|
+
): Promise<ContractTransaction>;
|
|
205
|
+
|
|
206
|
+
"register(string)"(
|
|
207
|
+
agentUri: string,
|
|
208
|
+
overrides?: Overrides & { from?: string }
|
|
209
|
+
): Promise<ContractTransaction>;
|
|
210
|
+
|
|
211
|
+
setAgentUri(
|
|
212
|
+
agentId: BigNumberish,
|
|
213
|
+
agentUri: string,
|
|
214
|
+
overrides?: Overrides & { from?: string }
|
|
215
|
+
): Promise<ContractTransaction>;
|
|
216
|
+
|
|
217
|
+
setMetadata(
|
|
218
|
+
agentId: BigNumberish,
|
|
219
|
+
metadataKey: string,
|
|
220
|
+
metadataValue: BytesLike,
|
|
221
|
+
overrides?: Overrides & { from?: string }
|
|
222
|
+
): Promise<ContractTransaction>;
|
|
223
|
+
|
|
224
|
+
tokenURI(
|
|
225
|
+
agentId: BigNumberish,
|
|
226
|
+
overrides?: CallOverrides
|
|
227
|
+
): Promise<[string]>;
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
getMetadata(
|
|
231
|
+
agentId: BigNumberish,
|
|
232
|
+
metadataKey: string,
|
|
233
|
+
overrides?: CallOverrides
|
|
234
|
+
): Promise<string>;
|
|
235
|
+
|
|
236
|
+
"register()"(
|
|
237
|
+
overrides?: Overrides & { from?: string }
|
|
238
|
+
): Promise<ContractTransaction>;
|
|
239
|
+
|
|
240
|
+
"register(string,(string,bytes)[])"(
|
|
241
|
+
agentUri: string,
|
|
242
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
243
|
+
overrides?: Overrides & { from?: string }
|
|
244
|
+
): Promise<ContractTransaction>;
|
|
245
|
+
|
|
246
|
+
"register(string)"(
|
|
247
|
+
agentUri: string,
|
|
248
|
+
overrides?: Overrides & { from?: string }
|
|
249
|
+
): Promise<ContractTransaction>;
|
|
250
|
+
|
|
251
|
+
setAgentUri(
|
|
252
|
+
agentId: BigNumberish,
|
|
253
|
+
agentUri: string,
|
|
254
|
+
overrides?: Overrides & { from?: string }
|
|
255
|
+
): Promise<ContractTransaction>;
|
|
256
|
+
|
|
257
|
+
setMetadata(
|
|
258
|
+
agentId: BigNumberish,
|
|
259
|
+
metadataKey: string,
|
|
260
|
+
metadataValue: BytesLike,
|
|
261
|
+
overrides?: Overrides & { from?: string }
|
|
262
|
+
): Promise<ContractTransaction>;
|
|
263
|
+
|
|
264
|
+
tokenURI(agentId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
265
|
+
|
|
266
|
+
callStatic: {
|
|
267
|
+
getMetadata(
|
|
268
|
+
agentId: BigNumberish,
|
|
269
|
+
metadataKey: string,
|
|
270
|
+
overrides?: CallOverrides
|
|
271
|
+
): Promise<string>;
|
|
272
|
+
|
|
273
|
+
"register()"(overrides?: CallOverrides): Promise<BigNumber>;
|
|
274
|
+
|
|
275
|
+
"register(string,(string,bytes)[])"(
|
|
276
|
+
agentUri: string,
|
|
277
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
278
|
+
overrides?: CallOverrides
|
|
279
|
+
): Promise<BigNumber>;
|
|
280
|
+
|
|
281
|
+
"register(string)"(
|
|
282
|
+
agentUri: string,
|
|
283
|
+
overrides?: CallOverrides
|
|
284
|
+
): Promise<BigNumber>;
|
|
285
|
+
|
|
286
|
+
setAgentUri(
|
|
287
|
+
agentId: BigNumberish,
|
|
288
|
+
agentUri: string,
|
|
289
|
+
overrides?: CallOverrides
|
|
290
|
+
): Promise<void>;
|
|
291
|
+
|
|
292
|
+
setMetadata(
|
|
293
|
+
agentId: BigNumberish,
|
|
294
|
+
metadataKey: string,
|
|
295
|
+
metadataValue: BytesLike,
|
|
296
|
+
overrides?: CallOverrides
|
|
297
|
+
): Promise<void>;
|
|
298
|
+
|
|
299
|
+
tokenURI(agentId: BigNumberish, overrides?: CallOverrides): Promise<string>;
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
filters: {
|
|
303
|
+
"MetadataSet(uint256,string,string,bytes)"(
|
|
304
|
+
agentId?: BigNumberish | null,
|
|
305
|
+
indexedKey?: string | null,
|
|
306
|
+
metadataKey?: null,
|
|
307
|
+
metadataValue?: null
|
|
308
|
+
): MetadataSetEventFilter;
|
|
309
|
+
MetadataSet(
|
|
310
|
+
agentId?: BigNumberish | null,
|
|
311
|
+
indexedKey?: string | null,
|
|
312
|
+
metadataKey?: null,
|
|
313
|
+
metadataValue?: null
|
|
314
|
+
): MetadataSetEventFilter;
|
|
315
|
+
|
|
316
|
+
"Registered(uint256,string,address)"(
|
|
317
|
+
agentId?: BigNumberish | null,
|
|
318
|
+
agentUri?: null,
|
|
319
|
+
owner?: string | null
|
|
320
|
+
): RegisteredEventFilter;
|
|
321
|
+
Registered(
|
|
322
|
+
agentId?: BigNumberish | null,
|
|
323
|
+
agentUri?: null,
|
|
324
|
+
owner?: string | null
|
|
325
|
+
): RegisteredEventFilter;
|
|
326
|
+
|
|
327
|
+
"UriUpdated(uint256,string,address)"(
|
|
328
|
+
agentId?: BigNumberish | null,
|
|
329
|
+
agentUri?: null,
|
|
330
|
+
updatedBy?: string | null
|
|
331
|
+
): UriUpdatedEventFilter;
|
|
332
|
+
UriUpdated(
|
|
333
|
+
agentId?: BigNumberish | null,
|
|
334
|
+
agentUri?: null,
|
|
335
|
+
updatedBy?: string | null
|
|
336
|
+
): UriUpdatedEventFilter;
|
|
337
|
+
};
|
|
338
|
+
|
|
339
|
+
estimateGas: {
|
|
340
|
+
getMetadata(
|
|
341
|
+
agentId: BigNumberish,
|
|
342
|
+
metadataKey: string,
|
|
343
|
+
overrides?: CallOverrides
|
|
344
|
+
): Promise<BigNumber>;
|
|
345
|
+
|
|
346
|
+
"register()"(overrides?: Overrides & { from?: string }): Promise<BigNumber>;
|
|
347
|
+
|
|
348
|
+
"register(string,(string,bytes)[])"(
|
|
349
|
+
agentUri: string,
|
|
350
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
351
|
+
overrides?: Overrides & { from?: string }
|
|
352
|
+
): Promise<BigNumber>;
|
|
353
|
+
|
|
354
|
+
"register(string)"(
|
|
355
|
+
agentUri: string,
|
|
356
|
+
overrides?: Overrides & { from?: string }
|
|
357
|
+
): Promise<BigNumber>;
|
|
358
|
+
|
|
359
|
+
setAgentUri(
|
|
360
|
+
agentId: BigNumberish,
|
|
361
|
+
agentUri: string,
|
|
362
|
+
overrides?: Overrides & { from?: string }
|
|
363
|
+
): Promise<BigNumber>;
|
|
364
|
+
|
|
365
|
+
setMetadata(
|
|
366
|
+
agentId: BigNumberish,
|
|
367
|
+
metadataKey: string,
|
|
368
|
+
metadataValue: BytesLike,
|
|
369
|
+
overrides?: Overrides & { from?: string }
|
|
370
|
+
): Promise<BigNumber>;
|
|
371
|
+
|
|
372
|
+
tokenURI(
|
|
373
|
+
agentId: BigNumberish,
|
|
374
|
+
overrides?: CallOverrides
|
|
375
|
+
): Promise<BigNumber>;
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
populateTransaction: {
|
|
379
|
+
getMetadata(
|
|
380
|
+
agentId: BigNumberish,
|
|
381
|
+
metadataKey: string,
|
|
382
|
+
overrides?: CallOverrides
|
|
383
|
+
): Promise<PopulatedTransaction>;
|
|
384
|
+
|
|
385
|
+
"register()"(
|
|
386
|
+
overrides?: Overrides & { from?: string }
|
|
387
|
+
): Promise<PopulatedTransaction>;
|
|
388
|
+
|
|
389
|
+
"register(string,(string,bytes)[])"(
|
|
390
|
+
agentUri: string,
|
|
391
|
+
metadata: IIdentityRegistryBase.MetadataEntryStruct[],
|
|
392
|
+
overrides?: Overrides & { from?: string }
|
|
393
|
+
): Promise<PopulatedTransaction>;
|
|
394
|
+
|
|
395
|
+
"register(string)"(
|
|
396
|
+
agentUri: string,
|
|
397
|
+
overrides?: Overrides & { from?: string }
|
|
398
|
+
): Promise<PopulatedTransaction>;
|
|
399
|
+
|
|
400
|
+
setAgentUri(
|
|
401
|
+
agentId: BigNumberish,
|
|
402
|
+
agentUri: string,
|
|
403
|
+
overrides?: Overrides & { from?: string }
|
|
404
|
+
): Promise<PopulatedTransaction>;
|
|
405
|
+
|
|
406
|
+
setMetadata(
|
|
407
|
+
agentId: BigNumberish,
|
|
408
|
+
metadataKey: string,
|
|
409
|
+
metadataValue: BytesLike,
|
|
410
|
+
overrides?: Overrides & { from?: string }
|
|
411
|
+
): Promise<PopulatedTransaction>;
|
|
412
|
+
|
|
413
|
+
tokenURI(
|
|
414
|
+
agentId: BigNumberish,
|
|
415
|
+
overrides?: CallOverrides
|
|
416
|
+
): Promise<PopulatedTransaction>;
|
|
417
|
+
};
|
|
418
|
+
}
|