@myx-trade/sdk 0.1.245-beta.4 → 0.1.245-beta.6

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
@@ -1845,7 +1845,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
1845
1845
  // package.json
1846
1846
  var package_default = {
1847
1847
  name: "@myx-trade/sdk",
1848
- version: "0.1.245-beta.4",
1848
+ version: "0.1.245-beta.6",
1849
1849
  private: false,
1850
1850
  publishConfig: {
1851
1851
  access: "public"
@@ -21032,9 +21032,7 @@ var Utils = class {
21032
21032
  provider
21033
21033
  );
21034
21034
  try {
21035
- const networkFee = await marketManagerContract.getExecutionFee(
21036
- marketId
21037
- );
21035
+ const networkFee = await marketManagerContract.getExecutionFee(marketId);
21038
21036
  return networkFee.toString();
21039
21037
  } catch (error) {
21040
21038
  this.logger.error("Error getting network fee:", error);
@@ -21192,7 +21190,11 @@ var Utils = class {
21192
21190
  }
21193
21191
  async getGasLimitByRatio(gasLimit) {
21194
21192
  const chainId = this.configManager.getConfig().chainId;
21195
- return bigintTradingGasToRatioCalculator(gasLimit, chainId);
21193
+ const chainInfo = CHAIN_INFO[chainId];
21194
+ return bigintTradingGasToRatioCalculator(
21195
+ gasLimit,
21196
+ chainInfo?.gasLimitRatio ?? 1.3
21197
+ );
21196
21198
  }
21197
21199
  };
21198
21200
 
@@ -23274,6 +23276,7 @@ var Appeal = class extends BaseMyxClient {
23274
23276
  value
23275
23277
  }
23276
23278
  );
23279
+ this.client.logger.debug("_gasLimit", _gasLimit);
23277
23280
  const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
23278
23281
  const gasPrice = await this.client.utils.getGasPriceByRatio();
23279
23282
  this.client.logger.debug("txParams", {
package/dist/index.mjs CHANGED
@@ -1769,7 +1769,7 @@ var RotationProvider = class extends BaseProvider {
1769
1769
  // package.json
1770
1770
  var package_default = {
1771
1771
  name: "@myx-trade/sdk",
1772
- version: "0.1.245-beta.4",
1772
+ version: "0.1.245-beta.6",
1773
1773
  private: false,
1774
1774
  publishConfig: {
1775
1775
  access: "public"
@@ -20956,9 +20956,7 @@ var Utils = class {
20956
20956
  provider
20957
20957
  );
20958
20958
  try {
20959
- const networkFee = await marketManagerContract.getExecutionFee(
20960
- marketId
20961
- );
20959
+ const networkFee = await marketManagerContract.getExecutionFee(marketId);
20962
20960
  return networkFee.toString();
20963
20961
  } catch (error) {
20964
20962
  this.logger.error("Error getting network fee:", error);
@@ -21116,7 +21114,11 @@ var Utils = class {
21116
21114
  }
21117
21115
  async getGasLimitByRatio(gasLimit) {
21118
21116
  const chainId = this.configManager.getConfig().chainId;
21119
- return bigintTradingGasToRatioCalculator(gasLimit, chainId);
21117
+ const chainInfo = CHAIN_INFO[chainId];
21118
+ return bigintTradingGasToRatioCalculator(
21119
+ gasLimit,
21120
+ chainInfo?.gasLimitRatio ?? 1.3
21121
+ );
21120
21122
  }
21121
21123
  };
21122
21124
 
@@ -23198,6 +23200,7 @@ var Appeal = class extends BaseMyxClient {
23198
23200
  value
23199
23201
  }
23200
23202
  );
23203
+ this.client.logger.debug("_gasLimit", _gasLimit);
23201
23204
  const gasLimit = await this.client.utils.getGasLimitByRatio(_gasLimit);
23202
23205
  const gasPrice = await this.client.utils.getGasPriceByRatio();
23203
23206
  this.client.logger.debug("txParams", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myx-trade/sdk",
3
- "version": "0.1.245-beta.4",
3
+ "version": "0.1.245-beta.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"