@xchainjs/xchain-mayachain-amm 1.0.14 → 1.1.0
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/lib/index.esm.js +2 -2
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/lib/index.esm.js
CHANGED
|
@@ -509269,7 +509269,7 @@ class MayachainAMM {
|
|
|
509269
509269
|
const hash = yield this.wallet.deposit({ chain: MAYAChain, asset: amount.asset, amount: amount.baseAmount, memo });
|
|
509270
509270
|
return {
|
|
509271
509271
|
hash,
|
|
509272
|
-
url: yield this.wallet.getExplorerTxUrl(
|
|
509272
|
+
url: yield this.wallet.getExplorerTxUrl(MAYAChain, hash),
|
|
509273
509273
|
};
|
|
509274
509274
|
});
|
|
509275
509275
|
}
|
|
@@ -509333,7 +509333,7 @@ class MayachainAMM {
|
|
|
509333
509333
|
isERC20Asset(asset) {
|
|
509334
509334
|
// Check if the asset's chain is an EVM chain and if the symbol matches AssetETH.symbol
|
|
509335
509335
|
return this.isEVMChain(asset.chain)
|
|
509336
|
-
? [AssetETH].findIndex((nativeEVMAsset) => eqAsset$1(nativeEVMAsset, asset)) === -1
|
|
509336
|
+
? [AssetETH].findIndex((nativeEVMAsset) => eqAsset$1(nativeEVMAsset, asset)) === -1 && !asset.synth
|
|
509337
509337
|
: false;
|
|
509338
509338
|
}
|
|
509339
509339
|
/**
|
package/lib/index.js
CHANGED
|
@@ -509300,7 +509300,7 @@ class MayachainAMM {
|
|
|
509300
509300
|
const hash = yield this.wallet.deposit({ chain: MAYAChain, asset: amount.asset, amount: amount.baseAmount, memo });
|
|
509301
509301
|
return {
|
|
509302
509302
|
hash,
|
|
509303
|
-
url: yield this.wallet.getExplorerTxUrl(
|
|
509303
|
+
url: yield this.wallet.getExplorerTxUrl(MAYAChain, hash),
|
|
509304
509304
|
};
|
|
509305
509305
|
});
|
|
509306
509306
|
}
|
|
@@ -509364,7 +509364,7 @@ class MayachainAMM {
|
|
|
509364
509364
|
isERC20Asset(asset) {
|
|
509365
509365
|
// Check if the asset's chain is an EVM chain and if the symbol matches AssetETH.symbol
|
|
509366
509366
|
return this.isEVMChain(asset.chain)
|
|
509367
|
-
? [xchainEthereum.AssetETH].findIndex((nativeEVMAsset) => xchainUtil.eqAsset(nativeEVMAsset, asset)) === -1
|
|
509367
|
+
? [xchainEthereum.AssetETH].findIndex((nativeEVMAsset) => xchainUtil.eqAsset(nativeEVMAsset, asset)) === -1 && !asset.synth
|
|
509368
509368
|
: false;
|
|
509369
509369
|
}
|
|
509370
509370
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-mayachain-amm",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "module that exposes estimating & swapping cryptocurrency assets on mayachain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MAYAChain",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"url": "git@github.com:xchainjs/xchainjs-lib.git"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
|
-
"clean": "
|
|
27
|
+
"clean": "rm -rf .turbo && rm -rf lib",
|
|
28
28
|
"build": "yarn clean && rollup -c",
|
|
29
29
|
"test": "jest",
|
|
30
30
|
"e2e": "jest --config jest.config.e2e.js",
|
|
@@ -94,4 +94,4 @@
|
|
|
94
94
|
"publishConfig": {
|
|
95
95
|
"access": "public"
|
|
96
96
|
}
|
|
97
|
-
}
|
|
97
|
+
}
|