This repository contains collection of helpful tools for TON Network.
Python scripts require pyTON
and tvm-valuetypes
libraries.
Those scripts are helpful for anyone who wishes to operate a TON Node. Located under /node
path:
dec2ip.py
will convert decimal IP address representation into IPV4 format.ip2dec.py
will convert decimal IPV4 IP address into decimal format.
Both scripts will properly convert to and from negative decimals to be used in node configuration.
key2b64.py
will convert key file to base64 representation for later usage in config files.
mkcontrol.sh
: Generates JSON structure for validator / node console needed for nodeconfig.json
filemklite.sh
: Generates JSON structure for lite server listener needed for nodeconfig.json
filemkpub_dht.sh
: Generates JSON structure that can be used as server definition in network configuration files, requires presence ofgenerate-random-id
in path.
Here you can find example control scripts for services, at the moment daemontools run
files to control node as well as dht server.
Node run
script is tuned to run more then one instance of full node / validator per host. This will probably not be needed in live environment but was/is very handy in test setups.
adnl_resolve.py
will query DHT servers and attempt to resolve ADNL address to IP and Port, requires presence of dht-resolve binary which can be build from TON source tree (dht-resolve
target).
parse_addr.py
will parse addr file and return address information in human readable format or json structure. Start without parameters to see usage instructions.