Skip to content

Instantly share code, notes, and snippets.

@talkol
Last active March 28, 2022 14:16
Show Gist options
  • Save talkol/750c397984471ffeecea7a3d5f80a999 to your computer and use it in GitHub Desktop.
Save talkol/750c397984471ffeecea7a3d5f80a999 to your computer and use it in GitHub Desktop.
TON environment setup
## TODO: change compilations to release
docker run --rm -it --platform linux/amd64 ubuntu bash
# dependencies Linux
apt update
apt install git make cmake g++ libssl-dev zlib1g-dev wget
# dependencies Mac
brew install cmake openssl
export OPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3
# build lite-client
cd ~
git clone https://github.com/newton-blockchain/ton.git
cd ~/ton
git checkout safer_overlay_plus
git submodule update --init
mkdir ~/ton-binaries-build
cd ~/ton-binaries-build
cmake ~/ton
cmake --build . --target lite-client
cd ~
wget https://newton-blockchain.github.io/global.config.json
# run the lite-client
~/ton-binaries-build/lite-client/lite-client -C ~/global.config.json
# build func
cd ~/ton-binaries-build
cmake --build . --target func
# run func
~/ton-binaries-build/crypto/func
# build fift
cd ~/ton-binaries-build
cmake --build . --target fift
# run fift
~/ton-binaries-build/crypto/fift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment