@pioneer-platform/pioneer-caip 9.0.5 → 9.0.7

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/data.d.ts CHANGED
@@ -8,7 +8,7 @@ export declare const evmCaips: {
8
8
  gnosis: string;
9
9
  'binance-smart-chain': string;
10
10
  'smart-bitcoin-cash': string;
11
- 'arbitrum-one': string;
11
+ arbitrum: string;
12
12
  fuse: string;
13
13
  'bittorrent-chain': string;
14
14
  celo: string;
@@ -82,6 +82,7 @@ export declare const shortListSymbolToCaip: {
82
82
  };
83
83
  export declare const shortListNameToCaip: {
84
84
  bitcoin: string;
85
+ arbitrum: string;
85
86
  cosmos: string;
86
87
  osmosis: string;
87
88
  polygon: string;
package/lib/data.js CHANGED
@@ -11,7 +11,7 @@ exports.evmCaips = {
11
11
  'gnosis': 'eip155:100/slip44:60',
12
12
  'binance-smart-chain': 'eip155:56/slip44:60',
13
13
  'smart-bitcoin-cash': 'eip155:10000/slip44:60',
14
- 'arbitrum-one': 'eip155:42161/slip44:60',
14
+ 'arbitrum': 'eip155:42161/slip44:60',
15
15
  fuse: 'eip155:122/slip44:60',
16
16
  'bittorrent-chain': 'eip155:199/slip44:60',
17
17
  celo: 'eip155:42220/slip44:60',
@@ -46,7 +46,7 @@ var Chain;
46
46
  Chain["Ripple"] = "XRP";
47
47
  Chain["THORChain"] = "THOR";
48
48
  Chain["Zcash"] = "ZEC";
49
- })(Chain || (exports.Chain = Chain = {}));
49
+ })(Chain = exports.Chain || (exports.Chain = {}));
50
50
  exports.ChainToCaip = {
51
51
  'ARB': 'eip155:42161/slip44:60',
52
52
  'AVAX': 'eip155:43114/slip44:60',
@@ -147,7 +147,7 @@ function getChainEnumValue(chainStr) {
147
147
  }
148
148
  exports.getChainEnumValue = getChainEnumValue;
149
149
  exports.shortListSymbolToCoinGeckoPlatformId = {
150
- ARB: 'arbitrum-one',
150
+ ARB: 'arbitrum',
151
151
  BASE: 'base',
152
152
  ETH: 'ethereum',
153
153
  GNO: 'gnosis-chain',
@@ -182,6 +182,7 @@ exports.shortListSymbolToCaip = {
182
182
  };
183
183
  exports.shortListNameToCaip = {
184
184
  bitcoin: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
185
+ arbitrum: 'bip122:000000000019d6689c085ae165831e93/slip44:0',
185
186
  cosmos: 'cosmos:cosmoshub-4/slip44:118',
186
187
  osmosis: 'cosmos:osmosis-1/slip44:118',
187
188
  polygon: 'eip155:137/slip44:60',
@@ -223,6 +224,14 @@ var thorchainToCaip = function (chain, symbol, ticker, type) {
223
224
  //if chain and symbol are the same, then we have a native token
224
225
  caip = exports.shortListNameToCaip['cosmos'];
225
226
  }
227
+ else if (chain == "ARB" && symbol == "ETH") {
228
+ //if chain and symbol are the same, then we have a native token
229
+ caip = exports.shortListNameToCaip['arbitrum'];
230
+ }
231
+ else if (chain == "THOR" && symbol == "RUNE") {
232
+ //if chain and symbol are the same, then we have a native token
233
+ caip = exports.shortListNameToCaip['thorchain'];
234
+ }
226
235
  else if (chain == symbol) {
227
236
  //if chain and symbol are the same, then we have a native token
228
237
  caip = exports.ChainToCaip[chain];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-caip",
3
- "version": "9.0.5",
3
+ "version": "9.0.7",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {