@pioneer-platform/pioneer-caip 9.2.14 → 9.2.15

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.
Files changed (2) hide show
  1. package/lib/data.js +6 -1
  2. package/package.json +1 -1
package/lib/data.js CHANGED
@@ -286,9 +286,10 @@ var thorchainToCaip = function (chain, symbol, ticker, type) {
286
286
  try {
287
287
  var caip = void 0;
288
288
  var key = chain + '.' + symbol; // Concatenate chain and symbol
289
+ console.log("key:", key);
289
290
  switch (key) {
290
291
  case "OSMO.ATOM":
291
- console.log("IBC atom detected");
292
+ // Specific case for OSMO.ATOM
292
293
  caip = 'cosmos:osmosis-1/ibc:B011C1A0AD5E717F674BA59FD8E05B2F946E4FD41C9CB3311C95F7ED4B815620';
293
294
  break;
294
295
  case "AVAX.WETH":
@@ -350,6 +351,10 @@ var caipToThorchain = function (caip, ticker) {
350
351
  console.error("No matching chain symbol found for network ID", networkId);
351
352
  return null;
352
353
  }
354
+ // Special handling for 'OSMO.ATOM'
355
+ if (networkId === 'cosmos:osmosis-1' && ticker === 'ATOM') {
356
+ return 'OSMO.ATOM';
357
+ }
353
358
  // Handling contract tokens
354
359
  if (caip.includes('erc20')) {
355
360
  if (!ticker) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pioneer-platform/pioneer-caip",
3
- "version": "9.2.14",
3
+ "version": "9.2.15",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/main.d.ts",
6
6
  "_moduleAliases": {