Last active
March 28, 2022 14:16
-
-
Save talkol/750c397984471ffeecea7a3d5f80a999 to your computer and use it in GitHub Desktop.
TON environment setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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