origin-js
origin-js copied to clipboard
Create initial script for public net deployment
Eventually we want to automate as much of the deployment checklist as possible.
A good first step would be:
- Check balance of our test accounts
- (If balance is too low)
- Get test ethers for ropsten. When debugging a deployment issue you burn through test ethers pretty fast!
- Not sure if Rinkeby has similar api. Worst case open this url: https://faucet.rinkeby.io/
Idea would be to use the env variables for wallet mnemonics (e.g. RINKEBY_MNEMONIC
) along with HDWalletProvider
(as in truffle.js
) to get the wallet addresses. We need money in at least the first 2 accounts generated from the mnemonics. Ideally 4.
Talk to me (@wanderingstan) if you want to tackle this, as I'm currently doing our deployments. I'll eventually get around to writing this myself if no one else jumps in.
@wanderingstan - I can help with this one. Let's sync up so I can get some of your initial thoughts. I have confirmed that it is straightforward to grab eth balance from a script.