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