Security News
Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
@nexusmutual/deployments
Advanced tools
Readme
This package contains the abis and addresses of the deployed Nexus Mutual contracts.
addresses
:
Contains addresses of all contracts.
Example:
import { addresses } from '@nexusmutual/deployments';
console.log(addresses.Assessment); // Outputs: 0x0E801D84Fa9...
abis
:
A map which contains abi definitions for all contracts.
Example:
import { abis } from '@nexusmutual/deployments';
console.log(abis.Assessment); // Outputs: [{ inputs: [{ internalType: "ad...
You can also import them in a treeshakable manner:
import { Assessment as AssessmentAbi } from '@nexusmutual/deployments';
console.log(AssessmentAbi); // Outputs: [{ inputs: [{ internalType: "ad...
The addresses and ABIs are also exported as addresses.json
and abis/*.json
for convenience. These files are located in the dist/data
folder. You can reference them directly in node_modules
as follows:
node_modules/@nexusmutual/deployments/dist/data/addresses.json
or
node_modules/@nexusmutual/deployments/dist/data/abis/Assessment.json
Run build script:
npm run build:deployments
This script will generate abis and typings for contracts defined by contractList
in the build.js
file using Hardhat. The script will also auto update the package.json
version.
The script requires two environment variables to run:
# These can be found in .env.sample
ADDRESSES_FILE=./deployments/src/addresses.json
ABI_DIR=./deployments/generated/abis
These variables specify the output location of the generated addresses and ABIs. On these default locations they will be picked up by the build, which can be useful for local development in combination with npm link
. See the local development docs for more details.
FAQs
Nexus Mutual deployed contract addresses and abis
The npm package @nexusmutual/deployments receives a total of 178 weekly downloads. As such, @nexusmutual/deployments popularity was classified as not popular.
We found that @nexusmutual/deployments demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.