Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Latest commit

 

History

History
26 lines (18 loc) · 1.07 KB

tap.md

File metadata and controls

26 lines (18 loc) · 1.07 KB

testnet-tap

A Smesh Coins tap for open testnet users

overview

A Discord bot and a public API providing a way for nodes to obtain testnet Smesh Coins.

Basic Use Case

  1. Receive a Spacemesh account public address from a user in the tap Discord channel
  2. Issue 2 Smesh (SMH) to the account's address

Requirements

User Input Validation

  1. Validate public account id string format.
  2. Enforce a cool-down period - don't issue coins to the same account more frequently than once every 24 hours.

Logging

  • Log each requested tap request

Design Notes

  • A similar gitter-channel based implementation is working here for the Kovan testnet: https://gitter.im/kovan-testnet/faucet
  • Tap backend should include a go-spacemesh full node and a CLI wallet that has the private key for a genesis-defined account with a large balance. To issue coins, the backend should use the wallet to sign transactions and submit it to the full node instance.

Dependencies

  • Functional CLI wallet with an API to sign coin transactions.