@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,791 @@
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 MockNeutralsRegistry {
27
+ export type NeutralsInfoStruct = {
28
+ selfStake: BigNumberish;
29
+ weight: BigNumberish;
30
+ delegatedStake: BigNumberish;
31
+ rewards: BigNumberish;
32
+ delegationShare: BigNumberish;
33
+ isActive: boolean;
34
+ isPaused: boolean;
35
+ externalLink: string;
36
+ };
37
+
38
+ export type NeutralsInfoStructOutput = [
39
+ selfStake: bigint,
40
+ weight: bigint,
41
+ delegatedStake: bigint,
42
+ rewards: bigint,
43
+ delegationShare: bigint,
44
+ isActive: boolean,
45
+ isPaused: boolean,
46
+ externalLink: string
47
+ ] & {
48
+ selfStake: bigint;
49
+ weight: bigint;
50
+ delegatedStake: bigint;
51
+ rewards: bigint;
52
+ delegationShare: bigint;
53
+ isActive: boolean;
54
+ isPaused: boolean;
55
+ externalLink: string;
56
+ };
57
+ }
58
+
59
+ export interface MockNeutralsRegistryInterface extends Interface {
60
+ getFunction(
61
+ nameOrSignature:
62
+ | "addNeutral"
63
+ | "addNeutrals"
64
+ | "clearNeutrals"
65
+ | "distributeRewards"
66
+ | "getActiveNeutrals"
67
+ | "getNeutralInfo"
68
+ | "getNeutralsCount"
69
+ | "getNeutralsSlice"
70
+ | "isNeutral"
71
+ | "removeNeutral"
72
+ | "setGovernance"
73
+ | "setToken"
74
+ | "slashNeutral"
75
+ | "supportsInterface"
76
+ ): FunctionFragment;
77
+
78
+ getEvent(
79
+ nameOrSignatureOrTopic:
80
+ | "DelegationWithdrawn"
81
+ | "NeutralActivated"
82
+ | "NeutralMovedToStandby"
83
+ | "NeutralPaused"
84
+ | "NeutralSlashed"
85
+ | "NeutralStaked"
86
+ | "NeutralUnpaused"
87
+ | "NeutralUnstaked"
88
+ | "RewardsClaimed"
89
+ | "RewardsDistributed"
90
+ | "WithdrawalAnnounced"
91
+ | "WithdrawalCancelled"
92
+ ): EventFragment;
93
+
94
+ encodeFunctionData(
95
+ functionFragment: "addNeutral",
96
+ values: [AddressLike, string]
97
+ ): string;
98
+ encodeFunctionData(
99
+ functionFragment: "addNeutrals",
100
+ values: [AddressLike[]]
101
+ ): string;
102
+ encodeFunctionData(
103
+ functionFragment: "clearNeutrals",
104
+ values?: undefined
105
+ ): string;
106
+ encodeFunctionData(
107
+ functionFragment: "distributeRewards",
108
+ values: [AddressLike[], BigNumberish]
109
+ ): string;
110
+ encodeFunctionData(
111
+ functionFragment: "getActiveNeutrals",
112
+ values?: undefined
113
+ ): string;
114
+ encodeFunctionData(
115
+ functionFragment: "getNeutralInfo",
116
+ values: [AddressLike]
117
+ ): string;
118
+ encodeFunctionData(
119
+ functionFragment: "getNeutralsCount",
120
+ values?: undefined
121
+ ): string;
122
+ encodeFunctionData(
123
+ functionFragment: "getNeutralsSlice",
124
+ values: [BigNumberish]
125
+ ): string;
126
+ encodeFunctionData(
127
+ functionFragment: "isNeutral",
128
+ values: [AddressLike]
129
+ ): string;
130
+ encodeFunctionData(
131
+ functionFragment: "removeNeutral",
132
+ values: [AddressLike]
133
+ ): string;
134
+ encodeFunctionData(
135
+ functionFragment: "setGovernance",
136
+ values: [AddressLike]
137
+ ): string;
138
+ encodeFunctionData(
139
+ functionFragment: "setToken",
140
+ values: [AddressLike]
141
+ ): string;
142
+ encodeFunctionData(
143
+ functionFragment: "slashNeutral",
144
+ values: [AddressLike, BigNumberish]
145
+ ): string;
146
+ encodeFunctionData(
147
+ functionFragment: "supportsInterface",
148
+ values: [BytesLike]
149
+ ): string;
150
+
151
+ decodeFunctionResult(functionFragment: "addNeutral", data: BytesLike): Result;
152
+ decodeFunctionResult(
153
+ functionFragment: "addNeutrals",
154
+ data: BytesLike
155
+ ): Result;
156
+ decodeFunctionResult(
157
+ functionFragment: "clearNeutrals",
158
+ data: BytesLike
159
+ ): Result;
160
+ decodeFunctionResult(
161
+ functionFragment: "distributeRewards",
162
+ data: BytesLike
163
+ ): Result;
164
+ decodeFunctionResult(
165
+ functionFragment: "getActiveNeutrals",
166
+ data: BytesLike
167
+ ): Result;
168
+ decodeFunctionResult(
169
+ functionFragment: "getNeutralInfo",
170
+ data: BytesLike
171
+ ): Result;
172
+ decodeFunctionResult(
173
+ functionFragment: "getNeutralsCount",
174
+ data: BytesLike
175
+ ): Result;
176
+ decodeFunctionResult(
177
+ functionFragment: "getNeutralsSlice",
178
+ data: BytesLike
179
+ ): Result;
180
+ decodeFunctionResult(functionFragment: "isNeutral", data: BytesLike): Result;
181
+ decodeFunctionResult(
182
+ functionFragment: "removeNeutral",
183
+ data: BytesLike
184
+ ): Result;
185
+ decodeFunctionResult(
186
+ functionFragment: "setGovernance",
187
+ data: BytesLike
188
+ ): Result;
189
+ decodeFunctionResult(functionFragment: "setToken", data: BytesLike): Result;
190
+ decodeFunctionResult(
191
+ functionFragment: "slashNeutral",
192
+ data: BytesLike
193
+ ): Result;
194
+ decodeFunctionResult(
195
+ functionFragment: "supportsInterface",
196
+ data: BytesLike
197
+ ): Result;
198
+ }
199
+
200
+ export namespace DelegationWithdrawnEvent {
201
+ export type InputTuple = [
202
+ delegator: AddressLike,
203
+ neutral: AddressLike,
204
+ amount: BigNumberish
205
+ ];
206
+ export type OutputTuple = [
207
+ delegator: string,
208
+ neutral: string,
209
+ amount: bigint
210
+ ];
211
+ export interface OutputObject {
212
+ delegator: string;
213
+ neutral: string;
214
+ amount: bigint;
215
+ }
216
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
217
+ export type Filter = TypedDeferredTopicFilter<Event>;
218
+ export type Log = TypedEventLog<Event>;
219
+ export type LogDescription = TypedLogDescription<Event>;
220
+ }
221
+
222
+ export namespace NeutralActivatedEvent {
223
+ export type InputTuple = [neutral: AddressLike, stake: BigNumberish];
224
+ export type OutputTuple = [neutral: string, stake: bigint];
225
+ export interface OutputObject {
226
+ neutral: string;
227
+ stake: bigint;
228
+ }
229
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
230
+ export type Filter = TypedDeferredTopicFilter<Event>;
231
+ export type Log = TypedEventLog<Event>;
232
+ export type LogDescription = TypedLogDescription<Event>;
233
+ }
234
+
235
+ export namespace NeutralMovedToStandbyEvent {
236
+ export type InputTuple = [neutral: AddressLike];
237
+ export type OutputTuple = [neutral: string];
238
+ export interface OutputObject {
239
+ neutral: string;
240
+ }
241
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
242
+ export type Filter = TypedDeferredTopicFilter<Event>;
243
+ export type Log = TypedEventLog<Event>;
244
+ export type LogDescription = TypedLogDescription<Event>;
245
+ }
246
+
247
+ export namespace NeutralPausedEvent {
248
+ export type InputTuple = [neutral: AddressLike];
249
+ export type OutputTuple = [neutral: string];
250
+ export interface OutputObject {
251
+ neutral: string;
252
+ }
253
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
254
+ export type Filter = TypedDeferredTopicFilter<Event>;
255
+ export type Log = TypedEventLog<Event>;
256
+ export type LogDescription = TypedLogDescription<Event>;
257
+ }
258
+
259
+ export namespace NeutralSlashedEvent {
260
+ export type InputTuple = [
261
+ neutral: AddressLike,
262
+ amount: BigNumberish,
263
+ recipient: AddressLike
264
+ ];
265
+ export type OutputTuple = [
266
+ neutral: string,
267
+ amount: bigint,
268
+ recipient: string
269
+ ];
270
+ export interface OutputObject {
271
+ neutral: string;
272
+ amount: bigint;
273
+ recipient: string;
274
+ }
275
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
276
+ export type Filter = TypedDeferredTopicFilter<Event>;
277
+ export type Log = TypedEventLog<Event>;
278
+ export type LogDescription = TypedLogDescription<Event>;
279
+ }
280
+
281
+ export namespace NeutralStakedEvent {
282
+ export type InputTuple = [
283
+ neutral: AddressLike,
284
+ amount: BigNumberish,
285
+ totalStake: BigNumberish
286
+ ];
287
+ export type OutputTuple = [
288
+ neutral: string,
289
+ amount: bigint,
290
+ totalStake: bigint
291
+ ];
292
+ export interface OutputObject {
293
+ neutral: string;
294
+ amount: bigint;
295
+ totalStake: bigint;
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 NeutralUnpausedEvent {
304
+ export type InputTuple = [neutral: AddressLike];
305
+ export type OutputTuple = [neutral: string];
306
+ export interface OutputObject {
307
+ neutral: string;
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 NeutralUnstakedEvent {
316
+ export type InputTuple = [
317
+ neutral: AddressLike,
318
+ amount: BigNumberish,
319
+ remainingStake: BigNumberish
320
+ ];
321
+ export type OutputTuple = [
322
+ neutral: string,
323
+ amount: bigint,
324
+ remainingStake: bigint
325
+ ];
326
+ export interface OutputObject {
327
+ neutral: string;
328
+ amount: bigint;
329
+ remainingStake: bigint;
330
+ }
331
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
332
+ export type Filter = TypedDeferredTopicFilter<Event>;
333
+ export type Log = TypedEventLog<Event>;
334
+ export type LogDescription = TypedLogDescription<Event>;
335
+ }
336
+
337
+ export namespace RewardsClaimedEvent {
338
+ export type InputTuple = [neutral: AddressLike, amount: BigNumberish];
339
+ export type OutputTuple = [neutral: string, amount: bigint];
340
+ export interface OutputObject {
341
+ neutral: string;
342
+ amount: bigint;
343
+ }
344
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
345
+ export type Filter = TypedDeferredTopicFilter<Event>;
346
+ export type Log = TypedEventLog<Event>;
347
+ export type LogDescription = TypedLogDescription<Event>;
348
+ }
349
+
350
+ export namespace RewardsDistributedEvent {
351
+ export type InputTuple = [
352
+ selectedNeutrals: AddressLike[],
353
+ totalAmount: BigNumberish
354
+ ];
355
+ export type OutputTuple = [selectedNeutrals: string[], totalAmount: bigint];
356
+ export interface OutputObject {
357
+ selectedNeutrals: string[];
358
+ totalAmount: bigint;
359
+ }
360
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
361
+ export type Filter = TypedDeferredTopicFilter<Event>;
362
+ export type Log = TypedEventLog<Event>;
363
+ export type LogDescription = TypedLogDescription<Event>;
364
+ }
365
+
366
+ export namespace WithdrawalAnnouncedEvent {
367
+ export type InputTuple = [
368
+ neutral: AddressLike,
369
+ amount: BigNumberish,
370
+ availableAt: BigNumberish
371
+ ];
372
+ export type OutputTuple = [
373
+ neutral: string,
374
+ amount: bigint,
375
+ availableAt: bigint
376
+ ];
377
+ export interface OutputObject {
378
+ neutral: string;
379
+ amount: bigint;
380
+ availableAt: bigint;
381
+ }
382
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
383
+ export type Filter = TypedDeferredTopicFilter<Event>;
384
+ export type Log = TypedEventLog<Event>;
385
+ export type LogDescription = TypedLogDescription<Event>;
386
+ }
387
+
388
+ export namespace WithdrawalCancelledEvent {
389
+ export type InputTuple = [neutral: AddressLike, amount: BigNumberish];
390
+ export type OutputTuple = [neutral: string, amount: bigint];
391
+ export interface OutputObject {
392
+ neutral: string;
393
+ amount: bigint;
394
+ }
395
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
396
+ export type Filter = TypedDeferredTopicFilter<Event>;
397
+ export type Log = TypedEventLog<Event>;
398
+ export type LogDescription = TypedLogDescription<Event>;
399
+ }
400
+
401
+ export interface MockNeutralsRegistry extends BaseContract {
402
+ contractName: "MockNeutralsRegistry";
403
+
404
+ connect(runner?: ContractRunner | null): MockNeutralsRegistry;
405
+ waitForDeployment(): Promise<this>;
406
+
407
+ interface: MockNeutralsRegistryInterface;
408
+
409
+ queryFilter<TCEvent extends TypedContractEvent>(
410
+ event: TCEvent,
411
+ fromBlockOrBlockhash?: string | number | undefined,
412
+ toBlock?: string | number | undefined
413
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
414
+ queryFilter<TCEvent extends TypedContractEvent>(
415
+ filter: TypedDeferredTopicFilter<TCEvent>,
416
+ fromBlockOrBlockhash?: string | number | undefined,
417
+ toBlock?: string | number | undefined
418
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
419
+
420
+ on<TCEvent extends TypedContractEvent>(
421
+ event: TCEvent,
422
+ listener: TypedListener<TCEvent>
423
+ ): Promise<this>;
424
+ on<TCEvent extends TypedContractEvent>(
425
+ filter: TypedDeferredTopicFilter<TCEvent>,
426
+ listener: TypedListener<TCEvent>
427
+ ): Promise<this>;
428
+
429
+ once<TCEvent extends TypedContractEvent>(
430
+ event: TCEvent,
431
+ listener: TypedListener<TCEvent>
432
+ ): Promise<this>;
433
+ once<TCEvent extends TypedContractEvent>(
434
+ filter: TypedDeferredTopicFilter<TCEvent>,
435
+ listener: TypedListener<TCEvent>
436
+ ): Promise<this>;
437
+
438
+ listeners<TCEvent extends TypedContractEvent>(
439
+ event: TCEvent
440
+ ): Promise<Array<TypedListener<TCEvent>>>;
441
+ listeners(eventName?: string): Promise<Array<Listener>>;
442
+ removeAllListeners<TCEvent extends TypedContractEvent>(
443
+ event?: TCEvent
444
+ ): Promise<this>;
445
+
446
+ addNeutral: TypedContractMethod<
447
+ [neutral_: AddressLike, externalLink_: string],
448
+ [void],
449
+ "nonpayable"
450
+ >;
451
+
452
+ addNeutrals: TypedContractMethod<
453
+ [neutrals_: AddressLike[]],
454
+ [void],
455
+ "nonpayable"
456
+ >;
457
+
458
+ clearNeutrals: TypedContractMethod<[], [void], "nonpayable">;
459
+
460
+ distributeRewards: TypedContractMethod<
461
+ [selectedNeutrals_: AddressLike[], amount_: BigNumberish],
462
+ [void],
463
+ "nonpayable"
464
+ >;
465
+
466
+ getActiveNeutrals: TypedContractMethod<[], [string[]], "view">;
467
+
468
+ getNeutralInfo: TypedContractMethod<
469
+ [candidate_: AddressLike],
470
+ [MockNeutralsRegistry.NeutralsInfoStructOutput],
471
+ "view"
472
+ >;
473
+
474
+ getNeutralsCount: TypedContractMethod<[], [bigint], "view">;
475
+
476
+ getNeutralsSlice: TypedContractMethod<
477
+ [number_: BigNumberish],
478
+ [string[]],
479
+ "view"
480
+ >;
481
+
482
+ isNeutral: TypedContractMethod<[candidate_: AddressLike], [boolean], "view">;
483
+
484
+ removeNeutral: TypedContractMethod<
485
+ [neutral_: AddressLike],
486
+ [void],
487
+ "nonpayable"
488
+ >;
489
+
490
+ setGovernance: TypedContractMethod<
491
+ [governance_: AddressLike],
492
+ [void],
493
+ "nonpayable"
494
+ >;
495
+
496
+ setToken: TypedContractMethod<[token_: AddressLike], [void], "nonpayable">;
497
+
498
+ slashNeutral: TypedContractMethod<
499
+ [neutral_: AddressLike, amount_: BigNumberish],
500
+ [void],
501
+ "nonpayable"
502
+ >;
503
+
504
+ supportsInterface: TypedContractMethod<
505
+ [interfaceId: BytesLike],
506
+ [boolean],
507
+ "view"
508
+ >;
509
+
510
+ getFunction<T extends ContractMethod = ContractMethod>(
511
+ key: string | FunctionFragment
512
+ ): T;
513
+
514
+ getFunction(
515
+ nameOrSignature: "addNeutral"
516
+ ): TypedContractMethod<
517
+ [neutral_: AddressLike, externalLink_: string],
518
+ [void],
519
+ "nonpayable"
520
+ >;
521
+ getFunction(
522
+ nameOrSignature: "addNeutrals"
523
+ ): TypedContractMethod<[neutrals_: AddressLike[]], [void], "nonpayable">;
524
+ getFunction(
525
+ nameOrSignature: "clearNeutrals"
526
+ ): TypedContractMethod<[], [void], "nonpayable">;
527
+ getFunction(
528
+ nameOrSignature: "distributeRewards"
529
+ ): TypedContractMethod<
530
+ [selectedNeutrals_: AddressLike[], amount_: BigNumberish],
531
+ [void],
532
+ "nonpayable"
533
+ >;
534
+ getFunction(
535
+ nameOrSignature: "getActiveNeutrals"
536
+ ): TypedContractMethod<[], [string[]], "view">;
537
+ getFunction(
538
+ nameOrSignature: "getNeutralInfo"
539
+ ): TypedContractMethod<
540
+ [candidate_: AddressLike],
541
+ [MockNeutralsRegistry.NeutralsInfoStructOutput],
542
+ "view"
543
+ >;
544
+ getFunction(
545
+ nameOrSignature: "getNeutralsCount"
546
+ ): TypedContractMethod<[], [bigint], "view">;
547
+ getFunction(
548
+ nameOrSignature: "getNeutralsSlice"
549
+ ): TypedContractMethod<[number_: BigNumberish], [string[]], "view">;
550
+ getFunction(
551
+ nameOrSignature: "isNeutral"
552
+ ): TypedContractMethod<[candidate_: AddressLike], [boolean], "view">;
553
+ getFunction(
554
+ nameOrSignature: "removeNeutral"
555
+ ): TypedContractMethod<[neutral_: AddressLike], [void], "nonpayable">;
556
+ getFunction(
557
+ nameOrSignature: "setGovernance"
558
+ ): TypedContractMethod<[governance_: AddressLike], [void], "nonpayable">;
559
+ getFunction(
560
+ nameOrSignature: "setToken"
561
+ ): TypedContractMethod<[token_: AddressLike], [void], "nonpayable">;
562
+ getFunction(
563
+ nameOrSignature: "slashNeutral"
564
+ ): TypedContractMethod<
565
+ [neutral_: AddressLike, amount_: BigNumberish],
566
+ [void],
567
+ "nonpayable"
568
+ >;
569
+ getFunction(
570
+ nameOrSignature: "supportsInterface"
571
+ ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
572
+
573
+ getEvent(
574
+ key: "DelegationWithdrawn"
575
+ ): TypedContractEvent<
576
+ DelegationWithdrawnEvent.InputTuple,
577
+ DelegationWithdrawnEvent.OutputTuple,
578
+ DelegationWithdrawnEvent.OutputObject
579
+ >;
580
+ getEvent(
581
+ key: "NeutralActivated"
582
+ ): TypedContractEvent<
583
+ NeutralActivatedEvent.InputTuple,
584
+ NeutralActivatedEvent.OutputTuple,
585
+ NeutralActivatedEvent.OutputObject
586
+ >;
587
+ getEvent(
588
+ key: "NeutralMovedToStandby"
589
+ ): TypedContractEvent<
590
+ NeutralMovedToStandbyEvent.InputTuple,
591
+ NeutralMovedToStandbyEvent.OutputTuple,
592
+ NeutralMovedToStandbyEvent.OutputObject
593
+ >;
594
+ getEvent(
595
+ key: "NeutralPaused"
596
+ ): TypedContractEvent<
597
+ NeutralPausedEvent.InputTuple,
598
+ NeutralPausedEvent.OutputTuple,
599
+ NeutralPausedEvent.OutputObject
600
+ >;
601
+ getEvent(
602
+ key: "NeutralSlashed"
603
+ ): TypedContractEvent<
604
+ NeutralSlashedEvent.InputTuple,
605
+ NeutralSlashedEvent.OutputTuple,
606
+ NeutralSlashedEvent.OutputObject
607
+ >;
608
+ getEvent(
609
+ key: "NeutralStaked"
610
+ ): TypedContractEvent<
611
+ NeutralStakedEvent.InputTuple,
612
+ NeutralStakedEvent.OutputTuple,
613
+ NeutralStakedEvent.OutputObject
614
+ >;
615
+ getEvent(
616
+ key: "NeutralUnpaused"
617
+ ): TypedContractEvent<
618
+ NeutralUnpausedEvent.InputTuple,
619
+ NeutralUnpausedEvent.OutputTuple,
620
+ NeutralUnpausedEvent.OutputObject
621
+ >;
622
+ getEvent(
623
+ key: "NeutralUnstaked"
624
+ ): TypedContractEvent<
625
+ NeutralUnstakedEvent.InputTuple,
626
+ NeutralUnstakedEvent.OutputTuple,
627
+ NeutralUnstakedEvent.OutputObject
628
+ >;
629
+ getEvent(
630
+ key: "RewardsClaimed"
631
+ ): TypedContractEvent<
632
+ RewardsClaimedEvent.InputTuple,
633
+ RewardsClaimedEvent.OutputTuple,
634
+ RewardsClaimedEvent.OutputObject
635
+ >;
636
+ getEvent(
637
+ key: "RewardsDistributed"
638
+ ): TypedContractEvent<
639
+ RewardsDistributedEvent.InputTuple,
640
+ RewardsDistributedEvent.OutputTuple,
641
+ RewardsDistributedEvent.OutputObject
642
+ >;
643
+ getEvent(
644
+ key: "WithdrawalAnnounced"
645
+ ): TypedContractEvent<
646
+ WithdrawalAnnouncedEvent.InputTuple,
647
+ WithdrawalAnnouncedEvent.OutputTuple,
648
+ WithdrawalAnnouncedEvent.OutputObject
649
+ >;
650
+ getEvent(
651
+ key: "WithdrawalCancelled"
652
+ ): TypedContractEvent<
653
+ WithdrawalCancelledEvent.InputTuple,
654
+ WithdrawalCancelledEvent.OutputTuple,
655
+ WithdrawalCancelledEvent.OutputObject
656
+ >;
657
+
658
+ filters: {
659
+ "DelegationWithdrawn(address,address,uint256)": TypedContractEvent<
660
+ DelegationWithdrawnEvent.InputTuple,
661
+ DelegationWithdrawnEvent.OutputTuple,
662
+ DelegationWithdrawnEvent.OutputObject
663
+ >;
664
+ DelegationWithdrawn: TypedContractEvent<
665
+ DelegationWithdrawnEvent.InputTuple,
666
+ DelegationWithdrawnEvent.OutputTuple,
667
+ DelegationWithdrawnEvent.OutputObject
668
+ >;
669
+
670
+ "NeutralActivated(address,uint256)": TypedContractEvent<
671
+ NeutralActivatedEvent.InputTuple,
672
+ NeutralActivatedEvent.OutputTuple,
673
+ NeutralActivatedEvent.OutputObject
674
+ >;
675
+ NeutralActivated: TypedContractEvent<
676
+ NeutralActivatedEvent.InputTuple,
677
+ NeutralActivatedEvent.OutputTuple,
678
+ NeutralActivatedEvent.OutputObject
679
+ >;
680
+
681
+ "NeutralMovedToStandby(address)": TypedContractEvent<
682
+ NeutralMovedToStandbyEvent.InputTuple,
683
+ NeutralMovedToStandbyEvent.OutputTuple,
684
+ NeutralMovedToStandbyEvent.OutputObject
685
+ >;
686
+ NeutralMovedToStandby: TypedContractEvent<
687
+ NeutralMovedToStandbyEvent.InputTuple,
688
+ NeutralMovedToStandbyEvent.OutputTuple,
689
+ NeutralMovedToStandbyEvent.OutputObject
690
+ >;
691
+
692
+ "NeutralPaused(address)": TypedContractEvent<
693
+ NeutralPausedEvent.InputTuple,
694
+ NeutralPausedEvent.OutputTuple,
695
+ NeutralPausedEvent.OutputObject
696
+ >;
697
+ NeutralPaused: TypedContractEvent<
698
+ NeutralPausedEvent.InputTuple,
699
+ NeutralPausedEvent.OutputTuple,
700
+ NeutralPausedEvent.OutputObject
701
+ >;
702
+
703
+ "NeutralSlashed(address,uint256,address)": TypedContractEvent<
704
+ NeutralSlashedEvent.InputTuple,
705
+ NeutralSlashedEvent.OutputTuple,
706
+ NeutralSlashedEvent.OutputObject
707
+ >;
708
+ NeutralSlashed: TypedContractEvent<
709
+ NeutralSlashedEvent.InputTuple,
710
+ NeutralSlashedEvent.OutputTuple,
711
+ NeutralSlashedEvent.OutputObject
712
+ >;
713
+
714
+ "NeutralStaked(address,uint256,uint256)": TypedContractEvent<
715
+ NeutralStakedEvent.InputTuple,
716
+ NeutralStakedEvent.OutputTuple,
717
+ NeutralStakedEvent.OutputObject
718
+ >;
719
+ NeutralStaked: TypedContractEvent<
720
+ NeutralStakedEvent.InputTuple,
721
+ NeutralStakedEvent.OutputTuple,
722
+ NeutralStakedEvent.OutputObject
723
+ >;
724
+
725
+ "NeutralUnpaused(address)": TypedContractEvent<
726
+ NeutralUnpausedEvent.InputTuple,
727
+ NeutralUnpausedEvent.OutputTuple,
728
+ NeutralUnpausedEvent.OutputObject
729
+ >;
730
+ NeutralUnpaused: TypedContractEvent<
731
+ NeutralUnpausedEvent.InputTuple,
732
+ NeutralUnpausedEvent.OutputTuple,
733
+ NeutralUnpausedEvent.OutputObject
734
+ >;
735
+
736
+ "NeutralUnstaked(address,uint256,uint256)": TypedContractEvent<
737
+ NeutralUnstakedEvent.InputTuple,
738
+ NeutralUnstakedEvent.OutputTuple,
739
+ NeutralUnstakedEvent.OutputObject
740
+ >;
741
+ NeutralUnstaked: TypedContractEvent<
742
+ NeutralUnstakedEvent.InputTuple,
743
+ NeutralUnstakedEvent.OutputTuple,
744
+ NeutralUnstakedEvent.OutputObject
745
+ >;
746
+
747
+ "RewardsClaimed(address,uint256)": TypedContractEvent<
748
+ RewardsClaimedEvent.InputTuple,
749
+ RewardsClaimedEvent.OutputTuple,
750
+ RewardsClaimedEvent.OutputObject
751
+ >;
752
+ RewardsClaimed: TypedContractEvent<
753
+ RewardsClaimedEvent.InputTuple,
754
+ RewardsClaimedEvent.OutputTuple,
755
+ RewardsClaimedEvent.OutputObject
756
+ >;
757
+
758
+ "RewardsDistributed(address[],uint256)": TypedContractEvent<
759
+ RewardsDistributedEvent.InputTuple,
760
+ RewardsDistributedEvent.OutputTuple,
761
+ RewardsDistributedEvent.OutputObject
762
+ >;
763
+ RewardsDistributed: TypedContractEvent<
764
+ RewardsDistributedEvent.InputTuple,
765
+ RewardsDistributedEvent.OutputTuple,
766
+ RewardsDistributedEvent.OutputObject
767
+ >;
768
+
769
+ "WithdrawalAnnounced(address,uint256,uint256)": TypedContractEvent<
770
+ WithdrawalAnnouncedEvent.InputTuple,
771
+ WithdrawalAnnouncedEvent.OutputTuple,
772
+ WithdrawalAnnouncedEvent.OutputObject
773
+ >;
774
+ WithdrawalAnnounced: TypedContractEvent<
775
+ WithdrawalAnnouncedEvent.InputTuple,
776
+ WithdrawalAnnouncedEvent.OutputTuple,
777
+ WithdrawalAnnouncedEvent.OutputObject
778
+ >;
779
+
780
+ "WithdrawalCancelled(address,uint256)": TypedContractEvent<
781
+ WithdrawalCancelledEvent.InputTuple,
782
+ WithdrawalCancelledEvent.OutputTuple,
783
+ WithdrawalCancelledEvent.OutputObject
784
+ >;
785
+ WithdrawalCancelled: TypedContractEvent<
786
+ WithdrawalCancelledEvent.InputTuple,
787
+ WithdrawalCancelledEvent.OutputTuple,
788
+ WithdrawalCancelledEvent.OutputObject
789
+ >;
790
+ };
791
+ }