Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Latest commit

 

History

History
46 lines (35 loc) · 872 Bytes

README.md

File metadata and controls

46 lines (35 loc) · 872 Bytes

CKB Testnet Faucet Server

Dependencies

  • Swift 5
  • libsodium
  • Vapor

Build

brew install libsodium
brew tap vapor/tap
brew install vapor/tap/vapor

git clone https://github.com/nervosnetwork/ckb-testnet-faucet.git
cd ./ckb-testnet-faucet/faucet-server
swift build

Run

./.build/debug/Run --env dev \
  --wallet_private_key <private_key> \
  --node_url <node_url> \
  --github_oauth_client_id <client_id> \
  --github_oauth_client_secret <client_secret> \
  --send_capacity_count <send_capacity_count> \
  --db_hostname <db_hostname> \
  --db_port <db_port> \
  --db_username <db_username> \
  --db_password <db_password> \
  --db_database <db_database>

Run tests

swift test

Documentations