@masa-finance/masa-cli
Advanced tools
Comparing version 2.14.0 to 2.14.1
{ | ||
"name": "@masa-finance/masa-cli", | ||
"version": "2.14.0", | ||
"version": "2.14.1", | ||
"description": "The Masa CLI", | ||
@@ -20,3 +20,3 @@ "main": "./dist/src/index.js", | ||
"@masa-finance/masa-contracts-oracle": "^0.2.0", | ||
"@masa-finance/masa-sdk": "^3.27.2", | ||
"@masa-finance/masa-sdk": "^3.27.3", | ||
"@types/clear": "^0.1.4", | ||
@@ -33,3 +33,3 @@ "@types/figlet": "^1.5.8", | ||
"devDependencies": { | ||
"@types/node": "^20.12.3", | ||
"@types/node": "^20.12.4", | ||
"@typescript-eslint/eslint-plugin": "^7.5.0", | ||
@@ -39,4 +39,4 @@ "@typescript-eslint/parser": "^7.5.0", | ||
"prettier": "^3.1.0", | ||
"typescript": "^5.4.3" | ||
"typescript": "^5.4.4" | ||
} | ||
} |
@@ -11,2 +11,5 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -16,4 +19,5 @@ exports.mesh = void 0; | ||
const ethers_1 = require("ethers"); | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const mesh = (...args_1) => __awaiter(void 0, [...args_1], void 0, function* (testnets = false, verbose) { | ||
var _a, _b; | ||
var _a; | ||
console.log("Masa Token Mesh viewer"); | ||
@@ -24,2 +28,3 @@ if (testnets) { | ||
const masaTokenNetworks = Object.values(masa_sdk_1.SupportedNetworks).filter((network) => { var _a, _b; return ((_b = (_a = network.addresses) === null || _a === void 0 ? void 0 : _a.tokens) === null || _b === void 0 ? void 0 : _b.MASA) && network.isTestnet === testnets; }); | ||
console.log(""); | ||
for (const network of masaTokenNetworks) { | ||
@@ -49,6 +54,6 @@ const networkMasa = new masa_sdk_1.Masa({ | ||
const isPeer = yield networkOFT.isPeer((_a = peerNetwork.lzEndpointId) !== null && _a !== void 0 ? _a : 0, ethers_1.utils.zeroPad(peerOFT.address, 32)); | ||
if (!isPeer) { | ||
const peer = yield networkOFT.peers((_b = peerNetwork.lzEndpointId) !== null && _b !== void 0 ? _b : 0); | ||
if (!isPeer && peerNetwork.lzEndpointId) { | ||
const peer = yield networkOFT.peers(peerNetwork.lzEndpointId); | ||
if (peer !== ethers_1.utils.hexZeroPad(ethers_1.constants.AddressZero, 32)) { | ||
console.info({ peer }); | ||
console.warn(chalk_1.default.yellow(`Peers are not as expected! Peer expected: ${peerOFT.address} but got: ${ethers_1.utils.hexStripZeros(peer)} for network ${peerNetwork.lzEndpointId}!`)); | ||
} | ||
@@ -61,4 +66,5 @@ } | ||
} | ||
console.log(""); | ||
} | ||
}); | ||
exports.mesh = mesh; |
{ | ||
"name": "@masa-finance/masa-cli", | ||
"version": "2.14.0", | ||
"version": "2.14.1", | ||
"description": "The Masa CLI", | ||
@@ -20,3 +20,3 @@ "main": "./dist/src/index.js", | ||
"@masa-finance/masa-contracts-oracle": "^0.2.0", | ||
"@masa-finance/masa-sdk": "^3.27.2", | ||
"@masa-finance/masa-sdk": "^3.27.3", | ||
"@types/clear": "^0.1.4", | ||
@@ -33,3 +33,3 @@ "@types/figlet": "^1.5.8", | ||
"devDependencies": { | ||
"@types/node": "^20.12.3", | ||
"@types/node": "^20.12.4", | ||
"@typescript-eslint/eslint-plugin": "^7.5.0", | ||
@@ -39,4 +39,4 @@ "@typescript-eslint/parser": "^7.5.0", | ||
"prettier": "^3.1.0", | ||
"typescript": "^5.4.3" | ||
"typescript": "^5.4.4" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
223910
2658