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

mec

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mec - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

3

commands/txpool-commands.js

@@ -26,3 +26,4 @@ const exec = require('child_process').exec;

return new Promise((r,e)=>{
execute(`echo '{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":1092015}' | nc -U .chainData/signup/./MEC.ipc`).then((result)=>{
console.log(node)
execute(`echo '{"jsonrpc":"2.0","method":"txpool_content","params":[],"id":1092015}' | nc -U .chainData/${node}/./MEC.ipc`).then((result)=>{
r(result);

@@ -29,0 +30,0 @@ })

@@ -14,5 +14,5 @@ const m = require('../utils/Makers.js')

m.Client(name, chainId, k.ports, k.discovery, true).then(res=>{
let path = `.chainDatcd a/${name}/./MEC.ipc`
let path = `.chainData/${name}/./MEC.ipc`
k.ipc[name] = s.setIpcProvider(path)
nodec.connectConsortium(
c.connectConsortium(
c.consortium_params(

@@ -19,0 +19,0 @@ s.enode(name),

@@ -6,3 +6,3 @@ const k = require('../appStructure/keyElements.js')

setInterval(() => {
let a = new pool(k.ipc[name])
let a = new pool(name)
pool.content

@@ -9,0 +9,0 @@ .then(res=>{

{
"name": "mec",
"version": "0.0.5",
"version": "0.0.6",
"description": "This package helps to create multi-layer chains upon Ethereum Network. Also it provides easy to use nodejs API to any of consortium network and helps to manage all of them at the same time",

@@ -20,5 +20,12 @@ "main": "mec.js",

"Tooneling",
"DAPPS"
"DAPPS",
"Offchain",
"Layer",
"Chain"
],
"author": "Sizov Bogdan <sizov.workingbox@gmail.com>",
"author": {
"name": "Sizov Bogdan",
"email": "sizov.workingbox@gmail.com",
"url": ""
},
"license": "LGPL-3.0",

@@ -32,3 +39,7 @@ "dependencies": {

"web3_ipc": "^1.4.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/MEC-org/nodejs-MEC.git"
}
}

@@ -11,3 +11,3 @@ /* * * * * * * * * * * * * * * * * * * * * * * * *

ncp(
`.chainData/main/keystore/`,
`.chainData/signup/keystore/`,
`.chainData/${newChain}/keystore/`,

@@ -14,0 +14,0 @@ (err)=>{

@@ -26,6 +26,9 @@ const m = require('./Makers.js')

return new Promise((r,e)=>{
let who = params.network;
console.log(params)
let who = params.network;
let net = getNetObjByName(who)
// setting remote provider, change to local
chain = m.newWeb3Provider(params.server).eth;

@@ -46,2 +49,6 @@

if(!params.node) {
r(true);
}
keys.ipc[who].admin.addPeer(params.node, (err,res)=>{

@@ -48,0 +55,0 @@ if(err) e(err);

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