bfun-configs 0.0.3 → 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/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
@@ -911,7 +914,7 @@ var bFunFactoryImplABI = [
911
914
  { type: "error", inputs: [], name: "UnsupportedSelector" }
912
915
  ];
913
916
  var bFunFactoryImplAddress = {
914
- 97: "0xA81cb262c651E038Db3d9Dd61d756639De22583F"
917
+ 97: "0x5DdDd8866E776f3411FFddA9B1271e5baBB6487A"
915
918
  };
916
919
  var bFunFactoryImplConfig = {
917
920
  address: bFunFactoryImplAddress,
@@ -941,6 +944,28 @@ var bFunFactoryTradeHelperABI = [
941
944
  { name: "refundOut", internalType: "uint256", type: "uint256" }
942
945
  ]
943
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
+ },
944
969
  {
945
970
  stateMutability: "view",
946
971
  type: "function",
@@ -988,6 +1013,23 @@ var bFunFactoryTradeHelperABI = [
988
1013
  { name: "ethOut", internalType: "uint256", type: "uint256" }
989
1014
  ]
990
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
+ },
991
1033
  {
992
1034
  stateMutability: "nonpayable",
993
1035
  type: "function",
@@ -1212,6 +1254,7 @@ var bFunFactoryTradeHelperABI = [
1212
1254
  inputs: [{ name: "target", internalType: "address", type: "address" }],
1213
1255
  name: "AddressEmptyCode"
1214
1256
  },
1257
+ { type: "error", inputs: [], name: "DexSlippageCheckFailed" },
1215
1258
  {
1216
1259
  type: "error",
1217
1260
  inputs: [
@@ -1231,6 +1274,8 @@ var bFunFactoryTradeHelperABI = [
1231
1274
  },
1232
1275
  { type: "error", inputs: [], name: "InvalidFunds" },
1233
1276
  { type: "error", inputs: [], name: "InvalidInitialization" },
1277
+ { type: "error", inputs: [], name: "InvalidQuotePair" },
1278
+ { type: "error", inputs: [], name: "NotDexStage" },
1234
1279
  { type: "error", inputs: [], name: "NotInitializing" },
1235
1280
  {
1236
1281
  type: "error",
@@ -1253,7 +1298,8 @@ var bFunFactoryTradeHelperABI = [
1253
1298
  type: "error",
1254
1299
  inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
1255
1300
  name: "UUPSUnsupportedProxiableUUID"
1256
- }
1301
+ },
1302
+ { type: "error", inputs: [], name: "V2SwapRouterNotSet" }
1257
1303
  ];
1258
1304
  var bFunFactoryTradeHelperAddress = {
1259
1305
  97: "0x9412A2BeA863BBACBC7304751CF4Bb3170D3B8Cd"
@@ -1567,7 +1613,10 @@ var bFunMultiDexRouterABI = [
1567
1613
  { name: "pools", internalType: "address[]", type: "address[]" },
1568
1614
  { name: "mainPool", internalType: "address", type: "address" }
1569
1615
  ]
1570
- }
1616
+ },
1617
+ { type: "error", inputs: [], name: "InvalidDexId" },
1618
+ { type: "error", inputs: [], name: "InvalidPreferredDexId" },
1619
+ { type: "error", inputs: [], name: "PreferredDexNotAvailable" }
1571
1620
  ];
1572
1621
  var bFunMultiDexRouterAddress = {
1573
1622
  97: "0xA9DBa6EA7C3d610663ed567fd73a72B91075FdeA"
@@ -1609,6 +1658,13 @@ var bFunTaxTokenABI = [
1609
1658
  name: "antiFarmerDuration",
1610
1659
  outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
1611
1660
  },
1661
+ {
1662
+ stateMutability: "view",
1663
+ type: "function",
1664
+ inputs: [],
1665
+ name: "antiFarmerExpirationTime",
1666
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1667
+ },
1612
1668
  {
1613
1669
  stateMutability: "nonpayable",
1614
1670
  type: "function",
@@ -1685,6 +1741,35 @@ var bFunTaxTokenABI = [
1685
1741
  name: "finalizeMigration",
1686
1742
  outputs: []
1687
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
+ },
1688
1773
  {
1689
1774
  stateMutability: "nonpayable",
1690
1775
  type: "function",
@@ -1732,6 +1817,13 @@ var bFunTaxTokenABI = [
1732
1817
  name: "initialize",
1733
1818
  outputs: []
1734
1819
  },
1820
+ {
1821
+ stateMutability: "view",
1822
+ type: "function",
1823
+ inputs: [],
1824
+ name: "liquidationThreshold",
1825
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1826
+ },
1735
1827
  {
1736
1828
  stateMutability: "view",
1737
1829
  type: "function",
@@ -1817,6 +1909,13 @@ var bFunTaxTokenABI = [
1817
1909
  name: "taxDuration",
1818
1910
  outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
1819
1911
  },
1912
+ {
1913
+ stateMutability: "view",
1914
+ type: "function",
1915
+ inputs: [],
1916
+ name: "taxExpirationTime",
1917
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1918
+ },
1820
1919
  {
1821
1920
  stateMutability: "view",
1822
1921
  type: "function",
@@ -2454,7 +2553,7 @@ var bFunTokenABI = [
2454
2553
  { type: "error", inputs: [], name: "TransfersRestricted" }
2455
2554
  ];
2456
2555
  var bFunTokenAddress = {
2457
- 97: "0xe0257e3871659f4519567e55452356196364E8DA"
2556
+ 97: "0x764025cb46049c2aFaf135a3293443804E63Cb29"
2458
2557
  };
2459
2558
  var bFunTokenConfig = {
2460
2559
  address: bFunTokenAddress,
@@ -4279,6 +4378,157 @@ var protocolRewardsConfig = {
4279
4378
  address: protocolRewardsAddress,
4280
4379
  abi: protocolRewardsABI
4281
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
+ };
4282
4532
  var taxProcessorABI = [
4283
4533
  {
4284
4534
  stateMutability: "nonpayable",
@@ -5375,6 +5625,9 @@ var chainConfigs = {
5375
5625
  protocolRewardsABI,
5376
5626
  protocolRewardsAddress,
5377
5627
  protocolRewardsConfig,
5628
+ splitVaultFactoryABI,
5629
+ splitVaultFactoryAddress,
5630
+ splitVaultFactoryConfig,
5378
5631
  taxProcessorABI,
5379
5632
  taxProcessorAddress,
5380
5633
  taxProcessorConfig