@cloakely/sdk 0.3.1 → 0.5.0
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/dist/abis.d.ts +1037 -172
- package/dist/abis.js +1421 -294
- package/dist/bytecode.d.ts +10 -7
- package/dist/bytecode.js +1 -1
- package/dist/cloak.d.ts +83 -0
- package/dist/cloak.js +18 -28
- package/dist/deployments.d.ts +26 -5
- package/dist/deployments.js +79 -13
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/private/client.d.ts +28 -4
- package/dist/private/client.js +84 -20
- package/dist/private/crypto.d.ts +23 -5
- package/dist/private/crypto.js +14 -5
- package/dist/registry.d.ts +48 -0
- package/dist/registry.js +54 -0
- package/package.json +1 -1
package/dist/abis.js
CHANGED
|
@@ -75,6 +75,51 @@ export const cloakConfigAbi = [
|
|
|
75
75
|
"outputs": [],
|
|
76
76
|
"stateMutability": "nonpayable"
|
|
77
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"type": "function",
|
|
80
|
+
"name": "addLaunchFactory",
|
|
81
|
+
"inputs": [
|
|
82
|
+
{
|
|
83
|
+
"name": "factory",
|
|
84
|
+
"type": "address",
|
|
85
|
+
"internalType": "address"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"outputs": [],
|
|
89
|
+
"stateMutability": "nonpayable"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"type": "function",
|
|
93
|
+
"name": "approveAsset",
|
|
94
|
+
"inputs": [
|
|
95
|
+
{
|
|
96
|
+
"name": "token",
|
|
97
|
+
"type": "address",
|
|
98
|
+
"internalType": "address"
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"outputs": [],
|
|
102
|
+
"stateMutability": "nonpayable"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"type": "function",
|
|
106
|
+
"name": "approvedAsset",
|
|
107
|
+
"inputs": [
|
|
108
|
+
{
|
|
109
|
+
"name": "",
|
|
110
|
+
"type": "address",
|
|
111
|
+
"internalType": "address"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"outputs": [
|
|
115
|
+
{
|
|
116
|
+
"name": "",
|
|
117
|
+
"type": "bool",
|
|
118
|
+
"internalType": "bool"
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
"stateMutability": "view"
|
|
122
|
+
},
|
|
78
123
|
{
|
|
79
124
|
"type": "function",
|
|
80
125
|
"name": "auctionLimit",
|
|
@@ -144,6 +189,25 @@ export const cloakConfigAbi = [
|
|
|
144
189
|
],
|
|
145
190
|
"stateMutability": "view"
|
|
146
191
|
},
|
|
192
|
+
{
|
|
193
|
+
"type": "function",
|
|
194
|
+
"name": "current",
|
|
195
|
+
"inputs": [
|
|
196
|
+
{
|
|
197
|
+
"name": "kind",
|
|
198
|
+
"type": "bytes32",
|
|
199
|
+
"internalType": "bytes32"
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
"outputs": [
|
|
203
|
+
{
|
|
204
|
+
"name": "",
|
|
205
|
+
"type": "address",
|
|
206
|
+
"internalType": "address"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"stateMutability": "view"
|
|
210
|
+
},
|
|
147
211
|
{
|
|
148
212
|
"type": "function",
|
|
149
213
|
"name": "defaultLimitBps",
|
|
@@ -227,6 +291,57 @@ export const cloakConfigAbi = [
|
|
|
227
291
|
],
|
|
228
292
|
"stateMutability": "view"
|
|
229
293
|
},
|
|
294
|
+
{
|
|
295
|
+
"type": "function",
|
|
296
|
+
"name": "isLaunchFactory",
|
|
297
|
+
"inputs": [
|
|
298
|
+
{
|
|
299
|
+
"name": "",
|
|
300
|
+
"type": "address",
|
|
301
|
+
"internalType": "address"
|
|
302
|
+
}
|
|
303
|
+
],
|
|
304
|
+
"outputs": [
|
|
305
|
+
{
|
|
306
|
+
"name": "",
|
|
307
|
+
"type": "bool",
|
|
308
|
+
"internalType": "bool"
|
|
309
|
+
}
|
|
310
|
+
],
|
|
311
|
+
"stateMutability": "view"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"type": "function",
|
|
315
|
+
"name": "launchFactories",
|
|
316
|
+
"inputs": [
|
|
317
|
+
{
|
|
318
|
+
"name": "",
|
|
319
|
+
"type": "uint256",
|
|
320
|
+
"internalType": "uint256"
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"outputs": [
|
|
324
|
+
{
|
|
325
|
+
"name": "",
|
|
326
|
+
"type": "address",
|
|
327
|
+
"internalType": "address"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"stateMutability": "view"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "function",
|
|
334
|
+
"name": "launchFactoriesCount",
|
|
335
|
+
"inputs": [],
|
|
336
|
+
"outputs": [
|
|
337
|
+
{
|
|
338
|
+
"name": "",
|
|
339
|
+
"type": "uint256",
|
|
340
|
+
"internalType": "uint256"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"stateMutability": "view"
|
|
344
|
+
},
|
|
230
345
|
{
|
|
231
346
|
"type": "function",
|
|
232
347
|
"name": "launchFeeBps",
|
|
@@ -396,6 +511,94 @@ export const cloakConfigAbi = [
|
|
|
396
511
|
],
|
|
397
512
|
"stateMutability": "nonpayable"
|
|
398
513
|
},
|
|
514
|
+
{
|
|
515
|
+
"type": "function",
|
|
516
|
+
"name": "register",
|
|
517
|
+
"inputs": [
|
|
518
|
+
{
|
|
519
|
+
"name": "kind",
|
|
520
|
+
"type": "bytes32",
|
|
521
|
+
"internalType": "bytes32"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"name": "addr",
|
|
525
|
+
"type": "address",
|
|
526
|
+
"internalType": "address"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"name": "version",
|
|
530
|
+
"type": "uint16",
|
|
531
|
+
"internalType": "uint16"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "startBlock",
|
|
535
|
+
"type": "uint64",
|
|
536
|
+
"internalType": "uint64"
|
|
537
|
+
}
|
|
538
|
+
],
|
|
539
|
+
"outputs": [],
|
|
540
|
+
"stateMutability": "nonpayable"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"type": "function",
|
|
544
|
+
"name": "registry",
|
|
545
|
+
"inputs": [
|
|
546
|
+
{
|
|
547
|
+
"name": "",
|
|
548
|
+
"type": "uint256",
|
|
549
|
+
"internalType": "uint256"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"outputs": [
|
|
553
|
+
{
|
|
554
|
+
"name": "kind",
|
|
555
|
+
"type": "bytes32",
|
|
556
|
+
"internalType": "bytes32"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
"name": "addr",
|
|
560
|
+
"type": "address",
|
|
561
|
+
"internalType": "address"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"name": "version",
|
|
565
|
+
"type": "uint16",
|
|
566
|
+
"internalType": "uint16"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"name": "startBlock",
|
|
570
|
+
"type": "uint64",
|
|
571
|
+
"internalType": "uint64"
|
|
572
|
+
}
|
|
573
|
+
],
|
|
574
|
+
"stateMutability": "view"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"type": "function",
|
|
578
|
+
"name": "registryCount",
|
|
579
|
+
"inputs": [],
|
|
580
|
+
"outputs": [
|
|
581
|
+
{
|
|
582
|
+
"name": "",
|
|
583
|
+
"type": "uint256",
|
|
584
|
+
"internalType": "uint256"
|
|
585
|
+
}
|
|
586
|
+
],
|
|
587
|
+
"stateMutability": "view"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
"type": "function",
|
|
591
|
+
"name": "removeLaunchFactory",
|
|
592
|
+
"inputs": [
|
|
593
|
+
{
|
|
594
|
+
"name": "factory",
|
|
595
|
+
"type": "address",
|
|
596
|
+
"internalType": "address"
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"outputs": [],
|
|
600
|
+
"stateMutability": "nonpayable"
|
|
601
|
+
},
|
|
399
602
|
{
|
|
400
603
|
"type": "function",
|
|
401
604
|
"name": "setAuctionLimit",
|
|
@@ -587,6 +790,19 @@ export const cloakConfigAbi = [
|
|
|
587
790
|
],
|
|
588
791
|
"stateMutability": "view"
|
|
589
792
|
},
|
|
793
|
+
{
|
|
794
|
+
"type": "event",
|
|
795
|
+
"name": "AssetApproved",
|
|
796
|
+
"inputs": [
|
|
797
|
+
{
|
|
798
|
+
"name": "token",
|
|
799
|
+
"type": "address",
|
|
800
|
+
"indexed": true,
|
|
801
|
+
"internalType": "address"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"anonymous": false
|
|
805
|
+
},
|
|
590
806
|
{
|
|
591
807
|
"type": "event",
|
|
592
808
|
"name": "AuctionLimitSet",
|
|
@@ -726,6 +942,32 @@ export const cloakConfigAbi = [
|
|
|
726
942
|
],
|
|
727
943
|
"anonymous": false
|
|
728
944
|
},
|
|
945
|
+
{
|
|
946
|
+
"type": "event",
|
|
947
|
+
"name": "LaunchFactoryAdded",
|
|
948
|
+
"inputs": [
|
|
949
|
+
{
|
|
950
|
+
"name": "factory",
|
|
951
|
+
"type": "address",
|
|
952
|
+
"indexed": true,
|
|
953
|
+
"internalType": "address"
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"anonymous": false
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"type": "event",
|
|
960
|
+
"name": "LaunchFactoryRemoved",
|
|
961
|
+
"inputs": [
|
|
962
|
+
{
|
|
963
|
+
"name": "factory",
|
|
964
|
+
"type": "address",
|
|
965
|
+
"indexed": true,
|
|
966
|
+
"internalType": "address"
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"anonymous": false
|
|
970
|
+
},
|
|
729
971
|
{
|
|
730
972
|
"type": "event",
|
|
731
973
|
"name": "LimitSet",
|
|
@@ -789,6 +1031,31 @@ export const cloakConfigAbi = [
|
|
|
789
1031
|
],
|
|
790
1032
|
"anonymous": false
|
|
791
1033
|
},
|
|
1034
|
+
{
|
|
1035
|
+
"type": "event",
|
|
1036
|
+
"name": "Registered",
|
|
1037
|
+
"inputs": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "kind",
|
|
1040
|
+
"type": "bytes32",
|
|
1041
|
+
"indexed": true,
|
|
1042
|
+
"internalType": "bytes32"
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
"name": "addr",
|
|
1046
|
+
"type": "address",
|
|
1047
|
+
"indexed": true,
|
|
1048
|
+
"internalType": "address"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "index",
|
|
1052
|
+
"type": "uint256",
|
|
1053
|
+
"indexed": false,
|
|
1054
|
+
"internalType": "uint256"
|
|
1055
|
+
}
|
|
1056
|
+
],
|
|
1057
|
+
"anonymous": false
|
|
1058
|
+
},
|
|
792
1059
|
{
|
|
793
1060
|
"type": "event",
|
|
794
1061
|
"name": "SetupEnded",
|
|
@@ -808,6 +1075,11 @@ export const cloakConfigAbi = [
|
|
|
808
1075
|
],
|
|
809
1076
|
"anonymous": false
|
|
810
1077
|
},
|
|
1078
|
+
{
|
|
1079
|
+
"type": "error",
|
|
1080
|
+
"name": "AlreadyAdded",
|
|
1081
|
+
"inputs": []
|
|
1082
|
+
},
|
|
811
1083
|
{
|
|
812
1084
|
"type": "error",
|
|
813
1085
|
"name": "AlreadyEnded",
|
|
@@ -818,6 +1090,11 @@ export const cloakConfigAbi = [
|
|
|
818
1090
|
"name": "AlreadyQueued",
|
|
819
1091
|
"inputs": []
|
|
820
1092
|
},
|
|
1093
|
+
{
|
|
1094
|
+
"type": "error",
|
|
1095
|
+
"name": "BadBlock",
|
|
1096
|
+
"inputs": []
|
|
1097
|
+
},
|
|
821
1098
|
{
|
|
822
1099
|
"type": "error",
|
|
823
1100
|
"name": "BadBps",
|
|
@@ -833,6 +1110,11 @@ export const cloakConfigAbi = [
|
|
|
833
1110
|
"name": "FeeTooHigh",
|
|
834
1111
|
"inputs": []
|
|
835
1112
|
},
|
|
1113
|
+
{
|
|
1114
|
+
"type": "error",
|
|
1115
|
+
"name": "NotAdded",
|
|
1116
|
+
"inputs": []
|
|
1117
|
+
},
|
|
836
1118
|
{
|
|
837
1119
|
"type": "error",
|
|
838
1120
|
"name": "NotLower",
|
|
@@ -892,6 +1174,11 @@ export const cloakFactoryAbi = [
|
|
|
892
1174
|
"name": "vestingDeployer_",
|
|
893
1175
|
"type": "address",
|
|
894
1176
|
"internalType": "contract CloakVestingDeployer"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"name": "seeder_",
|
|
1180
|
+
"type": "address",
|
|
1181
|
+
"internalType": "contract IMarketSeeder"
|
|
895
1182
|
}
|
|
896
1183
|
],
|
|
897
1184
|
"stateMutability": "nonpayable"
|
|
@@ -1105,20 +1392,33 @@ export const cloakFactoryAbi = [
|
|
|
1105
1392
|
},
|
|
1106
1393
|
{
|
|
1107
1394
|
"type": "function",
|
|
1108
|
-
"name": "
|
|
1395
|
+
"name": "seeder",
|
|
1109
1396
|
"inputs": [],
|
|
1110
1397
|
"outputs": [
|
|
1111
1398
|
{
|
|
1112
1399
|
"name": "",
|
|
1113
1400
|
"type": "address",
|
|
1114
|
-
"internalType": "contract
|
|
1401
|
+
"internalType": "contract IMarketSeeder"
|
|
1115
1402
|
}
|
|
1116
1403
|
],
|
|
1117
1404
|
"stateMutability": "view"
|
|
1118
1405
|
},
|
|
1119
1406
|
{
|
|
1120
|
-
"type": "
|
|
1121
|
-
"name": "
|
|
1407
|
+
"type": "function",
|
|
1408
|
+
"name": "vestingDeployer",
|
|
1409
|
+
"inputs": [],
|
|
1410
|
+
"outputs": [
|
|
1411
|
+
{
|
|
1412
|
+
"name": "",
|
|
1413
|
+
"type": "address",
|
|
1414
|
+
"internalType": "contract CloakVestingDeployer"
|
|
1415
|
+
}
|
|
1416
|
+
],
|
|
1417
|
+
"stateMutability": "view"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"type": "event",
|
|
1421
|
+
"name": "LaunchCreated",
|
|
1122
1422
|
"inputs": [
|
|
1123
1423
|
{
|
|
1124
1424
|
"name": "index",
|
|
@@ -1265,10 +1565,19 @@ export const cloakAuctionAbi = [
|
|
|
1265
1565
|
"name": "config_",
|
|
1266
1566
|
"type": "address",
|
|
1267
1567
|
"internalType": "contract CloakConfig"
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
"name": "seeder_",
|
|
1571
|
+
"type": "address",
|
|
1572
|
+
"internalType": "contract IMarketSeeder"
|
|
1268
1573
|
}
|
|
1269
1574
|
],
|
|
1270
1575
|
"stateMutability": "nonpayable"
|
|
1271
1576
|
},
|
|
1577
|
+
{
|
|
1578
|
+
"type": "receive",
|
|
1579
|
+
"stateMutability": "payable"
|
|
1580
|
+
},
|
|
1272
1581
|
{
|
|
1273
1582
|
"type": "function",
|
|
1274
1583
|
"name": "DEAD",
|
|
@@ -1428,6 +1737,34 @@ export const cloakAuctionAbi = [
|
|
|
1428
1737
|
"outputs": [],
|
|
1429
1738
|
"stateMutability": "nonpayable"
|
|
1430
1739
|
},
|
|
1740
|
+
{
|
|
1741
|
+
"type": "function",
|
|
1742
|
+
"name": "claimPrivate",
|
|
1743
|
+
"inputs": [
|
|
1744
|
+
{
|
|
1745
|
+
"name": "id",
|
|
1746
|
+
"type": "uint256",
|
|
1747
|
+
"internalType": "uint256"
|
|
1748
|
+
},
|
|
1749
|
+
{
|
|
1750
|
+
"name": "pubKey",
|
|
1751
|
+
"type": "uint256",
|
|
1752
|
+
"internalType": "uint256"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "blinding",
|
|
1756
|
+
"type": "uint256",
|
|
1757
|
+
"internalType": "uint256"
|
|
1758
|
+
},
|
|
1759
|
+
{
|
|
1760
|
+
"name": "memo",
|
|
1761
|
+
"type": "bytes",
|
|
1762
|
+
"internalType": "bytes"
|
|
1763
|
+
}
|
|
1764
|
+
],
|
|
1765
|
+
"outputs": [],
|
|
1766
|
+
"stateMutability": "nonpayable"
|
|
1767
|
+
},
|
|
1431
1768
|
{
|
|
1432
1769
|
"type": "function",
|
|
1433
1770
|
"name": "claimedCount",
|
|
@@ -2034,6 +2371,19 @@ export const cloakAuctionAbi = [
|
|
|
2034
2371
|
],
|
|
2035
2372
|
"stateMutability": "view"
|
|
2036
2373
|
},
|
|
2374
|
+
{
|
|
2375
|
+
"type": "function",
|
|
2376
|
+
"name": "seeder",
|
|
2377
|
+
"inputs": [],
|
|
2378
|
+
"outputs": [
|
|
2379
|
+
{
|
|
2380
|
+
"name": "",
|
|
2381
|
+
"type": "address",
|
|
2382
|
+
"internalType": "contract IMarketSeeder"
|
|
2383
|
+
}
|
|
2384
|
+
],
|
|
2385
|
+
"stateMutability": "view"
|
|
2386
|
+
},
|
|
2037
2387
|
{
|
|
2038
2388
|
"type": "function",
|
|
2039
2389
|
"name": "settle",
|
|
@@ -2113,6 +2463,19 @@ export const cloakAuctionAbi = [
|
|
|
2113
2463
|
],
|
|
2114
2464
|
"stateMutability": "view"
|
|
2115
2465
|
},
|
|
2466
|
+
{
|
|
2467
|
+
"type": "function",
|
|
2468
|
+
"name": "uniPair",
|
|
2469
|
+
"inputs": [],
|
|
2470
|
+
"outputs": [
|
|
2471
|
+
{
|
|
2472
|
+
"name": "",
|
|
2473
|
+
"type": "address",
|
|
2474
|
+
"internalType": "address"
|
|
2475
|
+
}
|
|
2476
|
+
],
|
|
2477
|
+
"stateMutability": "view"
|
|
2478
|
+
},
|
|
2116
2479
|
{
|
|
2117
2480
|
"type": "function",
|
|
2118
2481
|
"name": "withdrawProceeds",
|
|
@@ -2170,6 +2533,19 @@ export const cloakAuctionAbi = [
|
|
|
2170
2533
|
],
|
|
2171
2534
|
"anonymous": false
|
|
2172
2535
|
},
|
|
2536
|
+
{
|
|
2537
|
+
"type": "event",
|
|
2538
|
+
"name": "ClaimedPrivately",
|
|
2539
|
+
"inputs": [
|
|
2540
|
+
{
|
|
2541
|
+
"name": "id",
|
|
2542
|
+
"type": "uint256",
|
|
2543
|
+
"indexed": true,
|
|
2544
|
+
"internalType": "uint256"
|
|
2545
|
+
}
|
|
2546
|
+
],
|
|
2547
|
+
"anonymous": false
|
|
2548
|
+
},
|
|
2173
2549
|
{
|
|
2174
2550
|
"type": "event",
|
|
2175
2551
|
"name": "Committed",
|
|
@@ -2461,6 +2837,31 @@ export const cloakAuctionAbi = [
|
|
|
2461
2837
|
}
|
|
2462
2838
|
],
|
|
2463
2839
|
"anonymous": false
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"type": "event",
|
|
2843
|
+
"name": "UniswapMarket",
|
|
2844
|
+
"inputs": [
|
|
2845
|
+
{
|
|
2846
|
+
"name": "uniPair",
|
|
2847
|
+
"type": "address",
|
|
2848
|
+
"indexed": true,
|
|
2849
|
+
"internalType": "address"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"name": "market",
|
|
2853
|
+
"type": "address",
|
|
2854
|
+
"indexed": false,
|
|
2855
|
+
"internalType": "address"
|
|
2856
|
+
},
|
|
2857
|
+
{
|
|
2858
|
+
"name": "lpShares",
|
|
2859
|
+
"type": "uint256",
|
|
2860
|
+
"indexed": false,
|
|
2861
|
+
"internalType": "uint256"
|
|
2862
|
+
}
|
|
2863
|
+
],
|
|
2864
|
+
"anonymous": false
|
|
2464
2865
|
}
|
|
2465
2866
|
];
|
|
2466
2867
|
export const cloakTokenAbi = [
|
|
@@ -4164,29 +4565,9 @@ export const privateRouterAbi = [
|
|
|
4164
4565
|
"type": "constructor",
|
|
4165
4566
|
"inputs": [
|
|
4166
4567
|
{
|
|
4167
|
-
"name": "
|
|
4168
|
-
"type": "address",
|
|
4169
|
-
"internalType": "contract CloakConfig"
|
|
4170
|
-
},
|
|
4171
|
-
{
|
|
4172
|
-
"name": "hasher2_",
|
|
4173
|
-
"type": "address",
|
|
4174
|
-
"internalType": "contract IPoseidon2"
|
|
4175
|
-
},
|
|
4176
|
-
{
|
|
4177
|
-
"name": "hasher3_",
|
|
4178
|
-
"type": "address",
|
|
4179
|
-
"internalType": "contract IPoseidon3"
|
|
4180
|
-
},
|
|
4181
|
-
{
|
|
4182
|
-
"name": "cloakFactory_",
|
|
4568
|
+
"name": "vaults_",
|
|
4183
4569
|
"type": "address",
|
|
4184
|
-
"internalType": "contract
|
|
4185
|
-
},
|
|
4186
|
-
{
|
|
4187
|
-
"name": "legacyFactory_",
|
|
4188
|
-
"type": "address",
|
|
4189
|
-
"internalType": "contract ICloakFactory"
|
|
4570
|
+
"internalType": "contract CloakVaults"
|
|
4190
4571
|
},
|
|
4191
4572
|
{
|
|
4192
4573
|
"name": "whype_",
|
|
@@ -4213,19 +4594,6 @@ export const privateRouterAbi = [
|
|
|
4213
4594
|
],
|
|
4214
4595
|
"stateMutability": "view"
|
|
4215
4596
|
},
|
|
4216
|
-
{
|
|
4217
|
-
"type": "function",
|
|
4218
|
-
"name": "cloakFactory",
|
|
4219
|
-
"inputs": [],
|
|
4220
|
-
"outputs": [
|
|
4221
|
-
{
|
|
4222
|
-
"name": "",
|
|
4223
|
-
"type": "address",
|
|
4224
|
-
"internalType": "contract ICloakFactory"
|
|
4225
|
-
}
|
|
4226
|
-
],
|
|
4227
|
-
"stateMutability": "view"
|
|
4228
|
-
},
|
|
4229
4597
|
{
|
|
4230
4598
|
"type": "function",
|
|
4231
4599
|
"name": "config",
|
|
@@ -4239,70 +4607,6 @@ export const privateRouterAbi = [
|
|
|
4239
4607
|
],
|
|
4240
4608
|
"stateMutability": "view"
|
|
4241
4609
|
},
|
|
4242
|
-
{
|
|
4243
|
-
"type": "function",
|
|
4244
|
-
"name": "createLegacyPool",
|
|
4245
|
-
"inputs": [
|
|
4246
|
-
{
|
|
4247
|
-
"name": "launchIndex",
|
|
4248
|
-
"type": "uint256",
|
|
4249
|
-
"internalType": "uint256"
|
|
4250
|
-
}
|
|
4251
|
-
],
|
|
4252
|
-
"outputs": [
|
|
4253
|
-
{
|
|
4254
|
-
"name": "pool",
|
|
4255
|
-
"type": "address",
|
|
4256
|
-
"internalType": "contract ShieldedPool"
|
|
4257
|
-
}
|
|
4258
|
-
],
|
|
4259
|
-
"stateMutability": "nonpayable"
|
|
4260
|
-
},
|
|
4261
|
-
{
|
|
4262
|
-
"type": "function",
|
|
4263
|
-
"name": "createPool",
|
|
4264
|
-
"inputs": [
|
|
4265
|
-
{
|
|
4266
|
-
"name": "launchIndex",
|
|
4267
|
-
"type": "uint256",
|
|
4268
|
-
"internalType": "uint256"
|
|
4269
|
-
}
|
|
4270
|
-
],
|
|
4271
|
-
"outputs": [
|
|
4272
|
-
{
|
|
4273
|
-
"name": "pool",
|
|
4274
|
-
"type": "address",
|
|
4275
|
-
"internalType": "contract ShieldedPool"
|
|
4276
|
-
}
|
|
4277
|
-
],
|
|
4278
|
-
"stateMutability": "nonpayable"
|
|
4279
|
-
},
|
|
4280
|
-
{
|
|
4281
|
-
"type": "function",
|
|
4282
|
-
"name": "hasher2",
|
|
4283
|
-
"inputs": [],
|
|
4284
|
-
"outputs": [
|
|
4285
|
-
{
|
|
4286
|
-
"name": "",
|
|
4287
|
-
"type": "address",
|
|
4288
|
-
"internalType": "contract IPoseidon2"
|
|
4289
|
-
}
|
|
4290
|
-
],
|
|
4291
|
-
"stateMutability": "view"
|
|
4292
|
-
},
|
|
4293
|
-
{
|
|
4294
|
-
"type": "function",
|
|
4295
|
-
"name": "hasher3",
|
|
4296
|
-
"inputs": [],
|
|
4297
|
-
"outputs": [
|
|
4298
|
-
{
|
|
4299
|
-
"name": "",
|
|
4300
|
-
"type": "address",
|
|
4301
|
-
"internalType": "contract IPoseidon3"
|
|
4302
|
-
}
|
|
4303
|
-
],
|
|
4304
|
-
"stateMutability": "view"
|
|
4305
|
-
},
|
|
4306
4610
|
{
|
|
4307
4611
|
"type": "function",
|
|
4308
4612
|
"name": "hypePool",
|
|
@@ -4321,7 +4625,7 @@ export const privateRouterAbi = [
|
|
|
4321
4625
|
"name": "isPool",
|
|
4322
4626
|
"inputs": [
|
|
4323
4627
|
{
|
|
4324
|
-
"name": "",
|
|
4628
|
+
"name": "pool",
|
|
4325
4629
|
"type": "address",
|
|
4326
4630
|
"internalType": "address"
|
|
4327
4631
|
}
|
|
@@ -4335,25 +4639,12 @@ export const privateRouterAbi = [
|
|
|
4335
4639
|
],
|
|
4336
4640
|
"stateMutability": "view"
|
|
4337
4641
|
},
|
|
4338
|
-
{
|
|
4339
|
-
"type": "function",
|
|
4340
|
-
"name": "legacyFactory",
|
|
4341
|
-
"inputs": [],
|
|
4342
|
-
"outputs": [
|
|
4343
|
-
{
|
|
4344
|
-
"name": "",
|
|
4345
|
-
"type": "address",
|
|
4346
|
-
"internalType": "contract ICloakFactory"
|
|
4347
|
-
}
|
|
4348
|
-
],
|
|
4349
|
-
"stateMutability": "view"
|
|
4350
|
-
},
|
|
4351
4642
|
{
|
|
4352
4643
|
"type": "function",
|
|
4353
4644
|
"name": "pairOf",
|
|
4354
4645
|
"inputs": [
|
|
4355
4646
|
{
|
|
4356
|
-
"name": "",
|
|
4647
|
+
"name": "token",
|
|
4357
4648
|
"type": "address",
|
|
4358
4649
|
"internalType": "address"
|
|
4359
4650
|
}
|
|
@@ -4372,7 +4663,7 @@ export const privateRouterAbi = [
|
|
|
4372
4663
|
"name": "poolOf",
|
|
4373
4664
|
"inputs": [
|
|
4374
4665
|
{
|
|
4375
|
-
"name": "",
|
|
4666
|
+
"name": "token",
|
|
4376
4667
|
"type": "address",
|
|
4377
4668
|
"internalType": "address"
|
|
4378
4669
|
}
|
|
@@ -4522,7 +4813,7 @@ export const privateRouterAbi = [
|
|
|
4522
4813
|
"name": "tokens",
|
|
4523
4814
|
"inputs": [
|
|
4524
4815
|
{
|
|
4525
|
-
"name": "",
|
|
4816
|
+
"name": "i",
|
|
4526
4817
|
"type": "uint256",
|
|
4527
4818
|
"internalType": "uint256"
|
|
4528
4819
|
}
|
|
@@ -4646,6 +4937,19 @@ export const privateRouterAbi = [
|
|
|
4646
4937
|
"outputs": [],
|
|
4647
4938
|
"stateMutability": "nonpayable"
|
|
4648
4939
|
},
|
|
4940
|
+
{
|
|
4941
|
+
"type": "function",
|
|
4942
|
+
"name": "vaults",
|
|
4943
|
+
"inputs": [],
|
|
4944
|
+
"outputs": [
|
|
4945
|
+
{
|
|
4946
|
+
"name": "",
|
|
4947
|
+
"type": "address",
|
|
4948
|
+
"internalType": "contract CloakVaults"
|
|
4949
|
+
}
|
|
4950
|
+
],
|
|
4951
|
+
"stateMutability": "view"
|
|
4952
|
+
},
|
|
4649
4953
|
{
|
|
4650
4954
|
"type": "function",
|
|
4651
4955
|
"name": "whype",
|
|
@@ -4678,31 +4982,6 @@ export const privateRouterAbi = [
|
|
|
4678
4982
|
],
|
|
4679
4983
|
"anonymous": false
|
|
4680
4984
|
},
|
|
4681
|
-
{
|
|
4682
|
-
"type": "event",
|
|
4683
|
-
"name": "PoolCreated",
|
|
4684
|
-
"inputs": [
|
|
4685
|
-
{
|
|
4686
|
-
"name": "token",
|
|
4687
|
-
"type": "address",
|
|
4688
|
-
"indexed": true,
|
|
4689
|
-
"internalType": "address"
|
|
4690
|
-
},
|
|
4691
|
-
{
|
|
4692
|
-
"name": "pool",
|
|
4693
|
-
"type": "address",
|
|
4694
|
-
"indexed": false,
|
|
4695
|
-
"internalType": "address"
|
|
4696
|
-
},
|
|
4697
|
-
{
|
|
4698
|
-
"name": "pair",
|
|
4699
|
-
"type": "address",
|
|
4700
|
-
"indexed": false,
|
|
4701
|
-
"internalType": "address"
|
|
4702
|
-
}
|
|
4703
|
-
],
|
|
4704
|
-
"anonymous": false
|
|
4705
|
-
},
|
|
4706
4985
|
{
|
|
4707
4986
|
"type": "event",
|
|
4708
4987
|
"name": "PrivateSwap",
|
|
@@ -4789,7 +5068,7 @@ export const privateRouterAbi = [
|
|
|
4789
5068
|
},
|
|
4790
5069
|
{
|
|
4791
5070
|
"type": "error",
|
|
4792
|
-
"name": "
|
|
5071
|
+
"name": "NoHypeVault",
|
|
4793
5072
|
"inputs": []
|
|
4794
5073
|
},
|
|
4795
5074
|
{
|
|
@@ -4799,12 +5078,7 @@ export const privateRouterAbi = [
|
|
|
4799
5078
|
},
|
|
4800
5079
|
{
|
|
4801
5080
|
"type": "error",
|
|
4802
|
-
"name": "
|
|
4803
|
-
"inputs": []
|
|
4804
|
-
},
|
|
4805
|
-
{
|
|
4806
|
-
"type": "error",
|
|
4807
|
-
"name": "Reentrancy",
|
|
5081
|
+
"name": "Reentrancy",
|
|
4808
5082
|
"inputs": []
|
|
4809
5083
|
},
|
|
4810
5084
|
{
|
|
@@ -5546,9 +5820,14 @@ export const cloakMigratorAbi = [
|
|
|
5546
5820
|
"type": "constructor",
|
|
5547
5821
|
"inputs": [
|
|
5548
5822
|
{
|
|
5549
|
-
"name": "
|
|
5550
|
-
"type": "address",
|
|
5551
|
-
"internalType": "contract ILegacyRouter"
|
|
5823
|
+
"name": "legacyRouters_",
|
|
5824
|
+
"type": "address[]",
|
|
5825
|
+
"internalType": "contract ILegacyRouter[]"
|
|
5826
|
+
},
|
|
5827
|
+
{
|
|
5828
|
+
"name": "legacyPools_",
|
|
5829
|
+
"type": "address[]",
|
|
5830
|
+
"internalType": "address[]"
|
|
5552
5831
|
},
|
|
5553
5832
|
{
|
|
5554
5833
|
"name": "router_",
|
|
@@ -5560,13 +5839,51 @@ export const cloakMigratorAbi = [
|
|
|
5560
5839
|
},
|
|
5561
5840
|
{
|
|
5562
5841
|
"type": "function",
|
|
5563
|
-
"name": "
|
|
5564
|
-
"inputs": [
|
|
5842
|
+
"name": "isLegacyPool",
|
|
5843
|
+
"inputs": [
|
|
5844
|
+
{
|
|
5845
|
+
"name": "",
|
|
5846
|
+
"type": "address",
|
|
5847
|
+
"internalType": "address"
|
|
5848
|
+
}
|
|
5849
|
+
],
|
|
5565
5850
|
"outputs": [
|
|
5566
5851
|
{
|
|
5567
5852
|
"name": "",
|
|
5853
|
+
"type": "bool",
|
|
5854
|
+
"internalType": "bool"
|
|
5855
|
+
}
|
|
5856
|
+
],
|
|
5857
|
+
"stateMutability": "view"
|
|
5858
|
+
},
|
|
5859
|
+
{
|
|
5860
|
+
"type": "function",
|
|
5861
|
+
"name": "isOldPool",
|
|
5862
|
+
"inputs": [
|
|
5863
|
+
{
|
|
5864
|
+
"name": "pool",
|
|
5568
5865
|
"type": "address",
|
|
5569
|
-
"internalType": "
|
|
5866
|
+
"internalType": "address"
|
|
5867
|
+
}
|
|
5868
|
+
],
|
|
5869
|
+
"outputs": [
|
|
5870
|
+
{
|
|
5871
|
+
"name": "",
|
|
5872
|
+
"type": "bool",
|
|
5873
|
+
"internalType": "bool"
|
|
5874
|
+
}
|
|
5875
|
+
],
|
|
5876
|
+
"stateMutability": "view"
|
|
5877
|
+
},
|
|
5878
|
+
{
|
|
5879
|
+
"type": "function",
|
|
5880
|
+
"name": "legacyRouters",
|
|
5881
|
+
"inputs": [],
|
|
5882
|
+
"outputs": [
|
|
5883
|
+
{
|
|
5884
|
+
"name": "",
|
|
5885
|
+
"type": "address[]",
|
|
5886
|
+
"internalType": "contract ILegacyRouter[]"
|
|
5570
5887
|
}
|
|
5571
5888
|
],
|
|
5572
5889
|
"stateMutability": "view"
|
|
@@ -5816,287 +6133,1097 @@ export const cloakFactoryListAbi = [
|
|
|
5816
6133
|
"stateMutability": "view"
|
|
5817
6134
|
}
|
|
5818
6135
|
];
|
|
5819
|
-
export const
|
|
5820
|
-
{
|
|
5821
|
-
"type": "receive",
|
|
5822
|
-
"stateMutability": "payable"
|
|
5823
|
-
},
|
|
6136
|
+
export const cloakVaultsAbi = [
|
|
5824
6137
|
{
|
|
5825
|
-
"type": "
|
|
5826
|
-
"name": "allowance",
|
|
6138
|
+
"type": "constructor",
|
|
5827
6139
|
"inputs": [
|
|
5828
6140
|
{
|
|
5829
|
-
"name": "",
|
|
6141
|
+
"name": "config_",
|
|
5830
6142
|
"type": "address",
|
|
5831
|
-
"internalType": "
|
|
6143
|
+
"internalType": "contract CloakConfig"
|
|
5832
6144
|
},
|
|
5833
6145
|
{
|
|
5834
|
-
"name": "",
|
|
6146
|
+
"name": "hasher2_",
|
|
5835
6147
|
"type": "address",
|
|
5836
|
-
"internalType": "
|
|
6148
|
+
"internalType": "contract IPoseidon2"
|
|
6149
|
+
},
|
|
6150
|
+
{
|
|
6151
|
+
"name": "hasher3_",
|
|
6152
|
+
"type": "address",
|
|
6153
|
+
"internalType": "contract IPoseidon3"
|
|
5837
6154
|
}
|
|
5838
6155
|
],
|
|
6156
|
+
"stateMutability": "nonpayable"
|
|
6157
|
+
},
|
|
6158
|
+
{
|
|
6159
|
+
"type": "function",
|
|
6160
|
+
"name": "config",
|
|
6161
|
+
"inputs": [],
|
|
5839
6162
|
"outputs": [
|
|
5840
6163
|
{
|
|
5841
6164
|
"name": "",
|
|
5842
|
-
"type": "
|
|
5843
|
-
"internalType": "
|
|
6165
|
+
"type": "address",
|
|
6166
|
+
"internalType": "contract CloakConfig"
|
|
5844
6167
|
}
|
|
5845
6168
|
],
|
|
5846
6169
|
"stateMutability": "view"
|
|
5847
6170
|
},
|
|
5848
6171
|
{
|
|
5849
6172
|
"type": "function",
|
|
5850
|
-
"name": "
|
|
6173
|
+
"name": "createAssetPool",
|
|
5851
6174
|
"inputs": [
|
|
5852
6175
|
{
|
|
5853
|
-
"name": "
|
|
6176
|
+
"name": "token",
|
|
5854
6177
|
"type": "address",
|
|
5855
6178
|
"internalType": "address"
|
|
5856
|
-
},
|
|
5857
|
-
{
|
|
5858
|
-
"name": "value",
|
|
5859
|
-
"type": "uint256",
|
|
5860
|
-
"internalType": "uint256"
|
|
5861
6179
|
}
|
|
5862
6180
|
],
|
|
5863
6181
|
"outputs": [
|
|
5864
6182
|
{
|
|
5865
|
-
"name": "",
|
|
5866
|
-
"type": "
|
|
5867
|
-
"internalType": "
|
|
6183
|
+
"name": "pool",
|
|
6184
|
+
"type": "address",
|
|
6185
|
+
"internalType": "contract ShieldedPool"
|
|
5868
6186
|
}
|
|
5869
6187
|
],
|
|
5870
6188
|
"stateMutability": "nonpayable"
|
|
5871
6189
|
},
|
|
5872
6190
|
{
|
|
5873
6191
|
"type": "function",
|
|
5874
|
-
"name": "
|
|
6192
|
+
"name": "createPool",
|
|
5875
6193
|
"inputs": [
|
|
5876
6194
|
{
|
|
5877
|
-
"name": "",
|
|
6195
|
+
"name": "factory",
|
|
5878
6196
|
"type": "address",
|
|
5879
|
-
"internalType": "
|
|
6197
|
+
"internalType": "contract ILaunchFactory"
|
|
6198
|
+
},
|
|
6199
|
+
{
|
|
6200
|
+
"name": "launchIndex",
|
|
6201
|
+
"type": "uint256",
|
|
6202
|
+
"internalType": "uint256"
|
|
5880
6203
|
}
|
|
5881
6204
|
],
|
|
5882
6205
|
"outputs": [
|
|
5883
6206
|
{
|
|
5884
|
-
"name": "",
|
|
5885
|
-
"type": "
|
|
5886
|
-
"internalType": "
|
|
6207
|
+
"name": "pool",
|
|
6208
|
+
"type": "address",
|
|
6209
|
+
"internalType": "contract ShieldedPool"
|
|
5887
6210
|
}
|
|
5888
6211
|
],
|
|
5889
|
-
"stateMutability": "
|
|
6212
|
+
"stateMutability": "nonpayable"
|
|
5890
6213
|
},
|
|
5891
6214
|
{
|
|
5892
6215
|
"type": "function",
|
|
5893
|
-
"name": "
|
|
6216
|
+
"name": "hasher2",
|
|
5894
6217
|
"inputs": [],
|
|
5895
6218
|
"outputs": [
|
|
5896
6219
|
{
|
|
5897
6220
|
"name": "",
|
|
5898
|
-
"type": "
|
|
5899
|
-
"internalType": "
|
|
6221
|
+
"type": "address",
|
|
6222
|
+
"internalType": "contract IPoseidon2"
|
|
5900
6223
|
}
|
|
5901
6224
|
],
|
|
5902
6225
|
"stateMutability": "view"
|
|
5903
6226
|
},
|
|
5904
6227
|
{
|
|
5905
6228
|
"type": "function",
|
|
5906
|
-
"name": "
|
|
5907
|
-
"inputs": [],
|
|
5908
|
-
"outputs": [],
|
|
5909
|
-
"stateMutability": "payable"
|
|
5910
|
-
},
|
|
5911
|
-
{
|
|
5912
|
-
"type": "function",
|
|
5913
|
-
"name": "name",
|
|
6229
|
+
"name": "hasher3",
|
|
5914
6230
|
"inputs": [],
|
|
5915
6231
|
"outputs": [
|
|
5916
6232
|
{
|
|
5917
6233
|
"name": "",
|
|
5918
|
-
"type": "
|
|
5919
|
-
"internalType": "
|
|
6234
|
+
"type": "address",
|
|
6235
|
+
"internalType": "contract IPoseidon3"
|
|
5920
6236
|
}
|
|
5921
6237
|
],
|
|
5922
6238
|
"stateMutability": "view"
|
|
5923
6239
|
},
|
|
5924
6240
|
{
|
|
5925
6241
|
"type": "function",
|
|
5926
|
-
"name": "
|
|
5927
|
-
"inputs": [
|
|
5928
|
-
"outputs": [
|
|
6242
|
+
"name": "isPool",
|
|
6243
|
+
"inputs": [
|
|
5929
6244
|
{
|
|
5930
6245
|
"name": "",
|
|
5931
|
-
"type": "
|
|
5932
|
-
"internalType": "
|
|
6246
|
+
"type": "address",
|
|
6247
|
+
"internalType": "address"
|
|
5933
6248
|
}
|
|
5934
6249
|
],
|
|
5935
|
-
"stateMutability": "view"
|
|
5936
|
-
},
|
|
5937
|
-
{
|
|
5938
|
-
"type": "function",
|
|
5939
|
-
"name": "totalSupply",
|
|
5940
|
-
"inputs": [],
|
|
5941
6250
|
"outputs": [
|
|
5942
6251
|
{
|
|
5943
6252
|
"name": "",
|
|
5944
|
-
"type": "
|
|
5945
|
-
"internalType": "
|
|
6253
|
+
"type": "bool",
|
|
6254
|
+
"internalType": "bool"
|
|
5946
6255
|
}
|
|
5947
6256
|
],
|
|
5948
6257
|
"stateMutability": "view"
|
|
5949
6258
|
},
|
|
5950
6259
|
{
|
|
5951
6260
|
"type": "function",
|
|
5952
|
-
"name": "
|
|
6261
|
+
"name": "pairOf",
|
|
5953
6262
|
"inputs": [
|
|
5954
6263
|
{
|
|
5955
|
-
"name": "
|
|
6264
|
+
"name": "",
|
|
5956
6265
|
"type": "address",
|
|
5957
6266
|
"internalType": "address"
|
|
5958
|
-
},
|
|
5959
|
-
{
|
|
5960
|
-
"name": "value",
|
|
5961
|
-
"type": "uint256",
|
|
5962
|
-
"internalType": "uint256"
|
|
5963
6267
|
}
|
|
5964
6268
|
],
|
|
5965
6269
|
"outputs": [
|
|
5966
6270
|
{
|
|
5967
6271
|
"name": "",
|
|
5968
|
-
"type": "
|
|
5969
|
-
"internalType": "
|
|
6272
|
+
"type": "address",
|
|
6273
|
+
"internalType": "contract CloakPair"
|
|
5970
6274
|
}
|
|
5971
6275
|
],
|
|
5972
|
-
"stateMutability": "
|
|
6276
|
+
"stateMutability": "view"
|
|
5973
6277
|
},
|
|
5974
6278
|
{
|
|
5975
6279
|
"type": "function",
|
|
5976
|
-
"name": "
|
|
6280
|
+
"name": "poolOf",
|
|
5977
6281
|
"inputs": [
|
|
5978
6282
|
{
|
|
5979
|
-
"name": "
|
|
5980
|
-
"type": "address",
|
|
5981
|
-
"internalType": "address"
|
|
5982
|
-
},
|
|
5983
|
-
{
|
|
5984
|
-
"name": "to",
|
|
6283
|
+
"name": "",
|
|
5985
6284
|
"type": "address",
|
|
5986
6285
|
"internalType": "address"
|
|
5987
|
-
},
|
|
5988
|
-
{
|
|
5989
|
-
"name": "value",
|
|
5990
|
-
"type": "uint256",
|
|
5991
|
-
"internalType": "uint256"
|
|
5992
6286
|
}
|
|
5993
6287
|
],
|
|
5994
6288
|
"outputs": [
|
|
5995
6289
|
{
|
|
5996
6290
|
"name": "",
|
|
5997
|
-
"type": "
|
|
5998
|
-
"internalType": "
|
|
6291
|
+
"type": "address",
|
|
6292
|
+
"internalType": "contract ShieldedPool"
|
|
5999
6293
|
}
|
|
6000
6294
|
],
|
|
6001
|
-
"stateMutability": "
|
|
6295
|
+
"stateMutability": "view"
|
|
6002
6296
|
},
|
|
6003
6297
|
{
|
|
6004
6298
|
"type": "function",
|
|
6005
|
-
"name": "
|
|
6299
|
+
"name": "tokens",
|
|
6006
6300
|
"inputs": [
|
|
6007
6301
|
{
|
|
6008
|
-
"name": "
|
|
6302
|
+
"name": "",
|
|
6009
6303
|
"type": "uint256",
|
|
6010
6304
|
"internalType": "uint256"
|
|
6011
6305
|
}
|
|
6012
6306
|
],
|
|
6013
|
-
"outputs": [
|
|
6014
|
-
"stateMutability": "nonpayable"
|
|
6015
|
-
},
|
|
6016
|
-
{
|
|
6017
|
-
"type": "event",
|
|
6018
|
-
"name": "Approval",
|
|
6019
|
-
"inputs": [
|
|
6020
|
-
{
|
|
6021
|
-
"name": "owner",
|
|
6022
|
-
"type": "address",
|
|
6023
|
-
"indexed": true,
|
|
6024
|
-
"internalType": "address"
|
|
6025
|
-
},
|
|
6307
|
+
"outputs": [
|
|
6026
6308
|
{
|
|
6027
|
-
"name": "
|
|
6309
|
+
"name": "",
|
|
6028
6310
|
"type": "address",
|
|
6029
|
-
"indexed": true,
|
|
6030
6311
|
"internalType": "address"
|
|
6031
|
-
},
|
|
6032
|
-
{
|
|
6033
|
-
"name": "value",
|
|
6034
|
-
"type": "uint256",
|
|
6035
|
-
"indexed": false,
|
|
6036
|
-
"internalType": "uint256"
|
|
6037
6312
|
}
|
|
6038
6313
|
],
|
|
6039
|
-
"
|
|
6314
|
+
"stateMutability": "view"
|
|
6040
6315
|
},
|
|
6041
6316
|
{
|
|
6042
|
-
"type": "
|
|
6043
|
-
"name": "
|
|
6044
|
-
"inputs": [
|
|
6045
|
-
|
|
6046
|
-
"name": "to",
|
|
6047
|
-
"type": "address",
|
|
6048
|
-
"indexed": true,
|
|
6049
|
-
"internalType": "address"
|
|
6050
|
-
},
|
|
6317
|
+
"type": "function",
|
|
6318
|
+
"name": "tokensCount",
|
|
6319
|
+
"inputs": [],
|
|
6320
|
+
"outputs": [
|
|
6051
6321
|
{
|
|
6052
|
-
"name": "
|
|
6322
|
+
"name": "",
|
|
6053
6323
|
"type": "uint256",
|
|
6054
|
-
"indexed": false,
|
|
6055
6324
|
"internalType": "uint256"
|
|
6056
6325
|
}
|
|
6057
6326
|
],
|
|
6058
|
-
"
|
|
6327
|
+
"stateMutability": "view"
|
|
6059
6328
|
},
|
|
6060
6329
|
{
|
|
6061
6330
|
"type": "event",
|
|
6062
|
-
"name": "
|
|
6331
|
+
"name": "PoolCreated",
|
|
6063
6332
|
"inputs": [
|
|
6064
6333
|
{
|
|
6065
|
-
"name": "
|
|
6334
|
+
"name": "token",
|
|
6066
6335
|
"type": "address",
|
|
6067
6336
|
"indexed": true,
|
|
6068
6337
|
"internalType": "address"
|
|
6069
6338
|
},
|
|
6070
6339
|
{
|
|
6071
|
-
"name": "
|
|
6340
|
+
"name": "pool",
|
|
6072
6341
|
"type": "address",
|
|
6073
|
-
"indexed":
|
|
6342
|
+
"indexed": false,
|
|
6074
6343
|
"internalType": "address"
|
|
6075
6344
|
},
|
|
6076
6345
|
{
|
|
6077
|
-
"name": "
|
|
6078
|
-
"type": "
|
|
6346
|
+
"name": "pair",
|
|
6347
|
+
"type": "address",
|
|
6079
6348
|
"indexed": false,
|
|
6080
|
-
"internalType": "
|
|
6349
|
+
"internalType": "address"
|
|
6081
6350
|
}
|
|
6082
6351
|
],
|
|
6083
6352
|
"anonymous": false
|
|
6084
6353
|
},
|
|
6085
6354
|
{
|
|
6086
|
-
"type": "
|
|
6087
|
-
"name": "
|
|
6088
|
-
"inputs": [
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6355
|
+
"type": "error",
|
|
6356
|
+
"name": "NotApproved",
|
|
6357
|
+
"inputs": []
|
|
6358
|
+
},
|
|
6359
|
+
{
|
|
6360
|
+
"type": "error",
|
|
6361
|
+
"name": "NotLaunched",
|
|
6362
|
+
"inputs": []
|
|
6363
|
+
},
|
|
6364
|
+
{
|
|
6365
|
+
"type": "error",
|
|
6366
|
+
"name": "PoolExists",
|
|
6367
|
+
"inputs": []
|
|
6368
|
+
},
|
|
6369
|
+
{
|
|
6370
|
+
"type": "error",
|
|
6371
|
+
"name": "UnknownFactory",
|
|
6372
|
+
"inputs": []
|
|
6373
|
+
}
|
|
6374
|
+
];
|
|
6375
|
+
export const whypeAbi = [
|
|
6376
|
+
{
|
|
6377
|
+
"type": "receive",
|
|
6378
|
+
"stateMutability": "payable"
|
|
6379
|
+
},
|
|
6380
|
+
{
|
|
6381
|
+
"type": "function",
|
|
6382
|
+
"name": "allowance",
|
|
6383
|
+
"inputs": [
|
|
6384
|
+
{
|
|
6385
|
+
"name": "",
|
|
6386
|
+
"type": "address",
|
|
6387
|
+
"internalType": "address"
|
|
6388
|
+
},
|
|
6389
|
+
{
|
|
6390
|
+
"name": "",
|
|
6391
|
+
"type": "address",
|
|
6392
|
+
"internalType": "address"
|
|
6393
|
+
}
|
|
6394
|
+
],
|
|
6395
|
+
"outputs": [
|
|
6396
|
+
{
|
|
6397
|
+
"name": "",
|
|
6398
|
+
"type": "uint256",
|
|
6399
|
+
"internalType": "uint256"
|
|
6400
|
+
}
|
|
6401
|
+
],
|
|
6402
|
+
"stateMutability": "view"
|
|
6403
|
+
},
|
|
6404
|
+
{
|
|
6405
|
+
"type": "function",
|
|
6406
|
+
"name": "approve",
|
|
6407
|
+
"inputs": [
|
|
6408
|
+
{
|
|
6409
|
+
"name": "spender",
|
|
6410
|
+
"type": "address",
|
|
6411
|
+
"internalType": "address"
|
|
6412
|
+
},
|
|
6413
|
+
{
|
|
6414
|
+
"name": "value",
|
|
6415
|
+
"type": "uint256",
|
|
6416
|
+
"internalType": "uint256"
|
|
6417
|
+
}
|
|
6418
|
+
],
|
|
6419
|
+
"outputs": [
|
|
6420
|
+
{
|
|
6421
|
+
"name": "",
|
|
6422
|
+
"type": "bool",
|
|
6423
|
+
"internalType": "bool"
|
|
6424
|
+
}
|
|
6425
|
+
],
|
|
6426
|
+
"stateMutability": "nonpayable"
|
|
6427
|
+
},
|
|
6428
|
+
{
|
|
6429
|
+
"type": "function",
|
|
6430
|
+
"name": "balanceOf",
|
|
6431
|
+
"inputs": [
|
|
6432
|
+
{
|
|
6433
|
+
"name": "",
|
|
6434
|
+
"type": "address",
|
|
6435
|
+
"internalType": "address"
|
|
6436
|
+
}
|
|
6437
|
+
],
|
|
6438
|
+
"outputs": [
|
|
6439
|
+
{
|
|
6440
|
+
"name": "",
|
|
6441
|
+
"type": "uint256",
|
|
6442
|
+
"internalType": "uint256"
|
|
6443
|
+
}
|
|
6444
|
+
],
|
|
6445
|
+
"stateMutability": "view"
|
|
6446
|
+
},
|
|
6447
|
+
{
|
|
6448
|
+
"type": "function",
|
|
6449
|
+
"name": "decimals",
|
|
6450
|
+
"inputs": [],
|
|
6451
|
+
"outputs": [
|
|
6452
|
+
{
|
|
6453
|
+
"name": "",
|
|
6454
|
+
"type": "uint8",
|
|
6455
|
+
"internalType": "uint8"
|
|
6456
|
+
}
|
|
6457
|
+
],
|
|
6458
|
+
"stateMutability": "view"
|
|
6459
|
+
},
|
|
6460
|
+
{
|
|
6461
|
+
"type": "function",
|
|
6462
|
+
"name": "deposit",
|
|
6463
|
+
"inputs": [],
|
|
6464
|
+
"outputs": [],
|
|
6465
|
+
"stateMutability": "payable"
|
|
6466
|
+
},
|
|
6467
|
+
{
|
|
6468
|
+
"type": "function",
|
|
6469
|
+
"name": "name",
|
|
6470
|
+
"inputs": [],
|
|
6471
|
+
"outputs": [
|
|
6472
|
+
{
|
|
6473
|
+
"name": "",
|
|
6474
|
+
"type": "string",
|
|
6475
|
+
"internalType": "string"
|
|
6476
|
+
}
|
|
6477
|
+
],
|
|
6478
|
+
"stateMutability": "view"
|
|
6479
|
+
},
|
|
6480
|
+
{
|
|
6481
|
+
"type": "function",
|
|
6482
|
+
"name": "symbol",
|
|
6483
|
+
"inputs": [],
|
|
6484
|
+
"outputs": [
|
|
6485
|
+
{
|
|
6486
|
+
"name": "",
|
|
6487
|
+
"type": "string",
|
|
6488
|
+
"internalType": "string"
|
|
6489
|
+
}
|
|
6490
|
+
],
|
|
6491
|
+
"stateMutability": "view"
|
|
6492
|
+
},
|
|
6493
|
+
{
|
|
6494
|
+
"type": "function",
|
|
6495
|
+
"name": "totalSupply",
|
|
6496
|
+
"inputs": [],
|
|
6497
|
+
"outputs": [
|
|
6498
|
+
{
|
|
6499
|
+
"name": "",
|
|
6500
|
+
"type": "uint256",
|
|
6501
|
+
"internalType": "uint256"
|
|
6502
|
+
}
|
|
6503
|
+
],
|
|
6504
|
+
"stateMutability": "view"
|
|
6505
|
+
},
|
|
6506
|
+
{
|
|
6507
|
+
"type": "function",
|
|
6508
|
+
"name": "transfer",
|
|
6509
|
+
"inputs": [
|
|
6510
|
+
{
|
|
6511
|
+
"name": "to",
|
|
6512
|
+
"type": "address",
|
|
6513
|
+
"internalType": "address"
|
|
6514
|
+
},
|
|
6515
|
+
{
|
|
6516
|
+
"name": "value",
|
|
6517
|
+
"type": "uint256",
|
|
6518
|
+
"internalType": "uint256"
|
|
6519
|
+
}
|
|
6520
|
+
],
|
|
6521
|
+
"outputs": [
|
|
6522
|
+
{
|
|
6523
|
+
"name": "",
|
|
6524
|
+
"type": "bool",
|
|
6525
|
+
"internalType": "bool"
|
|
6526
|
+
}
|
|
6527
|
+
],
|
|
6528
|
+
"stateMutability": "nonpayable"
|
|
6529
|
+
},
|
|
6530
|
+
{
|
|
6531
|
+
"type": "function",
|
|
6532
|
+
"name": "transferFrom",
|
|
6533
|
+
"inputs": [
|
|
6534
|
+
{
|
|
6535
|
+
"name": "from",
|
|
6536
|
+
"type": "address",
|
|
6537
|
+
"internalType": "address"
|
|
6538
|
+
},
|
|
6539
|
+
{
|
|
6540
|
+
"name": "to",
|
|
6541
|
+
"type": "address",
|
|
6542
|
+
"internalType": "address"
|
|
6543
|
+
},
|
|
6544
|
+
{
|
|
6545
|
+
"name": "value",
|
|
6546
|
+
"type": "uint256",
|
|
6547
|
+
"internalType": "uint256"
|
|
6548
|
+
}
|
|
6549
|
+
],
|
|
6550
|
+
"outputs": [
|
|
6551
|
+
{
|
|
6552
|
+
"name": "",
|
|
6553
|
+
"type": "bool",
|
|
6554
|
+
"internalType": "bool"
|
|
6555
|
+
}
|
|
6556
|
+
],
|
|
6557
|
+
"stateMutability": "nonpayable"
|
|
6558
|
+
},
|
|
6559
|
+
{
|
|
6560
|
+
"type": "function",
|
|
6561
|
+
"name": "withdraw",
|
|
6562
|
+
"inputs": [
|
|
6563
|
+
{
|
|
6564
|
+
"name": "value",
|
|
6565
|
+
"type": "uint256",
|
|
6566
|
+
"internalType": "uint256"
|
|
6567
|
+
}
|
|
6568
|
+
],
|
|
6569
|
+
"outputs": [],
|
|
6570
|
+
"stateMutability": "nonpayable"
|
|
6571
|
+
},
|
|
6572
|
+
{
|
|
6573
|
+
"type": "event",
|
|
6574
|
+
"name": "Approval",
|
|
6575
|
+
"inputs": [
|
|
6576
|
+
{
|
|
6577
|
+
"name": "owner",
|
|
6578
|
+
"type": "address",
|
|
6579
|
+
"indexed": true,
|
|
6580
|
+
"internalType": "address"
|
|
6581
|
+
},
|
|
6582
|
+
{
|
|
6583
|
+
"name": "spender",
|
|
6584
|
+
"type": "address",
|
|
6585
|
+
"indexed": true,
|
|
6586
|
+
"internalType": "address"
|
|
6587
|
+
},
|
|
6588
|
+
{
|
|
6589
|
+
"name": "value",
|
|
6590
|
+
"type": "uint256",
|
|
6591
|
+
"indexed": false,
|
|
6592
|
+
"internalType": "uint256"
|
|
6593
|
+
}
|
|
6594
|
+
],
|
|
6595
|
+
"anonymous": false
|
|
6596
|
+
},
|
|
6597
|
+
{
|
|
6598
|
+
"type": "event",
|
|
6599
|
+
"name": "Deposit",
|
|
6600
|
+
"inputs": [
|
|
6601
|
+
{
|
|
6602
|
+
"name": "to",
|
|
6603
|
+
"type": "address",
|
|
6604
|
+
"indexed": true,
|
|
6605
|
+
"internalType": "address"
|
|
6606
|
+
},
|
|
6607
|
+
{
|
|
6608
|
+
"name": "value",
|
|
6609
|
+
"type": "uint256",
|
|
6610
|
+
"indexed": false,
|
|
6611
|
+
"internalType": "uint256"
|
|
6612
|
+
}
|
|
6613
|
+
],
|
|
6614
|
+
"anonymous": false
|
|
6615
|
+
},
|
|
6616
|
+
{
|
|
6617
|
+
"type": "event",
|
|
6618
|
+
"name": "Transfer",
|
|
6619
|
+
"inputs": [
|
|
6620
|
+
{
|
|
6621
|
+
"name": "from",
|
|
6622
|
+
"type": "address",
|
|
6623
|
+
"indexed": true,
|
|
6624
|
+
"internalType": "address"
|
|
6625
|
+
},
|
|
6626
|
+
{
|
|
6627
|
+
"name": "to",
|
|
6628
|
+
"type": "address",
|
|
6629
|
+
"indexed": true,
|
|
6630
|
+
"internalType": "address"
|
|
6631
|
+
},
|
|
6632
|
+
{
|
|
6633
|
+
"name": "value",
|
|
6634
|
+
"type": "uint256",
|
|
6635
|
+
"indexed": false,
|
|
6636
|
+
"internalType": "uint256"
|
|
6637
|
+
}
|
|
6638
|
+
],
|
|
6639
|
+
"anonymous": false
|
|
6640
|
+
},
|
|
6641
|
+
{
|
|
6642
|
+
"type": "event",
|
|
6643
|
+
"name": "Withdrawal",
|
|
6644
|
+
"inputs": [
|
|
6645
|
+
{
|
|
6646
|
+
"name": "from",
|
|
6647
|
+
"type": "address",
|
|
6648
|
+
"indexed": true,
|
|
6649
|
+
"internalType": "address"
|
|
6650
|
+
},
|
|
6651
|
+
{
|
|
6652
|
+
"name": "value",
|
|
6653
|
+
"type": "uint256",
|
|
6654
|
+
"indexed": false,
|
|
6655
|
+
"internalType": "uint256"
|
|
6656
|
+
}
|
|
6657
|
+
],
|
|
6658
|
+
"anonymous": false
|
|
6659
|
+
}
|
|
6660
|
+
];
|
|
6661
|
+
export const cloakSeederAbi = [
|
|
6662
|
+
{
|
|
6663
|
+
"type": "constructor",
|
|
6664
|
+
"inputs": [
|
|
6665
|
+
{
|
|
6666
|
+
"name": "uniFactory_",
|
|
6667
|
+
"type": "address",
|
|
6668
|
+
"internalType": "contract IUniswapV2Factory"
|
|
6669
|
+
},
|
|
6670
|
+
{
|
|
6671
|
+
"name": "weth_",
|
|
6672
|
+
"type": "address",
|
|
6673
|
+
"internalType": "contract IWETH"
|
|
6674
|
+
},
|
|
6675
|
+
{
|
|
6676
|
+
"name": "feeNum_",
|
|
6677
|
+
"type": "uint256",
|
|
6678
|
+
"internalType": "uint256"
|
|
6679
|
+
}
|
|
6680
|
+
],
|
|
6681
|
+
"stateMutability": "nonpayable"
|
|
6682
|
+
},
|
|
6683
|
+
{
|
|
6684
|
+
"type": "receive",
|
|
6685
|
+
"stateMutability": "payable"
|
|
6686
|
+
},
|
|
6687
|
+
{
|
|
6688
|
+
"type": "function",
|
|
6689
|
+
"name": "DEAD",
|
|
6690
|
+
"inputs": [],
|
|
6691
|
+
"outputs": [
|
|
6692
|
+
{
|
|
6693
|
+
"name": "",
|
|
6694
|
+
"type": "address",
|
|
6695
|
+
"internalType": "address"
|
|
6696
|
+
}
|
|
6697
|
+
],
|
|
6698
|
+
"stateMutability": "view"
|
|
6699
|
+
},
|
|
6700
|
+
{
|
|
6701
|
+
"type": "function",
|
|
6702
|
+
"name": "V2_GAS",
|
|
6703
|
+
"inputs": [],
|
|
6704
|
+
"outputs": [
|
|
6705
|
+
{
|
|
6706
|
+
"name": "",
|
|
6707
|
+
"type": "uint256",
|
|
6708
|
+
"internalType": "uint256"
|
|
6709
|
+
}
|
|
6710
|
+
],
|
|
6711
|
+
"stateMutability": "view"
|
|
6712
|
+
},
|
|
6713
|
+
{
|
|
6714
|
+
"type": "function",
|
|
6715
|
+
"name": "feeNum",
|
|
6716
|
+
"inputs": [],
|
|
6717
|
+
"outputs": [
|
|
6718
|
+
{
|
|
6719
|
+
"name": "",
|
|
6720
|
+
"type": "uint256",
|
|
6721
|
+
"internalType": "uint256"
|
|
6722
|
+
}
|
|
6723
|
+
],
|
|
6724
|
+
"stateMutability": "view"
|
|
6725
|
+
},
|
|
6726
|
+
{
|
|
6727
|
+
"type": "function",
|
|
6728
|
+
"name": "seed",
|
|
6729
|
+
"inputs": [
|
|
6730
|
+
{
|
|
6731
|
+
"name": "token",
|
|
6732
|
+
"type": "address",
|
|
6733
|
+
"internalType": "address"
|
|
6734
|
+
},
|
|
6735
|
+
{
|
|
6736
|
+
"name": "tokenAmount",
|
|
6737
|
+
"type": "uint256",
|
|
6738
|
+
"internalType": "uint256"
|
|
6739
|
+
},
|
|
6740
|
+
{
|
|
6741
|
+
"name": "price",
|
|
6742
|
+
"type": "uint256",
|
|
6743
|
+
"internalType": "uint256"
|
|
6744
|
+
},
|
|
6745
|
+
{
|
|
6746
|
+
"name": "lpTo",
|
|
6747
|
+
"type": "address",
|
|
6748
|
+
"internalType": "address"
|
|
6749
|
+
}
|
|
6750
|
+
],
|
|
6751
|
+
"outputs": [
|
|
6752
|
+
{
|
|
6753
|
+
"name": "market",
|
|
6754
|
+
"type": "address",
|
|
6755
|
+
"internalType": "address"
|
|
6756
|
+
},
|
|
6757
|
+
{
|
|
6758
|
+
"name": "uniPair",
|
|
6759
|
+
"type": "address",
|
|
6760
|
+
"internalType": "address"
|
|
6761
|
+
},
|
|
6762
|
+
{
|
|
6763
|
+
"name": "shares",
|
|
6764
|
+
"type": "uint256",
|
|
6765
|
+
"internalType": "uint256"
|
|
6766
|
+
},
|
|
6767
|
+
{
|
|
6768
|
+
"name": "hypeUsed",
|
|
6769
|
+
"type": "uint256",
|
|
6770
|
+
"internalType": "uint256"
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
6773
|
+
"name": "tokensUsed",
|
|
6774
|
+
"type": "uint256",
|
|
6775
|
+
"internalType": "uint256"
|
|
6776
|
+
}
|
|
6777
|
+
],
|
|
6778
|
+
"stateMutability": "payable"
|
|
6779
|
+
},
|
|
6780
|
+
{
|
|
6781
|
+
"type": "function",
|
|
6782
|
+
"name": "seedV2",
|
|
6783
|
+
"inputs": [
|
|
6784
|
+
{
|
|
6785
|
+
"name": "token",
|
|
6786
|
+
"type": "address",
|
|
6787
|
+
"internalType": "address"
|
|
6788
|
+
},
|
|
6789
|
+
{
|
|
6790
|
+
"name": "maxTokens",
|
|
6791
|
+
"type": "uint256",
|
|
6792
|
+
"internalType": "uint256"
|
|
6793
|
+
},
|
|
6794
|
+
{
|
|
6795
|
+
"name": "price",
|
|
6796
|
+
"type": "uint256",
|
|
6797
|
+
"internalType": "uint256"
|
|
6798
|
+
},
|
|
6799
|
+
{
|
|
6800
|
+
"name": "lpTo",
|
|
6801
|
+
"type": "address",
|
|
6802
|
+
"internalType": "address"
|
|
6803
|
+
}
|
|
6804
|
+
],
|
|
6805
|
+
"outputs": [
|
|
6806
|
+
{
|
|
6807
|
+
"name": "market",
|
|
6808
|
+
"type": "address",
|
|
6809
|
+
"internalType": "address"
|
|
6810
|
+
},
|
|
6811
|
+
{
|
|
6812
|
+
"name": "uniPair",
|
|
6813
|
+
"type": "address",
|
|
6814
|
+
"internalType": "address"
|
|
6815
|
+
},
|
|
6816
|
+
{
|
|
6817
|
+
"name": "shares",
|
|
6818
|
+
"type": "uint256",
|
|
6819
|
+
"internalType": "uint256"
|
|
6820
|
+
},
|
|
6821
|
+
{
|
|
6822
|
+
"name": "hypeUsed",
|
|
6823
|
+
"type": "uint256",
|
|
6824
|
+
"internalType": "uint256"
|
|
6825
|
+
},
|
|
6826
|
+
{
|
|
6827
|
+
"name": "tokensUsed",
|
|
6828
|
+
"type": "uint256",
|
|
6829
|
+
"internalType": "uint256"
|
|
6830
|
+
}
|
|
6831
|
+
],
|
|
6832
|
+
"stateMutability": "payable"
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
"type": "function",
|
|
6836
|
+
"name": "uniFactory",
|
|
6837
|
+
"inputs": [],
|
|
6838
|
+
"outputs": [
|
|
6839
|
+
{
|
|
6840
|
+
"name": "",
|
|
6841
|
+
"type": "address",
|
|
6842
|
+
"internalType": "contract IUniswapV2Factory"
|
|
6843
|
+
}
|
|
6844
|
+
],
|
|
6845
|
+
"stateMutability": "view"
|
|
6846
|
+
},
|
|
6847
|
+
{
|
|
6848
|
+
"type": "function",
|
|
6849
|
+
"name": "weth",
|
|
6850
|
+
"inputs": [],
|
|
6851
|
+
"outputs": [
|
|
6852
|
+
{
|
|
6853
|
+
"name": "",
|
|
6854
|
+
"type": "address",
|
|
6855
|
+
"internalType": "contract IWETH"
|
|
6856
|
+
}
|
|
6857
|
+
],
|
|
6858
|
+
"stateMutability": "view"
|
|
6859
|
+
},
|
|
6860
|
+
{
|
|
6861
|
+
"type": "event",
|
|
6862
|
+
"name": "Seeded",
|
|
6863
|
+
"inputs": [
|
|
6864
|
+
{
|
|
6865
|
+
"name": "token",
|
|
6866
|
+
"type": "address",
|
|
6867
|
+
"indexed": true,
|
|
6868
|
+
"internalType": "address"
|
|
6869
|
+
},
|
|
6870
|
+
{
|
|
6871
|
+
"name": "market",
|
|
6872
|
+
"type": "address",
|
|
6873
|
+
"indexed": false,
|
|
6874
|
+
"internalType": "address"
|
|
6875
|
+
},
|
|
6876
|
+
{
|
|
6877
|
+
"name": "uniPair",
|
|
6878
|
+
"type": "address",
|
|
6879
|
+
"indexed": false,
|
|
6880
|
+
"internalType": "address"
|
|
6881
|
+
},
|
|
6882
|
+
{
|
|
6883
|
+
"name": "hype",
|
|
6884
|
+
"type": "uint256",
|
|
6885
|
+
"indexed": false,
|
|
6886
|
+
"internalType": "uint256"
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
"name": "tokens",
|
|
6890
|
+
"type": "uint256",
|
|
6891
|
+
"indexed": false,
|
|
6892
|
+
"internalType": "uint256"
|
|
6893
|
+
},
|
|
6894
|
+
{
|
|
6895
|
+
"name": "shares",
|
|
6896
|
+
"type": "uint256",
|
|
6897
|
+
"indexed": false,
|
|
6898
|
+
"internalType": "uint256"
|
|
6899
|
+
}
|
|
6900
|
+
],
|
|
6901
|
+
"anonymous": false
|
|
6902
|
+
}
|
|
6903
|
+
];
|
|
6904
|
+
export const cloakV2MarketAbi = [
|
|
6905
|
+
{
|
|
6906
|
+
"type": "constructor",
|
|
6907
|
+
"inputs": [
|
|
6908
|
+
{
|
|
6909
|
+
"name": "pair_",
|
|
6910
|
+
"type": "address",
|
|
6911
|
+
"internalType": "contract IUniswapV2Pair"
|
|
6912
|
+
},
|
|
6913
|
+
{
|
|
6914
|
+
"name": "token_",
|
|
6915
|
+
"type": "address",
|
|
6916
|
+
"internalType": "address"
|
|
6917
|
+
},
|
|
6918
|
+
{
|
|
6919
|
+
"name": "weth_",
|
|
6920
|
+
"type": "address",
|
|
6921
|
+
"internalType": "contract IWETH"
|
|
6922
|
+
},
|
|
6923
|
+
{
|
|
6924
|
+
"name": "feeNum_",
|
|
6925
|
+
"type": "uint256",
|
|
6926
|
+
"internalType": "uint256"
|
|
6927
|
+
}
|
|
6928
|
+
],
|
|
6929
|
+
"stateMutability": "nonpayable"
|
|
6930
|
+
},
|
|
6931
|
+
{
|
|
6932
|
+
"type": "receive",
|
|
6933
|
+
"stateMutability": "payable"
|
|
6934
|
+
},
|
|
6935
|
+
{
|
|
6936
|
+
"type": "function",
|
|
6937
|
+
"name": "cumulativeNow",
|
|
6938
|
+
"inputs": [],
|
|
6939
|
+
"outputs": [
|
|
6940
|
+
{
|
|
6941
|
+
"name": "cum",
|
|
6942
|
+
"type": "uint256",
|
|
6943
|
+
"internalType": "uint256"
|
|
6944
|
+
},
|
|
6945
|
+
{
|
|
6946
|
+
"name": "at",
|
|
6947
|
+
"type": "uint64",
|
|
6948
|
+
"internalType": "uint64"
|
|
6949
|
+
}
|
|
6950
|
+
],
|
|
6951
|
+
"stateMutability": "view"
|
|
6952
|
+
},
|
|
6953
|
+
{
|
|
6954
|
+
"type": "function",
|
|
6955
|
+
"name": "feeNum",
|
|
6956
|
+
"inputs": [],
|
|
6957
|
+
"outputs": [
|
|
6958
|
+
{
|
|
6959
|
+
"name": "",
|
|
6960
|
+
"type": "uint256",
|
|
6961
|
+
"internalType": "uint256"
|
|
6962
|
+
}
|
|
6963
|
+
],
|
|
6964
|
+
"stateMutability": "view"
|
|
6965
|
+
},
|
|
6966
|
+
{
|
|
6967
|
+
"type": "function",
|
|
6968
|
+
"name": "getAmountOut",
|
|
6969
|
+
"inputs": [
|
|
6970
|
+
{
|
|
6971
|
+
"name": "amountIn",
|
|
6972
|
+
"type": "uint256",
|
|
6973
|
+
"internalType": "uint256"
|
|
6974
|
+
},
|
|
6975
|
+
{
|
|
6976
|
+
"name": "rIn",
|
|
6977
|
+
"type": "uint256",
|
|
6978
|
+
"internalType": "uint256"
|
|
6979
|
+
},
|
|
6980
|
+
{
|
|
6981
|
+
"name": "rOut",
|
|
6982
|
+
"type": "uint256",
|
|
6983
|
+
"internalType": "uint256"
|
|
6984
|
+
}
|
|
6985
|
+
],
|
|
6986
|
+
"outputs": [
|
|
6987
|
+
{
|
|
6988
|
+
"name": "",
|
|
6989
|
+
"type": "uint256",
|
|
6990
|
+
"internalType": "uint256"
|
|
6991
|
+
}
|
|
6992
|
+
],
|
|
6993
|
+
"stateMutability": "view"
|
|
6994
|
+
},
|
|
6995
|
+
{
|
|
6996
|
+
"type": "function",
|
|
6997
|
+
"name": "lastUpdate",
|
|
6998
|
+
"inputs": [],
|
|
6999
|
+
"outputs": [
|
|
7000
|
+
{
|
|
7001
|
+
"name": "",
|
|
7002
|
+
"type": "uint64",
|
|
7003
|
+
"internalType": "uint64"
|
|
7004
|
+
}
|
|
7005
|
+
],
|
|
7006
|
+
"stateMutability": "view"
|
|
7007
|
+
},
|
|
7008
|
+
{
|
|
7009
|
+
"type": "function",
|
|
7010
|
+
"name": "price",
|
|
7011
|
+
"inputs": [],
|
|
7012
|
+
"outputs": [
|
|
7013
|
+
{
|
|
7014
|
+
"name": "",
|
|
7015
|
+
"type": "uint256",
|
|
7016
|
+
"internalType": "uint256"
|
|
7017
|
+
}
|
|
7018
|
+
],
|
|
7019
|
+
"stateMutability": "view"
|
|
7020
|
+
},
|
|
7021
|
+
{
|
|
7022
|
+
"type": "function",
|
|
7023
|
+
"name": "reserveHype",
|
|
7024
|
+
"inputs": [],
|
|
7025
|
+
"outputs": [
|
|
7026
|
+
{
|
|
7027
|
+
"name": "r",
|
|
7028
|
+
"type": "uint256",
|
|
7029
|
+
"internalType": "uint256"
|
|
7030
|
+
}
|
|
7031
|
+
],
|
|
7032
|
+
"stateMutability": "view"
|
|
7033
|
+
},
|
|
7034
|
+
{
|
|
7035
|
+
"type": "function",
|
|
7036
|
+
"name": "reserveToken",
|
|
7037
|
+
"inputs": [],
|
|
7038
|
+
"outputs": [
|
|
7039
|
+
{
|
|
7040
|
+
"name": "r",
|
|
7041
|
+
"type": "uint256",
|
|
7042
|
+
"internalType": "uint256"
|
|
7043
|
+
}
|
|
7044
|
+
],
|
|
7045
|
+
"stateMutability": "view"
|
|
7046
|
+
},
|
|
7047
|
+
{
|
|
7048
|
+
"type": "function",
|
|
7049
|
+
"name": "reserves",
|
|
7050
|
+
"inputs": [],
|
|
7051
|
+
"outputs": [
|
|
7052
|
+
{
|
|
7053
|
+
"name": "rHype",
|
|
7054
|
+
"type": "uint256",
|
|
7055
|
+
"internalType": "uint256"
|
|
7056
|
+
},
|
|
7057
|
+
{
|
|
7058
|
+
"name": "rToken",
|
|
7059
|
+
"type": "uint256",
|
|
7060
|
+
"internalType": "uint256"
|
|
7061
|
+
},
|
|
7062
|
+
{
|
|
7063
|
+
"name": "last",
|
|
7064
|
+
"type": "uint32",
|
|
7065
|
+
"internalType": "uint32"
|
|
7066
|
+
}
|
|
7067
|
+
],
|
|
7068
|
+
"stateMutability": "view"
|
|
7069
|
+
},
|
|
7070
|
+
{
|
|
7071
|
+
"type": "function",
|
|
7072
|
+
"name": "sharesOf",
|
|
7073
|
+
"inputs": [
|
|
7074
|
+
{
|
|
7075
|
+
"name": "a",
|
|
7076
|
+
"type": "address",
|
|
7077
|
+
"internalType": "address"
|
|
7078
|
+
}
|
|
7079
|
+
],
|
|
7080
|
+
"outputs": [
|
|
7081
|
+
{
|
|
7082
|
+
"name": "",
|
|
7083
|
+
"type": "uint256",
|
|
7084
|
+
"internalType": "uint256"
|
|
7085
|
+
}
|
|
7086
|
+
],
|
|
7087
|
+
"stateMutability": "view"
|
|
7088
|
+
},
|
|
7089
|
+
{
|
|
7090
|
+
"type": "function",
|
|
7091
|
+
"name": "swapExactHypeForTokens",
|
|
7092
|
+
"inputs": [
|
|
7093
|
+
{
|
|
7094
|
+
"name": "minOut",
|
|
7095
|
+
"type": "uint256",
|
|
7096
|
+
"internalType": "uint256"
|
|
7097
|
+
},
|
|
7098
|
+
{
|
|
7099
|
+
"name": "to",
|
|
7100
|
+
"type": "address",
|
|
7101
|
+
"internalType": "address"
|
|
7102
|
+
}
|
|
7103
|
+
],
|
|
7104
|
+
"outputs": [
|
|
7105
|
+
{
|
|
7106
|
+
"name": "out",
|
|
7107
|
+
"type": "uint256",
|
|
7108
|
+
"internalType": "uint256"
|
|
7109
|
+
}
|
|
7110
|
+
],
|
|
7111
|
+
"stateMutability": "payable"
|
|
7112
|
+
},
|
|
7113
|
+
{
|
|
7114
|
+
"type": "function",
|
|
7115
|
+
"name": "swapExactTokensForHype",
|
|
7116
|
+
"inputs": [
|
|
7117
|
+
{
|
|
7118
|
+
"name": "amountIn",
|
|
7119
|
+
"type": "uint256",
|
|
7120
|
+
"internalType": "uint256"
|
|
7121
|
+
},
|
|
7122
|
+
{
|
|
7123
|
+
"name": "minOut",
|
|
7124
|
+
"type": "uint256",
|
|
7125
|
+
"internalType": "uint256"
|
|
7126
|
+
},
|
|
7127
|
+
{
|
|
7128
|
+
"name": "to",
|
|
7129
|
+
"type": "address",
|
|
7130
|
+
"internalType": "address"
|
|
7131
|
+
}
|
|
7132
|
+
],
|
|
7133
|
+
"outputs": [
|
|
7134
|
+
{
|
|
7135
|
+
"name": "out",
|
|
7136
|
+
"type": "uint256",
|
|
7137
|
+
"internalType": "uint256"
|
|
7138
|
+
}
|
|
7139
|
+
],
|
|
7140
|
+
"stateMutability": "nonpayable"
|
|
7141
|
+
},
|
|
7142
|
+
{
|
|
7143
|
+
"type": "function",
|
|
7144
|
+
"name": "token",
|
|
7145
|
+
"inputs": [],
|
|
7146
|
+
"outputs": [
|
|
7147
|
+
{
|
|
7148
|
+
"name": "",
|
|
7149
|
+
"type": "address",
|
|
7150
|
+
"internalType": "address"
|
|
7151
|
+
}
|
|
7152
|
+
],
|
|
7153
|
+
"stateMutability": "view"
|
|
7154
|
+
},
|
|
7155
|
+
{
|
|
7156
|
+
"type": "function",
|
|
7157
|
+
"name": "totalShares",
|
|
7158
|
+
"inputs": [],
|
|
7159
|
+
"outputs": [
|
|
7160
|
+
{
|
|
7161
|
+
"name": "",
|
|
7162
|
+
"type": "uint256",
|
|
7163
|
+
"internalType": "uint256"
|
|
7164
|
+
}
|
|
7165
|
+
],
|
|
7166
|
+
"stateMutability": "view"
|
|
7167
|
+
},
|
|
7168
|
+
{
|
|
7169
|
+
"type": "function",
|
|
7170
|
+
"name": "uniPair",
|
|
7171
|
+
"inputs": [],
|
|
7172
|
+
"outputs": [
|
|
7173
|
+
{
|
|
7174
|
+
"name": "",
|
|
7175
|
+
"type": "address",
|
|
7176
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7177
|
+
}
|
|
7178
|
+
],
|
|
7179
|
+
"stateMutability": "view"
|
|
7180
|
+
},
|
|
7181
|
+
{
|
|
7182
|
+
"type": "function",
|
|
7183
|
+
"name": "weth",
|
|
7184
|
+
"inputs": [],
|
|
7185
|
+
"outputs": [
|
|
7186
|
+
{
|
|
7187
|
+
"name": "",
|
|
7188
|
+
"type": "address",
|
|
7189
|
+
"internalType": "contract IWETH"
|
|
7190
|
+
}
|
|
7191
|
+
],
|
|
7192
|
+
"stateMutability": "view"
|
|
7193
|
+
},
|
|
7194
|
+
{
|
|
7195
|
+
"type": "event",
|
|
7196
|
+
"name": "Swap",
|
|
7197
|
+
"inputs": [
|
|
7198
|
+
{
|
|
7199
|
+
"name": "trader",
|
|
7200
|
+
"type": "address",
|
|
7201
|
+
"indexed": true,
|
|
7202
|
+
"internalType": "address"
|
|
7203
|
+
},
|
|
7204
|
+
{
|
|
7205
|
+
"name": "hypeIn",
|
|
7206
|
+
"type": "bool",
|
|
7207
|
+
"indexed": false,
|
|
7208
|
+
"internalType": "bool"
|
|
7209
|
+
},
|
|
7210
|
+
{
|
|
7211
|
+
"name": "amountIn",
|
|
7212
|
+
"type": "uint256",
|
|
7213
|
+
"indexed": false,
|
|
7214
|
+
"internalType": "uint256"
|
|
7215
|
+
},
|
|
7216
|
+
{
|
|
7217
|
+
"name": "amountOut",
|
|
7218
|
+
"type": "uint256",
|
|
6098
7219
|
"indexed": false,
|
|
6099
7220
|
"internalType": "uint256"
|
|
7221
|
+
},
|
|
7222
|
+
{
|
|
7223
|
+
"name": "to",
|
|
7224
|
+
"type": "address",
|
|
7225
|
+
"indexed": true,
|
|
7226
|
+
"internalType": "address"
|
|
6100
7227
|
}
|
|
6101
7228
|
],
|
|
6102
7229
|
"anonymous": false
|