@xchainjs/xchain-mayachain-amm 3.0.17 → 3.0.18
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 +7 -0
- package/lib/index.js +7 -0
- package/package.json +12 -12
package/lib/index.esm.js
CHANGED
|
@@ -9045,6 +9045,7 @@ var AssetType;
|
|
|
9045
9045
|
AssetType[AssetType["TOKEN"] = 1] = "TOKEN";
|
|
9046
9046
|
AssetType[AssetType["SYNTH"] = 2] = "SYNTH";
|
|
9047
9047
|
AssetType[AssetType["TRADE"] = 3] = "TRADE";
|
|
9048
|
+
AssetType[AssetType["SECURED"] = 4] = "SECURED";
|
|
9048
9049
|
})(AssetType || (AssetType = {}));
|
|
9049
9050
|
|
|
9050
9051
|
/**
|
|
@@ -9081,6 +9082,10 @@ const SYNTH_ASSET_DELIMITER = '/';
|
|
|
9081
9082
|
* Trade asset delimiter
|
|
9082
9083
|
*/
|
|
9083
9084
|
const TRADE_ASSET_DELIMITER = '~';
|
|
9085
|
+
/**
|
|
9086
|
+
* Secured asset delimiter
|
|
9087
|
+
*/
|
|
9088
|
+
const SECURED_ASSET_DELIMITER = '-';
|
|
9084
9089
|
/**
|
|
9085
9090
|
* Factory to create values of assets (e.g. RUNE)
|
|
9086
9091
|
*
|
|
@@ -9245,6 +9250,8 @@ const assetToString = ({ chain, symbol, type }) => {
|
|
|
9245
9250
|
return `${chain}${TOKEN_ASSET_DELIMITER}${symbol}`;
|
|
9246
9251
|
case AssetType.TRADE:
|
|
9247
9252
|
return `${chain}${TRADE_ASSET_DELIMITER}${symbol}`;
|
|
9253
|
+
case AssetType.SECURED:
|
|
9254
|
+
return `${chain}${SECURED_ASSET_DELIMITER}${symbol}`;
|
|
9248
9255
|
default:
|
|
9249
9256
|
return `${chain}${NATIVE_ASSET_DELIMITER}${symbol}`;
|
|
9250
9257
|
}
|
package/lib/index.js
CHANGED
|
@@ -9051,6 +9051,7 @@ var AssetType;
|
|
|
9051
9051
|
AssetType[AssetType["TOKEN"] = 1] = "TOKEN";
|
|
9052
9052
|
AssetType[AssetType["SYNTH"] = 2] = "SYNTH";
|
|
9053
9053
|
AssetType[AssetType["TRADE"] = 3] = "TRADE";
|
|
9054
|
+
AssetType[AssetType["SECURED"] = 4] = "SECURED";
|
|
9054
9055
|
})(AssetType || (AssetType = {}));
|
|
9055
9056
|
|
|
9056
9057
|
/**
|
|
@@ -9087,6 +9088,10 @@ const SYNTH_ASSET_DELIMITER = '/';
|
|
|
9087
9088
|
* Trade asset delimiter
|
|
9088
9089
|
*/
|
|
9089
9090
|
const TRADE_ASSET_DELIMITER = '~';
|
|
9091
|
+
/**
|
|
9092
|
+
* Secured asset delimiter
|
|
9093
|
+
*/
|
|
9094
|
+
const SECURED_ASSET_DELIMITER = '-';
|
|
9090
9095
|
/**
|
|
9091
9096
|
* Factory to create values of assets (e.g. RUNE)
|
|
9092
9097
|
*
|
|
@@ -9251,6 +9256,8 @@ const assetToString = ({ chain, symbol, type }) => {
|
|
|
9251
9256
|
return `${chain}${TOKEN_ASSET_DELIMITER}${symbol}`;
|
|
9252
9257
|
case AssetType.TRADE:
|
|
9253
9258
|
return `${chain}${TRADE_ASSET_DELIMITER}${symbol}`;
|
|
9259
|
+
case AssetType.SECURED:
|
|
9260
|
+
return `${chain}${SECURED_ASSET_DELIMITER}${symbol}`;
|
|
9254
9261
|
default:
|
|
9255
9262
|
return `${chain}${NATIVE_ASSET_DELIMITER}${symbol}`;
|
|
9256
9263
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-mayachain-amm",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.18",
|
|
4
4
|
"description": "module that exposes estimating & swapping cryptocurrency assets on mayachain",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MAYAChain",
|
|
@@ -36,17 +36,17 @@
|
|
|
36
36
|
"url": "https://github.com/xchainjs/xchainjs-lib/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xchainjs/xchain-arbitrum": "1.0.
|
|
40
|
-
"@xchainjs/xchain-bitcoin": "1.2.
|
|
41
|
-
"@xchainjs/xchain-client": "1.0.
|
|
42
|
-
"@xchainjs/xchain-dash": "1.0.
|
|
43
|
-
"@xchainjs/xchain-ethereum": "1.0.
|
|
44
|
-
"@xchainjs/xchain-kujira": "1.0.
|
|
45
|
-
"@xchainjs/xchain-mayachain": "2.0.
|
|
46
|
-
"@xchainjs/xchain-mayachain-query": "1.0.
|
|
47
|
-
"@xchainjs/xchain-radix": "1.1.
|
|
48
|
-
"@xchainjs/xchain-thorchain": "2.0.
|
|
49
|
-
"@xchainjs/xchain-wallet": "1.1.
|
|
39
|
+
"@xchainjs/xchain-arbitrum": "1.0.14",
|
|
40
|
+
"@xchainjs/xchain-bitcoin": "1.2.1",
|
|
41
|
+
"@xchainjs/xchain-client": "1.0.9",
|
|
42
|
+
"@xchainjs/xchain-dash": "1.0.9",
|
|
43
|
+
"@xchainjs/xchain-ethereum": "1.0.13",
|
|
44
|
+
"@xchainjs/xchain-kujira": "1.0.11",
|
|
45
|
+
"@xchainjs/xchain-mayachain": "2.0.11",
|
|
46
|
+
"@xchainjs/xchain-mayachain-query": "1.0.10",
|
|
47
|
+
"@xchainjs/xchain-radix": "1.1.7",
|
|
48
|
+
"@xchainjs/xchain-thorchain": "2.0.12",
|
|
49
|
+
"@xchainjs/xchain-wallet": "1.1.4",
|
|
50
50
|
"ethers": "5.7.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|