Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@masa-finance/masa-cli

Package Overview
Dependencies
Maintainers
5
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@masa-finance/masa-cli - npm Package Compare versions

Comparing version 2.14.0 to 2.14.1

8

dist/package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc