@web3dotorg/evm-slc-core-sdk 0.3.15 → 0.3.17
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/Governance.json +10 -0
- package/abi/QCoreTreasury.json +654 -0
- package/lib.commonjs/contracts/core/QCoreTreasurty.sol/QCoreTreasury.d.ts +369 -0
- package/lib.commonjs/contracts/core/QCoreTreasurty.sol/QCoreTreasury.js +2 -0
- package/lib.commonjs/contracts/core/QCoreTreasurty.sol/index.d.ts +1 -0
- package/lib.commonjs/contracts/core/QCoreTreasurty.sol/index.js +2 -0
- package/lib.commonjs/contracts/core/index.d.ts +2 -0
- package/lib.commonjs/contracts/core/index.js +2 -0
- package/lib.commonjs/contracts/governance/Governance.d.ts +3 -0
- package/lib.commonjs/contracts/index.d.ts +2 -0
- package/lib.commonjs/contracts/mocks/MockERC721.d.ts +226 -0
- package/lib.commonjs/contracts/mocks/MockERC721.js +2 -0
- package/lib.commonjs/contracts/mocks/Noop.d.ts +26 -0
- package/lib.commonjs/contracts/mocks/Noop.js +2 -0
- package/lib.commonjs/contracts/mocks/index.d.ts +2 -0
- package/lib.commonjs/factories/contracts/core/QCoreTreasurty.sol/QCoreTreasury__factory.d.ts +528 -0
- package/lib.commonjs/factories/contracts/core/QCoreTreasurty.sol/QCoreTreasury__factory.js +694 -0
- package/lib.commonjs/factories/contracts/core/QCoreTreasurty.sol/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/core/QCoreTreasurty.sol/index.js +8 -0
- package/lib.commonjs/factories/contracts/core/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/core/index.js +30 -0
- package/lib.commonjs/factories/contracts/governance/ExecutorsRegistry__factory.d.ts +1 -1
- package/lib.commonjs/factories/contracts/governance/ExecutorsRegistry__factory.js +1 -1
- package/lib.commonjs/factories/contracts/governance/Governance__factory.d.ts +9 -1
- package/lib.commonjs/factories/contracts/governance/Governance__factory.js +11 -1
- package/lib.commonjs/factories/contracts/index.d.ts +1 -0
- package/lib.commonjs/factories/contracts/index.js +2 -1
- package/lib.commonjs/factories/contracts/libs/GovernanceUtils__factory.d.ts +1 -1
- package/lib.commonjs/factories/contracts/libs/GovernanceUtils__factory.js +1 -1
- package/lib.commonjs/factories/contracts/mocks/MockERC721__factory.d.ts +372 -0
- package/lib.commonjs/factories/contracts/mocks/MockERC721__factory.js +498 -0
- package/lib.commonjs/factories/contracts/mocks/Noop__factory.d.ts +30 -0
- package/lib.commonjs/factories/contracts/mocks/Noop__factory.js +49 -0
- package/lib.commonjs/factories/contracts/mocks/index.d.ts +2 -0
- package/lib.commonjs/factories/contracts/mocks/index.js +5 -1
- package/lib.esm/contracts/core/QCoreTreasurty.sol/QCoreTreasury.d.ts +369 -0
- package/lib.esm/contracts/core/QCoreTreasurty.sol/QCoreTreasury.js +1 -0
- package/lib.esm/contracts/core/QCoreTreasurty.sol/index.d.ts +1 -0
- package/lib.esm/contracts/core/QCoreTreasurty.sol/index.js +1 -0
- package/lib.esm/contracts/core/index.d.ts +2 -0
- package/lib.esm/contracts/core/index.js +1 -0
- package/lib.esm/contracts/governance/Governance.d.ts +3 -0
- package/lib.esm/contracts/index.d.ts +2 -0
- package/lib.esm/contracts/mocks/MockERC721.d.ts +226 -0
- package/lib.esm/contracts/mocks/MockERC721.js +1 -0
- package/lib.esm/contracts/mocks/Noop.d.ts +26 -0
- package/lib.esm/contracts/mocks/Noop.js +1 -0
- package/lib.esm/contracts/mocks/index.d.ts +2 -0
- package/lib.esm/factories/contracts/core/QCoreTreasurty.sol/QCoreTreasury__factory.d.ts +528 -0
- package/lib.esm/factories/contracts/core/QCoreTreasurty.sol/QCoreTreasury__factory.js +690 -0
- package/lib.esm/factories/contracts/core/QCoreTreasurty.sol/index.d.ts +1 -0
- package/lib.esm/factories/contracts/core/QCoreTreasurty.sol/index.js +4 -0
- package/lib.esm/factories/contracts/core/index.d.ts +1 -0
- package/lib.esm/factories/contracts/core/index.js +4 -0
- package/lib.esm/factories/contracts/governance/ExecutorsRegistry__factory.d.ts +1 -1
- package/lib.esm/factories/contracts/governance/ExecutorsRegistry__factory.js +1 -1
- package/lib.esm/factories/contracts/governance/Governance__factory.d.ts +9 -1
- package/lib.esm/factories/contracts/governance/Governance__factory.js +11 -1
- package/lib.esm/factories/contracts/index.d.ts +1 -0
- package/lib.esm/factories/contracts/index.js +1 -0
- package/lib.esm/factories/contracts/libs/GovernanceUtils__factory.d.ts +1 -1
- package/lib.esm/factories/contracts/libs/GovernanceUtils__factory.js +1 -1
- package/lib.esm/factories/contracts/mocks/MockERC721__factory.d.ts +372 -0
- package/lib.esm/factories/contracts/mocks/MockERC721__factory.js +494 -0
- package/lib.esm/factories/contracts/mocks/Noop__factory.d.ts +30 -0
- package/lib.esm/factories/contracts/mocks/Noop__factory.js +45 -0
- package/lib.esm/factories/contracts/mocks/index.d.ts +2 -0
- package/lib.esm/factories/contracts/mocks/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, ContractFactory, Interface, } from "ethers";
|
|
5
|
+
const _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [],
|
|
8
|
+
stateMutability: "nonpayable",
|
|
9
|
+
type: "constructor",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
inputs: [
|
|
13
|
+
{
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "target",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
name: "AddressEmptyCode",
|
|
20
|
+
type: "error",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
inputs: [
|
|
24
|
+
{
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "implementation",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
name: "ERC1967InvalidImplementation",
|
|
31
|
+
type: "error",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
inputs: [],
|
|
35
|
+
name: "ERC1967NonPayable",
|
|
36
|
+
type: "error",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
inputs: [],
|
|
40
|
+
name: "FailedCall",
|
|
41
|
+
type: "error",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
inputs: [
|
|
45
|
+
{
|
|
46
|
+
internalType: "enum IGovernance.OperationType",
|
|
47
|
+
name: "operation",
|
|
48
|
+
type: "uint8",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "address",
|
|
52
|
+
name: "to",
|
|
53
|
+
type: "address",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "bytes",
|
|
57
|
+
name: "data",
|
|
58
|
+
type: "bytes",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "uint256",
|
|
62
|
+
name: "value",
|
|
63
|
+
type: "uint256",
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
name: "FailedToExecuteArbitraryCall",
|
|
67
|
+
type: "error",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
inputs: [
|
|
71
|
+
{
|
|
72
|
+
internalType: "uint256",
|
|
73
|
+
name: "balance",
|
|
74
|
+
type: "uint256",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint256",
|
|
78
|
+
name: "needed",
|
|
79
|
+
type: "uint256",
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
name: "InsufficientBalance",
|
|
83
|
+
type: "error",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
inputs: [],
|
|
87
|
+
name: "InvalidInitialization",
|
|
88
|
+
type: "error",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
inputs: [],
|
|
92
|
+
name: "InvalidOwner",
|
|
93
|
+
type: "error",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [],
|
|
97
|
+
name: "NotInitializing",
|
|
98
|
+
type: "error",
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
inputs: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "token",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
],
|
|
108
|
+
name: "SafeERC20FailedOperation",
|
|
109
|
+
type: "error",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
inputs: [],
|
|
113
|
+
name: "UUPSUnauthorizedCallContext",
|
|
114
|
+
type: "error",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
inputs: [
|
|
118
|
+
{
|
|
119
|
+
internalType: "bytes32",
|
|
120
|
+
name: "slot",
|
|
121
|
+
type: "bytes32",
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
name: "UUPSUnsupportedProxiableUUID",
|
|
125
|
+
type: "error",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
inputs: [
|
|
129
|
+
{
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "account",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
name: "UnauthorizedAccount",
|
|
136
|
+
type: "error",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
anonymous: false,
|
|
140
|
+
inputs: [
|
|
141
|
+
{
|
|
142
|
+
indexed: false,
|
|
143
|
+
internalType: "enum IGovernance.OperationType",
|
|
144
|
+
name: "operation",
|
|
145
|
+
type: "uint8",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
indexed: false,
|
|
149
|
+
internalType: "address",
|
|
150
|
+
name: "to",
|
|
151
|
+
type: "address",
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
indexed: false,
|
|
155
|
+
internalType: "bytes",
|
|
156
|
+
name: "data",
|
|
157
|
+
type: "bytes",
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
indexed: false,
|
|
161
|
+
internalType: "uint256",
|
|
162
|
+
name: "value",
|
|
163
|
+
type: "uint256",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "ArbitraryExecute",
|
|
167
|
+
type: "event",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
anonymous: false,
|
|
171
|
+
inputs: [
|
|
172
|
+
{
|
|
173
|
+
indexed: false,
|
|
174
|
+
internalType: "uint64",
|
|
175
|
+
name: "version",
|
|
176
|
+
type: "uint64",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "Initialized",
|
|
180
|
+
type: "event",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
anonymous: false,
|
|
184
|
+
inputs: [
|
|
185
|
+
{
|
|
186
|
+
indexed: true,
|
|
187
|
+
internalType: "address",
|
|
188
|
+
name: "token",
|
|
189
|
+
type: "address",
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
indexed: true,
|
|
193
|
+
internalType: "address",
|
|
194
|
+
name: "from",
|
|
195
|
+
type: "address",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
indexed: false,
|
|
199
|
+
internalType: "uint256",
|
|
200
|
+
name: "tokenId",
|
|
201
|
+
type: "uint256",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
name: "NFTDeposited",
|
|
205
|
+
type: "event",
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
anonymous: false,
|
|
209
|
+
inputs: [
|
|
210
|
+
{
|
|
211
|
+
indexed: true,
|
|
212
|
+
internalType: "address",
|
|
213
|
+
name: "token",
|
|
214
|
+
type: "address",
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
indexed: true,
|
|
218
|
+
internalType: "address",
|
|
219
|
+
name: "to",
|
|
220
|
+
type: "address",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
indexed: false,
|
|
224
|
+
internalType: "uint256",
|
|
225
|
+
name: "tokenId",
|
|
226
|
+
type: "uint256",
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
name: "NFTSent",
|
|
230
|
+
type: "event",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
anonymous: false,
|
|
234
|
+
inputs: [
|
|
235
|
+
{
|
|
236
|
+
indexed: false,
|
|
237
|
+
internalType: "address[]",
|
|
238
|
+
name: "newOwners",
|
|
239
|
+
type: "address[]",
|
|
240
|
+
},
|
|
241
|
+
],
|
|
242
|
+
name: "OwnersAdded",
|
|
243
|
+
type: "event",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
anonymous: false,
|
|
247
|
+
inputs: [
|
|
248
|
+
{
|
|
249
|
+
indexed: false,
|
|
250
|
+
internalType: "address[]",
|
|
251
|
+
name: "removedOwners",
|
|
252
|
+
type: "address[]",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
name: "OwnersRemoved",
|
|
256
|
+
type: "event",
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
anonymous: false,
|
|
260
|
+
inputs: [
|
|
261
|
+
{
|
|
262
|
+
indexed: true,
|
|
263
|
+
internalType: "address",
|
|
264
|
+
name: "token",
|
|
265
|
+
type: "address",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
indexed: true,
|
|
269
|
+
internalType: "address",
|
|
270
|
+
name: "from",
|
|
271
|
+
type: "address",
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
indexed: false,
|
|
275
|
+
internalType: "uint256",
|
|
276
|
+
name: "amount",
|
|
277
|
+
type: "uint256",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
name: "TokensDeposited",
|
|
281
|
+
type: "event",
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
anonymous: false,
|
|
285
|
+
inputs: [
|
|
286
|
+
{
|
|
287
|
+
indexed: true,
|
|
288
|
+
internalType: "address",
|
|
289
|
+
name: "token",
|
|
290
|
+
type: "address",
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
indexed: true,
|
|
294
|
+
internalType: "address",
|
|
295
|
+
name: "to",
|
|
296
|
+
type: "address",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
indexed: false,
|
|
300
|
+
internalType: "uint256",
|
|
301
|
+
name: "amount",
|
|
302
|
+
type: "uint256",
|
|
303
|
+
},
|
|
304
|
+
],
|
|
305
|
+
name: "TokensSent",
|
|
306
|
+
type: "event",
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
anonymous: false,
|
|
310
|
+
inputs: [
|
|
311
|
+
{
|
|
312
|
+
indexed: true,
|
|
313
|
+
internalType: "address",
|
|
314
|
+
name: "implementation",
|
|
315
|
+
type: "address",
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
name: "Upgraded",
|
|
319
|
+
type: "event",
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
inputs: [],
|
|
323
|
+
name: "UPGRADE_INTERFACE_VERSION",
|
|
324
|
+
outputs: [
|
|
325
|
+
{
|
|
326
|
+
internalType: "string",
|
|
327
|
+
name: "",
|
|
328
|
+
type: "string",
|
|
329
|
+
},
|
|
330
|
+
],
|
|
331
|
+
stateMutability: "view",
|
|
332
|
+
type: "function",
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
inputs: [
|
|
336
|
+
{
|
|
337
|
+
internalType: "address[]",
|
|
338
|
+
name: "initialOwners_",
|
|
339
|
+
type: "address[]",
|
|
340
|
+
},
|
|
341
|
+
],
|
|
342
|
+
name: "__QCoreTreasury_init",
|
|
343
|
+
outputs: [],
|
|
344
|
+
stateMutability: "nonpayable",
|
|
345
|
+
type: "function",
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
inputs: [
|
|
349
|
+
{
|
|
350
|
+
internalType: "address[]",
|
|
351
|
+
name: "newOwners_",
|
|
352
|
+
type: "address[]",
|
|
353
|
+
},
|
|
354
|
+
],
|
|
355
|
+
name: "addOwners",
|
|
356
|
+
outputs: [],
|
|
357
|
+
stateMutability: "nonpayable",
|
|
358
|
+
type: "function",
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
inputs: [
|
|
362
|
+
{
|
|
363
|
+
internalType: "enum IGovernance.OperationType",
|
|
364
|
+
name: "operation_",
|
|
365
|
+
type: "uint8",
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
internalType: "address",
|
|
369
|
+
name: "to_",
|
|
370
|
+
type: "address",
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
internalType: "bytes",
|
|
374
|
+
name: "data_",
|
|
375
|
+
type: "bytes",
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
internalType: "uint256",
|
|
379
|
+
name: "value_",
|
|
380
|
+
type: "uint256",
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
name: "arbitraryExecute",
|
|
384
|
+
outputs: [
|
|
385
|
+
{
|
|
386
|
+
internalType: "bool",
|
|
387
|
+
name: "success",
|
|
388
|
+
type: "bool",
|
|
389
|
+
},
|
|
390
|
+
],
|
|
391
|
+
stateMutability: "nonpayable",
|
|
392
|
+
type: "function",
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
inputs: [
|
|
396
|
+
{
|
|
397
|
+
internalType: "address",
|
|
398
|
+
name: "tokenAddress_",
|
|
399
|
+
type: "address",
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
internalType: "uint256",
|
|
403
|
+
name: "amount_",
|
|
404
|
+
type: "uint256",
|
|
405
|
+
},
|
|
406
|
+
],
|
|
407
|
+
name: "depositERC20",
|
|
408
|
+
outputs: [],
|
|
409
|
+
stateMutability: "nonpayable",
|
|
410
|
+
type: "function",
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
inputs: [
|
|
414
|
+
{
|
|
415
|
+
internalType: "address",
|
|
416
|
+
name: "tokenAddress_",
|
|
417
|
+
type: "address",
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
internalType: "uint256",
|
|
421
|
+
name: "tokenId_",
|
|
422
|
+
type: "uint256",
|
|
423
|
+
},
|
|
424
|
+
],
|
|
425
|
+
name: "depositNFT",
|
|
426
|
+
outputs: [],
|
|
427
|
+
stateMutability: "nonpayable",
|
|
428
|
+
type: "function",
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
inputs: [],
|
|
432
|
+
name: "depositNative",
|
|
433
|
+
outputs: [],
|
|
434
|
+
stateMutability: "payable",
|
|
435
|
+
type: "function",
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
inputs: [
|
|
439
|
+
{
|
|
440
|
+
internalType: "address",
|
|
441
|
+
name: "tokenAddress_",
|
|
442
|
+
type: "address",
|
|
443
|
+
},
|
|
444
|
+
],
|
|
445
|
+
name: "getERC20Balance",
|
|
446
|
+
outputs: [
|
|
447
|
+
{
|
|
448
|
+
internalType: "uint256",
|
|
449
|
+
name: "",
|
|
450
|
+
type: "uint256",
|
|
451
|
+
},
|
|
452
|
+
],
|
|
453
|
+
stateMutability: "view",
|
|
454
|
+
type: "function",
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
inputs: [
|
|
458
|
+
{
|
|
459
|
+
internalType: "address",
|
|
460
|
+
name: "tokenAddress_",
|
|
461
|
+
type: "address",
|
|
462
|
+
},
|
|
463
|
+
],
|
|
464
|
+
name: "getNFTBalance",
|
|
465
|
+
outputs: [
|
|
466
|
+
{
|
|
467
|
+
internalType: "uint256",
|
|
468
|
+
name: "",
|
|
469
|
+
type: "uint256",
|
|
470
|
+
},
|
|
471
|
+
],
|
|
472
|
+
stateMutability: "view",
|
|
473
|
+
type: "function",
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
inputs: [],
|
|
477
|
+
name: "getNativeBalance",
|
|
478
|
+
outputs: [
|
|
479
|
+
{
|
|
480
|
+
internalType: "uint256",
|
|
481
|
+
name: "",
|
|
482
|
+
type: "uint256",
|
|
483
|
+
},
|
|
484
|
+
],
|
|
485
|
+
stateMutability: "view",
|
|
486
|
+
type: "function",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
inputs: [],
|
|
490
|
+
name: "getOwners",
|
|
491
|
+
outputs: [
|
|
492
|
+
{
|
|
493
|
+
internalType: "address[]",
|
|
494
|
+
name: "",
|
|
495
|
+
type: "address[]",
|
|
496
|
+
},
|
|
497
|
+
],
|
|
498
|
+
stateMutability: "view",
|
|
499
|
+
type: "function",
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
inputs: [
|
|
503
|
+
{
|
|
504
|
+
internalType: "address",
|
|
505
|
+
name: "address_",
|
|
506
|
+
type: "address",
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
name: "isOwner",
|
|
510
|
+
outputs: [
|
|
511
|
+
{
|
|
512
|
+
internalType: "bool",
|
|
513
|
+
name: "",
|
|
514
|
+
type: "bool",
|
|
515
|
+
},
|
|
516
|
+
],
|
|
517
|
+
stateMutability: "view",
|
|
518
|
+
type: "function",
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
inputs: [],
|
|
522
|
+
name: "proxiableUUID",
|
|
523
|
+
outputs: [
|
|
524
|
+
{
|
|
525
|
+
internalType: "bytes32",
|
|
526
|
+
name: "",
|
|
527
|
+
type: "bytes32",
|
|
528
|
+
},
|
|
529
|
+
],
|
|
530
|
+
stateMutability: "view",
|
|
531
|
+
type: "function",
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
inputs: [
|
|
535
|
+
{
|
|
536
|
+
internalType: "address[]",
|
|
537
|
+
name: "oldOwners_",
|
|
538
|
+
type: "address[]",
|
|
539
|
+
},
|
|
540
|
+
],
|
|
541
|
+
name: "removeOwners",
|
|
542
|
+
outputs: [],
|
|
543
|
+
stateMutability: "nonpayable",
|
|
544
|
+
type: "function",
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
inputs: [],
|
|
548
|
+
name: "renounceOwnership",
|
|
549
|
+
outputs: [],
|
|
550
|
+
stateMutability: "nonpayable",
|
|
551
|
+
type: "function",
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
inputs: [
|
|
555
|
+
{
|
|
556
|
+
internalType: "address",
|
|
557
|
+
name: "tokenAddress_",
|
|
558
|
+
type: "address",
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
internalType: "address",
|
|
562
|
+
name: "to_",
|
|
563
|
+
type: "address",
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
internalType: "uint256",
|
|
567
|
+
name: "amount_",
|
|
568
|
+
type: "uint256",
|
|
569
|
+
},
|
|
570
|
+
],
|
|
571
|
+
name: "sendERC20",
|
|
572
|
+
outputs: [],
|
|
573
|
+
stateMutability: "nonpayable",
|
|
574
|
+
type: "function",
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
inputs: [
|
|
578
|
+
{
|
|
579
|
+
internalType: "address",
|
|
580
|
+
name: "tokenAddress_",
|
|
581
|
+
type: "address",
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
internalType: "address",
|
|
585
|
+
name: "to_",
|
|
586
|
+
type: "address",
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
internalType: "uint256",
|
|
590
|
+
name: "tokenId_",
|
|
591
|
+
type: "uint256",
|
|
592
|
+
},
|
|
593
|
+
],
|
|
594
|
+
name: "sendNFT",
|
|
595
|
+
outputs: [],
|
|
596
|
+
stateMutability: "nonpayable",
|
|
597
|
+
type: "function",
|
|
598
|
+
},
|
|
599
|
+
{
|
|
600
|
+
inputs: [
|
|
601
|
+
{
|
|
602
|
+
internalType: "address",
|
|
603
|
+
name: "to_",
|
|
604
|
+
type: "address",
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
internalType: "uint256",
|
|
608
|
+
name: "amount_",
|
|
609
|
+
type: "uint256",
|
|
610
|
+
},
|
|
611
|
+
],
|
|
612
|
+
name: "sendNative",
|
|
613
|
+
outputs: [],
|
|
614
|
+
stateMutability: "nonpayable",
|
|
615
|
+
type: "function",
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
inputs: [
|
|
619
|
+
{
|
|
620
|
+
internalType: "bytes4",
|
|
621
|
+
name: "interfaceId",
|
|
622
|
+
type: "bytes4",
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
name: "supportsInterface",
|
|
626
|
+
outputs: [
|
|
627
|
+
{
|
|
628
|
+
internalType: "bool",
|
|
629
|
+
name: "",
|
|
630
|
+
type: "bool",
|
|
631
|
+
},
|
|
632
|
+
],
|
|
633
|
+
stateMutability: "view",
|
|
634
|
+
type: "function",
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
inputs: [
|
|
638
|
+
{
|
|
639
|
+
internalType: "address",
|
|
640
|
+
name: "newImplementation",
|
|
641
|
+
type: "address",
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
internalType: "bytes",
|
|
645
|
+
name: "data",
|
|
646
|
+
type: "bytes",
|
|
647
|
+
},
|
|
648
|
+
],
|
|
649
|
+
name: "upgradeToAndCall",
|
|
650
|
+
outputs: [],
|
|
651
|
+
stateMutability: "payable",
|
|
652
|
+
type: "function",
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
stateMutability: "payable",
|
|
656
|
+
type: "receive",
|
|
657
|
+
},
|
|
658
|
+
];
|
|
659
|
+
const _bytecode = "0x60a080604052346100ea57306080527ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460ff8160401c166100d9576002600160401b03196001600160401b03821601610073575b60405161143190816100f0823960805181818161082e01526108c20152f35b6001600160401b0319166001600160401b039081177ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005581527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d290602090a13880610054565b63f92ee8a960e01b60005260046000fd5b600080fdfe6080806040526004361015610025575b50361561001b57600080fd5b610023610d87565b005b600090813560e01c90816301ffc9a714610aa0575080632f54bf6e14610a735780634f1ef2861461088357806352d1902d1461081b57806366807566146107815780636c46a2c514610762578063715018a61461070757806388a9d554146106eb5780638f975a641461066d57806397feb926146105f05780639b5b9b1814610543578063a0e67e2b146104b5578063a9a5e3af14610496578063ad3cb1cc14610449578063b588d22514610363578063b99ab7ed1461038f578063bf8ebd8514610363578063d3c3b06914610198578063db6b5246146101815763e355396d0361000f573461017e57608036600319011261017e5760043590600282101561017e57602435906001600160a01b038216820361017e57604435906001600160401b03821161017e57602061017485856101623660048801610b47565b9061016b610ebb565b60643592610e06565b6040519015158152f35b80fd5b508060031936011261017e57610195610d87565b80f35b503461017e57602036600319011261017e576004356001600160401b03811161035f573660238201121561035f576004810135906001600160401b03821161035b573660248360051b8301011161035b576000805160206113e583398151915254604081901c60ff161592906001600160401b03811680159081610353575b6001149081610349575b159081610340575b50610331576001600160401b031981166001176000805160206113e58339815191525561026392919084610308575b506024369201610b8e565b60ff6000805160206113e58339815191525460401c16156102f9578051156102ea5761028e90610f10565b6102955780f35b60ff60401b196000805160206113e583398151915254166000805160206113e5833981519152557fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602060405160018152a180f35b6349e27cff60e01b8352600483fd5b631afcd79f60e31b8352600483fd5b6001600160481b0319166001600160401b01176000805160206113e58339815191525538610258565b63f92ee8a960e01b8552600485fd5b90501538610229565b303b159150610221565b859150610217565b8280fd5b5080fd5b503461017e57602036600319011261017e576020610387610382610ad8565b610d11565b604051908152f35b503461017e5761039e36610c31565b916103a7610ebb565b6001600160a01b031690813b1561043a57604051632142170760e11b815284908181806103d988873060048501610cef565b038183885af1801561043e57610425575b50506040519283526001600160a01b0316917f991604a47c07c618c500813cd5dfd63077ee3af0127a228a8ef4db6dbdd3caba90602090a380f35b8161042f91610af3565b61043a5783386103ea565b8380fd5b6040513d84823e3d90fd5b503461017e578060031936011261017e575061049260405161046c604082610af3565b60058152640352e302e360dc1b6020820152604051918291602083526020830190610cae565b0390f35b503461017e576101956104a836610bf3565b6104b0610ebb565b610feb565b503461017e578060031936011261017e576040516000805160206113c58339815191528054808352908352909160208301917fd0a3e974dc15f2bb30bdecee34e87621df5febbd7da4d9e3bbbccb9beece9c2f915b81811061052d576104928561052181870382610af3565b60405191829182610c6b565b825484526020909301926001928301920161050a565b503461017e57604036600319011261017e5761055d610ad8565b602435906001600160a01b0316803b1561035b576040516323b872dd60e01b815283818061059086303360048501610cef565b038183865af180156105e5576105d1575b506040519182527f2214288c094665e4969e2968c71e56e0ab3c69646a5c773ec8c2a7ca3bf1880860203393a380f35b836105de91949294610af3565b91386105a1565b6040513d86823e3d90fd5b503461017e57604036600319011261017e5761060a610ad8565b6024359060018060a01b03166106506040516323b872dd60e01b602082015261064a8161063c86303360248501610cef565b03601f198101835282610af3565b8261108f565b60405191825260008051602061138583398151915260203393a380f35b503461017e57602060008051602061140583398151915261068d36610c31565b929161069a949194610ebb565b60405163a9059cbb60e01b838201526001600160a01b039586166024820181905260448083018790528252959190911693906106e1906106db606482610af3565b8561108f565b604051908152a380f35b503461017e578060031936011261017e57602047604051908152f35b503461017e578060031936011261017e57610720610ebb565b60405161072e604082610af3565b6001815260208082019036823781511561074e5733905261019590610feb565b634e487b7160e01b83526032600452602483fd5b503461017e5761019561077436610bf3565b61077c610ebb565b610f10565b503461017e57604036600319011261017e5761079b610ad8565b602435906107a7610ebb565b6001600160a01b031690478111610805578280808084865af16107c8610ee0565b90156108005750600080516020611405833981519152602073eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee92604051908152a380f35b61106f565b63cf47918160e01b835247600452602452604482fd5b503461017e578060031936011261017e577f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031630036108745760206040516000805160206113658339815191528152f35b63703e46dd60e11b8152600490fd5b50604036600319011261017e57610898610ad8565b906024356001600160401b03811161035f576108b8903690600401610b47565b6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016308114908115610a50575b50610a41576108fa610ebb565b6040516352d1902d60e01b8152926001600160a01b0381169190602085600481865afa80958596610a09575b5061093f57634c9c8ce360e01b84526004839052602484fd5b90918460008051602061136583398151915281036109f75750813b156109e55760008051602061136583398151915280546001600160a01b031916821790557fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b8480a281518390156109cb57808360206109c795519101845af46109c1610ee0565b916110ea565b5080f35b505050346109d65780f35b63b398979f60e01b8152600490fd5b634c9c8ce360e01b8452600452602483fd5b632a87526960e21b8552600452602484fd5b9095506020813d602011610a39575b81610a2560209383610af3565b81010312610a3557519438610926565b8480fd5b3d9150610a18565b63703e46dd60e11b8252600482fd5b600080516020611365833981519152546001600160a01b031614159050386108ed565b503461017e57602036600319011261017e5760206101746001600160a01b03610a9a610ad8565b1661104f565b90503461035f57602036600319011261035f5760043563ffffffff60e01b811680910361035b576301ffc9a760e01b14815260209150f35b600435906001600160a01b0382168203610aee57565b600080fd5b601f909101601f19168101906001600160401b03821190821017610b1657604052565b634e487b7160e01b600052604160045260246000fd5b6001600160401b038111610b1657601f01601f191660200190565b81601f82011215610aee57803590610b5e82610b2c565b92610b6c6040519485610af3565b82845260208383010111610aee57816000926020809301838601378301015290565b9092916001600160401b038411610b16578360051b916020808401610bb66040519182610af3565b8096815201928101918211610aee57915b818310610bd357505050565b82356001600160a01b0381168103610aee57815260209283019201610bc7565b6020600319820112610aee57600435906001600160401b038211610aee5780602383011215610aee57816024610c2e93600401359101610b8e565b90565b6060906003190112610aee576004356001600160a01b0381168103610aee57906024356001600160a01b0381168103610aee579060443590565b602060408183019282815284518094520192019060005b818110610c8f5750505090565b82516001600160a01b0316845260209384019390920191600101610c82565b919082519283825260005b848110610cda575050826000602080949584010152601f8019910116010190565b80602080928401015182828601015201610cb9565b6001600160a01b03918216815291166020820152604081019190915260600190565b6040516370a0823160e01b815230600482015290602090829060249082906001600160a01b03165afa908115610d7b57600091610d4c575090565b90506020813d602011610d73575b81610d6760209383610af3565b81010312610aee575190565b3d9150610d5a565b6040513d6000823e3d90fd5b60405134815273eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee60008051602061138583398151915260203393a3565b9493926002821015610df057606092610deb92875260018060a01b03166020870152608060408701526080860190610cae565b930152565b634e487b7160e01b600052602160045260246000fd5b9091939284511580610eb3575b610eaa576002821015610df05760018203610e9757600080865160208801865af4945b8515610e75577f1c96d0d403ab5775272e1a820cb06f02ae5c0fc5fccb9d014c2bf9f045009172939291610e709160405194859485610db8565b0390a1565b90610e9391604051948594631cff564160e21b865260048601610db8565b0390fd5b60008086516020880184875af194610e36565b50600193505050565b508015610e13565b610ec43361104f565b15610ecb57565b6332b2baa360e01b6000523360045260246000fd5b3d15610f0b573d90610ef182610b2c565b91610eff6040519384610af3565b82523d6000602084013e565b606090565b60005b8151811015610f4257600190610f3b6001600160a01b03610f348386610fc1565b5116611148565b5001610f13565b50600080526000805160206113a58339815191526020527fd78d4cfea0fa7a3b7f3c60ce2e50f9a8b385c2113cfd0e86c6b02386a3690bc054610fb057610e707f5fd1e185ef572e7f662fcc63b7c9e778b996190372868af5fe137132c811398e9160405191829182610c6b565b6349e27cff60e01b60005260046000fd5b8051821015610fd55760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b60005b815181101561101d576001906110166001600160a01b0361100f8386610fc1565b5116611208565b5001610fee565b50610e707f0bbb8c3531454b5141cebfe14eba43275a099c31e3357a4653412a08b05ce0cc9160405191829182610c6b565b6000526000805160206113a5833981519152602052604060002054151590565b80511561107e57805190602001fd5b63d6bda27560e01b60005260046000fd5b906000602091828151910182855af115610d7b576000513d6110e157506001600160a01b0381163b155b6110c05750565b635274afe760e01b60009081526001600160a01b0391909116600452602490fd5b600114156110b9565b906110f5575061106f565b81511580611127575b611106575090565b639996b31560e01b60009081526001600160a01b0391909116600452602490fd5b50803b156110fe565b8054821015610fd55760005260206000200190600090565b806000526000805160206113a583398151915260205260406000205415600014611202576000805160206113c583398151915254600160401b811015610b16576111cf6111b88260018594016000805160206113c5833981519152556000805160206113c5833981519152611130565b819391549060031b91821b91600019901b19161790565b90556000805160206113c583398151915254906000526000805160206113a5833981519152602052604060002055600190565b50600090565b60008181526000805160206113a58339815191526020526040902054801561135d576000198101818111611347576000805160206113c583398151915254600019810191908211611347578181036112e6575b5050506000805160206113c58339815191525480156112d05760001901611290816000805160206113c5833981519152611130565b8154906000199060031b1b191690556000805160206113c5833981519152556000526000805160206113a583398151915260205260006040812055600190565b634e487b7160e01b600052603160045260246000fd5b6113226113046111b8936000805160206113c5833981519152611130565b90549060031b1c9283926000805160206113c5833981519152611130565b90556000526000805160206113a583398151915260205260406000205538808061125b565b634e487b7160e01b600052601160045260246000fd5b505060009056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbccbc4a4091b012bb1329c38bbbb15455f5cac5aa3673da0a7f38cd61a4f49551754985b7dba18117ef28d5d113b6eab9fb186b92b1987f5efdadbc365eb2a5cbb54985b7dba18117ef28d5d113b6eab9fb186b92b1987f5efdadbc365eb2a5cbaf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00e607861baff3d292b19188affe88c1a72bdcb69d3015f18bb2cd0bf5349cc3e1a164736f6c634300081e000a";
|
|
660
|
+
const isSuperArgs = (xs) => xs.length > 1;
|
|
661
|
+
export class QCoreTreasury__factory extends ContractFactory {
|
|
662
|
+
constructor(...args) {
|
|
663
|
+
if (isSuperArgs(args)) {
|
|
664
|
+
super(...args);
|
|
665
|
+
}
|
|
666
|
+
else {
|
|
667
|
+
super(_abi, _bytecode, args[0]);
|
|
668
|
+
}
|
|
669
|
+
this.contractName = "QCoreTreasury";
|
|
670
|
+
}
|
|
671
|
+
getDeployTransaction(overrides) {
|
|
672
|
+
return super.getDeployTransaction(overrides || {});
|
|
673
|
+
}
|
|
674
|
+
deploy(overrides) {
|
|
675
|
+
return super.deploy(overrides || {});
|
|
676
|
+
}
|
|
677
|
+
connect(runner) {
|
|
678
|
+
return super.connect(runner);
|
|
679
|
+
}
|
|
680
|
+
static contractName;
|
|
681
|
+
contractName;
|
|
682
|
+
static bytecode = _bytecode;
|
|
683
|
+
static abi = _abi;
|
|
684
|
+
static createInterface() {
|
|
685
|
+
return new Interface(_abi);
|
|
686
|
+
}
|
|
687
|
+
static connect(address, runner) {
|
|
688
|
+
return new Contract(address, _abi, runner);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { QCoreTreasury__factory } from "./QCoreTreasury__factory";
|