npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@nexusmutual/deployments

v2.6.1

Published

Nexus Mutual deployed contract addresses and abis

Downloads

438

Readme

Nexus Mutual Deployment

This package contains the abis and addresses of the deployed Nexus Mutual contracts.

Usage

Variables

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...

Exported ABIs

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

Building the Package

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.

Deploying locally

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.