Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@truffle-types/address-saver

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@truffle-types/address-saver

Saves and reads addresses of deployed contracts from separate file

  • 0.1.8
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Addresses saver for deployed contracts

Provides utils for managing addresses during deployment and delivery processes.

Usage

APIs

To import functions to work with contract addresses

import { getDeployedAddresses, getUnwrappedDeployedAddressSync } from "@truffle-types/address-saver";
// or
const { getDeployedAddress, getUnwrappedDeployedAddressSync } = require("@truffle-types/address-saver");

Commands

Have several bins that could be integrated with tests and CI

Merge addresses

That is usual operation when you update your contracts and need to update artifacts and addresses of already deployed contracts.

npx merge-addresses --source=./imported-deployed-addresses.json --target=./deployed-addresses.json --output=./deployed-addresses-new.json

Output option could be ignored, then results will be saved to target path.

Clean deployed addresses

Usually suitable while running tests and need to clean up temporary networks.

npx clean-addresses --addresses=./deployed-addresses.json --network=88

If you want to leave only selected range of networks run

npx clean-addresses --addresses=./deployed-addresses.json --saveNetworks=1 4 42 88

It will remove all network records except provided.

FAQs

Package last updated on 26 Jul 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc