@myx-trade/sdk 0.1.46 → 0.1.48

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/index.js CHANGED
@@ -1486,9 +1486,32 @@ var ARB_TEST_SEPOLIA = {
1486
1486
  ORACLE_RESERVE: "0xC46b81c38091933f4811EC16E93553f9801EB863"
1487
1487
  };
1488
1488
 
1489
+ // src/config/address/LINEA_SEPOLIA.ts
1490
+ var LINEA_SEPOLIA = {
1491
+ POOL_MANAGER: "0x7507Ec88C6fcd0c6ebE421988b5ACc052422be2b",
1492
+ Account: "0x05C39d54Ac84f5225218D4E03Ee6aE2999a47a03",
1493
+ POSITION_MANAGER: "0xD7090F7CD1D65e83feB74dCF1c2fcBA4854a934b",
1494
+ ORDER_MANAGER: "0x50602673C3506AFF2e7Df82dB6E93B6B134331Ae",
1495
+ PYTH: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
1496
+ // !!! 非Pyth Adapter
1497
+ ERC20: "0x635eC74A4A39A27177310F0d605515D9df4bDe43",
1498
+ LIQUIDITY_ROUTER: "0x7fa9B7C0D95E19f180A2bf359d980c0bD3aC2503",
1499
+ BASE_POOL: "0x6d3A2AB082388C35319007a2D635Cf7A8B8aF0E1",
1500
+ QUOTE_POOL: "0x5A6fdFD381B76eD163b60300E619F7EB6049e7bD",
1501
+ BROKER: "0x0C6358400a8d86d8377640B1B783b8326b7D0fdc",
1502
+ // MYXBroker
1503
+ ORACLE: "0xfbA4a141bb3BbD0EB34b24152caa3d2940629545",
1504
+ // MYXOracle
1505
+ EIP7702Delegation: "0xa55149B66A7fC4a4eF05c8da981E46Fe27695E6c",
1506
+ MARKET_MANAGER: "0x96Dd73d94c7359e92a45Ff75bC90909E66332990",
1507
+ DATA_PROVIDER: "0xF10B5736EA756488139135BF14aE5A542de435a9",
1508
+ ORACLE_RESERVE: "0xb9433C0e23f38E8Ad48B9A6e562F0a543e06a9F4"
1509
+ };
1510
+
1489
1511
  // src/config/address.ts
1490
1512
  var address_default = {
1491
- [421614 /* ARB_TESTNET */]: ARB_TEST_SEPOLIA
1513
+ [421614 /* ARB_TESTNET */]: ARB_TEST_SEPOLIA,
1514
+ [59141 /* LINEA_SEPOLIA */]: LINEA_SEPOLIA
1492
1515
  };
1493
1516
 
1494
1517
  // src/web3/index.ts
@@ -1813,7 +1836,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1813
1836
  // package.json
1814
1837
  var package_default = {
1815
1838
  name: "@myx-trade/sdk",
1816
- version: "0.1.46",
1839
+ version: "0.1.48",
1817
1840
  private: false,
1818
1841
  publishConfig: {
1819
1842
  access: "public"
@@ -10481,7 +10504,7 @@ var COMMON_LP_AMOUNT_DECIMALS = 18;
10481
10504
 
10482
10505
  // src/common/tradingGas.ts
10483
10506
  var bigintTradingGasToRatioCalculator = (gas, ratio) => {
10484
- return gas * (0, import_ethers6.parseUnits)(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
10507
+ return BigInt(gas) * (0, import_ethers6.parseUnits)(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
10485
10508
  };
10486
10509
  var bigintTradingGasPriceWithRatio = async (chainId) => {
10487
10510
  try {
@@ -10491,7 +10514,7 @@ var bigintTradingGasPriceWithRatio = async (chainId) => {
10491
10514
  if (!gasPrice) {
10492
10515
  throw new Error("Network Error");
10493
10516
  }
10494
- const gasPriceWithRatio = bigintTradingGasToRatioCalculator(gasPrice, chainInfo.gasPriceRatio);
10517
+ const gasPriceWithRatio = bigintTradingGasToRatioCalculator(BigInt(gasPrice), chainInfo.gasPriceRatio);
10495
10518
  return {
10496
10519
  gasPrice: gasPriceWithRatio
10497
10520
  };
@@ -12716,28 +12739,6 @@ var Markets = class {
12716
12739
  }
12717
12740
  };
12718
12741
 
12719
- // src/config/address/LINEA_SEPOLIA.ts
12720
- var LINEA_SEPOLIA = {
12721
- POOL_MANAGER: "0x7507Ec88C6fcd0c6ebE421988b5ACc052422be2b",
12722
- Account: "0x05C39d54Ac84f5225218D4E03Ee6aE2999a47a03",
12723
- POSITION_MANAGER: "0xD7090F7CD1D65e83feB74dCF1c2fcBA4854a934b",
12724
- ORDER_MANAGER: "0x50602673C3506AFF2e7Df82dB6E93B6B134331Ae",
12725
- PYTH: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
12726
- // !!! 非Pyth Adapter
12727
- ERC20: "0x635eC74A4A39A27177310F0d605515D9df4bDe43",
12728
- LIQUIDITY_ROUTER: "0x7fa9B7C0D95E19f180A2bf359d980c0bD3aC2503",
12729
- BASE_POOL: "0x6d3A2AB082388C35319007a2D635Cf7A8B8aF0E1",
12730
- QUOTE_POOL: "0x5A6fdFD381B76eD163b60300E619F7EB6049e7bD",
12731
- BROKER: "0x0C6358400a8d86d8377640B1B783b8326b7D0fdc",
12732
- // MYXBroker
12733
- ORACLE: "0xfbA4a141bb3BbD0EB34b24152caa3d2940629545",
12734
- // MYXOracle
12735
- EIP7702Delegation: "0xa55149B66A7fC4a4eF05c8da981E46Fe27695E6c",
12736
- MARKET_MANAGER: "0x96Dd73d94c7359e92a45Ff75bC90909E66332990",
12737
- DATA_PROVIDER: "0xF10B5736EA756488139135BF14aE5A542de435a9",
12738
- ORACLE_RESERVE: "0xb9433C0e23f38E8Ad48B9A6e562F0a543e06a9F4"
12739
- };
12740
-
12741
12742
  // src/config/address/index.ts
12742
12743
  var getContractAddressByChainId = (chainId) => {
12743
12744
  switch (chainId) {
package/dist/index.mjs CHANGED
@@ -1395,9 +1395,32 @@ var ARB_TEST_SEPOLIA = {
1395
1395
  ORACLE_RESERVE: "0xC46b81c38091933f4811EC16E93553f9801EB863"
1396
1396
  };
1397
1397
 
1398
+ // src/config/address/LINEA_SEPOLIA.ts
1399
+ var LINEA_SEPOLIA = {
1400
+ POOL_MANAGER: "0x7507Ec88C6fcd0c6ebE421988b5ACc052422be2b",
1401
+ Account: "0x05C39d54Ac84f5225218D4E03Ee6aE2999a47a03",
1402
+ POSITION_MANAGER: "0xD7090F7CD1D65e83feB74dCF1c2fcBA4854a934b",
1403
+ ORDER_MANAGER: "0x50602673C3506AFF2e7Df82dB6E93B6B134331Ae",
1404
+ PYTH: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
1405
+ // !!! 非Pyth Adapter
1406
+ ERC20: "0x635eC74A4A39A27177310F0d605515D9df4bDe43",
1407
+ LIQUIDITY_ROUTER: "0x7fa9B7C0D95E19f180A2bf359d980c0bD3aC2503",
1408
+ BASE_POOL: "0x6d3A2AB082388C35319007a2D635Cf7A8B8aF0E1",
1409
+ QUOTE_POOL: "0x5A6fdFD381B76eD163b60300E619F7EB6049e7bD",
1410
+ BROKER: "0x0C6358400a8d86d8377640B1B783b8326b7D0fdc",
1411
+ // MYXBroker
1412
+ ORACLE: "0xfbA4a141bb3BbD0EB34b24152caa3d2940629545",
1413
+ // MYXOracle
1414
+ EIP7702Delegation: "0xa55149B66A7fC4a4eF05c8da981E46Fe27695E6c",
1415
+ MARKET_MANAGER: "0x96Dd73d94c7359e92a45Ff75bC90909E66332990",
1416
+ DATA_PROVIDER: "0xF10B5736EA756488139135BF14aE5A542de435a9",
1417
+ ORACLE_RESERVE: "0xb9433C0e23f38E8Ad48B9A6e562F0a543e06a9F4"
1418
+ };
1419
+
1398
1420
  // src/config/address.ts
1399
1421
  var address_default = {
1400
- [421614 /* ARB_TESTNET */]: ARB_TEST_SEPOLIA
1422
+ [421614 /* ARB_TESTNET */]: ARB_TEST_SEPOLIA,
1423
+ [59141 /* LINEA_SEPOLIA */]: LINEA_SEPOLIA
1401
1424
  };
1402
1425
 
1403
1426
  // src/web3/index.ts
@@ -1728,7 +1751,7 @@ var RotationProvider = class extends BaseProvider {
1728
1751
  // package.json
1729
1752
  var package_default = {
1730
1753
  name: "@myx-trade/sdk",
1731
- version: "0.1.46",
1754
+ version: "0.1.48",
1732
1755
  private: false,
1733
1756
  publishConfig: {
1734
1757
  access: "public"
@@ -10396,7 +10419,7 @@ var COMMON_LP_AMOUNT_DECIMALS = 18;
10396
10419
 
10397
10420
  // src/common/tradingGas.ts
10398
10421
  var bigintTradingGasToRatioCalculator = (gas, ratio) => {
10399
- return gas * parseUnits3(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
10422
+ return BigInt(gas) * parseUnits3(ratio.toString(), COMMON_CONFIG_DECIMALS) / BigInt(10 ** COMMON_CONFIG_DECIMALS);
10400
10423
  };
10401
10424
  var bigintTradingGasPriceWithRatio = async (chainId) => {
10402
10425
  try {
@@ -10406,7 +10429,7 @@ var bigintTradingGasPriceWithRatio = async (chainId) => {
10406
10429
  if (!gasPrice) {
10407
10430
  throw new Error("Network Error");
10408
10431
  }
10409
- const gasPriceWithRatio = bigintTradingGasToRatioCalculator(gasPrice, chainInfo.gasPriceRatio);
10432
+ const gasPriceWithRatio = bigintTradingGasToRatioCalculator(BigInt(gasPrice), chainInfo.gasPriceRatio);
10410
10433
  return {
10411
10434
  gasPrice: gasPriceWithRatio
10412
10435
  };
@@ -12631,28 +12654,6 @@ var Markets = class {
12631
12654
  }
12632
12655
  };
12633
12656
 
12634
- // src/config/address/LINEA_SEPOLIA.ts
12635
- var LINEA_SEPOLIA = {
12636
- POOL_MANAGER: "0x7507Ec88C6fcd0c6ebE421988b5ACc052422be2b",
12637
- Account: "0x05C39d54Ac84f5225218D4E03Ee6aE2999a47a03",
12638
- POSITION_MANAGER: "0xD7090F7CD1D65e83feB74dCF1c2fcBA4854a934b",
12639
- ORDER_MANAGER: "0x50602673C3506AFF2e7Df82dB6E93B6B134331Ae",
12640
- PYTH: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
12641
- // !!! 非Pyth Adapter
12642
- ERC20: "0x635eC74A4A39A27177310F0d605515D9df4bDe43",
12643
- LIQUIDITY_ROUTER: "0x7fa9B7C0D95E19f180A2bf359d980c0bD3aC2503",
12644
- BASE_POOL: "0x6d3A2AB082388C35319007a2D635Cf7A8B8aF0E1",
12645
- QUOTE_POOL: "0x5A6fdFD381B76eD163b60300E619F7EB6049e7bD",
12646
- BROKER: "0x0C6358400a8d86d8377640B1B783b8326b7D0fdc",
12647
- // MYXBroker
12648
- ORACLE: "0xfbA4a141bb3BbD0EB34b24152caa3d2940629545",
12649
- // MYXOracle
12650
- EIP7702Delegation: "0xa55149B66A7fC4a4eF05c8da981E46Fe27695E6c",
12651
- MARKET_MANAGER: "0x96Dd73d94c7359e92a45Ff75bC90909E66332990",
12652
- DATA_PROVIDER: "0xF10B5736EA756488139135BF14aE5A542de435a9",
12653
- ORACLE_RESERVE: "0xb9433C0e23f38E8Ad48B9A6e562F0a543e06a9F4"
12654
- };
12655
-
12656
12657
  // src/config/address/index.ts
12657
12658
  var getContractAddressByChainId = (chainId) => {
12658
12659
  switch (chainId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"