Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DataHighway-DHX/faucet

Repository files navigation

Usage

Note: Faucet only works when:

  • Requestor's Ropsten ETH balance < 1 MXC
  • Requestor's Ropsten MXC ERC-20 token balance < 1 MXC
  • Faucet's Ropsten ETH balance > 0.01 ETH
  • Faucet's Ropsten MXC ERC-20 token balance > 0.01 MXC
  • Requestor's Ethereum address that is not a smart contract, otherwise out of gas error may occur, since only a limited gas price has been catered for.

Development

  • Install dependencies and run server and front-end.
nvm use;
yarn global add nodemon;
DEBUG=app yarn dev;
  • Go to http://localhost:3000
  • Enter your Ethereum address to receive either Ropsten Testnet ETH or MXC ERC-20 tokens

Maintenance

Deploy (Heroku)

heroku login
heroku apps:create datahighway
git push -f heroku master

Set Heroku Environment Variables to match the contents of the .env file. Replace missing values below:

heroku config:set \
 ETHEREUM_ADDRESS=0x \
 MNENOMIC="" \
 INFURA_API_PROJECT_ID="" \
 CONTRACT_ADDRESS_MXC_TESTNET=0x7d3037fa9f8f253e4e7fc930f0a299cbd6eac349 \
 MNENOMIC_DATAHIGHWAY="bottom drive obey lake curtain smoke basket hold race lonely fit walk//Alice" \
 HARBOUR_DHX_CUSTOM_TYPES_UR=https://raw.githubusercontent.com/DataHighway-DHX/node/master/custom_types.json

Open the production website

heroku open

Debug

heroku ps:scale web=1:free
heroku ps:scale web=2:standard-2x
heroku ps
heroku open
heroku logs --tail
heroku restart
heroku ps:stop web

References

About

Faucet to obtain ETH for Ethereum Ropsten Testnet (to pay for gas fees), MXC ERC-20 tokens, or DHX tokens for DataHighway's Harbour Testnet

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /