https://github.com/button-tech/blockchain-gram-testnet
https://github.com/button-tech/blockchain-gram-testnet
ton wrappers
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/button-tech/blockchain-gram-testnet
- Owner: button-tech
- License: mit
- Created: 2019-08-28T01:32:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-17T21:10:10.000Z (over 5 years ago)
- Last Synced: 2024-10-23T20:13:50.693Z (12 months ago)
- Topics: ton, wrappers
- Language: Python
- Size: 59.4 MB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
TON Testner Wrapper that allow to use TON via REST apiImplementation for BUTTON Wallet Bot
## Build
- Worker
Build and run
```
# docker build -f Dockerfile.worker -r username/imagename .
# sudo docker run -v /mnt/filedir/masterchain:/app/wrappers/scripts/masterchain -v /mnt/filedir/basechain:/app/wrappers/scripts/basechain -e WORKDIR=/app/wrappers/scripts -d -p 80:80 username/imagename
```- Load balancer (Round Robin)
1) Add addresses of hosts with workers (instance of api - wrappers/main.go). You should edit [this](https://github.com/button-tech/ton-grams-testnet/blob/master/rr_load_balancer/main.go#L89) line before build
2) Then you can build and run
```
# docker build -f Dockerfile.rr_lb -t username/imagename .
# docker run username/imagename
```## Warning
Do not use that in production. Demo purposes only.