@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,110 @@
|
|
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 {
|
13
|
+
SimpleContract,
|
14
|
+
SimpleContractInterface,
|
15
|
+
} from "../../../contracts/mocks/SimpleContract";
|
16
|
+
|
17
|
+
const _abi = [
|
18
|
+
{
|
19
|
+
inputs: [],
|
20
|
+
name: "getValue",
|
21
|
+
outputs: [
|
22
|
+
{
|
23
|
+
internalType: "uint256",
|
24
|
+
name: "",
|
25
|
+
type: "uint256",
|
26
|
+
},
|
27
|
+
],
|
28
|
+
stateMutability: "view",
|
29
|
+
type: "function",
|
30
|
+
},
|
31
|
+
{
|
32
|
+
inputs: [
|
33
|
+
{
|
34
|
+
internalType: "uint256",
|
35
|
+
name: "newValue_",
|
36
|
+
type: "uint256",
|
37
|
+
},
|
38
|
+
],
|
39
|
+
name: "setValue",
|
40
|
+
outputs: [],
|
41
|
+
stateMutability: "nonpayable",
|
42
|
+
type: "function",
|
43
|
+
},
|
44
|
+
{
|
45
|
+
inputs: [],
|
46
|
+
name: "value",
|
47
|
+
outputs: [
|
48
|
+
{
|
49
|
+
internalType: "uint256",
|
50
|
+
name: "",
|
51
|
+
type: "uint256",
|
52
|
+
},
|
53
|
+
],
|
54
|
+
stateMutability: "view",
|
55
|
+
type: "function",
|
56
|
+
},
|
57
|
+
] as const;
|
58
|
+
|
59
|
+
const _bytecode =
|
60
|
+
"0x60808060405234601357609a908160198239f35b600080fdfe6080806040526004361015601257600080fd5b60003560e01c90816320965255146074575080633fa4f24514605857635524107714603c57600080fd5b346053576020366003190112605357600435600055005b600080fd5b3460535760003660031901126053576020600054604051908152f35b3460535760003660031901126053576020906000548152f3fea164736f6c634300081e000a";
|
61
|
+
|
62
|
+
type SimpleContractConstructorParams =
|
63
|
+
| [signer?: Signer]
|
64
|
+
| ConstructorParameters<typeof ContractFactory>;
|
65
|
+
|
66
|
+
const isSuperArgs = (
|
67
|
+
xs: SimpleContractConstructorParams
|
68
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
69
|
+
|
70
|
+
export class SimpleContract__factory extends ContractFactory {
|
71
|
+
constructor(...args: SimpleContractConstructorParams) {
|
72
|
+
if (isSuperArgs(args)) {
|
73
|
+
super(...args);
|
74
|
+
} else {
|
75
|
+
super(_abi, _bytecode, args[0]);
|
76
|
+
}
|
77
|
+
this.contractName = "SimpleContract";
|
78
|
+
}
|
79
|
+
|
80
|
+
override getDeployTransaction(
|
81
|
+
overrides?: NonPayableOverrides & { from?: string }
|
82
|
+
): Promise<ContractDeployTransaction> {
|
83
|
+
return super.getDeployTransaction(overrides || {});
|
84
|
+
}
|
85
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
86
|
+
return super.deploy(overrides || {}) as Promise<
|
87
|
+
SimpleContract & {
|
88
|
+
deploymentTransaction(): ContractTransactionResponse;
|
89
|
+
}
|
90
|
+
>;
|
91
|
+
}
|
92
|
+
override connect(runner: ContractRunner | null): SimpleContract__factory {
|
93
|
+
return super.connect(runner) as SimpleContract__factory;
|
94
|
+
}
|
95
|
+
static readonly contractName: "SimpleContract";
|
96
|
+
|
97
|
+
public readonly contractName: "SimpleContract";
|
98
|
+
|
99
|
+
static readonly bytecode = _bytecode;
|
100
|
+
static readonly abi = _abi;
|
101
|
+
static createInterface(): SimpleContractInterface {
|
102
|
+
return new Interface(_abi) as SimpleContractInterface;
|
103
|
+
}
|
104
|
+
static connect(
|
105
|
+
address: string,
|
106
|
+
runner?: ContractRunner | null
|
107
|
+
): SimpleContract {
|
108
|
+
return new Contract(address, _abi, runner) as unknown as SimpleContract;
|
109
|
+
}
|
110
|
+
}
|
@@ -0,0 +1,433 @@
|
|
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 {
|
13
|
+
WrappedToken,
|
14
|
+
WrappedTokenInterface,
|
15
|
+
} from "../../../contracts/mocks/WrappedToken";
|
16
|
+
|
17
|
+
const _abi = [
|
18
|
+
{
|
19
|
+
inputs: [],
|
20
|
+
stateMutability: "nonpayable",
|
21
|
+
type: "constructor",
|
22
|
+
},
|
23
|
+
{
|
24
|
+
inputs: [
|
25
|
+
{
|
26
|
+
internalType: "address",
|
27
|
+
name: "spender",
|
28
|
+
type: "address",
|
29
|
+
},
|
30
|
+
{
|
31
|
+
internalType: "uint256",
|
32
|
+
name: "allowance",
|
33
|
+
type: "uint256",
|
34
|
+
},
|
35
|
+
{
|
36
|
+
internalType: "uint256",
|
37
|
+
name: "needed",
|
38
|
+
type: "uint256",
|
39
|
+
},
|
40
|
+
],
|
41
|
+
name: "ERC20InsufficientAllowance",
|
42
|
+
type: "error",
|
43
|
+
},
|
44
|
+
{
|
45
|
+
inputs: [
|
46
|
+
{
|
47
|
+
internalType: "address",
|
48
|
+
name: "sender",
|
49
|
+
type: "address",
|
50
|
+
},
|
51
|
+
{
|
52
|
+
internalType: "uint256",
|
53
|
+
name: "balance",
|
54
|
+
type: "uint256",
|
55
|
+
},
|
56
|
+
{
|
57
|
+
internalType: "uint256",
|
58
|
+
name: "needed",
|
59
|
+
type: "uint256",
|
60
|
+
},
|
61
|
+
],
|
62
|
+
name: "ERC20InsufficientBalance",
|
63
|
+
type: "error",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
inputs: [
|
67
|
+
{
|
68
|
+
internalType: "address",
|
69
|
+
name: "approver",
|
70
|
+
type: "address",
|
71
|
+
},
|
72
|
+
],
|
73
|
+
name: "ERC20InvalidApprover",
|
74
|
+
type: "error",
|
75
|
+
},
|
76
|
+
{
|
77
|
+
inputs: [
|
78
|
+
{
|
79
|
+
internalType: "address",
|
80
|
+
name: "receiver",
|
81
|
+
type: "address",
|
82
|
+
},
|
83
|
+
],
|
84
|
+
name: "ERC20InvalidReceiver",
|
85
|
+
type: "error",
|
86
|
+
},
|
87
|
+
{
|
88
|
+
inputs: [
|
89
|
+
{
|
90
|
+
internalType: "address",
|
91
|
+
name: "sender",
|
92
|
+
type: "address",
|
93
|
+
},
|
94
|
+
],
|
95
|
+
name: "ERC20InvalidSender",
|
96
|
+
type: "error",
|
97
|
+
},
|
98
|
+
{
|
99
|
+
inputs: [
|
100
|
+
{
|
101
|
+
internalType: "address",
|
102
|
+
name: "spender",
|
103
|
+
type: "address",
|
104
|
+
},
|
105
|
+
],
|
106
|
+
name: "ERC20InvalidSpender",
|
107
|
+
type: "error",
|
108
|
+
},
|
109
|
+
{
|
110
|
+
anonymous: false,
|
111
|
+
inputs: [
|
112
|
+
{
|
113
|
+
indexed: true,
|
114
|
+
internalType: "address",
|
115
|
+
name: "owner",
|
116
|
+
type: "address",
|
117
|
+
},
|
118
|
+
{
|
119
|
+
indexed: true,
|
120
|
+
internalType: "address",
|
121
|
+
name: "spender",
|
122
|
+
type: "address",
|
123
|
+
},
|
124
|
+
{
|
125
|
+
indexed: false,
|
126
|
+
internalType: "uint256",
|
127
|
+
name: "value",
|
128
|
+
type: "uint256",
|
129
|
+
},
|
130
|
+
],
|
131
|
+
name: "Approval",
|
132
|
+
type: "event",
|
133
|
+
},
|
134
|
+
{
|
135
|
+
anonymous: false,
|
136
|
+
inputs: [
|
137
|
+
{
|
138
|
+
indexed: true,
|
139
|
+
internalType: "address",
|
140
|
+
name: "from",
|
141
|
+
type: "address",
|
142
|
+
},
|
143
|
+
{
|
144
|
+
indexed: true,
|
145
|
+
internalType: "address",
|
146
|
+
name: "to",
|
147
|
+
type: "address",
|
148
|
+
},
|
149
|
+
{
|
150
|
+
indexed: false,
|
151
|
+
internalType: "uint256",
|
152
|
+
name: "value",
|
153
|
+
type: "uint256",
|
154
|
+
},
|
155
|
+
],
|
156
|
+
name: "Transfer",
|
157
|
+
type: "event",
|
158
|
+
},
|
159
|
+
{
|
160
|
+
inputs: [
|
161
|
+
{
|
162
|
+
internalType: "address",
|
163
|
+
name: "owner",
|
164
|
+
type: "address",
|
165
|
+
},
|
166
|
+
{
|
167
|
+
internalType: "address",
|
168
|
+
name: "spender",
|
169
|
+
type: "address",
|
170
|
+
},
|
171
|
+
],
|
172
|
+
name: "allowance",
|
173
|
+
outputs: [
|
174
|
+
{
|
175
|
+
internalType: "uint256",
|
176
|
+
name: "",
|
177
|
+
type: "uint256",
|
178
|
+
},
|
179
|
+
],
|
180
|
+
stateMutability: "view",
|
181
|
+
type: "function",
|
182
|
+
},
|
183
|
+
{
|
184
|
+
inputs: [
|
185
|
+
{
|
186
|
+
internalType: "address",
|
187
|
+
name: "spender",
|
188
|
+
type: "address",
|
189
|
+
},
|
190
|
+
{
|
191
|
+
internalType: "uint256",
|
192
|
+
name: "value",
|
193
|
+
type: "uint256",
|
194
|
+
},
|
195
|
+
],
|
196
|
+
name: "approve",
|
197
|
+
outputs: [
|
198
|
+
{
|
199
|
+
internalType: "bool",
|
200
|
+
name: "",
|
201
|
+
type: "bool",
|
202
|
+
},
|
203
|
+
],
|
204
|
+
stateMutability: "nonpayable",
|
205
|
+
type: "function",
|
206
|
+
},
|
207
|
+
{
|
208
|
+
inputs: [
|
209
|
+
{
|
210
|
+
internalType: "address",
|
211
|
+
name: "account",
|
212
|
+
type: "address",
|
213
|
+
},
|
214
|
+
],
|
215
|
+
name: "balanceOf",
|
216
|
+
outputs: [
|
217
|
+
{
|
218
|
+
internalType: "uint256",
|
219
|
+
name: "",
|
220
|
+
type: "uint256",
|
221
|
+
},
|
222
|
+
],
|
223
|
+
stateMutability: "view",
|
224
|
+
type: "function",
|
225
|
+
},
|
226
|
+
{
|
227
|
+
inputs: [
|
228
|
+
{
|
229
|
+
internalType: "address",
|
230
|
+
name: "to_",
|
231
|
+
type: "address",
|
232
|
+
},
|
233
|
+
{
|
234
|
+
internalType: "uint256",
|
235
|
+
name: "amount_",
|
236
|
+
type: "uint256",
|
237
|
+
},
|
238
|
+
],
|
239
|
+
name: "burn",
|
240
|
+
outputs: [],
|
241
|
+
stateMutability: "nonpayable",
|
242
|
+
type: "function",
|
243
|
+
},
|
244
|
+
{
|
245
|
+
inputs: [],
|
246
|
+
name: "decimals",
|
247
|
+
outputs: [
|
248
|
+
{
|
249
|
+
internalType: "uint8",
|
250
|
+
name: "",
|
251
|
+
type: "uint8",
|
252
|
+
},
|
253
|
+
],
|
254
|
+
stateMutability: "view",
|
255
|
+
type: "function",
|
256
|
+
},
|
257
|
+
{
|
258
|
+
inputs: [],
|
259
|
+
name: "deposit",
|
260
|
+
outputs: [
|
261
|
+
{
|
262
|
+
internalType: "bool",
|
263
|
+
name: "",
|
264
|
+
type: "bool",
|
265
|
+
},
|
266
|
+
],
|
267
|
+
stateMutability: "payable",
|
268
|
+
type: "function",
|
269
|
+
},
|
270
|
+
{
|
271
|
+
inputs: [
|
272
|
+
{
|
273
|
+
internalType: "address",
|
274
|
+
name: "to_",
|
275
|
+
type: "address",
|
276
|
+
},
|
277
|
+
{
|
278
|
+
internalType: "uint256",
|
279
|
+
name: "amount_",
|
280
|
+
type: "uint256",
|
281
|
+
},
|
282
|
+
],
|
283
|
+
name: "mint",
|
284
|
+
outputs: [],
|
285
|
+
stateMutability: "nonpayable",
|
286
|
+
type: "function",
|
287
|
+
},
|
288
|
+
{
|
289
|
+
inputs: [],
|
290
|
+
name: "name",
|
291
|
+
outputs: [
|
292
|
+
{
|
293
|
+
internalType: "string",
|
294
|
+
name: "",
|
295
|
+
type: "string",
|
296
|
+
},
|
297
|
+
],
|
298
|
+
stateMutability: "view",
|
299
|
+
type: "function",
|
300
|
+
},
|
301
|
+
{
|
302
|
+
inputs: [],
|
303
|
+
name: "symbol",
|
304
|
+
outputs: [
|
305
|
+
{
|
306
|
+
internalType: "string",
|
307
|
+
name: "",
|
308
|
+
type: "string",
|
309
|
+
},
|
310
|
+
],
|
311
|
+
stateMutability: "view",
|
312
|
+
type: "function",
|
313
|
+
},
|
314
|
+
{
|
315
|
+
inputs: [],
|
316
|
+
name: "totalSupply",
|
317
|
+
outputs: [
|
318
|
+
{
|
319
|
+
internalType: "uint256",
|
320
|
+
name: "",
|
321
|
+
type: "uint256",
|
322
|
+
},
|
323
|
+
],
|
324
|
+
stateMutability: "view",
|
325
|
+
type: "function",
|
326
|
+
},
|
327
|
+
{
|
328
|
+
inputs: [
|
329
|
+
{
|
330
|
+
internalType: "address",
|
331
|
+
name: "to",
|
332
|
+
type: "address",
|
333
|
+
},
|
334
|
+
{
|
335
|
+
internalType: "uint256",
|
336
|
+
name: "value",
|
337
|
+
type: "uint256",
|
338
|
+
},
|
339
|
+
],
|
340
|
+
name: "transfer",
|
341
|
+
outputs: [
|
342
|
+
{
|
343
|
+
internalType: "bool",
|
344
|
+
name: "",
|
345
|
+
type: "bool",
|
346
|
+
},
|
347
|
+
],
|
348
|
+
stateMutability: "nonpayable",
|
349
|
+
type: "function",
|
350
|
+
},
|
351
|
+
{
|
352
|
+
inputs: [
|
353
|
+
{
|
354
|
+
internalType: "address",
|
355
|
+
name: "from",
|
356
|
+
type: "address",
|
357
|
+
},
|
358
|
+
{
|
359
|
+
internalType: "address",
|
360
|
+
name: "to",
|
361
|
+
type: "address",
|
362
|
+
},
|
363
|
+
{
|
364
|
+
internalType: "uint256",
|
365
|
+
name: "value",
|
366
|
+
type: "uint256",
|
367
|
+
},
|
368
|
+
],
|
369
|
+
name: "transferFrom",
|
370
|
+
outputs: [
|
371
|
+
{
|
372
|
+
internalType: "bool",
|
373
|
+
name: "",
|
374
|
+
type: "bool",
|
375
|
+
},
|
376
|
+
],
|
377
|
+
stateMutability: "nonpayable",
|
378
|
+
type: "function",
|
379
|
+
},
|
380
|
+
] as const;
|
381
|
+
|
382
|
+
const _bytecode =
|
383
|
+
"0x60806040523461032f57604080519081016001600160401b0381118282101761023a576040908152601282527126b7b1b5902bb930b83832b2102a37b5b2b760711b602083015280519081016001600160401b0381118282101761023a57604052600381526213559560ea1b602082015281516001600160401b03811161023a57600354600181811c91168015610325575b602082101461021a57601f81116102c0575b50602092601f821160011461025b5792819293600092610250575b50508160011b916000199060031b1c1916176003555b80516001600160401b03811161023a57600454600181811c91168015610230575b602082101461021a57601f81116101b5575b50602091601f821160011461015157918192600092610146575b50508160011b916000199060031b1c1916176004555b6040516107b090816103358239f35b015190503880610121565b601f198216926004600052806000209160005b85811061019d57508360019510610184575b505050811b01600455610137565b015160001960f88460031b161c19169055388080610176565b91926020600181928685015181550194019201610164565b60046000527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f830160051c81019160208410610210575b601f0160051c01905b8181106102045750610107565b600081556001016101f7565b90915081906101ee565b634e487b7160e01b600052602260045260246000fd5b90607f16906100f5565b634e487b7160e01b600052604160045260246000fd5b0151905038806100be565b601f198216936003600052806000209160005b8681106102a8575083600195961061028f575b505050811b016003556100d4565b015160001960f88460031b161c19169055388080610281565b9192602060018192868501518155019401920161026e565b60036000527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b601f830160051c8101916020841061031b575b601f0160051c01905b81811061030f57506100a3565b60008155600101610302565b90915081906102f9565b90607f1690610091565b600080fdfe608080604052600436101561001357600080fd5b60003560e01c90816306fdde031461053e57508063095ea7b3146104b857806318160ddd1461049a57806323b872dd146103ad578063313ce5671461039157806340c10f191461035a57806370a082311461032057806395d89b41146101ff5780639dc29fac1461015c578063a9059cbb14610136578063d0e30db0146100f95763dd62ed3e146100a357600080fd5b346100f45760403660031901126100f4576100bc61065a565b6100c4610670565b6001600160a01b039182166000908152600160209081526040808320949093168252928352819020549051908152f35b600080fd5b60003660031901126100f457331561012057610115343361070d565b602060405160018152f35b63ec442f0560e01b600052600060045260246000fd5b346100f45760403660031901126100f45761011561015261065a565b6024359033610686565b346100f45760403660031901126100f45761017561065a565b6001600160a01b031660243581156101e9576000908282528160205260408220548181106101d157602082859360008051602061078483398151915293869787528684520360408620558060025403600255604051908152a380f35b60649363391434e360e21b8452600452602452604452fd5b634b637e8f60e11b600052600060045260246000fd5b346100f45760003660031901126100f45760405160006004548060011c90600181168015610316575b602083108114610302578285529081156102e6575060011461028f575b50819003601f01601f191681019067ffffffffffffffff8211818310176102795761027582918260405282610611565b0390f35b634e487b7160e01b600052604160045260246000fd5b600460009081529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b8282106102d057506020915082010182610245565b60018160209254838588010152019101906102bb565b90506020925060ff191682840152151560051b82010182610245565b634e487b7160e01b84526022600452602484fd5b91607f1691610228565b346100f45760203660031901126100f4576001600160a01b0361034161065a565b1660005260006020526020604060002054604051908152f35b346100f45760403660031901126100f45761037361065a565b6001600160a01b038116156101205761038f906024359061070d565b005b346100f45760003660031901126100f457602060405160128152f35b346100f45760603660031901126100f4576103c661065a565b6103ce610670565b6001600160a01b038216600081815260016020908152604080832033845290915290205490926044359291600019811061040e575b506101159350610686565b83811061047d57841561046757331561045157610115946000526001602052604060002060018060a01b0333166000526020528360406000209103905584610403565b634a1406b160e11b600052600060045260246000fd5b63e602df0560e01b600052600060045260246000fd5b8390637dc7a0d960e11b6000523360045260245260445260646000fd5b346100f45760003660031901126100f4576020600254604051908152f35b346100f45760403660031901126100f4576104d161065a565b602435903315610467576001600160a01b031690811561045157336000526001602052604060002082600052602052806040600020556040519081527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560203392a3602060405160018152f35b346100f45760003660031901126100f45760006003548060011c90600181168015610607575b602083108114610302578285529081156102e657506001146105b05750819003601f01601f191681019067ffffffffffffffff8211818310176102795761027582918260405282610611565b600360009081529091507fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b5b8282106105f157506020915082010182610245565b60018160209254838588010152019101906105dc565b91607f1691610564565b91909160208152825180602083015260005b818110610644575060409293506000838284010152601f8019910116010190565b8060208092870101516040828601015201610623565b600435906001600160a01b03821682036100f457565b602435906001600160a01b03821682036100f457565b6001600160a01b03169081156101e9576001600160a01b03169182156101205760008281528060205260408120548281106106f3579160408282600080516020610784833981519152958760209652828652038282205586815280845220818154019055604051908152a3565b916064928463391434e360e21b8452600452602452604452fd5b6002549082820180921161076d576002919091556001600160a01b03169060009060008051602061078483398151915290602090846107585780600254036002555b604051908152a3565b8484528382526040842081815401905561074f565b634e487b7160e01b600052601160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa164736f6c634300081e000a";
|
384
|
+
|
385
|
+
type WrappedTokenConstructorParams =
|
386
|
+
| [signer?: Signer]
|
387
|
+
| ConstructorParameters<typeof ContractFactory>;
|
388
|
+
|
389
|
+
const isSuperArgs = (
|
390
|
+
xs: WrappedTokenConstructorParams
|
391
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
392
|
+
|
393
|
+
export class WrappedToken__factory extends ContractFactory {
|
394
|
+
constructor(...args: WrappedTokenConstructorParams) {
|
395
|
+
if (isSuperArgs(args)) {
|
396
|
+
super(...args);
|
397
|
+
} else {
|
398
|
+
super(_abi, _bytecode, args[0]);
|
399
|
+
}
|
400
|
+
this.contractName = "WrappedToken";
|
401
|
+
}
|
402
|
+
|
403
|
+
override getDeployTransaction(
|
404
|
+
overrides?: NonPayableOverrides & { from?: string }
|
405
|
+
): Promise<ContractDeployTransaction> {
|
406
|
+
return super.getDeployTransaction(overrides || {});
|
407
|
+
}
|
408
|
+
override deploy(overrides?: NonPayableOverrides & { from?: string }) {
|
409
|
+
return super.deploy(overrides || {}) as Promise<
|
410
|
+
WrappedToken & {
|
411
|
+
deploymentTransaction(): ContractTransactionResponse;
|
412
|
+
}
|
413
|
+
>;
|
414
|
+
}
|
415
|
+
override connect(runner: ContractRunner | null): WrappedToken__factory {
|
416
|
+
return super.connect(runner) as WrappedToken__factory;
|
417
|
+
}
|
418
|
+
static readonly contractName: "WrappedToken";
|
419
|
+
|
420
|
+
public readonly contractName: "WrappedToken";
|
421
|
+
|
422
|
+
static readonly bytecode = _bytecode;
|
423
|
+
static readonly abi = _abi;
|
424
|
+
static createInterface(): WrappedTokenInterface {
|
425
|
+
return new Interface(_abi) as WrappedTokenInterface;
|
426
|
+
}
|
427
|
+
static connect(
|
428
|
+
address: string,
|
429
|
+
runner?: ContractRunner | null
|
430
|
+
): WrappedToken {
|
431
|
+
return new Contract(address, _abi, runner) as unknown as WrappedToken;
|
432
|
+
}
|
433
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
export { MockGovernance__factory } from "./MockGovernance__factory";
|
5
|
+
export { MockNeutralsRegistry__factory } from "./MockNeutralsRegistry__factory";
|
6
|
+
export { SimpleContract__factory } from "./SimpleContract__factory";
|
7
|
+
export { WrappedToken__factory } from "./WrappedToken__factory";
|