
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
deploy-eip-1820
Advanced tools
Helper to deploy the EIP 1820 Registry smart contract to a network using Ethers.js
Ethereum EIP 1820 is a standard for pseudo-introspection of smart contracts on Ethereum.
This library ensures that the EIP 1820 registry smart contract exists on any given chain. Particularly useful for test environments.
Uses ethers.js v5.
If you're using ethers.js v4 then try the 0.2 version.
Install deploy-eip-1820
via yarn:
$ yarn add deploy-eip-1820
or npm:
$ npm i deploy-eip-1820
To ensure that the EIP 1820 Registry contract exists on the network you are using, use the setup1820
function:
const { deploy1820 } = require('deploy-eip-1820')
async function deploy() {
const wallet = ethers.Wallet.fromMnemonic("...your mnemonic...")
// The wallet must have at least 0.08 Ether
const registryContract = await deploy1820(wallet)
// Now we have an Ethers Contract instance for the ERC1820 Registry contract
let implementer = await registryContract.getInterfaceImplementer('0x1234...', '0xINTERFACE_HASH')
}
FAQs
Helper to deploy the EIP 1820 Registry smart contract to a network using Ethers.js
The npm package deploy-eip-1820 receives a total of 399 weekly downloads. As such, deploy-eip-1820 popularity was classified as not popular.
We found that deploy-eip-1820 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.