@cloakely/sdk 0.4.0 → 0.6.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/README.md +14 -8
- package/dist/abis.d.ts +786 -0
- package/dist/abis.js +1016 -0
- package/dist/bytecode.d.ts +5 -2
- package/dist/bytecode.js +1 -1
- package/dist/cloak.d.ts +132 -2
- package/dist/cloak.js +59 -31
- package/dist/deployments.d.ts +10 -0
- package/dist/deployments.js +14 -3
- package/dist/private/client.d.ts +44 -1
- package/dist/private/client.js +129 -2
- package/dist/private/crypto.d.ts +6 -0
- package/dist/private/crypto.js +8 -0
- package/dist/registry.d.ts +2 -0
- package/dist/registry.js +1 -0
- package/package.json +1 -1
package/dist/abis.js
CHANGED
|
@@ -1174,6 +1174,16 @@ export const cloakFactoryAbi = [
|
|
|
1174
1174
|
"name": "vestingDeployer_",
|
|
1175
1175
|
"type": "address",
|
|
1176
1176
|
"internalType": "contract CloakVestingDeployer"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"name": "seeder_",
|
|
1180
|
+
"type": "address",
|
|
1181
|
+
"internalType": "contract IMarketSeeder"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"name": "feeLocker_",
|
|
1185
|
+
"type": "address",
|
|
1186
|
+
"internalType": "contract IFeeLocker"
|
|
1177
1187
|
}
|
|
1178
1188
|
],
|
|
1179
1189
|
"stateMutability": "nonpayable"
|
|
@@ -1328,6 +1338,19 @@ export const cloakFactoryAbi = [
|
|
|
1328
1338
|
],
|
|
1329
1339
|
"stateMutability": "nonpayable"
|
|
1330
1340
|
},
|
|
1341
|
+
{
|
|
1342
|
+
"type": "function",
|
|
1343
|
+
"name": "feeLocker",
|
|
1344
|
+
"inputs": [],
|
|
1345
|
+
"outputs": [
|
|
1346
|
+
{
|
|
1347
|
+
"name": "",
|
|
1348
|
+
"type": "address",
|
|
1349
|
+
"internalType": "contract IFeeLocker"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
"stateMutability": "view"
|
|
1353
|
+
},
|
|
1331
1354
|
{
|
|
1332
1355
|
"type": "function",
|
|
1333
1356
|
"name": "launches",
|
|
@@ -1385,6 +1408,19 @@ export const cloakFactoryAbi = [
|
|
|
1385
1408
|
],
|
|
1386
1409
|
"stateMutability": "view"
|
|
1387
1410
|
},
|
|
1411
|
+
{
|
|
1412
|
+
"type": "function",
|
|
1413
|
+
"name": "seeder",
|
|
1414
|
+
"inputs": [],
|
|
1415
|
+
"outputs": [
|
|
1416
|
+
{
|
|
1417
|
+
"name": "",
|
|
1418
|
+
"type": "address",
|
|
1419
|
+
"internalType": "contract IMarketSeeder"
|
|
1420
|
+
}
|
|
1421
|
+
],
|
|
1422
|
+
"stateMutability": "view"
|
|
1423
|
+
},
|
|
1388
1424
|
{
|
|
1389
1425
|
"type": "function",
|
|
1390
1426
|
"name": "vestingDeployer",
|
|
@@ -1547,10 +1583,24 @@ export const cloakAuctionAbi = [
|
|
|
1547
1583
|
"name": "config_",
|
|
1548
1584
|
"type": "address",
|
|
1549
1585
|
"internalType": "contract CloakConfig"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"name": "seeder_",
|
|
1589
|
+
"type": "address",
|
|
1590
|
+
"internalType": "contract IMarketSeeder"
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "feeLocker_",
|
|
1594
|
+
"type": "address",
|
|
1595
|
+
"internalType": "contract IFeeLocker"
|
|
1550
1596
|
}
|
|
1551
1597
|
],
|
|
1552
1598
|
"stateMutability": "nonpayable"
|
|
1553
1599
|
},
|
|
1600
|
+
{
|
|
1601
|
+
"type": "receive",
|
|
1602
|
+
"stateMutability": "payable"
|
|
1603
|
+
},
|
|
1554
1604
|
{
|
|
1555
1605
|
"type": "function",
|
|
1556
1606
|
"name": "DEAD",
|
|
@@ -1590,6 +1640,19 @@ export const cloakAuctionAbi = [
|
|
|
1590
1640
|
],
|
|
1591
1641
|
"stateMutability": "view"
|
|
1592
1642
|
},
|
|
1643
|
+
{
|
|
1644
|
+
"type": "function",
|
|
1645
|
+
"name": "LOCK_FOREVER_FEES",
|
|
1646
|
+
"inputs": [],
|
|
1647
|
+
"outputs": [
|
|
1648
|
+
{
|
|
1649
|
+
"name": "",
|
|
1650
|
+
"type": "uint64",
|
|
1651
|
+
"internalType": "uint64"
|
|
1652
|
+
}
|
|
1653
|
+
],
|
|
1654
|
+
"stateMutability": "view"
|
|
1655
|
+
},
|
|
1593
1656
|
{
|
|
1594
1657
|
"type": "function",
|
|
1595
1658
|
"name": "MAX_TICKS",
|
|
@@ -1879,6 +1942,19 @@ export const cloakAuctionAbi = [
|
|
|
1879
1942
|
],
|
|
1880
1943
|
"stateMutability": "view"
|
|
1881
1944
|
},
|
|
1945
|
+
{
|
|
1946
|
+
"type": "function",
|
|
1947
|
+
"name": "creatorFees",
|
|
1948
|
+
"inputs": [],
|
|
1949
|
+
"outputs": [
|
|
1950
|
+
{
|
|
1951
|
+
"name": "",
|
|
1952
|
+
"type": "bool",
|
|
1953
|
+
"internalType": "bool"
|
|
1954
|
+
}
|
|
1955
|
+
],
|
|
1956
|
+
"stateMutability": "view"
|
|
1957
|
+
},
|
|
1882
1958
|
{
|
|
1883
1959
|
"type": "function",
|
|
1884
1960
|
"name": "creatorOwed",
|
|
@@ -1963,6 +2039,32 @@ export const cloakAuctionAbi = [
|
|
|
1963
2039
|
],
|
|
1964
2040
|
"stateMutability": "view"
|
|
1965
2041
|
},
|
|
2042
|
+
{
|
|
2043
|
+
"type": "function",
|
|
2044
|
+
"name": "feeLocker",
|
|
2045
|
+
"inputs": [],
|
|
2046
|
+
"outputs": [
|
|
2047
|
+
{
|
|
2048
|
+
"name": "",
|
|
2049
|
+
"type": "address",
|
|
2050
|
+
"internalType": "contract IFeeLocker"
|
|
2051
|
+
}
|
|
2052
|
+
],
|
|
2053
|
+
"stateMutability": "view"
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
"type": "function",
|
|
2057
|
+
"name": "feePosition",
|
|
2058
|
+
"inputs": [],
|
|
2059
|
+
"outputs": [
|
|
2060
|
+
{
|
|
2061
|
+
"name": "",
|
|
2062
|
+
"type": "uint256",
|
|
2063
|
+
"internalType": "uint256"
|
|
2064
|
+
}
|
|
2065
|
+
],
|
|
2066
|
+
"stateMutability": "view"
|
|
2067
|
+
},
|
|
1966
2068
|
{
|
|
1967
2069
|
"type": "function",
|
|
1968
2070
|
"name": "feesOwed",
|
|
@@ -2344,6 +2446,19 @@ export const cloakAuctionAbi = [
|
|
|
2344
2446
|
],
|
|
2345
2447
|
"stateMutability": "view"
|
|
2346
2448
|
},
|
|
2449
|
+
{
|
|
2450
|
+
"type": "function",
|
|
2451
|
+
"name": "seeder",
|
|
2452
|
+
"inputs": [],
|
|
2453
|
+
"outputs": [
|
|
2454
|
+
{
|
|
2455
|
+
"name": "",
|
|
2456
|
+
"type": "address",
|
|
2457
|
+
"internalType": "contract IMarketSeeder"
|
|
2458
|
+
}
|
|
2459
|
+
],
|
|
2460
|
+
"stateMutability": "view"
|
|
2461
|
+
},
|
|
2347
2462
|
{
|
|
2348
2463
|
"type": "function",
|
|
2349
2464
|
"name": "settle",
|
|
@@ -2423,6 +2538,19 @@ export const cloakAuctionAbi = [
|
|
|
2423
2538
|
],
|
|
2424
2539
|
"stateMutability": "view"
|
|
2425
2540
|
},
|
|
2541
|
+
{
|
|
2542
|
+
"type": "function",
|
|
2543
|
+
"name": "uniPair",
|
|
2544
|
+
"inputs": [],
|
|
2545
|
+
"outputs": [
|
|
2546
|
+
{
|
|
2547
|
+
"name": "",
|
|
2548
|
+
"type": "address",
|
|
2549
|
+
"internalType": "address"
|
|
2550
|
+
}
|
|
2551
|
+
],
|
|
2552
|
+
"stateMutability": "view"
|
|
2553
|
+
},
|
|
2426
2554
|
{
|
|
2427
2555
|
"type": "function",
|
|
2428
2556
|
"name": "withdrawProceeds",
|
|
@@ -2530,6 +2658,25 @@ export const cloakAuctionAbi = [
|
|
|
2530
2658
|
],
|
|
2531
2659
|
"anonymous": false
|
|
2532
2660
|
},
|
|
2661
|
+
{
|
|
2662
|
+
"type": "event",
|
|
2663
|
+
"name": "CreatorFeesOn",
|
|
2664
|
+
"inputs": [
|
|
2665
|
+
{
|
|
2666
|
+
"name": "locker",
|
|
2667
|
+
"type": "address",
|
|
2668
|
+
"indexed": false,
|
|
2669
|
+
"internalType": "address"
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
"name": "position",
|
|
2673
|
+
"type": "uint256",
|
|
2674
|
+
"indexed": false,
|
|
2675
|
+
"internalType": "uint256"
|
|
2676
|
+
}
|
|
2677
|
+
],
|
|
2678
|
+
"anonymous": false
|
|
2679
|
+
},
|
|
2533
2680
|
{
|
|
2534
2681
|
"type": "event",
|
|
2535
2682
|
"name": "DustSwept",
|
|
@@ -2784,6 +2931,31 @@ export const cloakAuctionAbi = [
|
|
|
2784
2931
|
}
|
|
2785
2932
|
],
|
|
2786
2933
|
"anonymous": false
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"type": "event",
|
|
2937
|
+
"name": "UniswapMarket",
|
|
2938
|
+
"inputs": [
|
|
2939
|
+
{
|
|
2940
|
+
"name": "uniPair",
|
|
2941
|
+
"type": "address",
|
|
2942
|
+
"indexed": true,
|
|
2943
|
+
"internalType": "address"
|
|
2944
|
+
},
|
|
2945
|
+
{
|
|
2946
|
+
"name": "market",
|
|
2947
|
+
"type": "address",
|
|
2948
|
+
"indexed": false,
|
|
2949
|
+
"internalType": "address"
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"name": "lpShares",
|
|
2953
|
+
"type": "uint256",
|
|
2954
|
+
"indexed": false,
|
|
2955
|
+
"internalType": "uint256"
|
|
2956
|
+
}
|
|
2957
|
+
],
|
|
2958
|
+
"anonymous": false
|
|
2787
2959
|
}
|
|
2788
2960
|
];
|
|
2789
2961
|
export const cloakTokenAbi = [
|
|
@@ -6580,3 +6752,847 @@ export const whypeAbi = [
|
|
|
6580
6752
|
"anonymous": false
|
|
6581
6753
|
}
|
|
6582
6754
|
];
|
|
6755
|
+
export const cloakSeederAbi = [
|
|
6756
|
+
{
|
|
6757
|
+
"type": "constructor",
|
|
6758
|
+
"inputs": [
|
|
6759
|
+
{
|
|
6760
|
+
"name": "uniFactory_",
|
|
6761
|
+
"type": "address",
|
|
6762
|
+
"internalType": "contract IUniswapV2Factory"
|
|
6763
|
+
},
|
|
6764
|
+
{
|
|
6765
|
+
"name": "weth_",
|
|
6766
|
+
"type": "address",
|
|
6767
|
+
"internalType": "contract IWETH"
|
|
6768
|
+
},
|
|
6769
|
+
{
|
|
6770
|
+
"name": "feeNum_",
|
|
6771
|
+
"type": "uint256",
|
|
6772
|
+
"internalType": "uint256"
|
|
6773
|
+
}
|
|
6774
|
+
],
|
|
6775
|
+
"stateMutability": "nonpayable"
|
|
6776
|
+
},
|
|
6777
|
+
{
|
|
6778
|
+
"type": "receive",
|
|
6779
|
+
"stateMutability": "payable"
|
|
6780
|
+
},
|
|
6781
|
+
{
|
|
6782
|
+
"type": "function",
|
|
6783
|
+
"name": "DEAD",
|
|
6784
|
+
"inputs": [],
|
|
6785
|
+
"outputs": [
|
|
6786
|
+
{
|
|
6787
|
+
"name": "",
|
|
6788
|
+
"type": "address",
|
|
6789
|
+
"internalType": "address"
|
|
6790
|
+
}
|
|
6791
|
+
],
|
|
6792
|
+
"stateMutability": "view"
|
|
6793
|
+
},
|
|
6794
|
+
{
|
|
6795
|
+
"type": "function",
|
|
6796
|
+
"name": "V2_GAS",
|
|
6797
|
+
"inputs": [],
|
|
6798
|
+
"outputs": [
|
|
6799
|
+
{
|
|
6800
|
+
"name": "",
|
|
6801
|
+
"type": "uint256",
|
|
6802
|
+
"internalType": "uint256"
|
|
6803
|
+
}
|
|
6804
|
+
],
|
|
6805
|
+
"stateMutability": "view"
|
|
6806
|
+
},
|
|
6807
|
+
{
|
|
6808
|
+
"type": "function",
|
|
6809
|
+
"name": "feeNum",
|
|
6810
|
+
"inputs": [],
|
|
6811
|
+
"outputs": [
|
|
6812
|
+
{
|
|
6813
|
+
"name": "",
|
|
6814
|
+
"type": "uint256",
|
|
6815
|
+
"internalType": "uint256"
|
|
6816
|
+
}
|
|
6817
|
+
],
|
|
6818
|
+
"stateMutability": "view"
|
|
6819
|
+
},
|
|
6820
|
+
{
|
|
6821
|
+
"type": "function",
|
|
6822
|
+
"name": "seed",
|
|
6823
|
+
"inputs": [
|
|
6824
|
+
{
|
|
6825
|
+
"name": "token",
|
|
6826
|
+
"type": "address",
|
|
6827
|
+
"internalType": "address"
|
|
6828
|
+
},
|
|
6829
|
+
{
|
|
6830
|
+
"name": "tokenAmount",
|
|
6831
|
+
"type": "uint256",
|
|
6832
|
+
"internalType": "uint256"
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
"name": "price",
|
|
6836
|
+
"type": "uint256",
|
|
6837
|
+
"internalType": "uint256"
|
|
6838
|
+
},
|
|
6839
|
+
{
|
|
6840
|
+
"name": "lpTo",
|
|
6841
|
+
"type": "address",
|
|
6842
|
+
"internalType": "address"
|
|
6843
|
+
}
|
|
6844
|
+
],
|
|
6845
|
+
"outputs": [
|
|
6846
|
+
{
|
|
6847
|
+
"name": "market",
|
|
6848
|
+
"type": "address",
|
|
6849
|
+
"internalType": "address"
|
|
6850
|
+
},
|
|
6851
|
+
{
|
|
6852
|
+
"name": "uniPair",
|
|
6853
|
+
"type": "address",
|
|
6854
|
+
"internalType": "address"
|
|
6855
|
+
},
|
|
6856
|
+
{
|
|
6857
|
+
"name": "shares",
|
|
6858
|
+
"type": "uint256",
|
|
6859
|
+
"internalType": "uint256"
|
|
6860
|
+
},
|
|
6861
|
+
{
|
|
6862
|
+
"name": "hypeUsed",
|
|
6863
|
+
"type": "uint256",
|
|
6864
|
+
"internalType": "uint256"
|
|
6865
|
+
},
|
|
6866
|
+
{
|
|
6867
|
+
"name": "tokensUsed",
|
|
6868
|
+
"type": "uint256",
|
|
6869
|
+
"internalType": "uint256"
|
|
6870
|
+
}
|
|
6871
|
+
],
|
|
6872
|
+
"stateMutability": "payable"
|
|
6873
|
+
},
|
|
6874
|
+
{
|
|
6875
|
+
"type": "function",
|
|
6876
|
+
"name": "seedV2",
|
|
6877
|
+
"inputs": [
|
|
6878
|
+
{
|
|
6879
|
+
"name": "token",
|
|
6880
|
+
"type": "address",
|
|
6881
|
+
"internalType": "address"
|
|
6882
|
+
},
|
|
6883
|
+
{
|
|
6884
|
+
"name": "maxTokens",
|
|
6885
|
+
"type": "uint256",
|
|
6886
|
+
"internalType": "uint256"
|
|
6887
|
+
},
|
|
6888
|
+
{
|
|
6889
|
+
"name": "price",
|
|
6890
|
+
"type": "uint256",
|
|
6891
|
+
"internalType": "uint256"
|
|
6892
|
+
},
|
|
6893
|
+
{
|
|
6894
|
+
"name": "lpTo",
|
|
6895
|
+
"type": "address",
|
|
6896
|
+
"internalType": "address"
|
|
6897
|
+
}
|
|
6898
|
+
],
|
|
6899
|
+
"outputs": [
|
|
6900
|
+
{
|
|
6901
|
+
"name": "market",
|
|
6902
|
+
"type": "address",
|
|
6903
|
+
"internalType": "address"
|
|
6904
|
+
},
|
|
6905
|
+
{
|
|
6906
|
+
"name": "uniPair",
|
|
6907
|
+
"type": "address",
|
|
6908
|
+
"internalType": "address"
|
|
6909
|
+
},
|
|
6910
|
+
{
|
|
6911
|
+
"name": "shares",
|
|
6912
|
+
"type": "uint256",
|
|
6913
|
+
"internalType": "uint256"
|
|
6914
|
+
},
|
|
6915
|
+
{
|
|
6916
|
+
"name": "hypeUsed",
|
|
6917
|
+
"type": "uint256",
|
|
6918
|
+
"internalType": "uint256"
|
|
6919
|
+
},
|
|
6920
|
+
{
|
|
6921
|
+
"name": "tokensUsed",
|
|
6922
|
+
"type": "uint256",
|
|
6923
|
+
"internalType": "uint256"
|
|
6924
|
+
}
|
|
6925
|
+
],
|
|
6926
|
+
"stateMutability": "payable"
|
|
6927
|
+
},
|
|
6928
|
+
{
|
|
6929
|
+
"type": "function",
|
|
6930
|
+
"name": "uniFactory",
|
|
6931
|
+
"inputs": [],
|
|
6932
|
+
"outputs": [
|
|
6933
|
+
{
|
|
6934
|
+
"name": "",
|
|
6935
|
+
"type": "address",
|
|
6936
|
+
"internalType": "contract IUniswapV2Factory"
|
|
6937
|
+
}
|
|
6938
|
+
],
|
|
6939
|
+
"stateMutability": "view"
|
|
6940
|
+
},
|
|
6941
|
+
{
|
|
6942
|
+
"type": "function",
|
|
6943
|
+
"name": "weth",
|
|
6944
|
+
"inputs": [],
|
|
6945
|
+
"outputs": [
|
|
6946
|
+
{
|
|
6947
|
+
"name": "",
|
|
6948
|
+
"type": "address",
|
|
6949
|
+
"internalType": "contract IWETH"
|
|
6950
|
+
}
|
|
6951
|
+
],
|
|
6952
|
+
"stateMutability": "view"
|
|
6953
|
+
},
|
|
6954
|
+
{
|
|
6955
|
+
"type": "event",
|
|
6956
|
+
"name": "Seeded",
|
|
6957
|
+
"inputs": [
|
|
6958
|
+
{
|
|
6959
|
+
"name": "token",
|
|
6960
|
+
"type": "address",
|
|
6961
|
+
"indexed": true,
|
|
6962
|
+
"internalType": "address"
|
|
6963
|
+
},
|
|
6964
|
+
{
|
|
6965
|
+
"name": "market",
|
|
6966
|
+
"type": "address",
|
|
6967
|
+
"indexed": false,
|
|
6968
|
+
"internalType": "address"
|
|
6969
|
+
},
|
|
6970
|
+
{
|
|
6971
|
+
"name": "uniPair",
|
|
6972
|
+
"type": "address",
|
|
6973
|
+
"indexed": false,
|
|
6974
|
+
"internalType": "address"
|
|
6975
|
+
},
|
|
6976
|
+
{
|
|
6977
|
+
"name": "hype",
|
|
6978
|
+
"type": "uint256",
|
|
6979
|
+
"indexed": false,
|
|
6980
|
+
"internalType": "uint256"
|
|
6981
|
+
},
|
|
6982
|
+
{
|
|
6983
|
+
"name": "tokens",
|
|
6984
|
+
"type": "uint256",
|
|
6985
|
+
"indexed": false,
|
|
6986
|
+
"internalType": "uint256"
|
|
6987
|
+
},
|
|
6988
|
+
{
|
|
6989
|
+
"name": "shares",
|
|
6990
|
+
"type": "uint256",
|
|
6991
|
+
"indexed": false,
|
|
6992
|
+
"internalType": "uint256"
|
|
6993
|
+
}
|
|
6994
|
+
],
|
|
6995
|
+
"anonymous": false
|
|
6996
|
+
}
|
|
6997
|
+
];
|
|
6998
|
+
export const cloakV2MarketAbi = [
|
|
6999
|
+
{
|
|
7000
|
+
"type": "constructor",
|
|
7001
|
+
"inputs": [
|
|
7002
|
+
{
|
|
7003
|
+
"name": "pair_",
|
|
7004
|
+
"type": "address",
|
|
7005
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7006
|
+
},
|
|
7007
|
+
{
|
|
7008
|
+
"name": "token_",
|
|
7009
|
+
"type": "address",
|
|
7010
|
+
"internalType": "address"
|
|
7011
|
+
},
|
|
7012
|
+
{
|
|
7013
|
+
"name": "weth_",
|
|
7014
|
+
"type": "address",
|
|
7015
|
+
"internalType": "contract IWETH"
|
|
7016
|
+
},
|
|
7017
|
+
{
|
|
7018
|
+
"name": "feeNum_",
|
|
7019
|
+
"type": "uint256",
|
|
7020
|
+
"internalType": "uint256"
|
|
7021
|
+
}
|
|
7022
|
+
],
|
|
7023
|
+
"stateMutability": "nonpayable"
|
|
7024
|
+
},
|
|
7025
|
+
{
|
|
7026
|
+
"type": "receive",
|
|
7027
|
+
"stateMutability": "payable"
|
|
7028
|
+
},
|
|
7029
|
+
{
|
|
7030
|
+
"type": "function",
|
|
7031
|
+
"name": "cumulativeNow",
|
|
7032
|
+
"inputs": [],
|
|
7033
|
+
"outputs": [
|
|
7034
|
+
{
|
|
7035
|
+
"name": "cum",
|
|
7036
|
+
"type": "uint256",
|
|
7037
|
+
"internalType": "uint256"
|
|
7038
|
+
},
|
|
7039
|
+
{
|
|
7040
|
+
"name": "at",
|
|
7041
|
+
"type": "uint64",
|
|
7042
|
+
"internalType": "uint64"
|
|
7043
|
+
}
|
|
7044
|
+
],
|
|
7045
|
+
"stateMutability": "view"
|
|
7046
|
+
},
|
|
7047
|
+
{
|
|
7048
|
+
"type": "function",
|
|
7049
|
+
"name": "feeNum",
|
|
7050
|
+
"inputs": [],
|
|
7051
|
+
"outputs": [
|
|
7052
|
+
{
|
|
7053
|
+
"name": "",
|
|
7054
|
+
"type": "uint256",
|
|
7055
|
+
"internalType": "uint256"
|
|
7056
|
+
}
|
|
7057
|
+
],
|
|
7058
|
+
"stateMutability": "view"
|
|
7059
|
+
},
|
|
7060
|
+
{
|
|
7061
|
+
"type": "function",
|
|
7062
|
+
"name": "getAmountOut",
|
|
7063
|
+
"inputs": [
|
|
7064
|
+
{
|
|
7065
|
+
"name": "amountIn",
|
|
7066
|
+
"type": "uint256",
|
|
7067
|
+
"internalType": "uint256"
|
|
7068
|
+
},
|
|
7069
|
+
{
|
|
7070
|
+
"name": "rIn",
|
|
7071
|
+
"type": "uint256",
|
|
7072
|
+
"internalType": "uint256"
|
|
7073
|
+
},
|
|
7074
|
+
{
|
|
7075
|
+
"name": "rOut",
|
|
7076
|
+
"type": "uint256",
|
|
7077
|
+
"internalType": "uint256"
|
|
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": "lastUpdate",
|
|
7092
|
+
"inputs": [],
|
|
7093
|
+
"outputs": [
|
|
7094
|
+
{
|
|
7095
|
+
"name": "",
|
|
7096
|
+
"type": "uint64",
|
|
7097
|
+
"internalType": "uint64"
|
|
7098
|
+
}
|
|
7099
|
+
],
|
|
7100
|
+
"stateMutability": "view"
|
|
7101
|
+
},
|
|
7102
|
+
{
|
|
7103
|
+
"type": "function",
|
|
7104
|
+
"name": "price",
|
|
7105
|
+
"inputs": [],
|
|
7106
|
+
"outputs": [
|
|
7107
|
+
{
|
|
7108
|
+
"name": "",
|
|
7109
|
+
"type": "uint256",
|
|
7110
|
+
"internalType": "uint256"
|
|
7111
|
+
}
|
|
7112
|
+
],
|
|
7113
|
+
"stateMutability": "view"
|
|
7114
|
+
},
|
|
7115
|
+
{
|
|
7116
|
+
"type": "function",
|
|
7117
|
+
"name": "reserveHype",
|
|
7118
|
+
"inputs": [],
|
|
7119
|
+
"outputs": [
|
|
7120
|
+
{
|
|
7121
|
+
"name": "r",
|
|
7122
|
+
"type": "uint256",
|
|
7123
|
+
"internalType": "uint256"
|
|
7124
|
+
}
|
|
7125
|
+
],
|
|
7126
|
+
"stateMutability": "view"
|
|
7127
|
+
},
|
|
7128
|
+
{
|
|
7129
|
+
"type": "function",
|
|
7130
|
+
"name": "reserveToken",
|
|
7131
|
+
"inputs": [],
|
|
7132
|
+
"outputs": [
|
|
7133
|
+
{
|
|
7134
|
+
"name": "r",
|
|
7135
|
+
"type": "uint256",
|
|
7136
|
+
"internalType": "uint256"
|
|
7137
|
+
}
|
|
7138
|
+
],
|
|
7139
|
+
"stateMutability": "view"
|
|
7140
|
+
},
|
|
7141
|
+
{
|
|
7142
|
+
"type": "function",
|
|
7143
|
+
"name": "reserves",
|
|
7144
|
+
"inputs": [],
|
|
7145
|
+
"outputs": [
|
|
7146
|
+
{
|
|
7147
|
+
"name": "rHype",
|
|
7148
|
+
"type": "uint256",
|
|
7149
|
+
"internalType": "uint256"
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
"name": "rToken",
|
|
7153
|
+
"type": "uint256",
|
|
7154
|
+
"internalType": "uint256"
|
|
7155
|
+
},
|
|
7156
|
+
{
|
|
7157
|
+
"name": "last",
|
|
7158
|
+
"type": "uint32",
|
|
7159
|
+
"internalType": "uint32"
|
|
7160
|
+
}
|
|
7161
|
+
],
|
|
7162
|
+
"stateMutability": "view"
|
|
7163
|
+
},
|
|
7164
|
+
{
|
|
7165
|
+
"type": "function",
|
|
7166
|
+
"name": "sharesOf",
|
|
7167
|
+
"inputs": [
|
|
7168
|
+
{
|
|
7169
|
+
"name": "a",
|
|
7170
|
+
"type": "address",
|
|
7171
|
+
"internalType": "address"
|
|
7172
|
+
}
|
|
7173
|
+
],
|
|
7174
|
+
"outputs": [
|
|
7175
|
+
{
|
|
7176
|
+
"name": "",
|
|
7177
|
+
"type": "uint256",
|
|
7178
|
+
"internalType": "uint256"
|
|
7179
|
+
}
|
|
7180
|
+
],
|
|
7181
|
+
"stateMutability": "view"
|
|
7182
|
+
},
|
|
7183
|
+
{
|
|
7184
|
+
"type": "function",
|
|
7185
|
+
"name": "swapExactHypeForTokens",
|
|
7186
|
+
"inputs": [
|
|
7187
|
+
{
|
|
7188
|
+
"name": "minOut",
|
|
7189
|
+
"type": "uint256",
|
|
7190
|
+
"internalType": "uint256"
|
|
7191
|
+
},
|
|
7192
|
+
{
|
|
7193
|
+
"name": "to",
|
|
7194
|
+
"type": "address",
|
|
7195
|
+
"internalType": "address"
|
|
7196
|
+
}
|
|
7197
|
+
],
|
|
7198
|
+
"outputs": [
|
|
7199
|
+
{
|
|
7200
|
+
"name": "out",
|
|
7201
|
+
"type": "uint256",
|
|
7202
|
+
"internalType": "uint256"
|
|
7203
|
+
}
|
|
7204
|
+
],
|
|
7205
|
+
"stateMutability": "payable"
|
|
7206
|
+
},
|
|
7207
|
+
{
|
|
7208
|
+
"type": "function",
|
|
7209
|
+
"name": "swapExactTokensForHype",
|
|
7210
|
+
"inputs": [
|
|
7211
|
+
{
|
|
7212
|
+
"name": "amountIn",
|
|
7213
|
+
"type": "uint256",
|
|
7214
|
+
"internalType": "uint256"
|
|
7215
|
+
},
|
|
7216
|
+
{
|
|
7217
|
+
"name": "minOut",
|
|
7218
|
+
"type": "uint256",
|
|
7219
|
+
"internalType": "uint256"
|
|
7220
|
+
},
|
|
7221
|
+
{
|
|
7222
|
+
"name": "to",
|
|
7223
|
+
"type": "address",
|
|
7224
|
+
"internalType": "address"
|
|
7225
|
+
}
|
|
7226
|
+
],
|
|
7227
|
+
"outputs": [
|
|
7228
|
+
{
|
|
7229
|
+
"name": "out",
|
|
7230
|
+
"type": "uint256",
|
|
7231
|
+
"internalType": "uint256"
|
|
7232
|
+
}
|
|
7233
|
+
],
|
|
7234
|
+
"stateMutability": "nonpayable"
|
|
7235
|
+
},
|
|
7236
|
+
{
|
|
7237
|
+
"type": "function",
|
|
7238
|
+
"name": "token",
|
|
7239
|
+
"inputs": [],
|
|
7240
|
+
"outputs": [
|
|
7241
|
+
{
|
|
7242
|
+
"name": "",
|
|
7243
|
+
"type": "address",
|
|
7244
|
+
"internalType": "address"
|
|
7245
|
+
}
|
|
7246
|
+
],
|
|
7247
|
+
"stateMutability": "view"
|
|
7248
|
+
},
|
|
7249
|
+
{
|
|
7250
|
+
"type": "function",
|
|
7251
|
+
"name": "totalShares",
|
|
7252
|
+
"inputs": [],
|
|
7253
|
+
"outputs": [
|
|
7254
|
+
{
|
|
7255
|
+
"name": "",
|
|
7256
|
+
"type": "uint256",
|
|
7257
|
+
"internalType": "uint256"
|
|
7258
|
+
}
|
|
7259
|
+
],
|
|
7260
|
+
"stateMutability": "view"
|
|
7261
|
+
},
|
|
7262
|
+
{
|
|
7263
|
+
"type": "function",
|
|
7264
|
+
"name": "uniPair",
|
|
7265
|
+
"inputs": [],
|
|
7266
|
+
"outputs": [
|
|
7267
|
+
{
|
|
7268
|
+
"name": "",
|
|
7269
|
+
"type": "address",
|
|
7270
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7271
|
+
}
|
|
7272
|
+
],
|
|
7273
|
+
"stateMutability": "view"
|
|
7274
|
+
},
|
|
7275
|
+
{
|
|
7276
|
+
"type": "function",
|
|
7277
|
+
"name": "weth",
|
|
7278
|
+
"inputs": [],
|
|
7279
|
+
"outputs": [
|
|
7280
|
+
{
|
|
7281
|
+
"name": "",
|
|
7282
|
+
"type": "address",
|
|
7283
|
+
"internalType": "contract IWETH"
|
|
7284
|
+
}
|
|
7285
|
+
],
|
|
7286
|
+
"stateMutability": "view"
|
|
7287
|
+
},
|
|
7288
|
+
{
|
|
7289
|
+
"type": "event",
|
|
7290
|
+
"name": "Swap",
|
|
7291
|
+
"inputs": [
|
|
7292
|
+
{
|
|
7293
|
+
"name": "trader",
|
|
7294
|
+
"type": "address",
|
|
7295
|
+
"indexed": true,
|
|
7296
|
+
"internalType": "address"
|
|
7297
|
+
},
|
|
7298
|
+
{
|
|
7299
|
+
"name": "hypeIn",
|
|
7300
|
+
"type": "bool",
|
|
7301
|
+
"indexed": false,
|
|
7302
|
+
"internalType": "bool"
|
|
7303
|
+
},
|
|
7304
|
+
{
|
|
7305
|
+
"name": "amountIn",
|
|
7306
|
+
"type": "uint256",
|
|
7307
|
+
"indexed": false,
|
|
7308
|
+
"internalType": "uint256"
|
|
7309
|
+
},
|
|
7310
|
+
{
|
|
7311
|
+
"name": "amountOut",
|
|
7312
|
+
"type": "uint256",
|
|
7313
|
+
"indexed": false,
|
|
7314
|
+
"internalType": "uint256"
|
|
7315
|
+
},
|
|
7316
|
+
{
|
|
7317
|
+
"name": "to",
|
|
7318
|
+
"type": "address",
|
|
7319
|
+
"indexed": true,
|
|
7320
|
+
"internalType": "address"
|
|
7321
|
+
}
|
|
7322
|
+
],
|
|
7323
|
+
"anonymous": false
|
|
7324
|
+
}
|
|
7325
|
+
];
|
|
7326
|
+
export const cloakFeeLockerAbi = [
|
|
7327
|
+
{
|
|
7328
|
+
"type": "function",
|
|
7329
|
+
"name": "claim",
|
|
7330
|
+
"inputs": [
|
|
7331
|
+
{
|
|
7332
|
+
"name": "id",
|
|
7333
|
+
"type": "uint256",
|
|
7334
|
+
"internalType": "uint256"
|
|
7335
|
+
}
|
|
7336
|
+
],
|
|
7337
|
+
"outputs": [
|
|
7338
|
+
{
|
|
7339
|
+
"name": "amount0",
|
|
7340
|
+
"type": "uint256",
|
|
7341
|
+
"internalType": "uint256"
|
|
7342
|
+
},
|
|
7343
|
+
{
|
|
7344
|
+
"name": "amount1",
|
|
7345
|
+
"type": "uint256",
|
|
7346
|
+
"internalType": "uint256"
|
|
7347
|
+
}
|
|
7348
|
+
],
|
|
7349
|
+
"stateMutability": "nonpayable"
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
"type": "function",
|
|
7353
|
+
"name": "claimable",
|
|
7354
|
+
"inputs": [
|
|
7355
|
+
{
|
|
7356
|
+
"name": "id",
|
|
7357
|
+
"type": "uint256",
|
|
7358
|
+
"internalType": "uint256"
|
|
7359
|
+
}
|
|
7360
|
+
],
|
|
7361
|
+
"outputs": [
|
|
7362
|
+
{
|
|
7363
|
+
"name": "lp",
|
|
7364
|
+
"type": "uint256",
|
|
7365
|
+
"internalType": "uint256"
|
|
7366
|
+
}
|
|
7367
|
+
],
|
|
7368
|
+
"stateMutability": "view"
|
|
7369
|
+
},
|
|
7370
|
+
{
|
|
7371
|
+
"type": "function",
|
|
7372
|
+
"name": "claimableAmounts",
|
|
7373
|
+
"inputs": [
|
|
7374
|
+
{
|
|
7375
|
+
"name": "id",
|
|
7376
|
+
"type": "uint256",
|
|
7377
|
+
"internalType": "uint256"
|
|
7378
|
+
}
|
|
7379
|
+
],
|
|
7380
|
+
"outputs": [
|
|
7381
|
+
{
|
|
7382
|
+
"name": "amount0",
|
|
7383
|
+
"type": "uint256",
|
|
7384
|
+
"internalType": "uint256"
|
|
7385
|
+
},
|
|
7386
|
+
{
|
|
7387
|
+
"name": "amount1",
|
|
7388
|
+
"type": "uint256",
|
|
7389
|
+
"internalType": "uint256"
|
|
7390
|
+
}
|
|
7391
|
+
],
|
|
7392
|
+
"stateMutability": "view"
|
|
7393
|
+
},
|
|
7394
|
+
{
|
|
7395
|
+
"type": "function",
|
|
7396
|
+
"name": "lockFor",
|
|
7397
|
+
"inputs": [
|
|
7398
|
+
{
|
|
7399
|
+
"name": "pair",
|
|
7400
|
+
"type": "address",
|
|
7401
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7402
|
+
},
|
|
7403
|
+
{
|
|
7404
|
+
"name": "shares",
|
|
7405
|
+
"type": "uint256",
|
|
7406
|
+
"internalType": "uint256"
|
|
7407
|
+
},
|
|
7408
|
+
{
|
|
7409
|
+
"name": "beneficiary",
|
|
7410
|
+
"type": "address",
|
|
7411
|
+
"internalType": "address"
|
|
7412
|
+
}
|
|
7413
|
+
],
|
|
7414
|
+
"outputs": [
|
|
7415
|
+
{
|
|
7416
|
+
"name": "id",
|
|
7417
|
+
"type": "uint256",
|
|
7418
|
+
"internalType": "uint256"
|
|
7419
|
+
}
|
|
7420
|
+
],
|
|
7421
|
+
"stateMutability": "nonpayable"
|
|
7422
|
+
},
|
|
7423
|
+
{
|
|
7424
|
+
"type": "function",
|
|
7425
|
+
"name": "positions",
|
|
7426
|
+
"inputs": [
|
|
7427
|
+
{
|
|
7428
|
+
"name": "id",
|
|
7429
|
+
"type": "uint256",
|
|
7430
|
+
"internalType": "uint256"
|
|
7431
|
+
}
|
|
7432
|
+
],
|
|
7433
|
+
"outputs": [
|
|
7434
|
+
{
|
|
7435
|
+
"name": "",
|
|
7436
|
+
"type": "tuple",
|
|
7437
|
+
"internalType": "struct CloakFeeLocker.Position",
|
|
7438
|
+
"components": [
|
|
7439
|
+
{
|
|
7440
|
+
"name": "pair",
|
|
7441
|
+
"type": "address",
|
|
7442
|
+
"internalType": "contract IUniswapV2Pair"
|
|
7443
|
+
},
|
|
7444
|
+
{
|
|
7445
|
+
"name": "beneficiary",
|
|
7446
|
+
"type": "address",
|
|
7447
|
+
"internalType": "address"
|
|
7448
|
+
},
|
|
7449
|
+
{
|
|
7450
|
+
"name": "shares",
|
|
7451
|
+
"type": "uint256",
|
|
7452
|
+
"internalType": "uint256"
|
|
7453
|
+
},
|
|
7454
|
+
{
|
|
7455
|
+
"name": "locked",
|
|
7456
|
+
"type": "uint256",
|
|
7457
|
+
"internalType": "uint256"
|
|
7458
|
+
}
|
|
7459
|
+
]
|
|
7460
|
+
}
|
|
7461
|
+
],
|
|
7462
|
+
"stateMutability": "view"
|
|
7463
|
+
},
|
|
7464
|
+
{
|
|
7465
|
+
"type": "function",
|
|
7466
|
+
"name": "positionsCount",
|
|
7467
|
+
"inputs": [],
|
|
7468
|
+
"outputs": [
|
|
7469
|
+
{
|
|
7470
|
+
"name": "",
|
|
7471
|
+
"type": "uint256",
|
|
7472
|
+
"internalType": "uint256"
|
|
7473
|
+
}
|
|
7474
|
+
],
|
|
7475
|
+
"stateMutability": "view"
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"type": "function",
|
|
7479
|
+
"name": "setBeneficiary",
|
|
7480
|
+
"inputs": [
|
|
7481
|
+
{
|
|
7482
|
+
"name": "id",
|
|
7483
|
+
"type": "uint256",
|
|
7484
|
+
"internalType": "uint256"
|
|
7485
|
+
},
|
|
7486
|
+
{
|
|
7487
|
+
"name": "to",
|
|
7488
|
+
"type": "address",
|
|
7489
|
+
"internalType": "address"
|
|
7490
|
+
}
|
|
7491
|
+
],
|
|
7492
|
+
"outputs": [],
|
|
7493
|
+
"stateMutability": "nonpayable"
|
|
7494
|
+
},
|
|
7495
|
+
{
|
|
7496
|
+
"type": "event",
|
|
7497
|
+
"name": "BeneficiaryChanged",
|
|
7498
|
+
"inputs": [
|
|
7499
|
+
{
|
|
7500
|
+
"name": "id",
|
|
7501
|
+
"type": "uint256",
|
|
7502
|
+
"indexed": true,
|
|
7503
|
+
"internalType": "uint256"
|
|
7504
|
+
},
|
|
7505
|
+
{
|
|
7506
|
+
"name": "from",
|
|
7507
|
+
"type": "address",
|
|
7508
|
+
"indexed": false,
|
|
7509
|
+
"internalType": "address"
|
|
7510
|
+
},
|
|
7511
|
+
{
|
|
7512
|
+
"name": "to",
|
|
7513
|
+
"type": "address",
|
|
7514
|
+
"indexed": false,
|
|
7515
|
+
"internalType": "address"
|
|
7516
|
+
}
|
|
7517
|
+
],
|
|
7518
|
+
"anonymous": false
|
|
7519
|
+
},
|
|
7520
|
+
{
|
|
7521
|
+
"type": "event",
|
|
7522
|
+
"name": "FeesClaimed",
|
|
7523
|
+
"inputs": [
|
|
7524
|
+
{
|
|
7525
|
+
"name": "id",
|
|
7526
|
+
"type": "uint256",
|
|
7527
|
+
"indexed": true,
|
|
7528
|
+
"internalType": "uint256"
|
|
7529
|
+
},
|
|
7530
|
+
{
|
|
7531
|
+
"name": "beneficiary",
|
|
7532
|
+
"type": "address",
|
|
7533
|
+
"indexed": true,
|
|
7534
|
+
"internalType": "address"
|
|
7535
|
+
},
|
|
7536
|
+
{
|
|
7537
|
+
"name": "shares",
|
|
7538
|
+
"type": "uint256",
|
|
7539
|
+
"indexed": false,
|
|
7540
|
+
"internalType": "uint256"
|
|
7541
|
+
},
|
|
7542
|
+
{
|
|
7543
|
+
"name": "amount0",
|
|
7544
|
+
"type": "uint256",
|
|
7545
|
+
"indexed": false,
|
|
7546
|
+
"internalType": "uint256"
|
|
7547
|
+
},
|
|
7548
|
+
{
|
|
7549
|
+
"name": "amount1",
|
|
7550
|
+
"type": "uint256",
|
|
7551
|
+
"indexed": false,
|
|
7552
|
+
"internalType": "uint256"
|
|
7553
|
+
}
|
|
7554
|
+
],
|
|
7555
|
+
"anonymous": false
|
|
7556
|
+
},
|
|
7557
|
+
{
|
|
7558
|
+
"type": "event",
|
|
7559
|
+
"name": "Locked",
|
|
7560
|
+
"inputs": [
|
|
7561
|
+
{
|
|
7562
|
+
"name": "id",
|
|
7563
|
+
"type": "uint256",
|
|
7564
|
+
"indexed": true,
|
|
7565
|
+
"internalType": "uint256"
|
|
7566
|
+
},
|
|
7567
|
+
{
|
|
7568
|
+
"name": "pair",
|
|
7569
|
+
"type": "address",
|
|
7570
|
+
"indexed": true,
|
|
7571
|
+
"internalType": "address"
|
|
7572
|
+
},
|
|
7573
|
+
{
|
|
7574
|
+
"name": "beneficiary",
|
|
7575
|
+
"type": "address",
|
|
7576
|
+
"indexed": true,
|
|
7577
|
+
"internalType": "address"
|
|
7578
|
+
},
|
|
7579
|
+
{
|
|
7580
|
+
"name": "shares",
|
|
7581
|
+
"type": "uint256",
|
|
7582
|
+
"indexed": false,
|
|
7583
|
+
"internalType": "uint256"
|
|
7584
|
+
}
|
|
7585
|
+
],
|
|
7586
|
+
"anonymous": false
|
|
7587
|
+
},
|
|
7588
|
+
{
|
|
7589
|
+
"type": "error",
|
|
7590
|
+
"name": "NotBeneficiary",
|
|
7591
|
+
"inputs": []
|
|
7592
|
+
},
|
|
7593
|
+
{
|
|
7594
|
+
"type": "error",
|
|
7595
|
+
"name": "Zero",
|
|
7596
|
+
"inputs": []
|
|
7597
|
+
}
|
|
7598
|
+
];
|