![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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
The official repository for mec npm package. The mec package is designed to quickly deploy a MEC client in a nodejs application and quickly integrate with any service from a decentralized MEC network
const mec = require('mec')
// mec.layer.init(your_password), by default set to 1234
mec.layer.init("1234")
mec.layer.search("signup")
Response contains interface needed to start new sub-network connection:
{
"name": "signup",
"enode": "enode://b61f72cb88eed0ea9c2214492186a473774a8a9bb3…38cc9d0230a81d8fde59724ea313fa@212.20.41.42:30303",
"address": "0xeac784b35b697740a3dc17ec59247749cc298c37",
"abi": [
{
"constant":true,
"inputs":[0],
"name":"abidata",
"outputs":[1],
"payable":false,
"stateMutability":"view",
"type":"function"
},
{},
{}
]
}
mec.layer.getInterface()
Response contains all available sub-networks interfaces:
{
"abi": [3],
"address": "0xeac784b35b697740a3dc17ec59247749cc298c37",
"enode": "enode://b61f72cb88eed0ea9c2214492186a473774a8a9bb318194ac38d3900062a11a0b48d1a4e8d36e04432c2e287e485f2f30a38cc9d0230a81d8fde59724ea313fa@212.20.41.42:30303",
"name": "signup"
},
{
"abi": [3],
"address": "0x1234567890123456789012345678901234567890",
"enode": "enode://.....",
"name": "main"
}
About abi you can read at Ethereum ABI.
mec.layer.start("signup")
// mec.layer.start(name_of_subnet_you_connecting)
Successfull response means that now you can interact with sub-network applications over http/ipc/API
INFO: Successfully connected to enode://b61f72cb88eed0ea9c2214492186a473774a8a9bb318194ac38d3900062a11a0b48…d36e04432c2e287e485f2f30a38cc9d0230a81d8fde59724ea313fa@212.20.41.42:30303
INFO: Your address at signup network: 0xeac784b35b697740a3dc17ec59247749cc298c37
INFO: Ready: true
mec.newLayer("my")
// the name you set will be used to find you globaly
Successfull response means that now you can develop or anything else with your own sub-network blockchain.
INFO [03-04|13:09:18] Allocated cache and file handles database="/home/bogdan/Desktop/MEC_APP/./Blockchain/my/geth//Blockchain" cache=16 handles=16
INFO [03-04|13:09:18] Successfully wrote genesis state database=/Blockchain hash=5ce27c…c8984e
INFO [03-04|13:09:18] Allocated cache and file handles database="/home/bogdan/Desktop/MEC_APP/./Blockchain/my/geth/light/Blockchain" cache=16 handles=16
INFO [03-04|13:09:18] Successfully wrote genesis state database=light/Blockchain hash=5ce27c…c8984e
Successfully created new chain folder
INFO:Successfully imported accounts to my
{ node: undefined,
network: 'my',
port: 8545,
server: 'http://localhost:8545' }
INFO: Your address at signup network: '0x66e42229ec5e5a940b5324757d106e0435c5f631'
INFO: Ready: true
npm install mec@0.1.4
Add MEC to your project
const mec = require('mec')
mec.init("1234")
develop
FAQs
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
The npm package mec receives a total of 5 weekly downloads. As such, mec popularity was classified as not popular.
We found that mec demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.