Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

rsksmart/rsk-token-faucet-contract

Repository files navigation

logo

RSK Token Faucet Contract

ci Coverage Status
alerts

Use the RSK Faucet to get any of your favourite tokens in the RSK Testnet.

Features:

  • You can only dispense once a day
  • Owner can modify this time and the dispensed value

Additional: you can use BalanceFetcher to get the balance of many tokens for a given account

Run for development

Install dependencies:

npm i

Run unit tests

npx truffle test

Coverage report with:

npx truffle run coverage

Branching model

  • main has latest release. Merge into main will deploy to npm. Do merge commits.
  • Use branches pointing to main to add new PRs.
  • Do external PRs against latest commit in main.

Deploy

First, create a .secret file with a mnemonic phrase. You will need to fund the account. Then run:

npx truffle migrate --network rskTestnet

Deployments

TokenFaucet address: 0xEA184604347fD5CedE89217E1Ab1eed322C8c98b

BalanceFetcher address: 0x5CAD4A45f86E35bf130DeD4eCE450867F9ee7cFe