@cloakely/sdk 0.4.0 → 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.js CHANGED
@@ -1174,6 +1174,11 @@ 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"
1177
1182
  }
1178
1183
  ],
1179
1184
  "stateMutability": "nonpayable"
@@ -1385,6 +1390,19 @@ export const cloakFactoryAbi = [
1385
1390
  ],
1386
1391
  "stateMutability": "view"
1387
1392
  },
1393
+ {
1394
+ "type": "function",
1395
+ "name": "seeder",
1396
+ "inputs": [],
1397
+ "outputs": [
1398
+ {
1399
+ "name": "",
1400
+ "type": "address",
1401
+ "internalType": "contract IMarketSeeder"
1402
+ }
1403
+ ],
1404
+ "stateMutability": "view"
1405
+ },
1388
1406
  {
1389
1407
  "type": "function",
1390
1408
  "name": "vestingDeployer",
@@ -1547,10 +1565,19 @@ export const cloakAuctionAbi = [
1547
1565
  "name": "config_",
1548
1566
  "type": "address",
1549
1567
  "internalType": "contract CloakConfig"
1568
+ },
1569
+ {
1570
+ "name": "seeder_",
1571
+ "type": "address",
1572
+ "internalType": "contract IMarketSeeder"
1550
1573
  }
1551
1574
  ],
1552
1575
  "stateMutability": "nonpayable"
1553
1576
  },
1577
+ {
1578
+ "type": "receive",
1579
+ "stateMutability": "payable"
1580
+ },
1554
1581
  {
1555
1582
  "type": "function",
1556
1583
  "name": "DEAD",
@@ -2344,6 +2371,19 @@ export const cloakAuctionAbi = [
2344
2371
  ],
2345
2372
  "stateMutability": "view"
2346
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
+ },
2347
2387
  {
2348
2388
  "type": "function",
2349
2389
  "name": "settle",
@@ -2423,6 +2463,19 @@ export const cloakAuctionAbi = [
2423
2463
  ],
2424
2464
  "stateMutability": "view"
2425
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
+ },
2426
2479
  {
2427
2480
  "type": "function",
2428
2481
  "name": "withdrawProceeds",
@@ -2784,6 +2837,31 @@ export const cloakAuctionAbi = [
2784
2837
  }
2785
2838
  ],
2786
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
2787
2865
  }
2788
2866
  ];
2789
2867
  export const cloakTokenAbi = [
@@ -6580,3 +6658,574 @@ export const whypeAbi = [
6580
6658
  "anonymous": false
6581
6659
  }
6582
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",
7219
+ "indexed": false,
7220
+ "internalType": "uint256"
7221
+ },
7222
+ {
7223
+ "name": "to",
7224
+ "type": "address",
7225
+ "indexed": true,
7226
+ "internalType": "address"
7227
+ }
7228
+ ],
7229
+ "anonymous": false
7230
+ }
7231
+ ];