0.1.1 • Published 5 years ago

@laborx/token-bridge-sidechain-addresses v0.1.1

Weekly downloads
2
License
-
Repository
-
Last release
5 years ago

LaborX Token Bridge (Sidechain): deployed addresses

Provides addresses for deployed smart contracts in different networks and build environments.

Install

npm install -D @laborx/token-bridge-sidechain-addresses

Available addresses

There are 3 different build environments that are applicable for current deployed addresses:

  • dev - deployed-addresses-dev.json, only development smart contracts, mostly deployed to testnets (like rinkeby, ropsten, kovan)
  • beta - deployed-addresses-beta.json, deployed smart contracts that are available for beta testers and could be placed in mainnet or testnet
  • production - deployed-addresses.json, smart contracts that most likely was deployed to mainnet

Usage

By default production smart contract addresses are exported, but you could also access others by specifying exact file path, for example for beta

const deployedAddresses = require(`@laborx/token-bridge-sidechain-addresses/deployed-addresses-beta.json`);

Additional info

See more in @laborx/token-bridge-sidechain-migrations. There are helper functions that could manage different build environment loading (getDeployedArtifactsPath(buildEnv), getDeployedArtifactsPathFromNodeEnv()).