@shapeshiftoss/caip 6.16.0 → 7.0.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.
|
@@ -77,7 +77,7 @@ const chainIdToCoingeckoAssetPlatform = (chainId) => {
|
|
|
77
77
|
throw new Error(`chainNamespace ${chainNamespace}, chainReference ${chainReference} not supported.`);
|
|
78
78
|
}
|
|
79
79
|
// No valid asset platform: https://api.coingecko.com/api/v3/asset_platforms
|
|
80
|
-
case constants_1.CHAIN_NAMESPACE.
|
|
80
|
+
case constants_1.CHAIN_NAMESPACE.Utxo:
|
|
81
81
|
default:
|
|
82
82
|
throw new Error(`chainNamespace ${chainNamespace} not supported.`);
|
|
83
83
|
}
|
package/dist/constants.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare const cosmosChainId: ChainId;
|
|
|
18
18
|
export declare const osmosisChainId: ChainId;
|
|
19
19
|
export declare const CHAIN_NAMESPACE: {
|
|
20
20
|
readonly Ethereum: "eip155";
|
|
21
|
-
readonly
|
|
21
|
+
readonly Utxo: "bip122";
|
|
22
22
|
readonly Cosmos: "cosmos";
|
|
23
23
|
};
|
|
24
24
|
declare type ValidChainMap = {
|
package/dist/constants.js
CHANGED
|
@@ -19,7 +19,7 @@ exports.cosmosChainId = 'cosmos:cosmoshub-4';
|
|
|
19
19
|
exports.osmosisChainId = 'cosmos:osmosis-1';
|
|
20
20
|
exports.CHAIN_NAMESPACE = {
|
|
21
21
|
Ethereum: 'eip155',
|
|
22
|
-
|
|
22
|
+
Utxo: 'bip122',
|
|
23
23
|
Cosmos: 'cosmos',
|
|
24
24
|
};
|
|
25
25
|
exports.CHAIN_REFERENCE = {
|
|
@@ -41,7 +41,7 @@ exports.CHAIN_REFERENCE = {
|
|
|
41
41
|
AvalancheCChain: '43114', // https://docs.avax.network/apis/avalanchego/apis/c-chain
|
|
42
42
|
};
|
|
43
43
|
exports.VALID_CHAIN_IDS = Object.freeze({
|
|
44
|
-
[exports.CHAIN_NAMESPACE.
|
|
44
|
+
[exports.CHAIN_NAMESPACE.Utxo]: [
|
|
45
45
|
exports.CHAIN_REFERENCE.BitcoinMainnet,
|
|
46
46
|
exports.CHAIN_REFERENCE.BitcoinTestnet,
|
|
47
47
|
exports.CHAIN_REFERENCE.BitcoinCashMainnet,
|
|
@@ -62,7 +62,7 @@ exports.VALID_CHAIN_IDS = Object.freeze({
|
|
|
62
62
|
],
|
|
63
63
|
});
|
|
64
64
|
exports.VALID_ASSET_NAMESPACE = Object.freeze({
|
|
65
|
-
[exports.CHAIN_NAMESPACE.
|
|
65
|
+
[exports.CHAIN_NAMESPACE.Utxo]: ['slip44'],
|
|
66
66
|
[exports.CHAIN_NAMESPACE.Ethereum]: ['slip44', 'erc20', 'erc721'],
|
|
67
67
|
[exports.CHAIN_NAMESPACE.Cosmos]: ['cw20', 'cw721', 'ibc', 'native', 'slip44'],
|
|
68
68
|
});
|