Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pxyup/ton_games_example
Example of application with TON wallet and golang
https://github.com/pxyup/ton_games_example
cryptocurrency golang ton
Last synced: about 1 month ago
JSON representation
Example of application with TON wallet and golang
- Host: GitHub
- URL: https://github.com/pxyup/ton_games_example
- Owner: PxyUp
- Created: 2024-10-19T21:15:10.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-10-19T22:26:25.000Z (3 months ago)
- Last Synced: 2024-11-27T02:36:37.080Z (about 1 month ago)
- Topics: cryptocurrency, golang, ton
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example of game on TON token
# What is here:
1. Authorization
2. Top-up/withdraw
3. API + 2 games: Rock-Paper-Scissors/Max random# Stack
1. Echo as API server
2. Postgres as database# How to run
## Local
```bash
WALLET_SEED="...24words" TONPROOF_PAYLOAD_SIGNATURE_KEY="secret_key" APP_HOST="blala.ngrok-free.app" LOCAL=true WITH_DB_SCHEMA=true BOT_TOKEN="TELEGRAM_BOT_TOKEN" go run cmd/app/main.go
```## Cloud
```bash
WALLET_SEED="...24words" TONPROOF_PAYLOAD_SIGNATURE_KEY="secret_key" DB_DSN="CONN_DSN" APP_HOST="balala.ngrok-free.app" WITH_DB_SCHEMA=true BOT_TOKEN="TELEGRAM_BOT_TOKEN" go run cmd/app/main.go
```