@shapeshiftoss/caip 5.3.0 → 5.4.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.
@@ -4,10 +4,12 @@ export declare const btcAssetId: AssetId;
4
4
  export declare const ethAssetId: AssetId;
5
5
  export declare const cosmosAssetId: AssetId;
6
6
  export declare const osmosisAssetId: AssetId;
7
+ export declare const avalancheAssetId: AssetId;
7
8
  export declare const ethChainId: ChainId;
8
9
  export declare const btcChainId: ChainId;
9
10
  export declare const cosmosChainId: ChainId;
10
11
  export declare const osmosisChainId: ChainId;
12
+ export declare const avalancheChainId: ChainId;
11
13
  export declare const CHAIN_NAMESPACE: {
12
14
  readonly Ethereum: "eip155";
13
15
  readonly Bitcoin: "bip122";
@@ -26,6 +28,7 @@ export declare const CHAIN_REFERENCE: {
26
28
  readonly CosmosHubVega: "vega-testnet";
27
29
  readonly OsmosisMainnet: "osmosis-1";
28
30
  readonly OsmosisTestnet: "osmo-testnet-1";
31
+ readonly AvalancheCChain: "43114";
29
32
  };
30
33
  export declare const VALID_CHAIN_IDS: ValidChainMap;
31
34
  declare type ValidAssetNamespace = {
package/dist/constants.js CHANGED
@@ -1,14 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ASSET_REFERENCE = exports.ASSET_NAMESPACE_STRINGS = exports.VALID_ASSET_NAMESPACE = exports.VALID_CHAIN_IDS = exports.CHAIN_REFERENCE = exports.CHAIN_NAMESPACE = exports.osmosisChainId = exports.cosmosChainId = exports.btcChainId = exports.ethChainId = exports.osmosisAssetId = exports.cosmosAssetId = exports.ethAssetId = exports.btcAssetId = void 0;
3
+ exports.ASSET_REFERENCE = exports.ASSET_NAMESPACE_STRINGS = exports.VALID_ASSET_NAMESPACE = exports.VALID_CHAIN_IDS = exports.CHAIN_REFERENCE = exports.CHAIN_NAMESPACE = exports.avalancheChainId = exports.osmosisChainId = exports.cosmosChainId = exports.btcChainId = exports.ethChainId = exports.avalancheAssetId = exports.osmosisAssetId = exports.cosmosAssetId = exports.ethAssetId = exports.btcAssetId = void 0;
4
4
  exports.btcAssetId = 'bip122:000000000019d6689c085ae165831e93/slip44:0';
5
5
  exports.ethAssetId = 'eip155:1/slip44:60';
6
6
  exports.cosmosAssetId = 'cosmos:cosmoshub-4/slip44:118';
7
7
  exports.osmosisAssetId = 'cosmos:osmosis-1/slip44:118';
8
+ exports.avalancheAssetId = 'eip155:43114/slip44:9000';
8
9
  exports.ethChainId = 'eip155:1';
9
10
  exports.btcChainId = 'bip122:000000000019d6689c085ae165831e93';
10
11
  exports.cosmosChainId = 'cosmos:cosmoshub-4';
11
12
  exports.osmosisChainId = 'cosmos:osmosis-1';
13
+ exports.avalancheChainId = 'eip155:43114';
12
14
  exports.CHAIN_NAMESPACE = {
13
15
  Ethereum: 'eip155',
14
16
  Bitcoin: 'bip122',
@@ -26,14 +28,16 @@ exports.CHAIN_REFERENCE = {
26
28
  CosmosHubMainnet: 'cosmoshub-4',
27
29
  CosmosHubVega: 'vega-testnet',
28
30
  OsmosisMainnet: 'osmosis-1',
29
- OsmosisTestnet: 'osmo-testnet-1'
31
+ OsmosisTestnet: 'osmo-testnet-1',
32
+ AvalancheCChain: '43114' // https://docs.avax.network/apis/avalanchego/apis/c-chain
30
33
  };
31
34
  exports.VALID_CHAIN_IDS = Object.freeze({
32
35
  [exports.CHAIN_NAMESPACE.Bitcoin]: [exports.CHAIN_REFERENCE.BitcoinMainnet, exports.CHAIN_REFERENCE.BitcoinTestnet],
33
36
  [exports.CHAIN_NAMESPACE.Ethereum]: [
34
37
  exports.CHAIN_REFERENCE.EthereumMainnet,
35
38
  exports.CHAIN_REFERENCE.EthereumRopsten,
36
- exports.CHAIN_REFERENCE.EthereumRinkeby
39
+ exports.CHAIN_REFERENCE.EthereumRinkeby,
40
+ exports.CHAIN_REFERENCE.AvalancheCChain
37
41
  ],
38
42
  [exports.CHAIN_NAMESPACE.Cosmos]: [
39
43
  exports.CHAIN_REFERENCE.CosmosHubMainnet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshiftoss/caip",
3
- "version": "5.3.0",
3
+ "version": "5.4.0",
4
4
  "description": "CAIP Implementation",
5
5
  "homepage": "",
6
6
  "license": "MIT",