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