@laborx/sidechain-addresses
v1.1.0
Published
Provides addresses for deployed smart contracts in different networks and build environments.
Downloads
3
Keywords
Readme
LaborX Sidechain v2: deployed addresses
Provides addresses for deployed smart contracts in different networks and build environments.
Install
npm install -D @laborx/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 testnetproduction
-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/sidechain-addresses/deployed-addresses-beta.json`);
Additional info
See more in @laborx/sidechain-migrations
. There are helper functions that could manage different build environment loading (getDeployedArtifactsPath(buildEnv)
, getDeployedArtifactsPathFromNodeEnv()
).