@myx-trade/sdk 0.1.258 → 0.1.264
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1773,7 +1773,7 @@ var RotationProvider = class extends import_providers.BaseProvider {
|
|
|
1773
1773
|
// package.json
|
|
1774
1774
|
var package_default = {
|
|
1775
1775
|
name: "@myx-trade/sdk",
|
|
1776
|
-
version: "0.1.
|
|
1776
|
+
version: "0.1.264",
|
|
1777
1777
|
private: false,
|
|
1778
1778
|
publishConfig: {
|
|
1779
1779
|
access: "public"
|
|
@@ -23030,6 +23030,7 @@ var Seamless = class {
|
|
|
23030
23030
|
data
|
|
23031
23031
|
});
|
|
23032
23032
|
const forwardFeeToken = executeAddressByChainId(chainId);
|
|
23033
|
+
this.logger.info("forwarderTx-->", { from, to, value, gas, nonce, data, deadline, signature, forwardFeeToken }, chainId);
|
|
23033
23034
|
const txRs = await this.api.forwarderTxApi({ from, to, value, gas, nonce, data, deadline, signature, forwardFeeToken }, chainId);
|
|
23034
23035
|
return txRs;
|
|
23035
23036
|
}
|
|
@@ -23046,6 +23047,9 @@ var Seamless = class {
|
|
|
23046
23047
|
provider
|
|
23047
23048
|
);
|
|
23048
23049
|
const forwardFeeToken = executeAddressByChainId(chainId);
|
|
23050
|
+
this.logger.info("forwardFeeToken-->", forwardFeeToken, chainId);
|
|
23051
|
+
this.logger.info("marketManagerContract-->", marketManagerContract.target, chainId);
|
|
23052
|
+
this.logger.info("marketManagerContract.getForwardFeeByToken-->", marketManagerContract.getForwardFeeByToken);
|
|
23049
23053
|
const pledgeFee = await marketManagerContract.getForwardFeeByToken(forwardFeeToken);
|
|
23050
23054
|
const gasFee = BigInt(pledgeFee) * BigInt(FORWARD_PLEDGE_FEE_RADIO);
|
|
23051
23055
|
if (gasFee > 0 && gasFee > BigInt(balance)) {
|
package/dist/index.mjs
CHANGED
|
@@ -1687,7 +1687,7 @@ var RotationProvider = class extends BaseProvider {
|
|
|
1687
1687
|
// package.json
|
|
1688
1688
|
var package_default = {
|
|
1689
1689
|
name: "@myx-trade/sdk",
|
|
1690
|
-
version: "0.1.
|
|
1690
|
+
version: "0.1.264",
|
|
1691
1691
|
private: false,
|
|
1692
1692
|
publishConfig: {
|
|
1693
1693
|
access: "public"
|
|
@@ -22944,6 +22944,7 @@ var Seamless = class {
|
|
|
22944
22944
|
data
|
|
22945
22945
|
});
|
|
22946
22946
|
const forwardFeeToken = executeAddressByChainId(chainId);
|
|
22947
|
+
this.logger.info("forwarderTx-->", { from, to, value, gas, nonce, data, deadline, signature, forwardFeeToken }, chainId);
|
|
22947
22948
|
const txRs = await this.api.forwarderTxApi({ from, to, value, gas, nonce, data, deadline, signature, forwardFeeToken }, chainId);
|
|
22948
22949
|
return txRs;
|
|
22949
22950
|
}
|
|
@@ -22960,6 +22961,9 @@ var Seamless = class {
|
|
|
22960
22961
|
provider
|
|
22961
22962
|
);
|
|
22962
22963
|
const forwardFeeToken = executeAddressByChainId(chainId);
|
|
22964
|
+
this.logger.info("forwardFeeToken-->", forwardFeeToken, chainId);
|
|
22965
|
+
this.logger.info("marketManagerContract-->", marketManagerContract.target, chainId);
|
|
22966
|
+
this.logger.info("marketManagerContract.getForwardFeeByToken-->", marketManagerContract.getForwardFeeByToken);
|
|
22963
22967
|
const pledgeFee = await marketManagerContract.getForwardFeeByToken(forwardFeeToken);
|
|
22964
22968
|
const gasFee = BigInt(pledgeFee) * BigInt(FORWARD_PLEDGE_FEE_RADIO);
|
|
22965
22969
|
if (gasFee > 0 && gasFee > BigInt(balance)) {
|