bfun-configs 0.0.2 → 0.0.4
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/chainConfigs.d.ts +60 -0
- package/chainConfigs.d.ts.map +1 -1
- package/index.js +390 -18
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/wagmiGenerated.d.ts +1016 -129
- package/wagmiGenerated.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -54,6 +54,9 @@ __export(package_exports, {
|
|
|
54
54
|
protocolRewardsABI: () => protocolRewardsABI,
|
|
55
55
|
protocolRewardsAddress: () => protocolRewardsAddress,
|
|
56
56
|
protocolRewardsConfig: () => protocolRewardsConfig,
|
|
57
|
+
splitVaultFactoryABI: () => splitVaultFactoryABI,
|
|
58
|
+
splitVaultFactoryAddress: () => splitVaultFactoryAddress,
|
|
59
|
+
splitVaultFactoryConfig: () => splitVaultFactoryConfig,
|
|
57
60
|
taxProcessorABI: () => taxProcessorABI,
|
|
58
61
|
taxProcessorAddress: () => taxProcessorAddress,
|
|
59
62
|
taxProcessorConfig: () => taxProcessorConfig
|
|
@@ -97,7 +100,7 @@ var bFunFactoryABI = [
|
|
|
97
100
|
{ type: "error", inputs: [], name: "FailedCall" }
|
|
98
101
|
];
|
|
99
102
|
var bFunFactoryAddress = {
|
|
100
|
-
97: "
|
|
103
|
+
97: "0xCCEcCAC9df42d9D10A82c8e2dD97cAdA713808bB"
|
|
101
104
|
};
|
|
102
105
|
var bFunFactoryConfig = {
|
|
103
106
|
address: bFunFactoryAddress,
|
|
@@ -236,6 +239,12 @@ var bFunFactoryImplABI = [
|
|
|
236
239
|
{ name: "signature", internalType: "bytes", type: "bytes" },
|
|
237
240
|
{ name: "tokenSalt", internalType: "bytes32", type: "bytes32" },
|
|
238
241
|
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
242
|
+
{
|
|
243
|
+
name: "marketVaultFactory",
|
|
244
|
+
internalType: "address",
|
|
245
|
+
type: "address"
|
|
246
|
+
},
|
|
247
|
+
{ name: "marketVaultData", internalType: "bytes", type: "bytes" },
|
|
239
248
|
{ name: "collateralToken", internalType: "address", type: "address" },
|
|
240
249
|
{ name: "targetRaise", internalType: "uint256", type: "uint256" },
|
|
241
250
|
{ name: "lockBps", internalType: "uint16", type: "uint16" },
|
|
@@ -249,7 +258,6 @@ var bFunFactoryImplABI = [
|
|
|
249
258
|
internalType: "uint64",
|
|
250
259
|
type: "uint64"
|
|
251
260
|
},
|
|
252
|
-
{ name: "processorFeeRate", internalType: "uint16", type: "uint16" },
|
|
253
261
|
{
|
|
254
262
|
name: "processorMarketBps",
|
|
255
263
|
internalType: "uint16",
|
|
@@ -293,6 +301,12 @@ var bFunFactoryImplABI = [
|
|
|
293
301
|
{ name: "signature", internalType: "bytes", type: "bytes" },
|
|
294
302
|
{ name: "tokenSalt", internalType: "bytes32", type: "bytes32" },
|
|
295
303
|
{ name: "payoutRecipient", internalType: "address", type: "address" },
|
|
304
|
+
{
|
|
305
|
+
name: "marketVaultFactory",
|
|
306
|
+
internalType: "address",
|
|
307
|
+
type: "address"
|
|
308
|
+
},
|
|
309
|
+
{ name: "marketVaultData", internalType: "bytes", type: "bytes" },
|
|
296
310
|
{ name: "collateralToken", internalType: "address", type: "address" },
|
|
297
311
|
{ name: "targetRaise", internalType: "uint256", type: "uint256" },
|
|
298
312
|
{ name: "lockBps", internalType: "uint16", type: "uint16" },
|
|
@@ -306,7 +320,6 @@ var bFunFactoryImplABI = [
|
|
|
306
320
|
internalType: "uint64",
|
|
307
321
|
type: "uint64"
|
|
308
322
|
},
|
|
309
|
-
{ name: "processorFeeRate", internalType: "uint16", type: "uint16" },
|
|
310
323
|
{
|
|
311
324
|
name: "processorMarketBps",
|
|
312
325
|
internalType: "uint16",
|
|
@@ -460,6 +473,13 @@ var bFunFactoryImplABI = [
|
|
|
460
473
|
name: "isTrustedCaller",
|
|
461
474
|
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
462
475
|
},
|
|
476
|
+
{
|
|
477
|
+
stateMutability: "view",
|
|
478
|
+
type: "function",
|
|
479
|
+
inputs: [{ name: "", internalType: "address", type: "address" }],
|
|
480
|
+
name: "marketVaultFactoryEnabled",
|
|
481
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
482
|
+
},
|
|
463
483
|
{
|
|
464
484
|
stateMutability: "nonpayable",
|
|
465
485
|
type: "function",
|
|
@@ -502,6 +522,20 @@ var bFunFactoryImplABI = [
|
|
|
502
522
|
name: "preferredV3FeeProfile",
|
|
503
523
|
outputs: [{ name: "", internalType: "uint8", type: "uint8" }]
|
|
504
524
|
},
|
|
525
|
+
{
|
|
526
|
+
stateMutability: "view",
|
|
527
|
+
type: "function",
|
|
528
|
+
inputs: [],
|
|
529
|
+
name: "processorFeeRateCurve",
|
|
530
|
+
outputs: [{ name: "", internalType: "uint16", type: "uint16" }]
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
stateMutability: "view",
|
|
534
|
+
type: "function",
|
|
535
|
+
inputs: [],
|
|
536
|
+
name: "processorFeeRateDex",
|
|
537
|
+
outputs: [{ name: "", internalType: "uint16", type: "uint16" }]
|
|
538
|
+
},
|
|
505
539
|
{
|
|
506
540
|
stateMutability: "view",
|
|
507
541
|
type: "function",
|
|
@@ -645,6 +679,16 @@ var bFunFactoryImplABI = [
|
|
|
645
679
|
name: "setIsSignatureEnabled",
|
|
646
680
|
outputs: []
|
|
647
681
|
},
|
|
682
|
+
{
|
|
683
|
+
stateMutability: "nonpayable",
|
|
684
|
+
type: "function",
|
|
685
|
+
inputs: [
|
|
686
|
+
{ name: "", internalType: "address", type: "address" },
|
|
687
|
+
{ name: "", internalType: "bool", type: "bool" }
|
|
688
|
+
],
|
|
689
|
+
name: "setMarketVaultFactoryEnabled",
|
|
690
|
+
outputs: []
|
|
691
|
+
},
|
|
648
692
|
{
|
|
649
693
|
stateMutability: "nonpayable",
|
|
650
694
|
type: "function",
|
|
@@ -666,6 +710,16 @@ var bFunFactoryImplABI = [
|
|
|
666
710
|
name: "setPreferredV3FeeProfile",
|
|
667
711
|
outputs: []
|
|
668
712
|
},
|
|
713
|
+
{
|
|
714
|
+
stateMutability: "nonpayable",
|
|
715
|
+
type: "function",
|
|
716
|
+
inputs: [
|
|
717
|
+
{ name: "", internalType: "uint16", type: "uint16" },
|
|
718
|
+
{ name: "", internalType: "uint16", type: "uint16" }
|
|
719
|
+
],
|
|
720
|
+
name: "setProcessorFeeRates",
|
|
721
|
+
outputs: []
|
|
722
|
+
},
|
|
669
723
|
{
|
|
670
724
|
stateMutability: "nonpayable",
|
|
671
725
|
type: "function",
|
|
@@ -860,7 +914,7 @@ var bFunFactoryImplABI = [
|
|
|
860
914
|
{ type: "error", inputs: [], name: "UnsupportedSelector" }
|
|
861
915
|
];
|
|
862
916
|
var bFunFactoryImplAddress = {
|
|
863
|
-
97: "
|
|
917
|
+
97: "0x5DdDd8866E776f3411FFddA9B1271e5baBB6487A"
|
|
864
918
|
};
|
|
865
919
|
var bFunFactoryImplConfig = {
|
|
866
920
|
address: bFunFactoryImplAddress,
|
|
@@ -890,6 +944,28 @@ var bFunFactoryTradeHelperABI = [
|
|
|
890
944
|
{ name: "refundOut", internalType: "uint256", type: "uint256" }
|
|
891
945
|
]
|
|
892
946
|
},
|
|
947
|
+
{
|
|
948
|
+
stateMutability: "payable",
|
|
949
|
+
type: "function",
|
|
950
|
+
inputs: [
|
|
951
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
952
|
+
{ name: "funds", internalType: "uint256", type: "uint256" },
|
|
953
|
+
{ name: "minTokenOut", internalType: "uint256", type: "uint256" }
|
|
954
|
+
],
|
|
955
|
+
name: "dexBuyWithEth",
|
|
956
|
+
outputs: [{ name: "tokenOut", internalType: "uint256", type: "uint256" }]
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
stateMutability: "nonpayable",
|
|
960
|
+
type: "function",
|
|
961
|
+
inputs: [
|
|
962
|
+
{ name: "token", internalType: "address", type: "address" },
|
|
963
|
+
{ name: "tokenAmountIn", internalType: "uint256", type: "uint256" },
|
|
964
|
+
{ name: "minEthOut", internalType: "uint256", type: "uint256" }
|
|
965
|
+
],
|
|
966
|
+
name: "dexSellForEth",
|
|
967
|
+
outputs: [{ name: "ethOut", internalType: "uint256", type: "uint256" }]
|
|
968
|
+
},
|
|
893
969
|
{
|
|
894
970
|
stateMutability: "view",
|
|
895
971
|
type: "function",
|
|
@@ -937,6 +1013,23 @@ var bFunFactoryTradeHelperABI = [
|
|
|
937
1013
|
{ name: "ethOut", internalType: "uint256", type: "uint256" }
|
|
938
1014
|
]
|
|
939
1015
|
},
|
|
1016
|
+
{
|
|
1017
|
+
stateMutability: "view",
|
|
1018
|
+
type: "function",
|
|
1019
|
+
inputs: [
|
|
1020
|
+
{ name: "tokenIn", internalType: "address", type: "address" },
|
|
1021
|
+
{ name: "tokenOut", internalType: "address", type: "address" },
|
|
1022
|
+
{ name: "amountIn", internalType: "uint256", type: "uint256" }
|
|
1023
|
+
],
|
|
1024
|
+
name: "quoteDexExactInput",
|
|
1025
|
+
outputs: [
|
|
1026
|
+
{
|
|
1027
|
+
name: "amountOutReceivedExpected",
|
|
1028
|
+
internalType: "uint256",
|
|
1029
|
+
type: "uint256"
|
|
1030
|
+
}
|
|
1031
|
+
]
|
|
1032
|
+
},
|
|
940
1033
|
{
|
|
941
1034
|
stateMutability: "nonpayable",
|
|
942
1035
|
type: "function",
|
|
@@ -1161,6 +1254,7 @@ var bFunFactoryTradeHelperABI = [
|
|
|
1161
1254
|
inputs: [{ name: "target", internalType: "address", type: "address" }],
|
|
1162
1255
|
name: "AddressEmptyCode"
|
|
1163
1256
|
},
|
|
1257
|
+
{ type: "error", inputs: [], name: "DexSlippageCheckFailed" },
|
|
1164
1258
|
{
|
|
1165
1259
|
type: "error",
|
|
1166
1260
|
inputs: [
|
|
@@ -1180,6 +1274,8 @@ var bFunFactoryTradeHelperABI = [
|
|
|
1180
1274
|
},
|
|
1181
1275
|
{ type: "error", inputs: [], name: "InvalidFunds" },
|
|
1182
1276
|
{ type: "error", inputs: [], name: "InvalidInitialization" },
|
|
1277
|
+
{ type: "error", inputs: [], name: "InvalidQuotePair" },
|
|
1278
|
+
{ type: "error", inputs: [], name: "NotDexStage" },
|
|
1183
1279
|
{ type: "error", inputs: [], name: "NotInitializing" },
|
|
1184
1280
|
{
|
|
1185
1281
|
type: "error",
|
|
@@ -1202,10 +1298,11 @@ var bFunFactoryTradeHelperABI = [
|
|
|
1202
1298
|
type: "error",
|
|
1203
1299
|
inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
|
|
1204
1300
|
name: "UUPSUnsupportedProxiableUUID"
|
|
1205
|
-
}
|
|
1301
|
+
},
|
|
1302
|
+
{ type: "error", inputs: [], name: "V2SwapRouterNotSet" }
|
|
1206
1303
|
];
|
|
1207
1304
|
var bFunFactoryTradeHelperAddress = {
|
|
1208
|
-
97: "
|
|
1305
|
+
97: "0x9412A2BeA863BBACBC7304751CF4Bb3170D3B8Cd"
|
|
1209
1306
|
};
|
|
1210
1307
|
var bFunFactoryTradeHelperConfig = {
|
|
1211
1308
|
address: bFunFactoryTradeHelperAddress,
|
|
@@ -1441,7 +1538,7 @@ var bFunLockVaultABI = [
|
|
|
1441
1538
|
{ type: "error", inputs: [], name: "Unauthorized" }
|
|
1442
1539
|
];
|
|
1443
1540
|
var bFunLockVaultAddress = {
|
|
1444
|
-
97: "
|
|
1541
|
+
97: "0x1a51c05e11f05b5F4312638eB6E11D50521EAa6e"
|
|
1445
1542
|
};
|
|
1446
1543
|
var bFunLockVaultConfig = {
|
|
1447
1544
|
address: bFunLockVaultAddress,
|
|
@@ -1516,10 +1613,13 @@ var bFunMultiDexRouterABI = [
|
|
|
1516
1613
|
{ name: "pools", internalType: "address[]", type: "address[]" },
|
|
1517
1614
|
{ name: "mainPool", internalType: "address", type: "address" }
|
|
1518
1615
|
]
|
|
1519
|
-
}
|
|
1616
|
+
},
|
|
1617
|
+
{ type: "error", inputs: [], name: "InvalidDexId" },
|
|
1618
|
+
{ type: "error", inputs: [], name: "InvalidPreferredDexId" },
|
|
1619
|
+
{ type: "error", inputs: [], name: "PreferredDexNotAvailable" }
|
|
1520
1620
|
];
|
|
1521
1621
|
var bFunMultiDexRouterAddress = {
|
|
1522
|
-
97: "
|
|
1622
|
+
97: "0xA9DBa6EA7C3d610663ed567fd73a72B91075FdeA"
|
|
1523
1623
|
};
|
|
1524
1624
|
var bFunMultiDexRouterConfig = {
|
|
1525
1625
|
address: bFunMultiDexRouterAddress,
|
|
@@ -1558,6 +1658,13 @@ var bFunTaxTokenABI = [
|
|
|
1558
1658
|
name: "antiFarmerDuration",
|
|
1559
1659
|
outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
|
|
1560
1660
|
},
|
|
1661
|
+
{
|
|
1662
|
+
stateMutability: "view",
|
|
1663
|
+
type: "function",
|
|
1664
|
+
inputs: [],
|
|
1665
|
+
name: "antiFarmerExpirationTime",
|
|
1666
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1667
|
+
},
|
|
1561
1668
|
{
|
|
1562
1669
|
stateMutability: "nonpayable",
|
|
1563
1670
|
type: "function",
|
|
@@ -1634,6 +1741,35 @@ var bFunTaxTokenABI = [
|
|
|
1634
1741
|
name: "finalizeMigration",
|
|
1635
1742
|
outputs: []
|
|
1636
1743
|
},
|
|
1744
|
+
{
|
|
1745
|
+
stateMutability: "view",
|
|
1746
|
+
type: "function",
|
|
1747
|
+
inputs: [],
|
|
1748
|
+
name: "getPoolStateData",
|
|
1749
|
+
outputs: [
|
|
1750
|
+
{
|
|
1751
|
+
name: "currentState",
|
|
1752
|
+
internalType: "enum IBFunTaxToken.PoolState",
|
|
1753
|
+
type: "uint8"
|
|
1754
|
+
},
|
|
1755
|
+
{ name: "currentTaxRate", internalType: "uint16", type: "uint16" },
|
|
1756
|
+
{
|
|
1757
|
+
name: "currentLiquidationThreshold",
|
|
1758
|
+
internalType: "uint256",
|
|
1759
|
+
type: "uint256"
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
name: "currentTaxExpirationTime",
|
|
1763
|
+
internalType: "uint256",
|
|
1764
|
+
type: "uint256"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
name: "currentAntiFarmerExpirationTime",
|
|
1768
|
+
internalType: "uint256",
|
|
1769
|
+
type: "uint256"
|
|
1770
|
+
}
|
|
1771
|
+
]
|
|
1772
|
+
},
|
|
1637
1773
|
{
|
|
1638
1774
|
stateMutability: "nonpayable",
|
|
1639
1775
|
type: "function",
|
|
@@ -1681,6 +1817,13 @@ var bFunTaxTokenABI = [
|
|
|
1681
1817
|
name: "initialize",
|
|
1682
1818
|
outputs: []
|
|
1683
1819
|
},
|
|
1820
|
+
{
|
|
1821
|
+
stateMutability: "view",
|
|
1822
|
+
type: "function",
|
|
1823
|
+
inputs: [],
|
|
1824
|
+
name: "liquidationThreshold",
|
|
1825
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1826
|
+
},
|
|
1684
1827
|
{
|
|
1685
1828
|
stateMutability: "view",
|
|
1686
1829
|
type: "function",
|
|
@@ -1766,6 +1909,13 @@ var bFunTaxTokenABI = [
|
|
|
1766
1909
|
name: "taxDuration",
|
|
1767
1910
|
outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
|
|
1768
1911
|
},
|
|
1912
|
+
{
|
|
1913
|
+
stateMutability: "view",
|
|
1914
|
+
type: "function",
|
|
1915
|
+
inputs: [],
|
|
1916
|
+
name: "taxExpirationTime",
|
|
1917
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1918
|
+
},
|
|
1769
1919
|
{
|
|
1770
1920
|
stateMutability: "view",
|
|
1771
1921
|
type: "function",
|
|
@@ -2035,7 +2185,7 @@ var bFunTaxTokenABI = [
|
|
|
2035
2185
|
{ type: "error", inputs: [], name: "TransfersRestricted" }
|
|
2036
2186
|
];
|
|
2037
2187
|
var bFunTaxTokenAddress = {
|
|
2038
|
-
97: "
|
|
2188
|
+
97: "0x98cc63B68FacC9Cd8a7ED237e5620Ae920839584"
|
|
2039
2189
|
};
|
|
2040
2190
|
var bFunTaxTokenConfig = {
|
|
2041
2191
|
address: bFunTaxTokenAddress,
|
|
@@ -2403,7 +2553,7 @@ var bFunTokenABI = [
|
|
|
2403
2553
|
{ type: "error", inputs: [], name: "TransfersRestricted" }
|
|
2404
2554
|
];
|
|
2405
2555
|
var bFunTokenAddress = {
|
|
2406
|
-
97: "
|
|
2556
|
+
97: "0x764025cb46049c2aFaf135a3293443804E63Cb29"
|
|
2407
2557
|
};
|
|
2408
2558
|
var bFunTokenConfig = {
|
|
2409
2559
|
address: bFunTokenAddress,
|
|
@@ -2846,7 +2996,7 @@ var bFunTokenSwapABI = [
|
|
|
2846
2996
|
{ type: "error", inputs: [], name: "UnsupportedDexType" }
|
|
2847
2997
|
];
|
|
2848
2998
|
var bFunTokenSwapAddress = {
|
|
2849
|
-
97: "
|
|
2999
|
+
97: "0x0d80B6Ad8A7E2746D7100A6A3BBBB2e7C22E50b3"
|
|
2850
3000
|
};
|
|
2851
3001
|
var bFunTokenSwapConfig = {
|
|
2852
3002
|
address: bFunTokenSwapAddress,
|
|
@@ -3540,7 +3690,7 @@ var bondingCurveABI = [
|
|
|
3540
3690
|
{ type: "error", inputs: [], name: "TransfersRestricted" }
|
|
3541
3691
|
];
|
|
3542
3692
|
var bondingCurveAddress = {
|
|
3543
|
-
97: "
|
|
3693
|
+
97: "0xccC2B475DaF14DeB0af4A8D4e5cf69780d9d0a88"
|
|
3544
3694
|
};
|
|
3545
3695
|
var bondingCurveConfig = {
|
|
3546
3696
|
address: bondingCurveAddress,
|
|
@@ -3965,7 +4115,7 @@ var dividendABI = [
|
|
|
3965
4115
|
}
|
|
3966
4116
|
];
|
|
3967
4117
|
var dividendAddress = {
|
|
3968
|
-
97: "
|
|
4118
|
+
97: "0xe3Be77cee0787625146C061cdE0d24381f4e6F8E"
|
|
3969
4119
|
};
|
|
3970
4120
|
var dividendConfig = {
|
|
3971
4121
|
address: dividendAddress,
|
|
@@ -4222,12 +4372,163 @@ var protocolRewardsABI = [
|
|
|
4222
4372
|
{ type: "error", inputs: [], name: "TRANSFER_FAILED" }
|
|
4223
4373
|
];
|
|
4224
4374
|
var protocolRewardsAddress = {
|
|
4225
|
-
97: "
|
|
4375
|
+
97: "0xDe9289767114349c68Ef725983294b24122e2A84"
|
|
4226
4376
|
};
|
|
4227
4377
|
var protocolRewardsConfig = {
|
|
4228
4378
|
address: protocolRewardsAddress,
|
|
4229
4379
|
abi: protocolRewardsABI
|
|
4230
4380
|
};
|
|
4381
|
+
var splitVaultFactoryABI = [
|
|
4382
|
+
{
|
|
4383
|
+
stateMutability: "nonpayable",
|
|
4384
|
+
type: "constructor",
|
|
4385
|
+
inputs: [
|
|
4386
|
+
{ name: "factory_", internalType: "address", type: "address" },
|
|
4387
|
+
{
|
|
4388
|
+
name: "vaultImplementation_",
|
|
4389
|
+
internalType: "address",
|
|
4390
|
+
type: "address"
|
|
4391
|
+
},
|
|
4392
|
+
{ name: "owner_", internalType: "address", type: "address" }
|
|
4393
|
+
]
|
|
4394
|
+
},
|
|
4395
|
+
{
|
|
4396
|
+
stateMutability: "view",
|
|
4397
|
+
type: "function",
|
|
4398
|
+
inputs: [],
|
|
4399
|
+
name: "factory",
|
|
4400
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
stateMutability: "pure",
|
|
4404
|
+
type: "function",
|
|
4405
|
+
inputs: [{ name: "quoteToken", internalType: "address", type: "address" }],
|
|
4406
|
+
name: "isQuoteTokenSupported",
|
|
4407
|
+
outputs: [{ name: "supported", internalType: "bool", type: "bool" }]
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
stateMutability: "view",
|
|
4411
|
+
type: "function",
|
|
4412
|
+
inputs: [],
|
|
4413
|
+
name: "maxGasLimitPerUser",
|
|
4414
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
stateMutability: "nonpayable",
|
|
4418
|
+
type: "function",
|
|
4419
|
+
inputs: [
|
|
4420
|
+
{ name: "taxToken", internalType: "address", type: "address" },
|
|
4421
|
+
{ name: "quoteToken", internalType: "address", type: "address" },
|
|
4422
|
+
{ name: "", internalType: "address", type: "address" },
|
|
4423
|
+
{ name: "vaultData", internalType: "bytes", type: "bytes" }
|
|
4424
|
+
],
|
|
4425
|
+
name: "newVault",
|
|
4426
|
+
outputs: [{ name: "vault", internalType: "address", type: "address" }]
|
|
4427
|
+
},
|
|
4428
|
+
{
|
|
4429
|
+
stateMutability: "view",
|
|
4430
|
+
type: "function",
|
|
4431
|
+
inputs: [],
|
|
4432
|
+
name: "owner",
|
|
4433
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
4434
|
+
},
|
|
4435
|
+
{
|
|
4436
|
+
stateMutability: "nonpayable",
|
|
4437
|
+
type: "function",
|
|
4438
|
+
inputs: [],
|
|
4439
|
+
name: "renounceOwnership",
|
|
4440
|
+
outputs: []
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
stateMutability: "nonpayable",
|
|
4444
|
+
type: "function",
|
|
4445
|
+
inputs: [{ name: "newLimit", internalType: "uint256", type: "uint256" }],
|
|
4446
|
+
name: "setMaxGasLimitPerUser",
|
|
4447
|
+
outputs: []
|
|
4448
|
+
},
|
|
4449
|
+
{
|
|
4450
|
+
stateMutability: "nonpayable",
|
|
4451
|
+
type: "function",
|
|
4452
|
+
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
4453
|
+
name: "transferOwnership",
|
|
4454
|
+
outputs: []
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
stateMutability: "view",
|
|
4458
|
+
type: "function",
|
|
4459
|
+
inputs: [],
|
|
4460
|
+
name: "vaultImplementation",
|
|
4461
|
+
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
type: "event",
|
|
4465
|
+
anonymous: false,
|
|
4466
|
+
inputs: [
|
|
4467
|
+
{
|
|
4468
|
+
name: "previousOwner",
|
|
4469
|
+
internalType: "address",
|
|
4470
|
+
type: "address",
|
|
4471
|
+
indexed: true
|
|
4472
|
+
},
|
|
4473
|
+
{
|
|
4474
|
+
name: "newOwner",
|
|
4475
|
+
internalType: "address",
|
|
4476
|
+
type: "address",
|
|
4477
|
+
indexed: true
|
|
4478
|
+
}
|
|
4479
|
+
],
|
|
4480
|
+
name: "OwnershipTransferred"
|
|
4481
|
+
},
|
|
4482
|
+
{
|
|
4483
|
+
type: "event",
|
|
4484
|
+
anonymous: false,
|
|
4485
|
+
inputs: [
|
|
4486
|
+
{
|
|
4487
|
+
name: "oldLimit",
|
|
4488
|
+
internalType: "uint256",
|
|
4489
|
+
type: "uint256",
|
|
4490
|
+
indexed: false
|
|
4491
|
+
},
|
|
4492
|
+
{
|
|
4493
|
+
name: "newLimit",
|
|
4494
|
+
internalType: "uint256",
|
|
4495
|
+
type: "uint256",
|
|
4496
|
+
indexed: false
|
|
4497
|
+
}
|
|
4498
|
+
],
|
|
4499
|
+
name: "SplitVaultMaxGasLimitPerUserUpdated"
|
|
4500
|
+
},
|
|
4501
|
+
{ type: "error", inputs: [], name: "FailedDeployment" },
|
|
4502
|
+
{
|
|
4503
|
+
type: "error",
|
|
4504
|
+
inputs: [
|
|
4505
|
+
{ name: "balance", internalType: "uint256", type: "uint256" },
|
|
4506
|
+
{ name: "needed", internalType: "uint256", type: "uint256" }
|
|
4507
|
+
],
|
|
4508
|
+
name: "InsufficientBalance"
|
|
4509
|
+
},
|
|
4510
|
+
{ type: "error", inputs: [], name: "InvalidGasLimit" },
|
|
4511
|
+
{ type: "error", inputs: [], name: "InvalidQuoteToken" },
|
|
4512
|
+
{ type: "error", inputs: [], name: "OnlyVaultPortal" },
|
|
4513
|
+
{
|
|
4514
|
+
type: "error",
|
|
4515
|
+
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
4516
|
+
name: "OwnableInvalidOwner"
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
type: "error",
|
|
4520
|
+
inputs: [{ name: "account", internalType: "address", type: "address" }],
|
|
4521
|
+
name: "OwnableUnauthorizedAccount"
|
|
4522
|
+
},
|
|
4523
|
+
{ type: "error", inputs: [], name: "ZeroAddress" }
|
|
4524
|
+
];
|
|
4525
|
+
var splitVaultFactoryAddress = {
|
|
4526
|
+
97: "0x98B0aaEBD70dc4330662200984Ce1B27D3C8181B"
|
|
4527
|
+
};
|
|
4528
|
+
var splitVaultFactoryConfig = {
|
|
4529
|
+
address: splitVaultFactoryAddress,
|
|
4530
|
+
abi: splitVaultFactoryABI
|
|
4531
|
+
};
|
|
4231
4532
|
var taxProcessorABI = [
|
|
4232
4533
|
{
|
|
4233
4534
|
stateMutability: "nonpayable",
|
|
@@ -4298,7 +4599,14 @@ var taxProcessorABI = [
|
|
|
4298
4599
|
stateMutability: "view",
|
|
4299
4600
|
type: "function",
|
|
4300
4601
|
inputs: [],
|
|
4301
|
-
name: "
|
|
4602
|
+
name: "feeRateCurve",
|
|
4603
|
+
outputs: [{ name: "", internalType: "uint16", type: "uint16" }]
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
stateMutability: "view",
|
|
4607
|
+
type: "function",
|
|
4608
|
+
inputs: [],
|
|
4609
|
+
name: "feeRateDex",
|
|
4302
4610
|
outputs: [{ name: "", internalType: "uint16", type: "uint16" }]
|
|
4303
4611
|
},
|
|
4304
4612
|
{
|
|
@@ -4324,7 +4632,8 @@ var taxProcessorABI = [
|
|
|
4324
4632
|
{ name: "feeReceiver", internalType: "address", type: "address" },
|
|
4325
4633
|
{ name: "marketAddress", internalType: "address", type: "address" },
|
|
4326
4634
|
{ name: "dividendAddress", internalType: "address", type: "address" },
|
|
4327
|
-
{ name: "
|
|
4635
|
+
{ name: "feeRateCurve", internalType: "uint16", type: "uint16" },
|
|
4636
|
+
{ name: "feeRateDex", internalType: "uint16", type: "uint16" },
|
|
4328
4637
|
{ name: "marketBps", internalType: "uint16", type: "uint16" },
|
|
4329
4638
|
{ name: "deflationBps", internalType: "uint16", type: "uint16" },
|
|
4330
4639
|
{ name: "lpBps", internalType: "uint16", type: "uint16" },
|
|
@@ -4640,7 +4949,7 @@ var taxProcessorABI = [
|
|
|
4640
4949
|
}
|
|
4641
4950
|
];
|
|
4642
4951
|
var taxProcessorAddress = {
|
|
4643
|
-
97: "
|
|
4952
|
+
97: "0xdbc49341E18c15374BA0db902C2dB21cA804848B"
|
|
4644
4953
|
};
|
|
4645
4954
|
var taxProcessorConfig = {
|
|
4646
4955
|
address: taxProcessorAddress,
|
|
@@ -4690,6 +4999,8 @@ var chainConfigs = {
|
|
|
4690
4999
|
"V3_INIT_CODE_HASH": "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2",
|
|
4691
5000
|
"V4_VAULT": "0x238a358808379702088667322f80aC48bAd5e6c4",
|
|
4692
5001
|
"IS_PANCAKE": true,
|
|
5002
|
+
"MIN_TAX_DURATION_GUARDRAIL": "86400",
|
|
5003
|
+
"MIN_ANTI_FARMER_DURATION_GUARDRAIL": "86400",
|
|
4693
5004
|
"V3_POOL_FEE": "10000",
|
|
4694
5005
|
"TRADE_REFERRER_FEE_BPS": "1000",
|
|
4695
5006
|
"CONTRACT_VERSION": "11.1.0",
|
|
@@ -4829,6 +5140,8 @@ var chainConfigs = {
|
|
|
4829
5140
|
"V3_INIT_CODE_HASH": "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2",
|
|
4830
5141
|
"V4_VAULT": "0x238a358808379702088667322f80aC48bAd5e6c4",
|
|
4831
5142
|
"IS_PANCAKE": true,
|
|
5143
|
+
"MIN_TAX_DURATION_GUARDRAIL": "86400",
|
|
5144
|
+
"MIN_ANTI_FARMER_DURATION_GUARDRAIL": "86400",
|
|
4832
5145
|
"V3_POOL_FEE": "10000",
|
|
4833
5146
|
"TRADE_REFERRER_FEE_BPS": "1000",
|
|
4834
5147
|
"CONTRACT_VERSION": "11.1.0",
|
|
@@ -4970,6 +5283,8 @@ var chainConfigs = {
|
|
|
4970
5283
|
"V3_INIT_CODE_HASH": "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2",
|
|
4971
5284
|
"V4_VAULT": "0x2CdB3EC82EE13d341Dc6E73637BE0Eab79cb79dD",
|
|
4972
5285
|
"IS_PANCAKE": true,
|
|
5286
|
+
"MIN_TAX_DURATION_GUARDRAIL": "600",
|
|
5287
|
+
"MIN_ANTI_FARMER_DURATION_GUARDRAIL": "300",
|
|
4973
5288
|
"V3_POOL_FEE": "10000",
|
|
4974
5289
|
"TRADE_REFERRER_FEE_BPS": "1000",
|
|
4975
5290
|
"CONTRACT_VERSION": "11.1.0",
|
|
@@ -5071,6 +5386,32 @@ var chainConfigs = {
|
|
|
5071
5386
|
"DEFAULT_TARGET_RAISE": "8000000000000000000000",
|
|
5072
5387
|
"DEFAULT_SELL_BPS": 8e3,
|
|
5073
5388
|
"V4_LIQUIDITY_CONFIG": "0x0"
|
|
5389
|
+
},
|
|
5390
|
+
"SOL": {
|
|
5391
|
+
"ID": "SOL_DEFAULT",
|
|
5392
|
+
"MODE": "DYNAMIC_ONLY",
|
|
5393
|
+
"COLLATERAL_TOKEN": "0x0000000000000000000000000000000000000001",
|
|
5394
|
+
"SYMBOL": "SOL",
|
|
5395
|
+
"DECIMALS": 9,
|
|
5396
|
+
"ENABLED": false,
|
|
5397
|
+
"TOTAL_SUPPLY": "1000000000000000000000000000",
|
|
5398
|
+
"VIRTUAL_TOKEN_RESERVES": "1090909090905000000000022917",
|
|
5399
|
+
"VIRTUAL_COLLATERAL_RESERVES": "23272727272",
|
|
5400
|
+
"FEE_BASIS_POINTS": "200",
|
|
5401
|
+
"FIXED_MIGRATION_FEE": "2400000000",
|
|
5402
|
+
"POOL_CREATION_FEE": "1600000000",
|
|
5403
|
+
"MIGRATION_FEE_BPS": 600,
|
|
5404
|
+
"FIRST_BUY_FEE": "40000000",
|
|
5405
|
+
"MIN_BUY_BACK_QUOTE": "1000000000",
|
|
5406
|
+
"MC_UPPER_LIMIT": "300480000003",
|
|
5407
|
+
"MC_LOWER_LIMIT": "300000000003",
|
|
5408
|
+
"TOKENS_MIGRATION_THRESHOLD": "800000000000000000000000000",
|
|
5409
|
+
"TARGET_COLLECTION_AMOUNT": "64000000000",
|
|
5410
|
+
"V4_LP_FEE": "0",
|
|
5411
|
+
"DEFAULT_PROFILE_ID": "0x0",
|
|
5412
|
+
"DEFAULT_TARGET_RAISE": "64000000000",
|
|
5413
|
+
"DEFAULT_SELL_BPS": 8e3,
|
|
5414
|
+
"V4_LIQUIDITY_CONFIG": "0x0"
|
|
5074
5415
|
}
|
|
5075
5416
|
}
|
|
5076
5417
|
},
|
|
@@ -5114,6 +5455,8 @@ var chainConfigs = {
|
|
|
5114
5455
|
"V3_INIT_CODE_HASH": "0x6ce8eb472fa82df5469c6ab6d485f17c3ad13c8cd7af59b3d4a8026c5ce0f7e2",
|
|
5115
5456
|
"V4_VAULT": "0x2CdB3EC82EE13d341Dc6E73637BE0Eab79cb79dD",
|
|
5116
5457
|
"IS_PANCAKE": true,
|
|
5458
|
+
"MIN_TAX_DURATION_GUARDRAIL": "600",
|
|
5459
|
+
"MIN_ANTI_FARMER_DURATION_GUARDRAIL": "300",
|
|
5117
5460
|
"V3_POOL_FEE": "10000",
|
|
5118
5461
|
"TRADE_REFERRER_FEE_BPS": "1000",
|
|
5119
5462
|
"CONTRACT_VERSION": "11.1.0",
|
|
@@ -5215,6 +5558,32 @@ var chainConfigs = {
|
|
|
5215
5558
|
"DEFAULT_TARGET_RAISE": "8000000000000000000000",
|
|
5216
5559
|
"DEFAULT_SELL_BPS": 8e3,
|
|
5217
5560
|
"V4_LIQUIDITY_CONFIG": "0x0"
|
|
5561
|
+
},
|
|
5562
|
+
"SOL": {
|
|
5563
|
+
"ID": "SOL_DEFAULT",
|
|
5564
|
+
"MODE": "DYNAMIC_ONLY",
|
|
5565
|
+
"COLLATERAL_TOKEN": "0x0000000000000000000000000000000000000001",
|
|
5566
|
+
"SYMBOL": "SOL",
|
|
5567
|
+
"DECIMALS": 9,
|
|
5568
|
+
"ENABLED": false,
|
|
5569
|
+
"TOTAL_SUPPLY": "1000000000000000000000000000",
|
|
5570
|
+
"VIRTUAL_TOKEN_RESERVES": "1090909090905000000000022917",
|
|
5571
|
+
"VIRTUAL_COLLATERAL_RESERVES": "23272727272",
|
|
5572
|
+
"FEE_BASIS_POINTS": "200",
|
|
5573
|
+
"FIXED_MIGRATION_FEE": "2400000000",
|
|
5574
|
+
"POOL_CREATION_FEE": "1600000000",
|
|
5575
|
+
"MIGRATION_FEE_BPS": 600,
|
|
5576
|
+
"FIRST_BUY_FEE": "40000000",
|
|
5577
|
+
"MIN_BUY_BACK_QUOTE": "1000000000",
|
|
5578
|
+
"MC_UPPER_LIMIT": "300480000003",
|
|
5579
|
+
"MC_LOWER_LIMIT": "300000000003",
|
|
5580
|
+
"TOKENS_MIGRATION_THRESHOLD": "800000000000000000000000000",
|
|
5581
|
+
"TARGET_COLLECTION_AMOUNT": "64000000000",
|
|
5582
|
+
"V4_LP_FEE": "0",
|
|
5583
|
+
"DEFAULT_PROFILE_ID": "0x0",
|
|
5584
|
+
"DEFAULT_TARGET_RAISE": "64000000000",
|
|
5585
|
+
"DEFAULT_SELL_BPS": 8e3,
|
|
5586
|
+
"V4_LIQUIDITY_CONFIG": "0x0"
|
|
5218
5587
|
}
|
|
5219
5588
|
}
|
|
5220
5589
|
}
|
|
@@ -5256,6 +5625,9 @@ var chainConfigs = {
|
|
|
5256
5625
|
protocolRewardsABI,
|
|
5257
5626
|
protocolRewardsAddress,
|
|
5258
5627
|
protocolRewardsConfig,
|
|
5628
|
+
splitVaultFactoryABI,
|
|
5629
|
+
splitVaultFactoryAddress,
|
|
5630
|
+
splitVaultFactoryConfig,
|
|
5259
5631
|
taxProcessorABI,
|
|
5260
5632
|
taxProcessorAddress,
|
|
5261
5633
|
taxProcessorConfig
|