A discord faucet for cosmos sdk based projects that is fully configurable for any chain.
These instructions will cover usage information and for the docker container
In order to run this container you'll need docker installed.
Example
docker run -ti --restart=always \
-e ADDRESS_PREFIX=address_prefix \
-e DENOMINATION=denomination \
-e AMOUNT=amount \
-e CHAIN_NAME=chain_name \
-e RPC_ENDPOINT=rpc_endpoint \
-e API_ENDPOINT=api_endpoint \
-e MNEMONIC=mnemonic \
-e TIMEOUT=timeout_in_ms \
-e TX_EXPLORER=https://your_explorer \
-e DISCORD_CHANNEL=discord_channel \
-e DISCORD_TOKEN=discord_token \
-e TX_FEE_AMOUNT=2000 \
-e TX_GAS_AMOUNT=180000 \
0x4139/cosmos-discord-faucet
All the following variables are required:
ADDRESS_PREFIX
- Chain address prefix excosmos
DENOMINATION
- Denomination that the faucet releases exuatom
AMOUNT
- Amount that the faucet releases in `u'CHAIN_NAME
- Chain name as defined in genesis extestnet-1
RPC_ENDPOINT
- Node RPC to useex: http://your_node:26657
API_ENDPOINT
- Node API to useex: http://your_node:1317
MNEMONIC
- Seed phrase of the account that the faucet will release coins fromTIMEOUT
- Timeout between coin request in millisecondsTX_EXPLORER
- Explorer base uri to append the transaction hash toex:http://192.168.100.46:8080/testnet/tx
DISCORD_CHANNEL
- The discord channel the faucet should listen onex: testnet
(warning: be sure to include emojis if needed)DISCORD_TOKEN
- Create your own discord tokenTX_FEE_AMOUNT
- The transition fee amount see cosmjs for more info regarding the txt feeTX_GAS_AMOUNT
- The transition gas amount see cosmjs for more info regarding the txt fee
-
Help command
$help
-
Request coins through the faucet
$request cosmos178jjyne475dnh5jpuqfjt30ak4r64xlsxy7xsf
-
Displays the current status of the node where faucet is running
$faucet_status
-
Show tap address
$faucet_address
-
Show transaction information for a specific transaction ID
$tx_info 009CEA347EAFD795E8B10088D18156BC15F24362416BEEF1073BFDFD936E19B0
-
Show address balance
$balance cosmos178jjyne475dnh5jpuqfjt30ak4r64xlsxy7xsf
- docker
- node.js
- discord.js
- cosmjs
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Vali Malinoiu - Initial work - 0x4139
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.