@pioneer-platform/pioneer-caip 9.2.22 → 9.2.24
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.js +3 -3
- package/package.json +1 -1
package/lib/data.js
CHANGED
@@ -252,7 +252,7 @@ exports.NetworkIdToRangoName = NetworkIdToRangoName;
|
|
252
252
|
var tokenToCaip = function (token) {
|
253
253
|
try {
|
254
254
|
var caip = void 0;
|
255
|
-
console.log("token",
|
255
|
+
// console.log("token",token)
|
256
256
|
if (token.address) {
|
257
257
|
// For ERC20 tokens
|
258
258
|
var networkId = exports.ChainToNetworkId[token.chain];
|
@@ -295,7 +295,7 @@ var thorchainToCaip = function (identifier) {
|
|
295
295
|
caip = "".concat(networkId, "/erc20:").concat(contract);
|
296
296
|
return caip;
|
297
297
|
}
|
298
|
-
console.log("key:", identifier);
|
298
|
+
// console.log("key:", identifier);
|
299
299
|
switch (identifier) {
|
300
300
|
case "OSMO.ATOM":
|
301
301
|
caip = 'cosmos:osmosis-1/ibc:B011C1A0AD5E717F674BA59FD8E05B2F946E4FD41C9CB3311C95F7ED4B815620';
|
@@ -342,7 +342,7 @@ exports.thorchainToCaip = thorchainToCaip;
|
|
342
342
|
var caipToThorchain = function (caip, ticker) {
|
343
343
|
try {
|
344
344
|
var networkId = caip.split('/')[0]; // Splitting off the network ID from the CAIP
|
345
|
-
console.log("networkId: ", networkId);
|
345
|
+
// console.log("networkId: ", networkId);
|
346
346
|
if (!networkId)
|
347
347
|
throw Error("Invalid CAIP!");
|
348
348
|
var chain = exports.NetworkIdToChain[networkId];
|