Skip to content

NSB1974/faucet

This branch is 152 commits behind onflow/faucet:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f27d58d · Jun 28, 2024
Feb 27, 2024
Sep 6, 2023
Feb 27, 2024
Aug 30, 2022
Jun 27, 2024
Feb 22, 2024
Aug 26, 2021
Feb 27, 2024
Jun 10, 2021
Feb 15, 2024
Mar 10, 2021
Dec 20, 2023
Aug 9, 2021
Aug 9, 2021
Mar 10, 2021
Sep 6, 2023
Aug 9, 2021
Jun 30, 2021
Feb 15, 2024
Feb 27, 2024
Feb 22, 2024
Aug 30, 2022
Aug 30, 2022
Feb 16, 2024
Feb 22, 2024
Sep 6, 2023

Repository files navigation

Flow Testnet Faucet

Deployed at: https://testnet-faucet.onflow.org/

Usage

Create a new account

Use the Flow CLI to generate a new key pair:

# This command uses ECDSA_P256 and SHA3_256 by default
flow keys generate

Enter the resulting public key into the "Create Account" form, complete the captcha and submit.

Fund an account

Enter an existing account address into the "Fund Account" form, complete the captcha and submit.

Development

Create a dotenv file

⚠️ The SIGNER_PRIVATE_KEY value must match the FLOW_SERVICEPRIVATEKEY value in docker-compose.yml.

cp env.example .env

Start the Flow Emulator and Postgres database

docker-compose up -d

Install dependencies

npm install

Migrate and seed the database

npm run db-migrate-dev
npm run db-seed

Deploy contracts

⚠️ The accounts.emulator-account value in flow.json match the FLOW_SERVICEPRIVATEKEY value in docker-compose.yml.

npm run dev-deploy-contracts

Run the Next.js app

npm run dev

Run eslint, typescript checks, tests

npm run check

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 78.2%
  • Cadence 16.2%
  • CSS 4.0%
  • JavaScript 1.6%