@web3dotorg/evm-slc-core-sdk 0.3.14 → 0.3.15
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/abi/ExecutorsRegistry.json +1160 -0
- package/abi/Governance.json +2340 -0
- package/abi/IExecutorsRegistry.json +357 -0
- package/abi/IGovernance.json +133 -0
- package/abi/INeutralsRegistry.json +504 -0
- package/abi/IQParameters.json +78 -0
- package/abi/ISLCCore.json +207 -0
- package/abi/ISLCCoreFactory.json +174 -0
- package/abi/IWrappedToken.json +198 -0
- package/abi/NeutralsRegistry.json +1446 -0
- package/abi/ParameterRegistry.json +765 -0
- package/abi/SLCCore.json +307 -0
- package/abi/SLCCoreFactory.json +499 -0
- package/lib.commonjs/contracts/governance/ExecutorsRegistry.d.ts +21 -2
- package/lib.commonjs/contracts/libs/GovernanceUtils.d.ts +85 -0
- package/lib.commonjs/contracts/libs/GovernanceUtils.js +2 -0
- package/lib.commonjs/contracts/libs/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/governance/ExecutorsRegistry__factory.d.ts +29 -1
- package/lib.commonjs/factories/contracts/governance/ExecutorsRegistry__factory.js +38 -1
- package/lib.commonjs/factories/contracts/governance/Governance__factory.d.ts +6 -10
- package/lib.commonjs/factories/contracts/governance/Governance__factory.js +15 -14
- package/lib.commonjs/factories/contracts/governance/NeutralsRegistry__factory.d.ts +1 -1
- package/lib.commonjs/factories/contracts/governance/NeutralsRegistry__factory.js +1 -1
- package/lib.commonjs/factories/contracts/libs/GovernanceUtils__factory.d.ts +184 -0
- package/lib.commonjs/factories/contracts/libs/GovernanceUtils__factory.js +255 -0
- package/lib.commonjs/factories/contracts/libs/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/libs/index.js +3 -1
- package/lib.esm/contracts/governance/ExecutorsRegistry.d.ts +21 -2
- package/lib.esm/contracts/libs/GovernanceUtils.d.ts +85 -0
- package/lib.esm/contracts/libs/GovernanceUtils.js +1 -0
- package/lib.esm/contracts/libs/index.d.ts +1 -0
- package/lib.esm/factories/contracts/governance/ExecutorsRegistry__factory.d.ts +29 -1
- package/lib.esm/factories/contracts/governance/ExecutorsRegistry__factory.js +38 -1
- package/lib.esm/factories/contracts/governance/Governance__factory.d.ts +6 -10
- package/lib.esm/factories/contracts/governance/Governance__factory.js +15 -14
- package/lib.esm/factories/contracts/governance/NeutralsRegistry__factory.d.ts +1 -1
- package/lib.esm/factories/contracts/governance/NeutralsRegistry__factory.js +1 -1
- package/lib.esm/factories/contracts/libs/GovernanceUtils__factory.d.ts +184 -0
- package/lib.esm/factories/contracts/libs/GovernanceUtils__factory.js +251 -0
- package/lib.esm/factories/contracts/libs/index.d.ts +1 -0
- package/lib.esm/factories/contracts/libs/index.js +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "address",
|
|
6
|
+
"name": "target",
|
|
7
|
+
"type": "address"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"name": "AddressEmptyCode",
|
|
11
|
+
"type": "error"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"inputs": [
|
|
15
|
+
{
|
|
16
|
+
"internalType": "address",
|
|
17
|
+
"name": "parametersRegistry",
|
|
18
|
+
"type": "address"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"name": "DefaultGovernanceNotSet",
|
|
22
|
+
"type": "error"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"inputs": [
|
|
26
|
+
{
|
|
27
|
+
"internalType": "address",
|
|
28
|
+
"name": "implementation",
|
|
29
|
+
"type": "address"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"name": "ERC1967InvalidImplementation",
|
|
33
|
+
"type": "error"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"inputs": [],
|
|
37
|
+
"name": "ERC1967NonPayable",
|
|
38
|
+
"type": "error"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"inputs": [],
|
|
42
|
+
"name": "FailedCall",
|
|
43
|
+
"type": "error"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"inputs": [],
|
|
47
|
+
"name": "InvalidInitialization",
|
|
48
|
+
"type": "error"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"inputs": [],
|
|
52
|
+
"name": "NotInitializing",
|
|
53
|
+
"type": "error"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [
|
|
57
|
+
{
|
|
58
|
+
"internalType": "address",
|
|
59
|
+
"name": "owner",
|
|
60
|
+
"type": "address"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"name": "OwnableInvalidOwner",
|
|
64
|
+
"type": "error"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"inputs": [
|
|
68
|
+
{
|
|
69
|
+
"internalType": "address",
|
|
70
|
+
"name": "account",
|
|
71
|
+
"type": "address"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"name": "OwnableUnauthorizedAccount",
|
|
75
|
+
"type": "error"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"inputs": [],
|
|
79
|
+
"name": "UUPSUnauthorizedCallContext",
|
|
80
|
+
"type": "error"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"inputs": [
|
|
84
|
+
{
|
|
85
|
+
"internalType": "bytes32",
|
|
86
|
+
"name": "slot",
|
|
87
|
+
"type": "bytes32"
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"name": "UUPSUnsupportedProxiableUUID",
|
|
91
|
+
"type": "error"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"anonymous": false,
|
|
95
|
+
"inputs": [
|
|
96
|
+
{
|
|
97
|
+
"indexed": false,
|
|
98
|
+
"internalType": "uint64",
|
|
99
|
+
"name": "version",
|
|
100
|
+
"type": "uint64"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"name": "Initialized",
|
|
104
|
+
"type": "event"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"anonymous": false,
|
|
108
|
+
"inputs": [
|
|
109
|
+
{
|
|
110
|
+
"indexed": true,
|
|
111
|
+
"internalType": "address",
|
|
112
|
+
"name": "previousOwner",
|
|
113
|
+
"type": "address"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"indexed": true,
|
|
117
|
+
"internalType": "address",
|
|
118
|
+
"name": "newOwner",
|
|
119
|
+
"type": "address"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
"name": "OwnershipTransferred",
|
|
123
|
+
"type": "event"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"anonymous": false,
|
|
127
|
+
"inputs": [
|
|
128
|
+
{
|
|
129
|
+
"indexed": true,
|
|
130
|
+
"internalType": "address",
|
|
131
|
+
"name": "slc",
|
|
132
|
+
"type": "address"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"indexed": true,
|
|
136
|
+
"internalType": "address",
|
|
137
|
+
"name": "governance",
|
|
138
|
+
"type": "address"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"indexed": true,
|
|
142
|
+
"internalType": "address",
|
|
143
|
+
"name": "deployer",
|
|
144
|
+
"type": "address"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"name": "SLCDeployed",
|
|
148
|
+
"type": "event"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"anonymous": false,
|
|
152
|
+
"inputs": [
|
|
153
|
+
{
|
|
154
|
+
"indexed": true,
|
|
155
|
+
"internalType": "address",
|
|
156
|
+
"name": "implementation",
|
|
157
|
+
"type": "address"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"name": "Upgraded",
|
|
161
|
+
"type": "event"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"inputs": [],
|
|
165
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
166
|
+
"outputs": [
|
|
167
|
+
{
|
|
168
|
+
"internalType": "string",
|
|
169
|
+
"name": "",
|
|
170
|
+
"type": "string"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"stateMutability": "view",
|
|
174
|
+
"type": "function"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"inputs": [
|
|
178
|
+
{
|
|
179
|
+
"internalType": "address",
|
|
180
|
+
"name": "initialOwner_",
|
|
181
|
+
"type": "address"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"internalType": "address",
|
|
185
|
+
"name": "parametersRegistry_",
|
|
186
|
+
"type": "address"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"internalType": "address",
|
|
190
|
+
"name": "slcImplementation_",
|
|
191
|
+
"type": "address"
|
|
192
|
+
}
|
|
193
|
+
],
|
|
194
|
+
"name": "__SLCFactory_init",
|
|
195
|
+
"outputs": [],
|
|
196
|
+
"stateMutability": "nonpayable",
|
|
197
|
+
"type": "function"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"inputs": [
|
|
201
|
+
{
|
|
202
|
+
"internalType": "string",
|
|
203
|
+
"name": "legalDocumentLink_",
|
|
204
|
+
"type": "string"
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"name": "deploySLC",
|
|
208
|
+
"outputs": [
|
|
209
|
+
{
|
|
210
|
+
"internalType": "address",
|
|
211
|
+
"name": "",
|
|
212
|
+
"type": "address"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"stateMutability": "nonpayable",
|
|
216
|
+
"type": "function"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"inputs": [
|
|
220
|
+
{
|
|
221
|
+
"internalType": "address",
|
|
222
|
+
"name": "governance_",
|
|
223
|
+
"type": "address"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"internalType": "string",
|
|
227
|
+
"name": "legalDocumentLink_",
|
|
228
|
+
"type": "string"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"name": "deploySLCWithGovernance",
|
|
232
|
+
"outputs": [
|
|
233
|
+
{
|
|
234
|
+
"internalType": "address",
|
|
235
|
+
"name": "",
|
|
236
|
+
"type": "address"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"stateMutability": "nonpayable",
|
|
240
|
+
"type": "function"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"inputs": [
|
|
244
|
+
{
|
|
245
|
+
"internalType": "uint256",
|
|
246
|
+
"name": "offset_",
|
|
247
|
+
"type": "uint256"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"internalType": "uint256",
|
|
251
|
+
"name": "limit_",
|
|
252
|
+
"type": "uint256"
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"name": "getDeployedSLCs",
|
|
256
|
+
"outputs": [
|
|
257
|
+
{
|
|
258
|
+
"internalType": "address[]",
|
|
259
|
+
"name": "",
|
|
260
|
+
"type": "address[]"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"stateMutability": "view",
|
|
264
|
+
"type": "function"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"inputs": [],
|
|
268
|
+
"name": "getSLCCoreImplementation",
|
|
269
|
+
"outputs": [
|
|
270
|
+
{
|
|
271
|
+
"internalType": "address",
|
|
272
|
+
"name": "",
|
|
273
|
+
"type": "address"
|
|
274
|
+
}
|
|
275
|
+
],
|
|
276
|
+
"stateMutability": "view",
|
|
277
|
+
"type": "function"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"inputs": [],
|
|
281
|
+
"name": "getSLCFactoryStorage",
|
|
282
|
+
"outputs": [
|
|
283
|
+
{
|
|
284
|
+
"components": [
|
|
285
|
+
{
|
|
286
|
+
"internalType": "address",
|
|
287
|
+
"name": "parametersRegistry",
|
|
288
|
+
"type": "address"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"internalType": "address",
|
|
292
|
+
"name": "slcCoreImplementation",
|
|
293
|
+
"type": "address"
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
"internalType": "struct SLCCoreFactory.SLCFactoryStorageData",
|
|
297
|
+
"name": "",
|
|
298
|
+
"type": "tuple"
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"stateMutability": "view",
|
|
302
|
+
"type": "function"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"inputs": [
|
|
306
|
+
{
|
|
307
|
+
"internalType": "address",
|
|
308
|
+
"name": "slcDeployer_",
|
|
309
|
+
"type": "address"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"internalType": "uint256",
|
|
313
|
+
"name": "nonce_",
|
|
314
|
+
"type": "uint256"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"name": "getSalt",
|
|
318
|
+
"outputs": [
|
|
319
|
+
{
|
|
320
|
+
"internalType": "bytes32",
|
|
321
|
+
"name": "",
|
|
322
|
+
"type": "bytes32"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"stateMutability": "pure",
|
|
326
|
+
"type": "function"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"inputs": [],
|
|
330
|
+
"name": "implementation",
|
|
331
|
+
"outputs": [
|
|
332
|
+
{
|
|
333
|
+
"internalType": "address",
|
|
334
|
+
"name": "",
|
|
335
|
+
"type": "address"
|
|
336
|
+
}
|
|
337
|
+
],
|
|
338
|
+
"stateMutability": "view",
|
|
339
|
+
"type": "function"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"inputs": [
|
|
343
|
+
{
|
|
344
|
+
"internalType": "address",
|
|
345
|
+
"name": "toCheck_",
|
|
346
|
+
"type": "address"
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"name": "isSLCCore",
|
|
350
|
+
"outputs": [
|
|
351
|
+
{
|
|
352
|
+
"internalType": "bool",
|
|
353
|
+
"name": "",
|
|
354
|
+
"type": "bool"
|
|
355
|
+
}
|
|
356
|
+
],
|
|
357
|
+
"stateMutability": "view",
|
|
358
|
+
"type": "function"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"inputs": [
|
|
362
|
+
{
|
|
363
|
+
"internalType": "address",
|
|
364
|
+
"name": "owner_",
|
|
365
|
+
"type": "address"
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"name": "nonces",
|
|
369
|
+
"outputs": [
|
|
370
|
+
{
|
|
371
|
+
"internalType": "uint256",
|
|
372
|
+
"name": "",
|
|
373
|
+
"type": "uint256"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
"stateMutability": "view",
|
|
377
|
+
"type": "function"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"inputs": [],
|
|
381
|
+
"name": "owner",
|
|
382
|
+
"outputs": [
|
|
383
|
+
{
|
|
384
|
+
"internalType": "address",
|
|
385
|
+
"name": "",
|
|
386
|
+
"type": "address"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"stateMutability": "view",
|
|
390
|
+
"type": "function"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"inputs": [
|
|
394
|
+
{
|
|
395
|
+
"internalType": "address",
|
|
396
|
+
"name": "slcDeployer_",
|
|
397
|
+
"type": "address"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"internalType": "uint256",
|
|
401
|
+
"name": "nonce_",
|
|
402
|
+
"type": "uint256"
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
"name": "predictSLCAddress",
|
|
406
|
+
"outputs": [
|
|
407
|
+
{
|
|
408
|
+
"internalType": "address",
|
|
409
|
+
"name": "",
|
|
410
|
+
"type": "address"
|
|
411
|
+
}
|
|
412
|
+
],
|
|
413
|
+
"stateMutability": "view",
|
|
414
|
+
"type": "function"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"inputs": [],
|
|
418
|
+
"name": "proxiableUUID",
|
|
419
|
+
"outputs": [
|
|
420
|
+
{
|
|
421
|
+
"internalType": "bytes32",
|
|
422
|
+
"name": "",
|
|
423
|
+
"type": "bytes32"
|
|
424
|
+
}
|
|
425
|
+
],
|
|
426
|
+
"stateMutability": "view",
|
|
427
|
+
"type": "function"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"inputs": [],
|
|
431
|
+
"name": "renounceOwnership",
|
|
432
|
+
"outputs": [],
|
|
433
|
+
"stateMutability": "nonpayable",
|
|
434
|
+
"type": "function"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"inputs": [
|
|
438
|
+
{
|
|
439
|
+
"internalType": "address",
|
|
440
|
+
"name": "newImplementation_",
|
|
441
|
+
"type": "address"
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"name": "setSLCCoreImplementation",
|
|
445
|
+
"outputs": [],
|
|
446
|
+
"stateMutability": "nonpayable",
|
|
447
|
+
"type": "function"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"inputs": [
|
|
451
|
+
{
|
|
452
|
+
"internalType": "bytes4",
|
|
453
|
+
"name": "interfaceId_",
|
|
454
|
+
"type": "bytes4"
|
|
455
|
+
}
|
|
456
|
+
],
|
|
457
|
+
"name": "supportsInterface",
|
|
458
|
+
"outputs": [
|
|
459
|
+
{
|
|
460
|
+
"internalType": "bool",
|
|
461
|
+
"name": "",
|
|
462
|
+
"type": "bool"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"stateMutability": "view",
|
|
466
|
+
"type": "function"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"inputs": [
|
|
470
|
+
{
|
|
471
|
+
"internalType": "address",
|
|
472
|
+
"name": "newOwner",
|
|
473
|
+
"type": "address"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
"name": "transferOwnership",
|
|
477
|
+
"outputs": [],
|
|
478
|
+
"stateMutability": "nonpayable",
|
|
479
|
+
"type": "function"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"inputs": [
|
|
483
|
+
{
|
|
484
|
+
"internalType": "address",
|
|
485
|
+
"name": "newImplementation",
|
|
486
|
+
"type": "address"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
"internalType": "bytes",
|
|
490
|
+
"name": "data",
|
|
491
|
+
"type": "bytes"
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"name": "upgradeToAndCall",
|
|
495
|
+
"outputs": [],
|
|
496
|
+
"stateMutability": "payable",
|
|
497
|
+
"type": "function"
|
|
498
|
+
}
|
|
499
|
+
]
|
|
@@ -6,17 +6,20 @@ export declare namespace ExecutorsRegistry {
|
|
|
6
6
|
isApproved: boolean;
|
|
7
7
|
isActive: boolean;
|
|
8
8
|
isStandby: boolean;
|
|
9
|
+
externalLink: string;
|
|
9
10
|
};
|
|
10
11
|
type ExecutorInfoStructOutput = [
|
|
11
12
|
stake: bigint,
|
|
12
13
|
isApproved: boolean,
|
|
13
14
|
isActive: boolean,
|
|
14
|
-
isStandby: boolean
|
|
15
|
+
isStandby: boolean,
|
|
16
|
+
externalLink: string
|
|
15
17
|
] & {
|
|
16
18
|
stake: bigint;
|
|
17
19
|
isApproved: boolean;
|
|
18
20
|
isActive: boolean;
|
|
19
21
|
isStandby: boolean;
|
|
22
|
+
externalLink: string;
|
|
20
23
|
};
|
|
21
24
|
type WithdrawalAnnouncementStruct = {
|
|
22
25
|
amount: BigNumberish;
|
|
@@ -50,7 +53,7 @@ export declare namespace AValueDistributor {
|
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
export interface ExecutorsRegistryInterface extends Interface {
|
|
53
|
-
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION" | "__ExecutorsRegistry_init" | "announceWithdrawal" | "approveExecutor" | "boundActiveExecutors" | "cancelWithdrawal" | "claimRewards" | "completeWithdrawal" | "cumulativeSum" | "disapproveExecutor" | "distributeRewards" | "getActiveExecutors" | "getExecutorInfo" | "getExecutorsCount" | "getOwedValue" | "getStandbyExecutors" | "getWithdrawalAnnouncement" | "hasShares" | "implementation" | "isExecutor" | "isWithdrawalReady" | "proxiableUUID" | "slashExecutor" | "stake" | "supportsInterface" | "totalShares" | "tryBecomeActive" | "updateWithdrawalAnnouncement" | "updatedAt" | "upgradeToAndCall" | "userDistribution"): FunctionFragment;
|
|
56
|
+
getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION" | "__ExecutorsRegistry_init" | "announceWithdrawal" | "approveExecutor" | "boundActiveExecutors" | "cancelWithdrawal" | "claimRewards" | "completeWithdrawal" | "cumulativeSum" | "disapproveExecutor" | "distributeRewards" | "getActiveExecutors" | "getExecutorInfo" | "getExecutorsCount" | "getExternalLink" | "getOwedValue" | "getStandbyExecutors" | "getWithdrawalAnnouncement" | "hasShares" | "implementation" | "isExecutor" | "isWithdrawalReady" | "proxiableUUID" | "setExternalLink" | "slashExecutor" | "stake" | "supportsInterface" | "totalShares" | "tryBecomeActive" | "updateWithdrawalAnnouncement" | "updatedAt" | "upgradeToAndCall" | "userDistribution"): FunctionFragment;
|
|
54
57
|
getEvent(nameOrSignatureOrTopic: "ExecutorActivated" | "ExecutorApproved" | "ExecutorDisapproved" | "ExecutorMovedToStandby" | "ExecutorSlashed" | "ExecutorStaked" | "ExecutorUnstaked" | "Initialized" | "RewardsClaimed" | "RewardsDistributed" | "SharesAdded" | "SharesRemoved" | "Upgraded" | "ValueDistributed" | "WithdrawalAnnounced" | "WithdrawalCancelled"): EventFragment;
|
|
55
58
|
encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
|
|
56
59
|
encodeFunctionData(functionFragment: "__ExecutorsRegistry_init", values: [AddressLike, AddressLike[]]): string;
|
|
@@ -66,6 +69,7 @@ export interface ExecutorsRegistryInterface extends Interface {
|
|
|
66
69
|
encodeFunctionData(functionFragment: "getActiveExecutors", values: [BigNumberish, BigNumberish]): string;
|
|
67
70
|
encodeFunctionData(functionFragment: "getExecutorInfo", values: [AddressLike]): string;
|
|
68
71
|
encodeFunctionData(functionFragment: "getExecutorsCount", values?: undefined): string;
|
|
72
|
+
encodeFunctionData(functionFragment: "getExternalLink", values: [AddressLike]): string;
|
|
69
73
|
encodeFunctionData(functionFragment: "getOwedValue", values: [AddressLike]): string;
|
|
70
74
|
encodeFunctionData(functionFragment: "getStandbyExecutors", values: [BigNumberish, BigNumberish]): string;
|
|
71
75
|
encodeFunctionData(functionFragment: "getWithdrawalAnnouncement", values: [AddressLike]): string;
|
|
@@ -74,6 +78,7 @@ export interface ExecutorsRegistryInterface extends Interface {
|
|
|
74
78
|
encodeFunctionData(functionFragment: "isExecutor", values: [AddressLike]): string;
|
|
75
79
|
encodeFunctionData(functionFragment: "isWithdrawalReady", values: [AddressLike]): string;
|
|
76
80
|
encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
|
|
81
|
+
encodeFunctionData(functionFragment: "setExternalLink", values: [string]): string;
|
|
77
82
|
encodeFunctionData(functionFragment: "slashExecutor", values: [AddressLike, BigNumberish]): string;
|
|
78
83
|
encodeFunctionData(functionFragment: "stake", values: [BigNumberish]): string;
|
|
79
84
|
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
|
@@ -97,6 +102,7 @@ export interface ExecutorsRegistryInterface extends Interface {
|
|
|
97
102
|
decodeFunctionResult(functionFragment: "getActiveExecutors", data: BytesLike): Result;
|
|
98
103
|
decodeFunctionResult(functionFragment: "getExecutorInfo", data: BytesLike): Result;
|
|
99
104
|
decodeFunctionResult(functionFragment: "getExecutorsCount", data: BytesLike): Result;
|
|
105
|
+
decodeFunctionResult(functionFragment: "getExternalLink", data: BytesLike): Result;
|
|
100
106
|
decodeFunctionResult(functionFragment: "getOwedValue", data: BytesLike): Result;
|
|
101
107
|
decodeFunctionResult(functionFragment: "getStandbyExecutors", data: BytesLike): Result;
|
|
102
108
|
decodeFunctionResult(functionFragment: "getWithdrawalAnnouncement", data: BytesLike): Result;
|
|
@@ -105,6 +111,7 @@ export interface ExecutorsRegistryInterface extends Interface {
|
|
|
105
111
|
decodeFunctionResult(functionFragment: "isExecutor", data: BytesLike): Result;
|
|
106
112
|
decodeFunctionResult(functionFragment: "isWithdrawalReady", data: BytesLike): Result;
|
|
107
113
|
decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
|
|
114
|
+
decodeFunctionResult(functionFragment: "setExternalLink", data: BytesLike): Result;
|
|
108
115
|
decodeFunctionResult(functionFragment: "slashExecutor", data: BytesLike): Result;
|
|
109
116
|
decodeFunctionResult(functionFragment: "stake", data: BytesLike): Result;
|
|
110
117
|
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
|
@@ -395,6 +402,11 @@ export interface ExecutorsRegistry extends BaseContract {
|
|
|
395
402
|
ExecutorsRegistry.ExecutorInfoStructOutput
|
|
396
403
|
], "view">;
|
|
397
404
|
getExecutorsCount: TypedContractMethod<[], [bigint], "view">;
|
|
405
|
+
getExternalLink: TypedContractMethod<[
|
|
406
|
+
executor_: AddressLike
|
|
407
|
+
], [
|
|
408
|
+
string
|
|
409
|
+
], "view">;
|
|
398
410
|
getOwedValue: TypedContractMethod<[user_: AddressLike], [bigint], "view">;
|
|
399
411
|
getStandbyExecutors: TypedContractMethod<[
|
|
400
412
|
offset_: BigNumberish,
|
|
@@ -416,6 +428,11 @@ export interface ExecutorsRegistry extends BaseContract {
|
|
|
416
428
|
boolean
|
|
417
429
|
], "view">;
|
|
418
430
|
proxiableUUID: TypedContractMethod<[], [string], "view">;
|
|
431
|
+
setExternalLink: TypedContractMethod<[
|
|
432
|
+
externalLink_: string
|
|
433
|
+
], [
|
|
434
|
+
void
|
|
435
|
+
], "nonpayable">;
|
|
419
436
|
slashExecutor: TypedContractMethod<[
|
|
420
437
|
executor_: AddressLike,
|
|
421
438
|
amount_: BigNumberish
|
|
@@ -476,6 +493,7 @@ export interface ExecutorsRegistry extends BaseContract {
|
|
|
476
493
|
ExecutorsRegistry.ExecutorInfoStructOutput
|
|
477
494
|
], "view">;
|
|
478
495
|
getFunction(nameOrSignature: "getExecutorsCount"): TypedContractMethod<[], [bigint], "view">;
|
|
496
|
+
getFunction(nameOrSignature: "getExternalLink"): TypedContractMethod<[executor_: AddressLike], [string], "view">;
|
|
479
497
|
getFunction(nameOrSignature: "getOwedValue"): TypedContractMethod<[user_: AddressLike], [bigint], "view">;
|
|
480
498
|
getFunction(nameOrSignature: "getStandbyExecutors"): TypedContractMethod<[
|
|
481
499
|
offset_: BigNumberish,
|
|
@@ -493,6 +511,7 @@ export interface ExecutorsRegistry extends BaseContract {
|
|
|
493
511
|
getFunction(nameOrSignature: "isExecutor"): TypedContractMethod<[candidate_: AddressLike], [boolean], "view">;
|
|
494
512
|
getFunction(nameOrSignature: "isWithdrawalReady"): TypedContractMethod<[executor_: AddressLike], [boolean], "view">;
|
|
495
513
|
getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
|
|
514
|
+
getFunction(nameOrSignature: "setExternalLink"): TypedContractMethod<[externalLink_: string], [void], "nonpayable">;
|
|
496
515
|
getFunction(nameOrSignature: "slashExecutor"): TypedContractMethod<[
|
|
497
516
|
executor_: AddressLike,
|
|
498
517
|
amount_: BigNumberish
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common";
|
|
3
|
+
export declare namespace IGovernance {
|
|
4
|
+
type OperationDataStruct = {
|
|
5
|
+
operation_: BigNumberish;
|
|
6
|
+
to_: AddressLike;
|
|
7
|
+
data_: BytesLike;
|
|
8
|
+
value_: BigNumberish;
|
|
9
|
+
};
|
|
10
|
+
type OperationDataStructOutput = [
|
|
11
|
+
operation_: bigint,
|
|
12
|
+
to_: string,
|
|
13
|
+
data_: string,
|
|
14
|
+
value_: bigint
|
|
15
|
+
] & {
|
|
16
|
+
operation_: bigint;
|
|
17
|
+
to_: string;
|
|
18
|
+
data_: string;
|
|
19
|
+
value_: bigint;
|
|
20
|
+
};
|
|
21
|
+
type OperationBundleStruct = {
|
|
22
|
+
operations: IGovernance.OperationDataStruct[];
|
|
23
|
+
};
|
|
24
|
+
type OperationBundleStructOutput = [
|
|
25
|
+
operations: IGovernance.OperationDataStructOutput[]
|
|
26
|
+
] & {
|
|
27
|
+
operations: IGovernance.OperationDataStructOutput[];
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface GovernanceUtilsInterface extends Interface {
|
|
31
|
+
getFunction(nameOrSignature: "getExecutorsShare" | "getExecutorsThreshold" | "getNeutralsShare" | "getNeutralsThreshold" | "getTreasuryAddress" | "getTreasuryShare" | "hashOperation"): FunctionFragment;
|
|
32
|
+
encodeFunctionData(functionFragment: "getExecutorsShare", values?: undefined): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "getExecutorsThreshold", values?: undefined): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "getNeutralsShare", values?: undefined): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "getNeutralsThreshold", values?: undefined): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "getTreasuryAddress", values?: undefined): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "getTreasuryShare", values?: undefined): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "hashOperation", values: [IGovernance.OperationBundleStruct]): string;
|
|
39
|
+
decodeFunctionResult(functionFragment: "getExecutorsShare", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(functionFragment: "getExecutorsThreshold", data: BytesLike): Result;
|
|
41
|
+
decodeFunctionResult(functionFragment: "getNeutralsShare", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "getNeutralsThreshold", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "getTreasuryAddress", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "getTreasuryShare", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "hashOperation", data: BytesLike): Result;
|
|
46
|
+
}
|
|
47
|
+
export interface GovernanceUtils extends BaseContract {
|
|
48
|
+
contractName: "GovernanceUtils";
|
|
49
|
+
connect(runner?: ContractRunner | null): GovernanceUtils;
|
|
50
|
+
waitForDeployment(): Promise<this>;
|
|
51
|
+
interface: GovernanceUtilsInterface;
|
|
52
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
53
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
54
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
55
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
56
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
57
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
58
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
59
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
60
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
61
|
+
getExecutorsShare: TypedContractMethod<[], [bigint], "view">;
|
|
62
|
+
getExecutorsThreshold: TypedContractMethod<[], [bigint], "view">;
|
|
63
|
+
getNeutralsShare: TypedContractMethod<[], [bigint], "view">;
|
|
64
|
+
getNeutralsThreshold: TypedContractMethod<[], [bigint], "view">;
|
|
65
|
+
getTreasuryAddress: TypedContractMethod<[], [string], "view">;
|
|
66
|
+
getTreasuryShare: TypedContractMethod<[], [bigint], "view">;
|
|
67
|
+
hashOperation: TypedContractMethod<[
|
|
68
|
+
operation_: IGovernance.OperationBundleStruct
|
|
69
|
+
], [
|
|
70
|
+
string
|
|
71
|
+
], "view">;
|
|
72
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
73
|
+
getFunction(nameOrSignature: "getExecutorsShare"): TypedContractMethod<[], [bigint], "view">;
|
|
74
|
+
getFunction(nameOrSignature: "getExecutorsThreshold"): TypedContractMethod<[], [bigint], "view">;
|
|
75
|
+
getFunction(nameOrSignature: "getNeutralsShare"): TypedContractMethod<[], [bigint], "view">;
|
|
76
|
+
getFunction(nameOrSignature: "getNeutralsThreshold"): TypedContractMethod<[], [bigint], "view">;
|
|
77
|
+
getFunction(nameOrSignature: "getTreasuryAddress"): TypedContractMethod<[], [string], "view">;
|
|
78
|
+
getFunction(nameOrSignature: "getTreasuryShare"): TypedContractMethod<[], [bigint], "view">;
|
|
79
|
+
getFunction(nameOrSignature: "hashOperation"): TypedContractMethod<[
|
|
80
|
+
operation_: IGovernance.OperationBundleStruct
|
|
81
|
+
], [
|
|
82
|
+
string
|
|
83
|
+
], "view">;
|
|
84
|
+
filters: {};
|
|
85
|
+
}
|