@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.
- package/common.ts +131 -0
- package/constants.ts +34 -0
- package/contracts/governance/ExecutorsRegistry.ts +1249 -0
- package/contracts/governance/Governance.ts +1740 -0
- package/contracts/governance/NeutralsRegistry.ts +1393 -0
- package/contracts/governance/ParameterRegistry.ts +832 -0
- package/contracts/governance/index.ts +7 -0
- package/contracts/index.ts +15 -0
- package/contracts/interfaces/IExecutorsRegistry.ts +601 -0
- package/contracts/interfaces/IGovernance.ts +215 -0
- package/contracts/interfaces/INeutralsRegistry.ts +624 -0
- package/contracts/interfaces/IQParameters.ts +109 -0
- package/contracts/interfaces/ISLCCore.ts +289 -0
- package/contracts/interfaces/ISLCCoreFactory.ts +217 -0
- package/contracts/interfaces/IWrappedToken.ts +272 -0
- package/contracts/interfaces/index.ts +10 -0
- package/contracts/libs/Errors.ts +71 -0
- package/contracts/libs/NeutralsSelection.ts +71 -0
- package/contracts/libs/index.ts +5 -0
- package/contracts/mocks/MockGovernance.ts +389 -0
- package/contracts/mocks/MockNeutralsRegistry.ts +791 -0
- package/contracts/mocks/SimpleContract.ts +110 -0
- package/contracts/mocks/WrappedToken.ts +334 -0
- package/contracts/mocks/index.ts +7 -0
- package/contracts/slc-core/SLCCore.ts +397 -0
- package/contracts/slc-core/SLCCoreFactory.ts +559 -0
- package/contracts/slc-core/index.ts +5 -0
- package/contracts/token/Token.ts +399 -0
- package/contracts/token/index.ts +4 -0
- package/factories/contracts/governance/ExecutorsRegistry__factory.ts +1240 -0
- package/factories/contracts/governance/Governance__factory.ts +2328 -0
- package/factories/contracts/governance/NeutralsRegistry__factory.ts +1491 -0
- package/factories/contracts/governance/ParameterRegistry__factory.ts +834 -0
- package/factories/contracts/governance/index.ts +7 -0
- package/factories/contracts/index.ts +9 -0
- package/factories/contracts/interfaces/IExecutorsRegistry__factory.ts +428 -0
- package/factories/contracts/interfaces/IGovernance__factory.ts +153 -0
- package/factories/contracts/interfaces/INeutralsRegistry__factory.ts +527 -0
- package/factories/contracts/interfaces/IQParameters__factory.ts +101 -0
- package/factories/contracts/interfaces/ISLCCoreFactory__factory.ts +197 -0
- package/factories/contracts/interfaces/ISLCCore__factory.ts +227 -0
- package/factories/contracts/interfaces/IWrappedToken__factory.ts +221 -0
- package/factories/contracts/interfaces/index.ts +10 -0
- package/factories/contracts/libs/Errors__factory.ts +205 -0
- package/factories/contracts/libs/NeutralsSelection__factory.ts +103 -0
- package/factories/contracts/libs/index.ts +5 -0
- package/factories/contracts/mocks/MockGovernance__factory.ts +353 -0
- package/factories/contracts/mocks/MockNeutralsRegistry__factory.ts +730 -0
- package/factories/contracts/mocks/SimpleContract__factory.ts +110 -0
- package/factories/contracts/mocks/WrappedToken__factory.ts +433 -0
- package/factories/contracts/mocks/index.ts +7 -0
- package/factories/contracts/slc-core/SLCCoreFactory__factory.ts +568 -0
- package/factories/contracts/slc-core/SLCCore__factory.ts +373 -0
- package/factories/contracts/slc-core/index.ts +5 -0
- package/factories/contracts/token/Token__factory.ts +505 -0
- package/factories/contracts/token/index.ts +4 -0
- package/index.ts +38 -0
- package/package.json +25 -0
@@ -0,0 +1,505 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import {
|
5
|
+
Contract,
|
6
|
+
ContractFactory,
|
7
|
+
ContractTransactionResponse,
|
8
|
+
Interface,
|
9
|
+
} from "ethers";
|
10
|
+
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
|
11
|
+
import type { NonPayableOverrides } from "../../../common";
|
12
|
+
import type { Token, TokenInterface } from "../../../contracts/token/Token";
|
13
|
+
|
14
|
+
const _abi = [
|
15
|
+
{
|
16
|
+
inputs: [
|
17
|
+
{
|
18
|
+
internalType: "string",
|
19
|
+
name: "name_",
|
20
|
+
type: "string",
|
21
|
+
},
|
22
|
+
{
|
23
|
+
internalType: "string",
|
24
|
+
name: "symbol_",
|
25
|
+
type: "string",
|
26
|
+
},
|
27
|
+
],
|
28
|
+
stateMutability: "nonpayable",
|
29
|
+
type: "constructor",
|
30
|
+
},
|
31
|
+
{
|
32
|
+
inputs: [
|
33
|
+
{
|
34
|
+
internalType: "address",
|
35
|
+
name: "spender",
|
36
|
+
type: "address",
|
37
|
+
},
|
38
|
+
{
|
39
|
+
internalType: "uint256",
|
40
|
+
name: "allowance",
|
41
|
+
type: "uint256",
|
42
|
+
},
|
43
|
+
{
|
44
|
+
internalType: "uint256",
|
45
|
+
name: "needed",
|
46
|
+
type: "uint256",
|
47
|
+
},
|
48
|
+
],
|
49
|
+
name: "ERC20InsufficientAllowance",
|
50
|
+
type: "error",
|
51
|
+
},
|
52
|
+
{
|
53
|
+
inputs: [
|
54
|
+
{
|
55
|
+
internalType: "address",
|
56
|
+
name: "sender",
|
57
|
+
type: "address",
|
58
|
+
},
|
59
|
+
{
|
60
|
+
internalType: "uint256",
|
61
|
+
name: "balance",
|
62
|
+
type: "uint256",
|
63
|
+
},
|
64
|
+
{
|
65
|
+
internalType: "uint256",
|
66
|
+
name: "needed",
|
67
|
+
type: "uint256",
|
68
|
+
},
|
69
|
+
],
|
70
|
+
name: "ERC20InsufficientBalance",
|
71
|
+
type: "error",
|
72
|
+
},
|
73
|
+
{
|
74
|
+
inputs: [
|
75
|
+
{
|
76
|
+
internalType: "address",
|
77
|
+
name: "approver",
|
78
|
+
type: "address",
|
79
|
+
},
|
80
|
+
],
|
81
|
+
name: "ERC20InvalidApprover",
|
82
|
+
type: "error",
|
83
|
+
},
|
84
|
+
{
|
85
|
+
inputs: [
|
86
|
+
{
|
87
|
+
internalType: "address",
|
88
|
+
name: "receiver",
|
89
|
+
type: "address",
|
90
|
+
},
|
91
|
+
],
|
92
|
+
name: "ERC20InvalidReceiver",
|
93
|
+
type: "error",
|
94
|
+
},
|
95
|
+
{
|
96
|
+
inputs: [
|
97
|
+
{
|
98
|
+
internalType: "address",
|
99
|
+
name: "sender",
|
100
|
+
type: "address",
|
101
|
+
},
|
102
|
+
],
|
103
|
+
name: "ERC20InvalidSender",
|
104
|
+
type: "error",
|
105
|
+
},
|
106
|
+
{
|
107
|
+
inputs: [
|
108
|
+
{
|
109
|
+
internalType: "address",
|
110
|
+
name: "spender",
|
111
|
+
type: "address",
|
112
|
+
},
|
113
|
+
],
|
114
|
+
name: "ERC20InvalidSpender",
|
115
|
+
type: "error",
|
116
|
+
},
|
117
|
+
{
|
118
|
+
inputs: [
|
119
|
+
{
|
120
|
+
internalType: "address",
|
121
|
+
name: "owner",
|
122
|
+
type: "address",
|
123
|
+
},
|
124
|
+
],
|
125
|
+
name: "OwnableInvalidOwner",
|
126
|
+
type: "error",
|
127
|
+
},
|
128
|
+
{
|
129
|
+
inputs: [
|
130
|
+
{
|
131
|
+
internalType: "address",
|
132
|
+
name: "account",
|
133
|
+
type: "address",
|
134
|
+
},
|
135
|
+
],
|
136
|
+
name: "OwnableUnauthorizedAccount",
|
137
|
+
type: "error",
|
138
|
+
},
|
139
|
+
{
|
140
|
+
anonymous: false,
|
141
|
+
inputs: [
|
142
|
+
{
|
143
|
+
indexed: true,
|
144
|
+
internalType: "address",
|
145
|
+
name: "owner",
|
146
|
+
type: "address",
|
147
|
+
},
|
148
|
+
{
|
149
|
+
indexed: true,
|
150
|
+
internalType: "address",
|
151
|
+
name: "spender",
|
152
|
+
type: "address",
|
153
|
+
},
|
154
|
+
{
|
155
|
+
indexed: false,
|
156
|
+
internalType: "uint256",
|
157
|
+
name: "value",
|
158
|
+
type: "uint256",
|
159
|
+
},
|
160
|
+
],
|
161
|
+
name: "Approval",
|
162
|
+
type: "event",
|
163
|
+
},
|
164
|
+
{
|
165
|
+
anonymous: false,
|
166
|
+
inputs: [
|
167
|
+
{
|
168
|
+
indexed: true,
|
169
|
+
internalType: "address",
|
170
|
+
name: "previousOwner",
|
171
|
+
type: "address",
|
172
|
+
},
|
173
|
+
{
|
174
|
+
indexed: true,
|
175
|
+
internalType: "address",
|
176
|
+
name: "newOwner",
|
177
|
+
type: "address",
|
178
|
+
},
|
179
|
+
],
|
180
|
+
name: "OwnershipTransferred",
|
181
|
+
type: "event",
|
182
|
+
},
|
183
|
+
{
|
184
|
+
anonymous: false,
|
185
|
+
inputs: [
|
186
|
+
{
|
187
|
+
indexed: true,
|
188
|
+
internalType: "address",
|
189
|
+
name: "from",
|
190
|
+
type: "address",
|
191
|
+
},
|
192
|
+
{
|
193
|
+
indexed: true,
|
194
|
+
internalType: "address",
|
195
|
+
name: "to",
|
196
|
+
type: "address",
|
197
|
+
},
|
198
|
+
{
|
199
|
+
indexed: false,
|
200
|
+
internalType: "uint256",
|
201
|
+
name: "value",
|
202
|
+
type: "uint256",
|
203
|
+
},
|
204
|
+
],
|
205
|
+
name: "Transfer",
|
206
|
+
type: "event",
|
207
|
+
},
|
208
|
+
{
|
209
|
+
inputs: [
|
210
|
+
{
|
211
|
+
internalType: "address",
|
212
|
+
name: "owner",
|
213
|
+
type: "address",
|
214
|
+
},
|
215
|
+
{
|
216
|
+
internalType: "address",
|
217
|
+
name: "spender",
|
218
|
+
type: "address",
|
219
|
+
},
|
220
|
+
],
|
221
|
+
name: "allowance",
|
222
|
+
outputs: [
|
223
|
+
{
|
224
|
+
internalType: "uint256",
|
225
|
+
name: "",
|
226
|
+
type: "uint256",
|
227
|
+
},
|
228
|
+
],
|
229
|
+
stateMutability: "view",
|
230
|
+
type: "function",
|
231
|
+
},
|
232
|
+
{
|
233
|
+
inputs: [
|
234
|
+
{
|
235
|
+
internalType: "address",
|
236
|
+
name: "spender",
|
237
|
+
type: "address",
|
238
|
+
},
|
239
|
+
{
|
240
|
+
internalType: "uint256",
|
241
|
+
name: "value",
|
242
|
+
type: "uint256",
|
243
|
+
},
|
244
|
+
],
|
245
|
+
name: "approve",
|
246
|
+
outputs: [
|
247
|
+
{
|
248
|
+
internalType: "bool",
|
249
|
+
name: "",
|
250
|
+
type: "bool",
|
251
|
+
},
|
252
|
+
],
|
253
|
+
stateMutability: "nonpayable",
|
254
|
+
type: "function",
|
255
|
+
},
|
256
|
+
{
|
257
|
+
inputs: [
|
258
|
+
{
|
259
|
+
internalType: "address",
|
260
|
+
name: "account",
|
261
|
+
type: "address",
|
262
|
+
},
|
263
|
+
],
|
264
|
+
name: "balanceOf",
|
265
|
+
outputs: [
|
266
|
+
{
|
267
|
+
internalType: "uint256",
|
268
|
+
name: "",
|
269
|
+
type: "uint256",
|
270
|
+
},
|
271
|
+
],
|
272
|
+
stateMutability: "view",
|
273
|
+
type: "function",
|
274
|
+
},
|
275
|
+
{
|
276
|
+
inputs: [
|
277
|
+
{
|
278
|
+
internalType: "address",
|
279
|
+
name: "to_",
|
280
|
+
type: "address",
|
281
|
+
},
|
282
|
+
{
|
283
|
+
internalType: "uint256",
|
284
|
+
name: "amount_",
|
285
|
+
type: "uint256",
|
286
|
+
},
|
287
|
+
],
|
288
|
+
name: "burn",
|
289
|
+
outputs: [],
|
290
|
+
stateMutability: "nonpayable",
|
291
|
+
type: "function",
|
292
|
+
},
|
293
|
+
{
|
294
|
+
inputs: [],
|
295
|
+
name: "decimals",
|
296
|
+
outputs: [
|
297
|
+
{
|
298
|
+
internalType: "uint8",
|
299
|
+
name: "",
|
300
|
+
type: "uint8",
|
301
|
+
},
|
302
|
+
],
|
303
|
+
stateMutability: "view",
|
304
|
+
type: "function",
|
305
|
+
},
|
306
|
+
{
|
307
|
+
inputs: [
|
308
|
+
{
|
309
|
+
internalType: "address",
|
310
|
+
name: "to_",
|
311
|
+
type: "address",
|
312
|
+
},
|
313
|
+
{
|
314
|
+
internalType: "uint256",
|
315
|
+
name: "amount_",
|
316
|
+
type: "uint256",
|
317
|
+
},
|
318
|
+
],
|
319
|
+
name: "mint",
|
320
|
+
outputs: [],
|
321
|
+
stateMutability: "nonpayable",
|
322
|
+
type: "function",
|
323
|
+
},
|
324
|
+
{
|
325
|
+
inputs: [],
|
326
|
+
name: "name",
|
327
|
+
outputs: [
|
328
|
+
{
|
329
|
+
internalType: "string",
|
330
|
+
name: "",
|
331
|
+
type: "string",
|
332
|
+
},
|
333
|
+
],
|
334
|
+
stateMutability: "view",
|
335
|
+
type: "function",
|
336
|
+
},
|
337
|
+
{
|
338
|
+
inputs: [],
|
339
|
+
name: "owner",
|
340
|
+
outputs: [
|
341
|
+
{
|
342
|
+
internalType: "address",
|
343
|
+
name: "",
|
344
|
+
type: "address",
|
345
|
+
},
|
346
|
+
],
|
347
|
+
stateMutability: "view",
|
348
|
+
type: "function",
|
349
|
+
},
|
350
|
+
{
|
351
|
+
inputs: [],
|
352
|
+
name: "renounceOwnership",
|
353
|
+
outputs: [],
|
354
|
+
stateMutability: "nonpayable",
|
355
|
+
type: "function",
|
356
|
+
},
|
357
|
+
{
|
358
|
+
inputs: [],
|
359
|
+
name: "symbol",
|
360
|
+
outputs: [
|
361
|
+
{
|
362
|
+
internalType: "string",
|
363
|
+
name: "",
|
364
|
+
type: "string",
|
365
|
+
},
|
366
|
+
],
|
367
|
+
stateMutability: "view",
|
368
|
+
type: "function",
|
369
|
+
},
|
370
|
+
{
|
371
|
+
inputs: [],
|
372
|
+
name: "totalSupply",
|
373
|
+
outputs: [
|
374
|
+
{
|
375
|
+
internalType: "uint256",
|
376
|
+
name: "",
|
377
|
+
type: "uint256",
|
378
|
+
},
|
379
|
+
],
|
380
|
+
stateMutability: "view",
|
381
|
+
type: "function",
|
382
|
+
},
|
383
|
+
{
|
384
|
+
inputs: [
|
385
|
+
{
|
386
|
+
internalType: "address",
|
387
|
+
name: "to",
|
388
|
+
type: "address",
|
389
|
+
},
|
390
|
+
{
|
391
|
+
internalType: "uint256",
|
392
|
+
name: "value",
|
393
|
+
type: "uint256",
|
394
|
+
},
|
395
|
+
],
|
396
|
+
name: "transfer",
|
397
|
+
outputs: [
|
398
|
+
{
|
399
|
+
internalType: "bool",
|
400
|
+
name: "",
|
401
|
+
type: "bool",
|
402
|
+
},
|
403
|
+
],
|
404
|
+
stateMutability: "nonpayable",
|
405
|
+
type: "function",
|
406
|
+
},
|
407
|
+
{
|
408
|
+
inputs: [
|
409
|
+
{
|
410
|
+
internalType: "address",
|
411
|
+
name: "from",
|
412
|
+
type: "address",
|
413
|
+
},
|
414
|
+
{
|
415
|
+
internalType: "address",
|
416
|
+
name: "to",
|
417
|
+
type: "address",
|
418
|
+
},
|
419
|
+
{
|
420
|
+
internalType: "uint256",
|
421
|
+
name: "value",
|
422
|
+
type: "uint256",
|
423
|
+
},
|
424
|
+
],
|
425
|
+
name: "transferFrom",
|
426
|
+
outputs: [
|
427
|
+
{
|
428
|
+
internalType: "bool",
|
429
|
+
name: "",
|
430
|
+
type: "bool",
|
431
|
+
},
|
432
|
+
],
|
433
|
+
stateMutability: "nonpayable",
|
434
|
+
type: "function",
|
435
|
+
},
|
436
|
+
{
|
437
|
+
inputs: [
|
438
|
+
{
|
439
|
+
internalType: "address",
|
440
|
+
name: "newOwner",
|
441
|
+
type: "address",
|
442
|
+
},
|
443
|
+
],
|
444
|
+
name: "transferOwnership",
|
445
|
+
outputs: [],
|
446
|
+
stateMutability: "nonpayable",
|
447
|
+
type: "function",
|
448
|
+
},
|
449
|
+
] as const;
|
450
|
+
|
451
|
+
const _bytecode =
|
452
|
+
"0x60806040523461038557610ce7803803806100198161038a565b9283398101906040818303126103855780516001600160401b03811161038557826100459183016103af565b60208201519092906001600160401b0381116103855761006592016103af565b81516001600160401b03811161029057600354600181811c9116801561037b575b602082101461027057601f8111610316575b50602092601f82116001146102b157928192936000926102a6575b50508160011b916000199060031b1c1916176003555b80516001600160401b03811161029057600454600181811c91168015610286575b602082101461027057601f811161020b575b50602091601f82116001146101a75791819260009261019c575b50508160011b916000199060031b1c1916176004555b33156101865760058054336001600160a01b03198216811790925560405191906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36108cc908161041b8239f35b631e4fbdf760e01b600052600060045260246000fd5b015190503880610116565b601f198216926004600052806000209160005b8581106101f3575083600195106101da575b505050811b0160045561012c565b015160001960f88460031b161c191690553880806101cc565b919260206001819286850151815501940192016101ba565b60046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f830160051c81019160208410610266575b601f0160051c01905b81811061025a57506100fc565b6000815560010161024d565b9091508190610244565b634e487b7160e01b600052602260045260246000fd5b90607f16906100ea565b634e487b7160e01b600052604160045260246000fd5b0151905038806100b3565b601f198216936003600052806000209160005b8681106102fe57508360019596106102e5575b505050811b016003556100c9565b015160001960f88460031b161c191690553880806102d7565b919260206001819286850151815501940192016102c4565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f830160051c81019160208410610371575b601f0160051c01905b8181106103655750610098565b60008155600101610358565b909150819061034f565b90607f1690610086565b600080fd5b6040519190601f01601f191682016001600160401b0381118382101761029057604052565b81601f82011215610385578051906001600160401b038211610290576103de601f8301601f191660200161038a565b92828452602083830101116103855760005b82811061040557505060206000918301015290565b806020809284010151828287010152016103f056fe608080604052600436101561001357600080fd5b60003560e01c90816306fdde03146106a757508063095ea7b31461062157806318160ddd1461060357806323b872dd14610516578063313ce567146104fa57806340c10f191461045857806370a082311461041e578063715018a6146103c15780638da5cb5b1461039857806395d89b41146102775780639dc29fac146101ca578063a9059cbb14610199578063dd62ed3e146101485763f2fde38b146100b957600080fd5b34610143576020366003190112610143576100d26107c3565b6100da610876565b6001600160a01b0316801561012d57600580546001600160a01b0319811683179091556001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a3005b631e4fbdf760e01b600052600060045260246000fd5b600080fd5b34610143576040366003190112610143576101616107c3565b6101696107d9565b6001600160a01b039182166000908152600160209081526040808320949093168252928352819020549051908152f35b34610143576040366003190112610143576101bf6101b56107c3565b60243590336107ef565b602060405160018152f35b34610143576040366003190112610143576101e36107c3565b602435906101ef610876565b6001600160a01b0316908115610261576000908282528160205260408220548181106102495760208285936000805160206108a083398151915293869787528684520360408620558060025403600255604051908152a380f35b60649363391434e360e21b8452600452602452604452fd5b634b637e8f60e11b600052600060045260246000fd5b346101435760003660031901126101435760405160006004548060011c9060018116801561038e575b60208310811461037a5782855290811561035e5750600114610307575b50819003601f01601f191681019067ffffffffffffffff8211818310176102f1576102ed8291826040528261077a565b0390f35b634e487b7160e01b600052604160045260246000fd5b600460009081529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828210610348575060209150820101826102bd565b6001816020925483858801015201910190610333565b90506020925060ff191682840152151560051b820101826102bd565b634e487b7160e01b84526022600452602484fd5b91607f16916102a0565b34610143576000366003190112610143576005546040516001600160a01b039091168152602090f35b34610143576000366003190112610143576103da610876565b600580546001600160a01b031981169091556000906001600160a01b03167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a3005b34610143576020366003190112610143576001600160a01b0361043f6107c3565b1660005260006020526020604060002054604051908152f35b34610143576040366003190112610143576104716107c3565b6024359061047d610876565b6001600160a01b031680156104e457600254918083018093116104ce576020926002556000805160206108a0833981519152600093849284845283825260408420818154019055604051908152a380f35b634e487b7160e01b600052601160045260246000fd5b63ec442f0560e01b600052600060045260246000fd5b3461014357600036600319011261014357602060405160128152f35b346101435760603660031901126101435761052f6107c3565b6105376107d9565b6001600160a01b0382166000818152600160209081526040808320338452909152902054909260443592916000198110610577575b506101bf93506107ef565b8381106105e65784156105d05733156105ba576101bf946000526001602052604060002060018060a01b033316600052602052836040600020910390558461056c565b634a1406b160e11b600052600060045260246000fd5b63e602df0560e01b600052600060045260246000fd5b8390637dc7a0d960e11b6000523360045260245260445260646000fd5b34610143576000366003190112610143576020600254604051908152f35b346101435760403660031901126101435761063a6107c3565b6024359033156105d0576001600160a01b03169081156105ba57336000526001602052604060002082600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b346101435760003660031901126101435760006003548060011c90600181168015610770575b60208310811461037a5782855290811561035e57506001146107195750819003601f01601f191681019067ffffffffffffffff8211818310176102f1576102ed8291826040528261077a565b600360009081529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b82821061075a575060209150820101826102bd565b6001816020925483858801015201910190610745565b91607f16916106cd565b91909160208152825180602083015260005b8181106107ad575060409293506000838284010152601f8019910116010190565b806020809287010151604082860101520161078c565b600435906001600160a01b038216820361014357565b602435906001600160a01b038216820361014357565b6001600160a01b0316908115610261576001600160a01b03169182156104e457600082815280602052604081205482811061085c5791604082826000805160206108a0833981519152958760209652828652038282205586815280845220818154019055604051908152a3565b916064928463391434e360e21b8452600452602452604452fd5b6005546001600160a01b0316330361088a57565b63118cdaa760e01b6000523360045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa164736f6c634300081e000a";
|
453
|
+
|
454
|
+
type TokenConstructorParams =
|
455
|
+
| [signer?: Signer]
|
456
|
+
| ConstructorParameters<typeof ContractFactory>;
|
457
|
+
|
458
|
+
const isSuperArgs = (
|
459
|
+
xs: TokenConstructorParams
|
460
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
461
|
+
|
462
|
+
export class Token__factory extends ContractFactory {
|
463
|
+
constructor(...args: TokenConstructorParams) {
|
464
|
+
if (isSuperArgs(args)) {
|
465
|
+
super(...args);
|
466
|
+
} else {
|
467
|
+
super(_abi, _bytecode, args[0]);
|
468
|
+
}
|
469
|
+
this.contractName = "Token";
|
470
|
+
}
|
471
|
+
|
472
|
+
override getDeployTransaction(
|
473
|
+
name_: string,
|
474
|
+
symbol_: string,
|
475
|
+
overrides?: NonPayableOverrides & { from?: string }
|
476
|
+
): Promise<ContractDeployTransaction> {
|
477
|
+
return super.getDeployTransaction(name_, symbol_, overrides || {});
|
478
|
+
}
|
479
|
+
override deploy(
|
480
|
+
name_: string,
|
481
|
+
symbol_: string,
|
482
|
+
overrides?: NonPayableOverrides & { from?: string }
|
483
|
+
) {
|
484
|
+
return super.deploy(name_, symbol_, overrides || {}) as Promise<
|
485
|
+
Token & {
|
486
|
+
deploymentTransaction(): ContractTransactionResponse;
|
487
|
+
}
|
488
|
+
>;
|
489
|
+
}
|
490
|
+
override connect(runner: ContractRunner | null): Token__factory {
|
491
|
+
return super.connect(runner) as Token__factory;
|
492
|
+
}
|
493
|
+
static readonly contractName: "Token";
|
494
|
+
|
495
|
+
public readonly contractName: "Token";
|
496
|
+
|
497
|
+
static readonly bytecode = _bytecode;
|
498
|
+
static readonly abi = _abi;
|
499
|
+
static createInterface(): TokenInterface {
|
500
|
+
return new Interface(_abi) as TokenInterface;
|
501
|
+
}
|
502
|
+
static connect(address: string, runner?: ContractRunner | null): Token {
|
503
|
+
return new Contract(address, _abi, runner) as unknown as Token;
|
504
|
+
}
|
505
|
+
}
|
package/index.ts
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
export * from "./constants";
|
2
|
+
|
3
|
+
export {
|
4
|
+
// ExecutorRegistry Parameters
|
5
|
+
MAX_ACTIVE_EXECUTORS_PARAM_NAME,
|
6
|
+
NEUTRAL_MINIMUM_STAKE_PARAM_NAME,
|
7
|
+
EXECUTORS_WITHDRAWAL_PERIOD_PARAM_NAME,
|
8
|
+
EXECUTORS_SLASHING_RECIPIENT_PARAM_NAME,
|
9
|
+
|
10
|
+
// Governance Parameters
|
11
|
+
VOTING_DELAY_PARAM_NAME,
|
12
|
+
NEUTRALS_VOTING_PERIOD_PARAM_NAME,
|
13
|
+
EXECUTORS_VOTING_PERIOD_PARAM_NAME,
|
14
|
+
NEUTRALS_THRESHOLD_PARAM_NAME,
|
15
|
+
EXECUTORS_THRESHOLD_PARAM_NAME,
|
16
|
+
EXECUTORS_SHARE_PARAM_NAME,
|
17
|
+
NEUTRALS_SHARE_PARAM_NAME,
|
18
|
+
TREASURY_SHARE_PARAM_NAME,
|
19
|
+
MIN_SERVICE_FEE_PARAM_NAME,
|
20
|
+
DEFAULT_GOVERNANCE_PARAM_NAME,
|
21
|
+
|
22
|
+
// NeutralRegistry Parameters
|
23
|
+
MAX_ACTIVE_NEUTRALS_PARAM_NAME,
|
24
|
+
MAX_DELEGATION_AMPLIFICATION_PARAM_NAME,
|
25
|
+
EXECUTOR_MINIMUM_STAKE_PARAM_NAME,
|
26
|
+
NEUTRALS_WITHDRAWAL_PERIOD_PARAM_NAME,
|
27
|
+
DELEGATORS_WITHDRAWAL_PERIOD_PARAM_NAME,
|
28
|
+
NEUTRALS_SLASHING_RECIPIENT_PARAM_NAME,
|
29
|
+
|
30
|
+
// General Parameters
|
31
|
+
TREASURY_ADDRESS_PARAM_NAME,
|
32
|
+
DAOSLC_PARAM_NAME,
|
33
|
+
|
34
|
+
// Other Constants
|
35
|
+
MAX_BASIS_POINTS,
|
36
|
+
} from "./constants";
|
37
|
+
|
38
|
+
export * as slc from "./contracts";
|
package/package.json
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"name": "@web3dotorg/evm-slc-core-sdk",
|
3
|
+
"version": "0.3.2",
|
4
|
+
"author": "<TBD>",
|
5
|
+
"repository": {
|
6
|
+
"type": "git",
|
7
|
+
"url": "git+https://github.com/web3dotorg/evm-slc-core.git"
|
8
|
+
},
|
9
|
+
"homepage": "https://github.com/web3dotorg/evm-slc-core#readme",
|
10
|
+
"bugs": {
|
11
|
+
"url": "https://github.com/web3dotorg/evm-slc-core/issues"
|
12
|
+
},
|
13
|
+
"publishConfig": {
|
14
|
+
"access": "public",
|
15
|
+
"tag": "latest"
|
16
|
+
},
|
17
|
+
"keywords": [
|
18
|
+
"solidity",
|
19
|
+
"smart-contracts",
|
20
|
+
"web3"
|
21
|
+
],
|
22
|
+
"dependencies": {
|
23
|
+
"ethers": "^6.15.0"
|
24
|
+
}
|
25
|
+
}
|