Skip to content

Instantly share code, notes, and snippets.

@neodix42
neodix42 / install-clang-21.sh
Last active April 5, 2026 20:04
Install clang-21
# TON is moving to clang-21 for very pragmatic reasons — not because it's fashionable,
# but because it materially improves what we ship.
# We use clang-21 because we want the best C++ the language currently offers,
# stronger safety guarantees, better diagnostics, better generated code, and a toolchain that won't rot under us.
# Important! Remember, at this time no TON fullnodes or validators should be running on Ubuntu 20.04.
# This guide shows how to install clang-21 on Ubuntu 22.04 and 24.04 only.
# Ubuntu 22.04
@neodix42
neodix42 / upgrade.sh
Last active July 7, 2025 05:45
TON Mainnet validators - upcoming network update on April 30
# Please check your clang version first
clang --version
# If it is of version 16 you don't need to do the below steps.
# Required for Ubuntu 20.04 only.
sudo apt update
sudo apt install -y manpages-dev software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update && sudo apt install gcc-11 g++-11
@neodix42
neodix42 / TestWalletMultisig.java
Created May 10, 2024 10:39
ext msg for deploy
info:(ext_in_msg_info
src:addr_none
dest:(addr_std
anycast:nothing workchain_id:0 address:x3C7C4125F26256F1A015D0D639D0B6F0388BD94606107D07E92C869A1E5793DE)
import_fee:(nanograms
amount:(var_uint len:0 value:0)))
init:(just
value:(left
value:(
split_depth:nothing