Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
@ethersproject/networks
Advanced tools
@ethersproject/networks is a part of the ethers.js library, which provides a collection of utilities for interacting with Ethereum networks. This package specifically deals with network configurations and provides utilities to define and work with different Ethereum networks.
Get Network Information
This feature allows you to retrieve information about a specific Ethereum network by its name or chain ID. In this example, we get the network information for the 'homestead' network, which is the main Ethereum network.
const { getNetwork } = require('@ethersproject/networks');
const network = getNetwork('homestead');
console.log(network);
Define Custom Network
This feature allows you to define a custom network by specifying its name and chain ID. In this example, we create a custom network with the name 'custom' and chain ID 12345.
const { Network } = require('@ethersproject/networks');
const customNetwork = new Network('custom', 12345);
console.log(customNetwork);
The web3.js library is a comprehensive collection of modules that allow you to interact with an Ethereum blockchain. It includes functionalities for network configurations similar to @ethersproject/networks, but also provides a broader range of features for interacting with smart contracts, accounts, and more.
ethjs is a lightweight JavaScript library for interacting with the Ethereum blockchain. It provides utilities for network configurations and other Ethereum-related functionalities. Compared to @ethersproject/networks, ethjs is more minimalistic and focuses on providing a simple API for common Ethereum tasks.
EXPERIMENTAL
Please see the ethers repository for more informations.
@TODO
MIT License
FAQs
Network definitions for ethers.
The npm package @ethersproject/networks receives a total of 605,458 weekly downloads. As such, @ethersproject/networks popularity was classified as popular.
We found that @ethersproject/networks 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.