@web3dotorg/evm-slc-core-sdk 0.3.2

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.
Files changed (58) hide show
  1. package/common.ts +131 -0
  2. package/constants.ts +34 -0
  3. package/contracts/governance/ExecutorsRegistry.ts +1249 -0
  4. package/contracts/governance/Governance.ts +1740 -0
  5. package/contracts/governance/NeutralsRegistry.ts +1393 -0
  6. package/contracts/governance/ParameterRegistry.ts +832 -0
  7. package/contracts/governance/index.ts +7 -0
  8. package/contracts/index.ts +15 -0
  9. package/contracts/interfaces/IExecutorsRegistry.ts +601 -0
  10. package/contracts/interfaces/IGovernance.ts +215 -0
  11. package/contracts/interfaces/INeutralsRegistry.ts +624 -0
  12. package/contracts/interfaces/IQParameters.ts +109 -0
  13. package/contracts/interfaces/ISLCCore.ts +289 -0
  14. package/contracts/interfaces/ISLCCoreFactory.ts +217 -0
  15. package/contracts/interfaces/IWrappedToken.ts +272 -0
  16. package/contracts/interfaces/index.ts +10 -0
  17. package/contracts/libs/Errors.ts +71 -0
  18. package/contracts/libs/NeutralsSelection.ts +71 -0
  19. package/contracts/libs/index.ts +5 -0
  20. package/contracts/mocks/MockGovernance.ts +389 -0
  21. package/contracts/mocks/MockNeutralsRegistry.ts +791 -0
  22. package/contracts/mocks/SimpleContract.ts +110 -0
  23. package/contracts/mocks/WrappedToken.ts +334 -0
  24. package/contracts/mocks/index.ts +7 -0
  25. package/contracts/slc-core/SLCCore.ts +397 -0
  26. package/contracts/slc-core/SLCCoreFactory.ts +559 -0
  27. package/contracts/slc-core/index.ts +5 -0
  28. package/contracts/token/Token.ts +399 -0
  29. package/contracts/token/index.ts +4 -0
  30. package/factories/contracts/governance/ExecutorsRegistry__factory.ts +1240 -0
  31. package/factories/contracts/governance/Governance__factory.ts +2328 -0
  32. package/factories/contracts/governance/NeutralsRegistry__factory.ts +1491 -0
  33. package/factories/contracts/governance/ParameterRegistry__factory.ts +834 -0
  34. package/factories/contracts/governance/index.ts +7 -0
  35. package/factories/contracts/index.ts +9 -0
  36. package/factories/contracts/interfaces/IExecutorsRegistry__factory.ts +428 -0
  37. package/factories/contracts/interfaces/IGovernance__factory.ts +153 -0
  38. package/factories/contracts/interfaces/INeutralsRegistry__factory.ts +527 -0
  39. package/factories/contracts/interfaces/IQParameters__factory.ts +101 -0
  40. package/factories/contracts/interfaces/ISLCCoreFactory__factory.ts +197 -0
  41. package/factories/contracts/interfaces/ISLCCore__factory.ts +227 -0
  42. package/factories/contracts/interfaces/IWrappedToken__factory.ts +221 -0
  43. package/factories/contracts/interfaces/index.ts +10 -0
  44. package/factories/contracts/libs/Errors__factory.ts +205 -0
  45. package/factories/contracts/libs/NeutralsSelection__factory.ts +103 -0
  46. package/factories/contracts/libs/index.ts +5 -0
  47. package/factories/contracts/mocks/MockGovernance__factory.ts +353 -0
  48. package/factories/contracts/mocks/MockNeutralsRegistry__factory.ts +730 -0
  49. package/factories/contracts/mocks/SimpleContract__factory.ts +110 -0
  50. package/factories/contracts/mocks/WrappedToken__factory.ts +433 -0
  51. package/factories/contracts/mocks/index.ts +7 -0
  52. package/factories/contracts/slc-core/SLCCoreFactory__factory.ts +568 -0
  53. package/factories/contracts/slc-core/SLCCore__factory.ts +373 -0
  54. package/factories/contracts/slc-core/index.ts +5 -0
  55. package/factories/contracts/token/Token__factory.ts +505 -0
  56. package/factories/contracts/token/index.ts +4 -0
  57. package/index.ts +38 -0
  58. package/package.json +25 -0
@@ -0,0 +1,832 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ EventFragment,
12
+ AddressLike,
13
+ ContractRunner,
14
+ ContractMethod,
15
+ Listener,
16
+ } from "ethers";
17
+ import type {
18
+ TypedContractEvent,
19
+ TypedDeferredTopicFilter,
20
+ TypedEventLog,
21
+ TypedLogDescription,
22
+ TypedListener,
23
+ TypedContractMethod,
24
+ } from "../../common";
25
+
26
+ export declare namespace ParameterRegistry {
27
+ export type AddressParameterStruct = { key: string; value: AddressLike };
28
+
29
+ export type AddressParameterStructOutput = [key: string, value: string] & {
30
+ key: string;
31
+ value: string;
32
+ };
33
+
34
+ export type Bytes32ParameterStruct = { key: string; value: BytesLike };
35
+
36
+ export type Bytes32ParameterStructOutput = [key: string, value: string] & {
37
+ key: string;
38
+ value: string;
39
+ };
40
+
41
+ export type StringParameterStruct = { key: string; value: string };
42
+
43
+ export type StringParameterStructOutput = [key: string, value: string] & {
44
+ key: string;
45
+ value: string;
46
+ };
47
+
48
+ export type UintParameterStruct = { key: string; value: BigNumberish };
49
+
50
+ export type UintParameterStructOutput = [key: string, value: bigint] & {
51
+ key: string;
52
+ value: bigint;
53
+ };
54
+ }
55
+
56
+ export interface ParameterRegistryInterface extends Interface {
57
+ getFunction(
58
+ nameOrSignature:
59
+ | "UPGRADE_INTERFACE_VERSION"
60
+ | "__ParameterRegistry_init"
61
+ | "addOwners"
62
+ | "getAddr"
63
+ | "getAddressParameters"
64
+ | "getBytes32"
65
+ | "getBytes32Parameters"
66
+ | "getOwners"
67
+ | "getParameterCounts"
68
+ | "getString"
69
+ | "getStringParameters"
70
+ | "getUint"
71
+ | "getUintParameters"
72
+ | "hasParameter"
73
+ | "implementation"
74
+ | "isOwner"
75
+ | "proxiableUUID"
76
+ | "removeAddr"
77
+ | "removeBytes32"
78
+ | "removeOwners"
79
+ | "removeString"
80
+ | "removeUint"
81
+ | "renounceOwnership"
82
+ | "setAddr"
83
+ | "setBytes32"
84
+ | "setString"
85
+ | "setUint"
86
+ | "supportsInterface"
87
+ | "upgradeToAndCall"
88
+ ): FunctionFragment;
89
+
90
+ getEvent(
91
+ nameOrSignatureOrTopic:
92
+ | "AddressParameterSet"
93
+ | "Bytes32ParameterSet"
94
+ | "Initialized"
95
+ | "OwnersAdded"
96
+ | "OwnersRemoved"
97
+ | "StringParameterSet"
98
+ | "UintParameterSet"
99
+ | "Upgraded"
100
+ ): EventFragment;
101
+
102
+ encodeFunctionData(
103
+ functionFragment: "UPGRADE_INTERFACE_VERSION",
104
+ values?: undefined
105
+ ): string;
106
+ encodeFunctionData(
107
+ functionFragment: "__ParameterRegistry_init",
108
+ values: [AddressLike[]]
109
+ ): string;
110
+ encodeFunctionData(
111
+ functionFragment: "addOwners",
112
+ values: [AddressLike[]]
113
+ ): string;
114
+ encodeFunctionData(functionFragment: "getAddr", values: [string]): string;
115
+ encodeFunctionData(
116
+ functionFragment: "getAddressParameters",
117
+ values: [BigNumberish, BigNumberish]
118
+ ): string;
119
+ encodeFunctionData(functionFragment: "getBytes32", values: [string]): string;
120
+ encodeFunctionData(
121
+ functionFragment: "getBytes32Parameters",
122
+ values: [BigNumberish, BigNumberish]
123
+ ): string;
124
+ encodeFunctionData(functionFragment: "getOwners", values?: undefined): string;
125
+ encodeFunctionData(
126
+ functionFragment: "getParameterCounts",
127
+ values?: undefined
128
+ ): string;
129
+ encodeFunctionData(functionFragment: "getString", values: [string]): string;
130
+ encodeFunctionData(
131
+ functionFragment: "getStringParameters",
132
+ values: [BigNumberish, BigNumberish]
133
+ ): string;
134
+ encodeFunctionData(functionFragment: "getUint", values: [string]): string;
135
+ encodeFunctionData(
136
+ functionFragment: "getUintParameters",
137
+ values: [BigNumberish, BigNumberish]
138
+ ): string;
139
+ encodeFunctionData(
140
+ functionFragment: "hasParameter",
141
+ values: [string, BigNumberish]
142
+ ): string;
143
+ encodeFunctionData(
144
+ functionFragment: "implementation",
145
+ values?: undefined
146
+ ): string;
147
+ encodeFunctionData(
148
+ functionFragment: "isOwner",
149
+ values: [AddressLike]
150
+ ): string;
151
+ encodeFunctionData(
152
+ functionFragment: "proxiableUUID",
153
+ values?: undefined
154
+ ): string;
155
+ encodeFunctionData(functionFragment: "removeAddr", values: [string]): string;
156
+ encodeFunctionData(
157
+ functionFragment: "removeBytes32",
158
+ values: [string]
159
+ ): string;
160
+ encodeFunctionData(
161
+ functionFragment: "removeOwners",
162
+ values: [AddressLike[]]
163
+ ): string;
164
+ encodeFunctionData(
165
+ functionFragment: "removeString",
166
+ values: [string]
167
+ ): string;
168
+ encodeFunctionData(functionFragment: "removeUint", values: [string]): string;
169
+ encodeFunctionData(
170
+ functionFragment: "renounceOwnership",
171
+ values?: undefined
172
+ ): string;
173
+ encodeFunctionData(
174
+ functionFragment: "setAddr",
175
+ values: [string, AddressLike]
176
+ ): string;
177
+ encodeFunctionData(
178
+ functionFragment: "setBytes32",
179
+ values: [string, BytesLike]
180
+ ): string;
181
+ encodeFunctionData(
182
+ functionFragment: "setString",
183
+ values: [string, string]
184
+ ): string;
185
+ encodeFunctionData(
186
+ functionFragment: "setUint",
187
+ values: [string, BigNumberish]
188
+ ): string;
189
+ encodeFunctionData(
190
+ functionFragment: "supportsInterface",
191
+ values: [BytesLike]
192
+ ): string;
193
+ encodeFunctionData(
194
+ functionFragment: "upgradeToAndCall",
195
+ values: [AddressLike, BytesLike]
196
+ ): string;
197
+
198
+ decodeFunctionResult(
199
+ functionFragment: "UPGRADE_INTERFACE_VERSION",
200
+ data: BytesLike
201
+ ): Result;
202
+ decodeFunctionResult(
203
+ functionFragment: "__ParameterRegistry_init",
204
+ data: BytesLike
205
+ ): Result;
206
+ decodeFunctionResult(functionFragment: "addOwners", data: BytesLike): Result;
207
+ decodeFunctionResult(functionFragment: "getAddr", data: BytesLike): Result;
208
+ decodeFunctionResult(
209
+ functionFragment: "getAddressParameters",
210
+ data: BytesLike
211
+ ): Result;
212
+ decodeFunctionResult(functionFragment: "getBytes32", data: BytesLike): Result;
213
+ decodeFunctionResult(
214
+ functionFragment: "getBytes32Parameters",
215
+ data: BytesLike
216
+ ): Result;
217
+ decodeFunctionResult(functionFragment: "getOwners", data: BytesLike): Result;
218
+ decodeFunctionResult(
219
+ functionFragment: "getParameterCounts",
220
+ data: BytesLike
221
+ ): Result;
222
+ decodeFunctionResult(functionFragment: "getString", data: BytesLike): Result;
223
+ decodeFunctionResult(
224
+ functionFragment: "getStringParameters",
225
+ data: BytesLike
226
+ ): Result;
227
+ decodeFunctionResult(functionFragment: "getUint", data: BytesLike): Result;
228
+ decodeFunctionResult(
229
+ functionFragment: "getUintParameters",
230
+ data: BytesLike
231
+ ): Result;
232
+ decodeFunctionResult(
233
+ functionFragment: "hasParameter",
234
+ data: BytesLike
235
+ ): Result;
236
+ decodeFunctionResult(
237
+ functionFragment: "implementation",
238
+ data: BytesLike
239
+ ): Result;
240
+ decodeFunctionResult(functionFragment: "isOwner", data: BytesLike): Result;
241
+ decodeFunctionResult(
242
+ functionFragment: "proxiableUUID",
243
+ data: BytesLike
244
+ ): Result;
245
+ decodeFunctionResult(functionFragment: "removeAddr", data: BytesLike): Result;
246
+ decodeFunctionResult(
247
+ functionFragment: "removeBytes32",
248
+ data: BytesLike
249
+ ): Result;
250
+ decodeFunctionResult(
251
+ functionFragment: "removeOwners",
252
+ data: BytesLike
253
+ ): Result;
254
+ decodeFunctionResult(
255
+ functionFragment: "removeString",
256
+ data: BytesLike
257
+ ): Result;
258
+ decodeFunctionResult(functionFragment: "removeUint", data: BytesLike): Result;
259
+ decodeFunctionResult(
260
+ functionFragment: "renounceOwnership",
261
+ data: BytesLike
262
+ ): Result;
263
+ decodeFunctionResult(functionFragment: "setAddr", data: BytesLike): Result;
264
+ decodeFunctionResult(functionFragment: "setBytes32", data: BytesLike): Result;
265
+ decodeFunctionResult(functionFragment: "setString", data: BytesLike): Result;
266
+ decodeFunctionResult(functionFragment: "setUint", data: BytesLike): Result;
267
+ decodeFunctionResult(
268
+ functionFragment: "supportsInterface",
269
+ data: BytesLike
270
+ ): Result;
271
+ decodeFunctionResult(
272
+ functionFragment: "upgradeToAndCall",
273
+ data: BytesLike
274
+ ): Result;
275
+ }
276
+
277
+ export namespace AddressParameterSetEvent {
278
+ export type InputTuple = [key: string, value: AddressLike];
279
+ export type OutputTuple = [key: string, value: string];
280
+ export interface OutputObject {
281
+ key: string;
282
+ value: string;
283
+ }
284
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
285
+ export type Filter = TypedDeferredTopicFilter<Event>;
286
+ export type Log = TypedEventLog<Event>;
287
+ export type LogDescription = TypedLogDescription<Event>;
288
+ }
289
+
290
+ export namespace Bytes32ParameterSetEvent {
291
+ export type InputTuple = [key: string, value: BytesLike];
292
+ export type OutputTuple = [key: string, value: string];
293
+ export interface OutputObject {
294
+ key: string;
295
+ value: string;
296
+ }
297
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
298
+ export type Filter = TypedDeferredTopicFilter<Event>;
299
+ export type Log = TypedEventLog<Event>;
300
+ export type LogDescription = TypedLogDescription<Event>;
301
+ }
302
+
303
+ export namespace InitializedEvent {
304
+ export type InputTuple = [version: BigNumberish];
305
+ export type OutputTuple = [version: bigint];
306
+ export interface OutputObject {
307
+ version: bigint;
308
+ }
309
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
310
+ export type Filter = TypedDeferredTopicFilter<Event>;
311
+ export type Log = TypedEventLog<Event>;
312
+ export type LogDescription = TypedLogDescription<Event>;
313
+ }
314
+
315
+ export namespace OwnersAddedEvent {
316
+ export type InputTuple = [newOwners: AddressLike[]];
317
+ export type OutputTuple = [newOwners: string[]];
318
+ export interface OutputObject {
319
+ newOwners: string[];
320
+ }
321
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
322
+ export type Filter = TypedDeferredTopicFilter<Event>;
323
+ export type Log = TypedEventLog<Event>;
324
+ export type LogDescription = TypedLogDescription<Event>;
325
+ }
326
+
327
+ export namespace OwnersRemovedEvent {
328
+ export type InputTuple = [removedOwners: AddressLike[]];
329
+ export type OutputTuple = [removedOwners: string[]];
330
+ export interface OutputObject {
331
+ removedOwners: string[];
332
+ }
333
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
334
+ export type Filter = TypedDeferredTopicFilter<Event>;
335
+ export type Log = TypedEventLog<Event>;
336
+ export type LogDescription = TypedLogDescription<Event>;
337
+ }
338
+
339
+ export namespace StringParameterSetEvent {
340
+ export type InputTuple = [key: string, value: string];
341
+ export type OutputTuple = [key: string, value: string];
342
+ export interface OutputObject {
343
+ key: string;
344
+ value: string;
345
+ }
346
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
347
+ export type Filter = TypedDeferredTopicFilter<Event>;
348
+ export type Log = TypedEventLog<Event>;
349
+ export type LogDescription = TypedLogDescription<Event>;
350
+ }
351
+
352
+ export namespace UintParameterSetEvent {
353
+ export type InputTuple = [key: string, value: BigNumberish];
354
+ export type OutputTuple = [key: string, value: bigint];
355
+ export interface OutputObject {
356
+ key: string;
357
+ value: bigint;
358
+ }
359
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
360
+ export type Filter = TypedDeferredTopicFilter<Event>;
361
+ export type Log = TypedEventLog<Event>;
362
+ export type LogDescription = TypedLogDescription<Event>;
363
+ }
364
+
365
+ export namespace UpgradedEvent {
366
+ export type InputTuple = [implementation: AddressLike];
367
+ export type OutputTuple = [implementation: string];
368
+ export interface OutputObject {
369
+ implementation: string;
370
+ }
371
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
372
+ export type Filter = TypedDeferredTopicFilter<Event>;
373
+ export type Log = TypedEventLog<Event>;
374
+ export type LogDescription = TypedLogDescription<Event>;
375
+ }
376
+
377
+ export interface ParameterRegistry extends BaseContract {
378
+ contractName: "ParameterRegistry";
379
+
380
+ connect(runner?: ContractRunner | null): ParameterRegistry;
381
+ waitForDeployment(): Promise<this>;
382
+
383
+ interface: ParameterRegistryInterface;
384
+
385
+ queryFilter<TCEvent extends TypedContractEvent>(
386
+ event: TCEvent,
387
+ fromBlockOrBlockhash?: string | number | undefined,
388
+ toBlock?: string | number | undefined
389
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
390
+ queryFilter<TCEvent extends TypedContractEvent>(
391
+ filter: TypedDeferredTopicFilter<TCEvent>,
392
+ fromBlockOrBlockhash?: string | number | undefined,
393
+ toBlock?: string | number | undefined
394
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
395
+
396
+ on<TCEvent extends TypedContractEvent>(
397
+ event: TCEvent,
398
+ listener: TypedListener<TCEvent>
399
+ ): Promise<this>;
400
+ on<TCEvent extends TypedContractEvent>(
401
+ filter: TypedDeferredTopicFilter<TCEvent>,
402
+ listener: TypedListener<TCEvent>
403
+ ): Promise<this>;
404
+
405
+ once<TCEvent extends TypedContractEvent>(
406
+ event: TCEvent,
407
+ listener: TypedListener<TCEvent>
408
+ ): Promise<this>;
409
+ once<TCEvent extends TypedContractEvent>(
410
+ filter: TypedDeferredTopicFilter<TCEvent>,
411
+ listener: TypedListener<TCEvent>
412
+ ): Promise<this>;
413
+
414
+ listeners<TCEvent extends TypedContractEvent>(
415
+ event: TCEvent
416
+ ): Promise<Array<TypedListener<TCEvent>>>;
417
+ listeners(eventName?: string): Promise<Array<Listener>>;
418
+ removeAllListeners<TCEvent extends TypedContractEvent>(
419
+ event?: TCEvent
420
+ ): Promise<this>;
421
+
422
+ UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
423
+
424
+ __ParameterRegistry_init: TypedContractMethod<
425
+ [initialOwners_: AddressLike[]],
426
+ [void],
427
+ "nonpayable"
428
+ >;
429
+
430
+ addOwners: TypedContractMethod<
431
+ [newOwners_: AddressLike[]],
432
+ [void],
433
+ "nonpayable"
434
+ >;
435
+
436
+ getAddr: TypedContractMethod<[key_: string], [string], "view">;
437
+
438
+ getAddressParameters: TypedContractMethod<
439
+ [offset_: BigNumberish, limit_: BigNumberish],
440
+ [ParameterRegistry.AddressParameterStructOutput[]],
441
+ "view"
442
+ >;
443
+
444
+ getBytes32: TypedContractMethod<[key_: string], [string], "view">;
445
+
446
+ getBytes32Parameters: TypedContractMethod<
447
+ [offset_: BigNumberish, limit_: BigNumberish],
448
+ [ParameterRegistry.Bytes32ParameterStructOutput[]],
449
+ "view"
450
+ >;
451
+
452
+ getOwners: TypedContractMethod<[], [string[]], "view">;
453
+
454
+ getParameterCounts: TypedContractMethod<
455
+ [],
456
+ [
457
+ [bigint, bigint, bigint, bigint] & {
458
+ addressCount: bigint;
459
+ uintCount: bigint;
460
+ stringCount: bigint;
461
+ bytes32Count: bigint;
462
+ }
463
+ ],
464
+ "view"
465
+ >;
466
+
467
+ getString: TypedContractMethod<[key_: string], [string], "view">;
468
+
469
+ getStringParameters: TypedContractMethod<
470
+ [offset_: BigNumberish, limit_: BigNumberish],
471
+ [ParameterRegistry.StringParameterStructOutput[]],
472
+ "view"
473
+ >;
474
+
475
+ getUint: TypedContractMethod<[key_: string], [bigint], "view">;
476
+
477
+ getUintParameters: TypedContractMethod<
478
+ [offset_: BigNumberish, limit_: BigNumberish],
479
+ [ParameterRegistry.UintParameterStructOutput[]],
480
+ "view"
481
+ >;
482
+
483
+ hasParameter: TypedContractMethod<
484
+ [key_: string, paramType_: BigNumberish],
485
+ [boolean],
486
+ "view"
487
+ >;
488
+
489
+ implementation: TypedContractMethod<[], [string], "view">;
490
+
491
+ isOwner: TypedContractMethod<[address_: AddressLike], [boolean], "view">;
492
+
493
+ proxiableUUID: TypedContractMethod<[], [string], "view">;
494
+
495
+ removeAddr: TypedContractMethod<[key_: string], [void], "nonpayable">;
496
+
497
+ removeBytes32: TypedContractMethod<[key_: string], [void], "nonpayable">;
498
+
499
+ removeOwners: TypedContractMethod<
500
+ [oldOwners_: AddressLike[]],
501
+ [void],
502
+ "nonpayable"
503
+ >;
504
+
505
+ removeString: TypedContractMethod<[key_: string], [void], "nonpayable">;
506
+
507
+ removeUint: TypedContractMethod<[key_: string], [void], "nonpayable">;
508
+
509
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
510
+
511
+ setAddr: TypedContractMethod<
512
+ [key_: string, value_: AddressLike],
513
+ [void],
514
+ "nonpayable"
515
+ >;
516
+
517
+ setBytes32: TypedContractMethod<
518
+ [key_: string, value_: BytesLike],
519
+ [void],
520
+ "nonpayable"
521
+ >;
522
+
523
+ setString: TypedContractMethod<
524
+ [key_: string, value_: string],
525
+ [void],
526
+ "nonpayable"
527
+ >;
528
+
529
+ setUint: TypedContractMethod<
530
+ [key_: string, value_: BigNumberish],
531
+ [void],
532
+ "nonpayable"
533
+ >;
534
+
535
+ supportsInterface: TypedContractMethod<
536
+ [interfaceId_: BytesLike],
537
+ [boolean],
538
+ "view"
539
+ >;
540
+
541
+ upgradeToAndCall: TypedContractMethod<
542
+ [newImplementation: AddressLike, data: BytesLike],
543
+ [void],
544
+ "payable"
545
+ >;
546
+
547
+ getFunction<T extends ContractMethod = ContractMethod>(
548
+ key: string | FunctionFragment
549
+ ): T;
550
+
551
+ getFunction(
552
+ nameOrSignature: "UPGRADE_INTERFACE_VERSION"
553
+ ): TypedContractMethod<[], [string], "view">;
554
+ getFunction(
555
+ nameOrSignature: "__ParameterRegistry_init"
556
+ ): TypedContractMethod<[initialOwners_: AddressLike[]], [void], "nonpayable">;
557
+ getFunction(
558
+ nameOrSignature: "addOwners"
559
+ ): TypedContractMethod<[newOwners_: AddressLike[]], [void], "nonpayable">;
560
+ getFunction(
561
+ nameOrSignature: "getAddr"
562
+ ): TypedContractMethod<[key_: string], [string], "view">;
563
+ getFunction(
564
+ nameOrSignature: "getAddressParameters"
565
+ ): TypedContractMethod<
566
+ [offset_: BigNumberish, limit_: BigNumberish],
567
+ [ParameterRegistry.AddressParameterStructOutput[]],
568
+ "view"
569
+ >;
570
+ getFunction(
571
+ nameOrSignature: "getBytes32"
572
+ ): TypedContractMethod<[key_: string], [string], "view">;
573
+ getFunction(
574
+ nameOrSignature: "getBytes32Parameters"
575
+ ): TypedContractMethod<
576
+ [offset_: BigNumberish, limit_: BigNumberish],
577
+ [ParameterRegistry.Bytes32ParameterStructOutput[]],
578
+ "view"
579
+ >;
580
+ getFunction(
581
+ nameOrSignature: "getOwners"
582
+ ): TypedContractMethod<[], [string[]], "view">;
583
+ getFunction(
584
+ nameOrSignature: "getParameterCounts"
585
+ ): TypedContractMethod<
586
+ [],
587
+ [
588
+ [bigint, bigint, bigint, bigint] & {
589
+ addressCount: bigint;
590
+ uintCount: bigint;
591
+ stringCount: bigint;
592
+ bytes32Count: bigint;
593
+ }
594
+ ],
595
+ "view"
596
+ >;
597
+ getFunction(
598
+ nameOrSignature: "getString"
599
+ ): TypedContractMethod<[key_: string], [string], "view">;
600
+ getFunction(
601
+ nameOrSignature: "getStringParameters"
602
+ ): TypedContractMethod<
603
+ [offset_: BigNumberish, limit_: BigNumberish],
604
+ [ParameterRegistry.StringParameterStructOutput[]],
605
+ "view"
606
+ >;
607
+ getFunction(
608
+ nameOrSignature: "getUint"
609
+ ): TypedContractMethod<[key_: string], [bigint], "view">;
610
+ getFunction(
611
+ nameOrSignature: "getUintParameters"
612
+ ): TypedContractMethod<
613
+ [offset_: BigNumberish, limit_: BigNumberish],
614
+ [ParameterRegistry.UintParameterStructOutput[]],
615
+ "view"
616
+ >;
617
+ getFunction(
618
+ nameOrSignature: "hasParameter"
619
+ ): TypedContractMethod<
620
+ [key_: string, paramType_: BigNumberish],
621
+ [boolean],
622
+ "view"
623
+ >;
624
+ getFunction(
625
+ nameOrSignature: "implementation"
626
+ ): TypedContractMethod<[], [string], "view">;
627
+ getFunction(
628
+ nameOrSignature: "isOwner"
629
+ ): TypedContractMethod<[address_: AddressLike], [boolean], "view">;
630
+ getFunction(
631
+ nameOrSignature: "proxiableUUID"
632
+ ): TypedContractMethod<[], [string], "view">;
633
+ getFunction(
634
+ nameOrSignature: "removeAddr"
635
+ ): TypedContractMethod<[key_: string], [void], "nonpayable">;
636
+ getFunction(
637
+ nameOrSignature: "removeBytes32"
638
+ ): TypedContractMethod<[key_: string], [void], "nonpayable">;
639
+ getFunction(
640
+ nameOrSignature: "removeOwners"
641
+ ): TypedContractMethod<[oldOwners_: AddressLike[]], [void], "nonpayable">;
642
+ getFunction(
643
+ nameOrSignature: "removeString"
644
+ ): TypedContractMethod<[key_: string], [void], "nonpayable">;
645
+ getFunction(
646
+ nameOrSignature: "removeUint"
647
+ ): TypedContractMethod<[key_: string], [void], "nonpayable">;
648
+ getFunction(
649
+ nameOrSignature: "renounceOwnership"
650
+ ): TypedContractMethod<[], [void], "nonpayable">;
651
+ getFunction(
652
+ nameOrSignature: "setAddr"
653
+ ): TypedContractMethod<
654
+ [key_: string, value_: AddressLike],
655
+ [void],
656
+ "nonpayable"
657
+ >;
658
+ getFunction(
659
+ nameOrSignature: "setBytes32"
660
+ ): TypedContractMethod<
661
+ [key_: string, value_: BytesLike],
662
+ [void],
663
+ "nonpayable"
664
+ >;
665
+ getFunction(
666
+ nameOrSignature: "setString"
667
+ ): TypedContractMethod<[key_: string, value_: string], [void], "nonpayable">;
668
+ getFunction(
669
+ nameOrSignature: "setUint"
670
+ ): TypedContractMethod<
671
+ [key_: string, value_: BigNumberish],
672
+ [void],
673
+ "nonpayable"
674
+ >;
675
+ getFunction(
676
+ nameOrSignature: "supportsInterface"
677
+ ): TypedContractMethod<[interfaceId_: BytesLike], [boolean], "view">;
678
+ getFunction(
679
+ nameOrSignature: "upgradeToAndCall"
680
+ ): TypedContractMethod<
681
+ [newImplementation: AddressLike, data: BytesLike],
682
+ [void],
683
+ "payable"
684
+ >;
685
+
686
+ getEvent(
687
+ key: "AddressParameterSet"
688
+ ): TypedContractEvent<
689
+ AddressParameterSetEvent.InputTuple,
690
+ AddressParameterSetEvent.OutputTuple,
691
+ AddressParameterSetEvent.OutputObject
692
+ >;
693
+ getEvent(
694
+ key: "Bytes32ParameterSet"
695
+ ): TypedContractEvent<
696
+ Bytes32ParameterSetEvent.InputTuple,
697
+ Bytes32ParameterSetEvent.OutputTuple,
698
+ Bytes32ParameterSetEvent.OutputObject
699
+ >;
700
+ getEvent(
701
+ key: "Initialized"
702
+ ): TypedContractEvent<
703
+ InitializedEvent.InputTuple,
704
+ InitializedEvent.OutputTuple,
705
+ InitializedEvent.OutputObject
706
+ >;
707
+ getEvent(
708
+ key: "OwnersAdded"
709
+ ): TypedContractEvent<
710
+ OwnersAddedEvent.InputTuple,
711
+ OwnersAddedEvent.OutputTuple,
712
+ OwnersAddedEvent.OutputObject
713
+ >;
714
+ getEvent(
715
+ key: "OwnersRemoved"
716
+ ): TypedContractEvent<
717
+ OwnersRemovedEvent.InputTuple,
718
+ OwnersRemovedEvent.OutputTuple,
719
+ OwnersRemovedEvent.OutputObject
720
+ >;
721
+ getEvent(
722
+ key: "StringParameterSet"
723
+ ): TypedContractEvent<
724
+ StringParameterSetEvent.InputTuple,
725
+ StringParameterSetEvent.OutputTuple,
726
+ StringParameterSetEvent.OutputObject
727
+ >;
728
+ getEvent(
729
+ key: "UintParameterSet"
730
+ ): TypedContractEvent<
731
+ UintParameterSetEvent.InputTuple,
732
+ UintParameterSetEvent.OutputTuple,
733
+ UintParameterSetEvent.OutputObject
734
+ >;
735
+ getEvent(
736
+ key: "Upgraded"
737
+ ): TypedContractEvent<
738
+ UpgradedEvent.InputTuple,
739
+ UpgradedEvent.OutputTuple,
740
+ UpgradedEvent.OutputObject
741
+ >;
742
+
743
+ filters: {
744
+ "AddressParameterSet(string,address)": TypedContractEvent<
745
+ AddressParameterSetEvent.InputTuple,
746
+ AddressParameterSetEvent.OutputTuple,
747
+ AddressParameterSetEvent.OutputObject
748
+ >;
749
+ AddressParameterSet: TypedContractEvent<
750
+ AddressParameterSetEvent.InputTuple,
751
+ AddressParameterSetEvent.OutputTuple,
752
+ AddressParameterSetEvent.OutputObject
753
+ >;
754
+
755
+ "Bytes32ParameterSet(string,bytes32)": TypedContractEvent<
756
+ Bytes32ParameterSetEvent.InputTuple,
757
+ Bytes32ParameterSetEvent.OutputTuple,
758
+ Bytes32ParameterSetEvent.OutputObject
759
+ >;
760
+ Bytes32ParameterSet: TypedContractEvent<
761
+ Bytes32ParameterSetEvent.InputTuple,
762
+ Bytes32ParameterSetEvent.OutputTuple,
763
+ Bytes32ParameterSetEvent.OutputObject
764
+ >;
765
+
766
+ "Initialized(uint64)": TypedContractEvent<
767
+ InitializedEvent.InputTuple,
768
+ InitializedEvent.OutputTuple,
769
+ InitializedEvent.OutputObject
770
+ >;
771
+ Initialized: TypedContractEvent<
772
+ InitializedEvent.InputTuple,
773
+ InitializedEvent.OutputTuple,
774
+ InitializedEvent.OutputObject
775
+ >;
776
+
777
+ "OwnersAdded(address[])": TypedContractEvent<
778
+ OwnersAddedEvent.InputTuple,
779
+ OwnersAddedEvent.OutputTuple,
780
+ OwnersAddedEvent.OutputObject
781
+ >;
782
+ OwnersAdded: TypedContractEvent<
783
+ OwnersAddedEvent.InputTuple,
784
+ OwnersAddedEvent.OutputTuple,
785
+ OwnersAddedEvent.OutputObject
786
+ >;
787
+
788
+ "OwnersRemoved(address[])": TypedContractEvent<
789
+ OwnersRemovedEvent.InputTuple,
790
+ OwnersRemovedEvent.OutputTuple,
791
+ OwnersRemovedEvent.OutputObject
792
+ >;
793
+ OwnersRemoved: TypedContractEvent<
794
+ OwnersRemovedEvent.InputTuple,
795
+ OwnersRemovedEvent.OutputTuple,
796
+ OwnersRemovedEvent.OutputObject
797
+ >;
798
+
799
+ "StringParameterSet(string,string)": TypedContractEvent<
800
+ StringParameterSetEvent.InputTuple,
801
+ StringParameterSetEvent.OutputTuple,
802
+ StringParameterSetEvent.OutputObject
803
+ >;
804
+ StringParameterSet: TypedContractEvent<
805
+ StringParameterSetEvent.InputTuple,
806
+ StringParameterSetEvent.OutputTuple,
807
+ StringParameterSetEvent.OutputObject
808
+ >;
809
+
810
+ "UintParameterSet(string,uint256)": TypedContractEvent<
811
+ UintParameterSetEvent.InputTuple,
812
+ UintParameterSetEvent.OutputTuple,
813
+ UintParameterSetEvent.OutputObject
814
+ >;
815
+ UintParameterSet: TypedContractEvent<
816
+ UintParameterSetEvent.InputTuple,
817
+ UintParameterSetEvent.OutputTuple,
818
+ UintParameterSetEvent.OutputObject
819
+ >;
820
+
821
+ "Upgraded(address)": TypedContractEvent<
822
+ UpgradedEvent.InputTuple,
823
+ UpgradedEvent.OutputTuple,
824
+ UpgradedEvent.OutputObject
825
+ >;
826
+ Upgraded: TypedContractEvent<
827
+ UpgradedEvent.InputTuple,
828
+ UpgradedEvent.OutputTuple,
829
+ UpgradedEvent.OutputObject
830
+ >;
831
+ };
832
+ }