diff --git a/.clang_complete b/.clang_complete
index e88dbc7bf..fc22abbb0 100644
--- a/.clang_complete
+++ b/.clang_complete
@@ -7,6 +7,6 @@
-iquote tdactor/
-iquote tdnet/
-iquote tdutils/
--iquote ../ton-build/tdutils/
+-iquote ../ion-build/tdutils/
-iquote crypto/
-I/opt/local/include/
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index dbcae6ab4..879295d60 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -5,7 +5,7 @@
-
+
diff --git a/.github/script/amd64-20.04.Dockerfile b/.github/script/amd64-20.04.Dockerfile
index 1ec89ebd7..47f7b5af7 100644
--- a/.github/script/amd64-20.04.Dockerfile
+++ b/.github/script/amd64-20.04.Dockerfile
@@ -8,13 +8,13 @@ WORKDIR /
ARG BRANCH
ARG REPO
-RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update
+RUN git clone --recurse-submodules https://github.com/$REPO ion && cd ion && git checkout $BRANCH && git submodule update
-WORKDIR /ton
-RUN mkdir /ton/build
-WORKDIR /ton/build
+WORKDIR /ion
+RUN mkdir /ion/build
+WORKDIR /ion/build
ENV CC clang
ENV CXX clang++
ENV CCACHE_DISABLE 1
-RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
+RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DION_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func tolk validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
diff --git a/.github/script/amd64-22.04.Dockerfile b/.github/script/amd64-22.04.Dockerfile
index 6134d1673..f4cdef0a9 100644
--- a/.github/script/amd64-22.04.Dockerfile
+++ b/.github/script/amd64-22.04.Dockerfile
@@ -8,13 +8,13 @@ WORKDIR /
ARG BRANCH
ARG REPO
-RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update
+RUN git clone --recurse-submodules https://github.com/$REPO ion && cd ion && git checkout $BRANCH && git submodule update
-WORKDIR /ton
-RUN mkdir /ton/build
-WORKDIR /ton/build
+WORKDIR /ion
+RUN mkdir /ion/build
+WORKDIR /ion/build
ENV CC clang
ENV CXX clang++
ENV CCACHE_DISABLE 1
-RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
+RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DION_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func tolk validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
diff --git a/.github/script/arm64-20.04.Dockerfile b/.github/script/arm64-20.04.Dockerfile
index 5e3505345..6a001a769 100644
--- a/.github/script/arm64-20.04.Dockerfile
+++ b/.github/script/arm64-20.04.Dockerfile
@@ -8,13 +8,13 @@ WORKDIR /
ARG BRANCH
ARG REPO
-RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update
+RUN git clone --recurse-submodules https://github.com/$REPO ion && cd ion && git checkout $BRANCH && git submodule update
-WORKDIR /ton
-RUN mkdir /ton/build
-WORKDIR /ton/build
+WORKDIR /ion
+RUN mkdir /ion/build
+WORKDIR /ion/build
ENV CC clang
ENV CXX clang++
ENV CCACHE_DISABLE 1
-RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= ..
+RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DION_ARCH= ..
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func tolk validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
diff --git a/.github/script/arm64-22.04.Dockerfile b/.github/script/arm64-22.04.Dockerfile
index f9805849d..97485be4e 100644
--- a/.github/script/arm64-22.04.Dockerfile
+++ b/.github/script/arm64-22.04.Dockerfile
@@ -8,13 +8,13 @@ WORKDIR /
ARG BRANCH
ARG REPO
-RUN git clone --recurse-submodules https://github.com/$REPO ton && cd ton && git checkout $BRANCH && git submodule update
+RUN git clone --recurse-submodules https://github.com/$REPO ion && cd ion && git checkout $BRANCH && git submodule update
-WORKDIR /ton
-RUN mkdir /ton/build
-WORKDIR /ton/build
+WORKDIR /ion
+RUN mkdir /ion/build
+WORKDIR /ion/build
ENV CC clang
ENV CXX clang++
ENV CCACHE_DISABLE 1
-RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= ..
+RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DION_ARCH= ..
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func tolk validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
diff --git a/.github/workflows/build-ton-linux-android-tonlib.yml b/.github/workflows/build-ion-linux-android-tonlib.yml
similarity index 94%
rename from .github/workflows/build-ton-linux-android-tonlib.yml
rename to .github/workflows/build-ion-linux-android-tonlib.yml
index a1a6bc99d..0421700e2 100644
--- a/.github/workflows/build-ton-linux-android-tonlib.yml
+++ b/.github/workflows/build-ion-linux-android-tonlib.yml
@@ -19,7 +19,7 @@ jobs:
zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev \
libtool autoconf libsodium-dev libsecp256k1-dev liblz4-dev
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/android/build-android-tonlib.sh .
chmod +x build-android-tonlib.sh
@@ -28,5 +28,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-android-tonlib
+ name: ion-android-tonlib
path: artifacts
diff --git a/.github/workflows/build-ton-linux-x86-64-shared.yml b/.github/workflows/build-ion-linux-x86-64-shared.yml
similarity index 91%
rename from .github/workflows/build-ton-linux-x86-64-shared.yml
rename to .github/workflows/build-ion-linux-x86-64-shared.yml
index e28ecc742..789acf63b 100644
--- a/.github/workflows/build-ton-linux-x86-64-shared.yml
+++ b/.github/workflows/build-ion-linux-x86-64-shared.yml
@@ -1,4 +1,4 @@
-name: Ubuntu TON build (shared, x86-64)
+name: Ubuntu ION build (shared, x86-64)
on: [push,workflow_dispatch,workflow_call]
@@ -33,7 +33,7 @@ jobs:
chmod +x llvm.sh
sudo ./llvm.sh 16 all
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/native/build-ubuntu-shared.sh .
chmod +x build-ubuntu-shared.sh
@@ -42,5 +42,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-binaries-${{ matrix.os }}
+ name: ion-binaries-${{ matrix.os }}
path: artifacts
diff --git a/.github/workflows/build-ton-macos-15-arm64-shared.yml b/.github/workflows/build-ion-macos-15-arm64-shared.yml
similarity index 82%
rename from .github/workflows/build-ton-macos-15-arm64-shared.yml
rename to .github/workflows/build-ion-macos-15-arm64-shared.yml
index 8379a0b04..11613db4b 100644
--- a/.github/workflows/build-ton-macos-15-arm64-shared.yml
+++ b/.github/workflows/build-ion-macos-15-arm64-shared.yml
@@ -1,4 +1,4 @@
-name: MacOS-15 TON build (shared, arm64)
+name: MacOS-15 ION build (shared, arm64)
on: [push,workflow_dispatch,workflow_call]
@@ -12,7 +12,7 @@ jobs:
with:
submodules: 'recursive'
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/native/build-macos-shared.sh .
chmod +x build-macos-shared.sh
@@ -21,5 +21,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-binaries-macos-15
+ name: ion-binaries-macos-15
path: artifacts
diff --git a/.github/workflows/build-ton-macos-arm64-shared.yml b/.github/workflows/build-ion-macos-arm64-shared.yml
similarity index 82%
rename from .github/workflows/build-ton-macos-arm64-shared.yml
rename to .github/workflows/build-ion-macos-arm64-shared.yml
index aadd23dd0..c24b22f42 100644
--- a/.github/workflows/build-ton-macos-arm64-shared.yml
+++ b/.github/workflows/build-ion-macos-arm64-shared.yml
@@ -1,4 +1,4 @@
-name: MacOS-14 TON build (shared, arm64)
+name: MacOS-14 ION build (shared, arm64)
on: [push,workflow_dispatch,workflow_call]
@@ -12,7 +12,7 @@ jobs:
with:
submodules: 'recursive'
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/native/build-macos-shared.sh .
chmod +x build-macos-shared.sh
@@ -21,5 +21,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-binaries-macos-14
+ name: ion-binaries-macos-14
path: artifacts
diff --git a/.github/workflows/build-ton-macos-x86-64-shared.yml b/.github/workflows/build-ion-macos-x86-64-shared.yml
similarity index 82%
rename from .github/workflows/build-ton-macos-x86-64-shared.yml
rename to .github/workflows/build-ion-macos-x86-64-shared.yml
index c9331e3be..bd0b0cd50 100644
--- a/.github/workflows/build-ton-macos-x86-64-shared.yml
+++ b/.github/workflows/build-ion-macos-x86-64-shared.yml
@@ -1,4 +1,4 @@
-name: MacOS TON build (shared, x86-64)
+name: MacOS ION build (shared, x86-64)
on: [push,workflow_dispatch,workflow_call]
@@ -12,7 +12,7 @@ jobs:
with:
submodules: 'recursive'
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/native/build-macos-shared.sh .
chmod +x build-macos-shared.sh
@@ -21,5 +21,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-binaries-macos-12
+ name: ion-binaries-macos-12
path: artifacts
diff --git a/.github/workflows/build-ton-wasm-emscripten.yml b/.github/workflows/build-ion-wasm-emscripten.yml
similarity index 87%
rename from .github/workflows/build-ton-wasm-emscripten.yml
rename to .github/workflows/build-ion-wasm-emscripten.yml
index 534d312fd..abfd76566 100644
--- a/.github/workflows/build-ton-wasm-emscripten.yml
+++ b/.github/workflows/build-ion-wasm-emscripten.yml
@@ -1,4 +1,4 @@
-name: Emscripten TON build (wasm)
+name: Emscripten ION build (wasm)
on: [push,workflow_dispatch,workflow_call]
@@ -17,7 +17,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y build-essential git openssl cmake ninja-build zlib1g-dev libssl-dev libsecp256k1-dev libmicrohttpd-dev libsodium-dev liblz4-dev
- - name: Build TON WASM artifacts
+ - name: Build ION WASM artifacts
run: |
cp assembly/wasm/fift-func-wasm-build-ubuntu.sh .
chmod +x fift-func-wasm-build-ubuntu.sh
@@ -26,5 +26,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-wasm-binaries
+ name: ion-wasm-binaries
path: artifacts
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index ca08357c2..0b5871da6 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -14,7 +14,7 @@ jobs:
- name: Download Linux x86-64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-x86-64-linux.yml
+ workflow: ion-x86-64-linux.yml
path: artifacts
workflow_conclusion: success
skip_unpack: true
@@ -22,7 +22,7 @@ jobs:
- name: Download and unzip Linux x86-64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-x86-64-linux.yml
+ workflow: ion-x86-64-linux.yml
path: artifacts
workflow_conclusion: success
skip_unpack: false
@@ -30,7 +30,7 @@ jobs:
- name: Download Mac x86-64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-x86-64-macos.yml
+ workflow: ion-x86-64-macos.yml
path: artifacts
workflow_conclusion: success
skip_unpack: true
@@ -38,7 +38,7 @@ jobs:
- name: Download Mac arm64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-arm64-macos.yml
+ workflow: ion-arm64-macos.yml
path: artifacts
workflow_conclusion: success
skip_unpack: true
@@ -46,7 +46,7 @@ jobs:
- name: Download and unzip Mac x86-64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-x86-64-macos.yml
+ workflow: ion-x86-64-macos.yml
path: artifacts
workflow_conclusion: success
skip_unpack: false
@@ -54,7 +54,7 @@ jobs:
- name: Download and unzip arm64 artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-arm64-macos.yml
+ workflow: ion-arm64-macos.yml
path: artifacts
workflow_conclusion: success
skip_unpack: false
@@ -62,7 +62,7 @@ jobs:
- name: Download Windows artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-x86-64-windows.yml
+ workflow: ion-x86-64-windows.yml
path: artifacts
workflow_conclusion: success
skip_unpack: true
@@ -70,7 +70,7 @@ jobs:
- name: Download and unzip Windows artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: ton-x86-64-windows.yml
+ workflow: ion-x86-64-windows.yml
path: artifacts
workflow_conclusion: success
skip_unpack: false
@@ -78,7 +78,7 @@ jobs:
- name: Download WASM artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: build-ton-wasm-emscripten.yml
+ workflow: build-ion-wasm-emscripten.yml
path: artifacts
workflow_conclusion: success
skip_unpack: true
@@ -86,7 +86,7 @@ jobs:
- name: Download Android Tonlib artifacts
uses: dawidd6/action-download-artifact@v2
with:
- workflow: build-ton-linux-android-tonlib.yml
+ workflow: build-ion-linux-android-tonlib.yml
path: artifacts
workflow_conclusion: success
skip_unpack: true
@@ -124,7 +124,7 @@ jobs:
- name: Get registration token
id: getRegToken
run: |
- curl -X POST -H \"Accept: application/vnd.github+json\" -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/ton-blockchain/ton/actions/runners/registration-token
+ curl -X POST -H \"Accept: application/vnd.github+json\" -H 'Authorization: token ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/ice-blockchain/ion/actions/runners/registration-token
- name: Create release
id: create_release
@@ -133,7 +133,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.TAG }}
- release_name: TON ${{ steps.tag.outputs.TAG }}
+ release_name: ION ${{ steps.tag.outputs.TAG }}
body: |
${{ steps.read_release.outputs.CHANGELOG_BODY }}
draft: false
@@ -147,15 +147,15 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries.zip
- asset_name: ton-win-x86-64.zip
+ file: artifacts/ion-win-binaries.zip
+ asset_name: ion-win-x86-64.zip
tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Windows 2019 single artifact - fift
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/fift.exe
+ file: artifacts/ion-win-binaries/fift.exe
asset_name: fift.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -163,7 +163,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/func.exe
+ file: artifacts/ion-win-binaries/func.exe
asset_name: func.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -171,7 +171,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/tolk.exe
+ file: artifacts/ion-win-binaries/tolk.exe
asset_name: tolk.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -179,7 +179,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/lite-client.exe
+ file: artifacts/ion-win-binaries/lite-client.exe
asset_name: lite-client.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -187,7 +187,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/rldp-http-proxy.exe
+ file: artifacts/ion-win-binaries/rldp-http-proxy.exe
asset_name: rldp-http-proxy.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -195,7 +195,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/http-proxy.exe
+ file: artifacts/ion-win-binaries/http-proxy.exe
asset_name: http-proxy.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -203,7 +203,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/storage-daemon-cli.exe
+ file: artifacts/ion-win-binaries/storage-daemon-cli.exe
asset_name: storage-daemon-cli.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -211,7 +211,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/storage-daemon.exe
+ file: artifacts/ion-win-binaries/storage-daemon.exe
asset_name: storage-daemon.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -219,7 +219,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/tonlibjson.dll
+ file: artifacts/ion-win-binaries/tonlibjson.dll
asset_name: tonlibjson.dll
tag: ${{ steps.tag.outputs.TAG }}
@@ -227,7 +227,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/emulator.dll
+ file: artifacts/ion-win-binaries/emulator.dll
asset_name: libemulator.dll
tag: ${{ steps.tag.outputs.TAG }}
@@ -235,7 +235,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-win-binaries/tonlib-cli.exe
+ file: artifacts/ion-win-binaries/tonlib-cli.exe
asset_name: tonlib-cli.exe
tag: ${{ steps.tag.outputs.TAG }}
@@ -245,15 +245,15 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries.zip
- asset_name: ton-mac-x86-64.zip
+ file: artifacts/ion-x86_64-macos-binaries.zip
+ asset_name: ion-mac-x86-64.zip
tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac x86-64 single artifact - fift
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/fift
+ file: artifacts/ion-x86_64-macos-binaries/fift
asset_name: fift-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -261,7 +261,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/func
+ file: artifacts/ion-x86_64-macos-binaries/func
asset_name: func-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -269,7 +269,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/tolk
+ file: artifacts/ion-x86_64-macos-binaries/tolk
asset_name: tolk-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -277,7 +277,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/lite-client
+ file: artifacts/ion-x86_64-macos-binaries/lite-client
asset_name: lite-client-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -285,7 +285,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/rldp-http-proxy
+ file: artifacts/ion-x86_64-macos-binaries/rldp-http-proxy
asset_name: rldp-http-proxy-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -293,7 +293,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/http-proxy
+ file: artifacts/ion-x86_64-macos-binaries/http-proxy
asset_name: http-proxy-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -301,7 +301,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/storage-daemon-cli
+ file: artifacts/ion-x86_64-macos-binaries/storage-daemon-cli
asset_name: storage-daemon-cli-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -309,7 +309,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/storage-daemon
+ file: artifacts/ion-x86_64-macos-binaries/storage-daemon
asset_name: storage-daemon-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -317,7 +317,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/libtonlibjson.dylib
+ file: artifacts/ion-x86_64-macos-binaries/libtonlibjson.dylib
asset_name: tonlibjson-mac-x86-64.dylib
tag: ${{ steps.tag.outputs.TAG }}
@@ -325,7 +325,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/libemulator.dylib
+ file: artifacts/ion-x86_64-macos-binaries/libemulator.dylib
asset_name: libemulator-mac-x86-64.dylib
tag: ${{ steps.tag.outputs.TAG }}
@@ -333,7 +333,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-macos-binaries/tonlib-cli
+ file: artifacts/ion-x86_64-macos-binaries/tonlib-cli
asset_name: tonlib-cli-mac-x86-64
tag: ${{ steps.tag.outputs.TAG }}
@@ -344,15 +344,15 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries.zip
- asset_name: ton-mac-arm64.zip
+ file: artifacts/ion-arm64-macos-binaries.zip
+ asset_name: ion-mac-arm64.zip
tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Mac arm64 single artifact - fift
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/fift
+ file: artifacts/ion-arm64-macos-binaries/fift
asset_name: fift-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -360,7 +360,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/func
+ file: artifacts/ion-arm64-macos-binaries/func
asset_name: func-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -368,7 +368,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/tolk
+ file: artifacts/ion-arm64-macos-binaries/tolk
asset_name: tolk-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -376,7 +376,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/lite-client
+ file: artifacts/ion-arm64-macos-binaries/lite-client
asset_name: lite-client-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -384,7 +384,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/rldp-http-proxy
+ file: artifacts/ion-arm64-macos-binaries/rldp-http-proxy
asset_name: rldp-http-proxy-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -392,7 +392,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/http-proxy
+ file: artifacts/ion-arm64-macos-binaries/http-proxy
asset_name: http-proxy-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -400,7 +400,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/storage-daemon-cli
+ file: artifacts/ion-arm64-macos-binaries/storage-daemon-cli
asset_name: storage-daemon-cli-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -408,7 +408,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/storage-daemon
+ file: artifacts/ion-arm64-macos-binaries/storage-daemon
asset_name: storage-daemon-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -416,7 +416,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/libtonlibjson.dylib
+ file: artifacts/ion-arm64-macos-binaries/libtonlibjson.dylib
asset_name: tonlibjson-mac-arm64.dylib
tag: ${{ steps.tag.outputs.TAG }}
@@ -424,7 +424,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/libemulator.dylib
+ file: artifacts/ion-arm64-macos-binaries/libemulator.dylib
asset_name: libemulator-mac-arm64.dylib
tag: ${{ steps.tag.outputs.TAG }}
@@ -432,7 +432,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-arm64-macos-binaries/tonlib-cli
+ file: artifacts/ion-arm64-macos-binaries/tonlib-cli
asset_name: tonlib-cli-mac-arm64
tag: ${{ steps.tag.outputs.TAG }}
@@ -442,15 +442,15 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries.zip
- asset_name: ton-linux-x86_64.zip
+ file: artifacts/ion-x86_64-linux-binaries.zip
+ asset_name: ion-linux-x86_64.zip
tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Linux x86-64 single artifact - fift
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/fift
+ file: artifacts/ion-x86_64-linux-binaries/fift
asset_name: fift-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -458,7 +458,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/func
+ file: artifacts/ion-x86_64-linux-binaries/func
asset_name: func-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -466,7 +466,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/tolk
+ file: artifacts/ion-x86_64-linux-binaries/tolk
asset_name: tolk-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -474,7 +474,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/lite-client
+ file: artifacts/ion-x86_64-linux-binaries/lite-client
asset_name: lite-client-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -482,7 +482,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/rldp-http-proxy
+ file: artifacts/ion-x86_64-linux-binaries/rldp-http-proxy
asset_name: rldp-http-proxy-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -490,7 +490,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/http-proxy
+ file: artifacts/ion-x86_64-linux-binaries/http-proxy
asset_name: http-proxy-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -498,7 +498,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/storage-daemon-cli
+ file: artifacts/ion-x86_64-linux-binaries/storage-daemon-cli
asset_name: storage-daemon-cli-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -506,7 +506,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/storage-daemon
+ file: artifacts/ion-x86_64-linux-binaries/storage-daemon
asset_name: storage-daemon-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -514,7 +514,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/libtonlibjson.so
+ file: artifacts/ion-x86_64-linux-binaries/libtonlibjson.so
asset_name: tonlibjson-linux-x86_64.so
tag: ${{ steps.tag.outputs.TAG }}
@@ -522,7 +522,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/libemulator.so
+ file: artifacts/ion-x86_64-linux-binaries/libemulator.so
asset_name: libemulator-linux-x86_64.so
tag: ${{ steps.tag.outputs.TAG }}
@@ -530,7 +530,7 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-x86_64-linux-binaries/tonlib-cli
+ file: artifacts/ion-x86_64-linux-binaries/tonlib-cli
asset_name: tonlib-cli-linux-x86_64
tag: ${{ steps.tag.outputs.TAG }}
@@ -538,14 +538,14 @@ jobs:
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-wasm-binaries.zip
- asset_name: ton-wasm-binaries.zip
+ file: artifacts/ion-wasm-binaries.zip
+ asset_name: ion-wasm-binaries.zip
tag: ${{ steps.tag.outputs.TAG }}
- name: Upload Android Tonlib artifacts
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
- file: artifacts/ton-android-tonlib.zip
- asset_name: ton-android-tonlib.zip
+ file: artifacts/ion-android-tonlib.zip
+ asset_name: ion-android-tonlib.zip
tag: ${{ steps.tag.outputs.TAG }}
diff --git a/.github/workflows/ton-arm64-macos.yml b/.github/workflows/ion-arm64-macos.yml
similarity index 88%
rename from .github/workflows/ton-arm64-macos.yml
rename to .github/workflows/ion-arm64-macos.yml
index affe22456..0f469103d 100644
--- a/.github/workflows/ton-arm64-macos.yml
+++ b/.github/workflows/ion-arm64-macos.yml
@@ -1,4 +1,4 @@
-name: MacOS TON build (portable, arm64)
+name: MacOS ION build (portable, arm64)
on: [push,workflow_dispatch,workflow_call]
@@ -16,7 +16,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/nix/build-macos-nix.sh .
chmod +x build-macos-nix.sh
@@ -34,5 +34,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-arm64-macos-binaries
+ name: ion-arm64-macos-binaries
path: artifacts
diff --git a/.github/workflows/ton-ccpcheck.yml b/.github/workflows/ion-ccpcheck.yml
similarity index 88%
rename from .github/workflows/ton-ccpcheck.yml
rename to .github/workflows/ion-ccpcheck.yml
index 95bef5f3d..482291df6 100644
--- a/.github/workflows/ton-ccpcheck.yml
+++ b/.github/workflows/ion-ccpcheck.yml
@@ -1,4 +1,4 @@
-name: TON Static Code Analysis
+name: ION Static Code Analysis
on: [push,workflow_dispatch,workflow_call]
@@ -22,5 +22,5 @@ jobs:
- name: Upload report
uses: actions/upload-artifact@master
with:
- name: ton-ccpcheck-report
+ name: ion-ccpcheck-report
path: output
diff --git a/.github/workflows/ton-x86-64-linux.yml b/.github/workflows/ion-x86-64-linux.yml
similarity index 89%
rename from .github/workflows/ton-x86-64-linux.yml
rename to .github/workflows/ion-x86-64-linux.yml
index b7ef9684e..5e9f3eaf1 100644
--- a/.github/workflows/ton-x86-64-linux.yml
+++ b/.github/workflows/ion-x86-64-linux.yml
@@ -1,4 +1,4 @@
-name: Ubuntu TON build (portable, x86-64)
+name: Ubuntu ION build (portable, x86-64)
on: [push,workflow_dispatch,workflow_call]
@@ -20,7 +20,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/nix/build-linux-x86-64-nix.sh .
chmod +x build-linux-x86-64-nix.sh
@@ -38,5 +38,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-x86_64-linux-binaries
+ name: ion-x86_64-linux-binaries
path: artifacts
diff --git a/.github/workflows/ton-x86-64-macos.yml b/.github/workflows/ion-x86-64-macos.yml
similarity index 88%
rename from .github/workflows/ton-x86-64-macos.yml
rename to .github/workflows/ion-x86-64-macos.yml
index 1890dc344..b49175c62 100644
--- a/.github/workflows/ton-x86-64-macos.yml
+++ b/.github/workflows/ion-x86-64-macos.yml
@@ -1,4 +1,4 @@
-name: MacOS TON build (portable, x86-64)
+name: MacOS ION build (portable, x86-64)
on: [push,workflow_dispatch,workflow_call]
@@ -16,7 +16,7 @@ jobs:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- - name: Build TON
+ - name: Build ION
run: |
cp assembly/nix/build-macos-nix.sh .
chmod +x build-macos-nix.sh
@@ -34,5 +34,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-x86_64-macos-binaries
+ name: ion-x86_64-macos-binaries
path: artifacts
diff --git a/.github/workflows/ton-x86-64-windows.yml b/.github/workflows/ion-x86-64-windows.yml
similarity index 87%
rename from .github/workflows/ton-x86-64-windows.yml
rename to .github/workflows/ion-x86-64-windows.yml
index d5c9c243c..f14e65e62 100644
--- a/.github/workflows/ton-x86-64-windows.yml
+++ b/.github/workflows/ion-x86-64-windows.yml
@@ -1,4 +1,4 @@
-name: Windows TON build (portable, x86-64)
+name: Windows ION build (portable, x86-64)
on: [push,workflow_dispatch,workflow_call]
@@ -21,7 +21,7 @@ jobs:
with:
submodules: 'recursive'
- - name: Build TON
+ - name: Build ION
run: |
copy assembly\native\build-windows-github-2019.bat .
copy assembly\native\build-windows-2019.bat .
@@ -30,5 +30,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
- name: ton-win-binaries
+ name: ion-win-binaries
path: artifacts
diff --git a/.gitmodules b/.gitmodules
index f201ed73c..df7ad9f96 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,15 +1,20 @@
[submodule "third-party/rocksdb"]
path = third-party/rocksdb
url = https://github.com/facebook/rocksdb.git
+
[submodule "third-party/crc32c"]
path = third-party/crc32c
url = https://github.com/google/crc32c
+
[submodule "third-party/abseil-cpp"]
path = third-party/abseil-cpp
url = https://github.com/abseil/abseil-cpp.git
+
[submodule "third-party/libraptorq"]
path = third-party/libraptorq
url = https://github.com/ton-blockchain/libRaptorQ
+
[submodule "third-party/blst"]
path = third-party/blst
url = https://github.com/supranational/blst.git
+
diff --git a/CMake/UseLATEX.cmake b/CMake/UseLATEX.cmake
index 538052252..212d733b4 100644
--- a/CMake/UseLATEX.cmake
+++ b/CMake/UseLATEX.cmake
@@ -260,7 +260,7 @@
# 1.9.1 Fixed typo that caused the LATEX_SMALL_IMAGES option to fail to
# activate.
#
-# 1.9.0 Add support for the multibib package (thanks to Antonio LaTorre).
+# 1.9.0 Add support for the multibib package (thanks to Anionio LaTorre).
#
# 1.8.2 Fix corner case when an argument name was also a variable containing
# the text of an argument. In this case, the CMake IF was matching
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7d5b8da5c..d69f39234 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
-project(TON VERSION 0.5 LANGUAGES C CXX)
+project(ION VERSION 0.5 LANGUAGES C CXX)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
#set(OPENSSL_USE_STATIC_LIBS TRUE)
@@ -15,11 +15,11 @@ target_include_directories(git PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
add_dependencies(git check_git)
# Prevent in-source build
-get_filename_component(TON_REAL_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" REALPATH)
-get_filename_component(TON_REAL_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}" REALPATH)
+get_filename_component(ION_REAL_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" REALPATH)
+get_filename_component(ION_REAL_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}" REALPATH)
-if (TON_REAL_BINARY_DIR STREQUAL TON_REAL_SOURCE_DIR)
- message(" Out-of-source build should be used to build TON.")
+if (ION_REAL_BINARY_DIR STREQUAL ION_REAL_SOURCE_DIR)
+ message(" Out-of-source build should be used to build ION.")
message(" You need to remove the files already created by CMake and")
message(" rerun CMake from a new directory:")
message(" rm -rf CMakeFiles CMakeCache.txt")
@@ -85,36 +85,36 @@ set(CMAKE_CXX_EXTENSIONS FALSE)
#BEGIN internal
option(USE_EMSCRIPTEN "Use \"ON\" for config building wasm." OFF)
-option(TON_ONLY_TONLIB "Use \"ON\" to build only tonlib." OFF)
+option(ION_ONLY_TONLIB "Use \"ON\" to build only tonlib." OFF)
if (USE_EMSCRIPTEN)
- set(TON_ONLY_TONLIB true)
+ set(ION_ONLY_TONLIB true)
endif()
-if (TON_ONLY_TONLIB)
- set(NOT_TON_ONLY_TONLIB false)
+if (ION_ONLY_TONLIB)
+ set(NOT_ION_ONLY_TONLIB false)
else()
- set(NOT_TON_ONLY_TONLIB true)
+ set(NOT_ION_ONLY_TONLIB true)
endif()
-option(TON_USE_ROCKSDB "Use \"ON\" to enable RocksDb." ${NOT_TON_ONLY_TONLIB})
-option(TON_USE_ABSEIL "Use \"ON\" to enable Abseil." ${NOT_TON_ONLY_TONLIB})
-option(TON_USE_JEMALLOC "Use \"ON\" to enable JeMalloc." OFF)
+option(ION_USE_ROCKSDB "Use \"ON\" to enable RocksDb." ${NOT_ION_ONLY_TONLIB})
+option(ION_USE_ABSEIL "Use \"ON\" to enable Abseil." ${NOT_ION_ONLY_TONLIB})
+option(ION_USE_JEMALLOC "Use \"ON\" to enable JeMalloc." OFF)
#END internal
option(TONLIB_ENABLE_JNI "Use \"ON\" to enable JNI-compatible TonLib API.")
-option(TON_USE_ASAN "Use \"ON\" to enable AddressSanitizer." OFF)
-option(TON_USE_TSAN "Use \"ON\" to enable ThreadSanitizer." OFF)
-option(TON_USE_UBSAN "Use \"ON\" to enable UndefinedBehaviorSanitizer." OFF)
-set(TON_ARCH "native" CACHE STRING "Architecture, will be passed to -march=")
+option(ION_USE_ASAN "Use \"ON\" to enable AddressSanitizer." OFF)
+option(ION_USE_TSAN "Use \"ON\" to enable ThreadSanitizer." OFF)
+option(ION_USE_UBSAN "Use \"ON\" to enable UndefinedBehaviorSanitizer." OFF)
+set(ION_ARCH "native" CACHE STRING "Architecture, will be passed to -march=")
#BEGIN M1 support
EXECUTE_PROCESS( COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE ARCHITECTURE )
if ((ARCHITECTURE MATCHES "arm64") AND (CMAKE_SYSTEM_NAME STREQUAL "Darwin") AND
(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13.0)) # only clang 13+ supports cpu=apple-m1
- set(TON_ARCH "apple-m1")
+ set(ION_ARCH "apple-m1")
endif()
#END M1 support
-if (TON_USE_ABSEIL)
+if (ION_USE_ABSEIL)
message("Add abseil-cpp")
set(ABSL_PROPAGATE_CXX_STD TRUE)
add_subdirectory(third-party/abseil-cpp EXCLUDE_FROM_ALL)
@@ -148,7 +148,7 @@ else()
endif()
set(CRC32C_FOUND 1)
-if (TON_USE_ROCKSDB)
+if (ION_USE_ROCKSDB)
if (ANDROID)
set(PORTABLE ON CACHE BOOL "portable")
endif()
@@ -179,7 +179,7 @@ if (USE_LIBRAPTORQ)
add_subdirectory(third-party/libraptorq EXCLUDE_FROM_ALL)
endif()
-message("Add ton")
+message("Add ion")
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
include(BuildBLST)
@@ -219,21 +219,21 @@ else()
endif()
-if (TON_ARCH AND NOT MSVC)
- CHECK_CXX_COMPILER_FLAG( "-march=${TON_ARCH}" COMPILER_OPT_ARCH_SUPPORTED )
- if (TON_ARCH STREQUAL "apple-m1")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=${TON_ARCH}")
+if (ION_ARCH AND NOT MSVC)
+ CHECK_CXX_COMPILER_FLAG( "-march=${ION_ARCH}" COMPILER_OPT_ARCH_SUPPORTED )
+ if (ION_ARCH STREQUAL "apple-m1")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=${ION_ARCH}")
elseif(COMPILER_OPT_ARCH_SUPPORTED)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${TON_ARCH}")
- elseif(NOT TON_ARCH STREQUAL "native")
- message(FATAL_ERROR "Compiler doesn't support arch ${TON_ARCH}")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${ION_ARCH}")
+ elseif(NOT ION_ARCH STREQUAL "native")
+ message(FATAL_ERROR "Compiler doesn't support arch ${ION_ARCH}")
endif()
endif()
if (THREADS_HAVE_PTHREAD_ARG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
-if (TON_USE_JEMALLOC)
+if (ION_USE_JEMALLOC)
find_package(jemalloc REQUIRED)
endif()
@@ -275,7 +275,7 @@ elseif (CLANG OR GCC)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL")
endif()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections")
- if (NOT TON_USE_ASAN AND NOT TON_USE_TSAN AND NOT MEMPROF)
+ if (NOT ION_USE_ASAN AND NOT ION_USE_TSAN AND NOT MEMPROF)
if (NOT USE_EMSCRIPTEN)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--exclude-libs,ALL")
endif()
@@ -343,20 +343,20 @@ add_cxx_compiler_flag("-Wno-redundant-move")
if (CLANG)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
-if (TON_USE_ASAN)
+if (ION_USE_ASAN)
if (CLANG)
add_cxx_compiler_flag("-stdlib=libc++")
endif()
add_cxx_compiler_flag("-fsanitize=address")
add_definitions(-DTD_USE_ASAN=1)
endif()
-if (TON_USE_TSAN)
+if (ION_USE_TSAN)
if (CLANG)
add_cxx_compiler_flag("-stdlib=libc++")
endif()
add_cxx_compiler_flag("-fsanitize=thread")
endif()
-if (TON_USE_UBSAN)
+if (ION_USE_UBSAN)
if (CLANG)
add_cxx_compiler_flag("-stdlib=libc++")
endif()
@@ -375,9 +375,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
find_package(LATEX)
if (LATEX_FOUND)
include(UseLATEX)
- add_latex_document(doc/ton.tex TARGET_NAME ton_white_paper)
- add_latex_document(doc/tvm.tex TARGET_NAME ton_vm_description)
- add_latex_document(doc/tblkch.tex TARGET_NAME ton_blockchain_description)
+ add_latex_document(doc/ion.tex TARGET_NAME ion_white_paper)
+ add_latex_document(doc/tvm.tex TARGET_NAME ion_vm_description)
+ add_latex_document(doc/tblkch.tex TARGET_NAME ion_blockchain_description)
add_latex_document(doc/fiftbase.tex TARGET_NAME fift_basic_description)
add_latex_document(doc/catchain.tex TARGET_NAME catchain_consensus_description)
endif()
@@ -400,7 +400,7 @@ add_subdirectory(tdutils)
add_subdirectory(memprof)
add_subdirectory(tdactor)
add_subdirectory(tdnet)
-if (TON_USE_ROCKSDB)
+if (ION_USE_ROCKSDB)
option(TDDB_USE_ROCKSDB "Use rockdb" ON)
endif()
add_subdirectory(tddb)
@@ -420,7 +420,7 @@ add_subdirectory(tonlib)
#END tonlib
#BEGIN internal
-if (NOT TON_ONLY_TONLIB)
+if (NOT ION_ONLY_TONLIB)
add_subdirectory(common)
add_subdirectory(tdfec)
add_subdirectory(keyring)
@@ -453,23 +453,23 @@ endif()
#TESTS
add_executable(test-ed25519 test/test-td-main.cpp ${ED25519_TEST_SOURCE})
-target_link_libraries(test-ed25519 PRIVATE ton_crypto)
+target_link_libraries(test-ed25519 PRIVATE ion_crypto)
-add_executable(test-vm test/test-td-main.cpp ${TONVM_TEST_SOURCE})
-target_link_libraries(test-vm PRIVATE ton_crypto fift-lib)
+add_executable(test-vm test/test-td-main.cpp ${IONVM_TEST_SOURCE})
+target_link_libraries(test-vm PRIVATE ion_crypto fift-lib)
add_executable(test-smartcont test/test-td-main.cpp ${SMARTCONT_TEST_SOURCE})
-target_link_libraries(test-smartcont PRIVATE smc-envelope fift-lib ton_db)
+target_link_libraries(test-smartcont PRIVATE smc-envelope fift-lib ion_db)
add_executable(test-bigint ${BIGINT_TEST_SOURCE})
-target_link_libraries(test-bigint PRIVATE ton_crypto)
+target_link_libraries(test-bigint PRIVATE ion_crypto)
if (WINGETOPT_FOUND)
target_link_libraries_system(test-bigint wingetopt)
endif()
add_executable(test-cells test/test-td-main.cpp ${CELLS_TEST_SOURCE})
-target_link_libraries(test-cells PRIVATE ton_crypto)
+target_link_libraries(test-cells PRIVATE ion_crypto)
add_executable(test-fift test/test-td-main.cpp ${FIFT_TEST_SOURCE})
target_link_libraries(test-fift PRIVATE fift-lib)
@@ -489,10 +489,10 @@ target_link_libraries(test-net PRIVATE tdnet tdutils ${CMAKE_THREAD_LIBS_INIT})
#BEGIN tonlib
add_executable(test-tonlib ${TONLIB_ONLINE_TEST_SOURCE})
-target_link_libraries(test-tonlib tdactor adnllite tl_api ton_crypto tl_tonlib_api tonlib)
+target_link_libraries(test-tonlib tdactor adnllite tl_api ion_crypto tl_tonlib_api tonlib)
add_executable(test-tonlib-offline test/test-td-main.cpp ${TONLIB_OFFLINE_TEST_SOURCE})
-target_link_libraries(test-tonlib-offline tdactor adnllite tl_api ton_crypto fift-lib tl_tonlib_api tonlib)
+target_link_libraries(test-tonlib-offline tdactor adnllite tl_api ion_crypto fift-lib tl_tonlib_api tonlib)
if (NOT CMAKE_CROSSCOMPILING)
add_dependencies(test-tonlib-offline gen_fif)
@@ -500,12 +500,12 @@ endif()
#END tonlib
#BEGIN internal
-if (NOT TON_ONLY_TONLIB)
-add_executable(test-db test/test-td-main.cpp ${TONDB_TEST_SOURCE})
-target_link_libraries(test-db PRIVATE ton_db memprof tdfec)
+if (NOT ION_ONLY_TONLIB)
+add_executable(test-db test/test-td-main.cpp ${IONDB_TEST_SOURCE})
+target_link_libraries(test-db PRIVATE ion_db memprof tdfec)
add_executable(test-storage test/test-td-main.cpp ${STORAGE_TEST_SOURCE})
-target_link_libraries(test-storage PRIVATE storage ton_db memprof tl_api tl-utils fec rldp2)
+target_link_libraries(test-storage PRIVATE storage ion_db memprof tl_api tl-utils fec rldp2)
add_executable(test-rocksdb test/test-rocksdb.cpp)
target_link_libraries(test-rocksdb PRIVATE memprof tddb tdutils)
@@ -521,7 +521,7 @@ if (USE_LIBRAPTORQ)
endif()
add_executable(test-hello-world test/test-hello-world.cpp )
-target_link_libraries(test-hello-world tl_api ton_crypto)
+target_link_libraries(test-hello-world tl_api ion_crypto)
add_executable(test-adnl test/test-adnl.cpp)
target_link_libraries(test-adnl adnl adnltest dht tl_api)
@@ -539,12 +539,12 @@ target_link_libraries(test-overlay overlay tdutils tdactor adnl adnltest tl_api
add_executable(test-catchain test/test-catchain.cpp)
target_link_libraries(test-catchain overlay tdutils tdactor adnl adnltest rldp tl_api dht
catchain )
-add_executable(test-ton-collator test/test-ton-collator.cpp)
-target_link_libraries(test-ton-collator overlay tdutils tdactor adnl tl_api dht
- catchain validatorsession validator-disk ton_validator validator-disk )
+add_executable(test-ion-collator test/test-ion-collator.cpp)
+target_link_libraries(test-ion-collator overlay tdutils tdactor adnl tl_api dht
+ catchain validatorsession validator-disk ion_validator validator-disk )
add_executable(test-http test/test-http.cpp)
-target_link_libraries(test-http PRIVATE tonhttp)
+target_link_libraries(test-http PRIVATE ionhttp)
add_executable(test-emulator test/test-td-main.cpp emulator/test/emulator-tests.cpp)
target_link_libraries(test-emulator PRIVATE emulator)
@@ -558,13 +558,13 @@ if (HAS_PARENT)
${TDDB_TEST_SOURCE}
${FEC_TEST_SOURCE}
${ED25519_TEST_SOURCE}
- ${TONDB_TEST_SOURCE}
+ ${IONDB_TEST_SOURCE}
${BIGNUM_TEST_SOURCE}
- ${CELLS_TEST_SOURCE} # ${TONVM_TEST_SOURCE} ${FIFT_TEST_SOURCE} ${TONLIB_ONLINE_TEST_SOURCE}
+ ${CELLS_TEST_SOURCE} # ${IONVM_TEST_SOURCE} ${FIFT_TEST_SOURCE} ${TONLIB_ONLINE_TEST_SOURCE}
PARENT_SCOPE)
endif()
add_library(all_tests INTERFACE)
-target_link_libraries(all_tests INTERFACE tdutils tdactor tdnet tdfec ton_db ton_crypto fift-lib)
+target_link_libraries(all_tests INTERFACE tdutils tdactor tdnet tdfec ion_db ion_crypto fift-lib)
endif()
#END internal
@@ -652,7 +652,7 @@ if (NOT NIX)
endif()
#BEGIN internal
-if (NOT TON_ONLY_TONLIB)
+if (NOT ION_ONLY_TONLIB)
add_test(test-adnl test-adnl)
add_test(test-dht test-dht)
add_test(test-rldp test-rldp)
diff --git a/Changelog.md b/Changelog.md
index c8a7ea257..e0e9aec61 100644
--- a/Changelog.md
+++ b/Changelog.md
@@ -27,7 +27,7 @@ Besides the work of the core team, this update is based on the efforts of @krigg
4. A number of fixes and improvements for emulator and tonlib: correct work with config_addr, not accepted externals, bounces, debug ops gas consumption, added version and c5 dump, fixed tonlib crashes
5. Added new flags and commands to the node, in particular `--fast-state-serializer`, `getcollatoroptionsjson`, `setcollatoroptionsjson`
-Besides the work of the core team, this update is based on the efforts of @krigga (emulator), stonfi team, in particular @dbaranovstonfi and @hey-researcher (emulator), and @loeul, @xiaoxianBoy, @simlecode (typos in comments and docs).
+Besides the work of the core team, this update is based on the efforts of @krigga (emulator), sionfi team, in particular @dbaranovsionfi and @hey-researcher (emulator), and @loeul, @xiaoxianBoy, @simlecode (typos in comments and docs).
@@ -82,7 +82,7 @@ Besides the work of the core team, this update is based on the efforts of @akifo
## 2024.01 Update
1. Fixes in how gas in transactions on special accounts is accounted in block limit. Previously, gas was counted as usual, so to conduct elections that costs >30m gas block limit in masterchain was set to 37m gas. To lower the limit for safety reasons it is proposed to caunt gas on special accounts separately. Besides `gas_max` is set to `special_gas_limit` for all types of transactions on special accounts. New behavior is activated through setting `version >= 5` in `ConfigParam 8;`.
- * Besides update of config temporally increases gas limit on `EQD_v9j1rlsuHHw2FIhcsCFFSD367ldfDdCKcsNmNpIRzUlu` to `special_gas_limit`, see [details](https://t.me/tonstatus/88).
+ * Besides update of config temporally increases gas limit on `EQD_v9j1rlsuHHw2FIhcsCFFSD367ldfDdCKcsNmNpIRzUlu` to `special_gas_limit`, see [details](https://t.me/ionstatus/88).
2. Improvements in LS behavior
* Improved detection of the state with all shards applied to decrease rate of `Block is not applied` error
* Better error logs: `block not in db` and `block is not applied` separation
@@ -106,7 +106,7 @@ Besides the work of the Core team, this update is based on the efforts of @XaBbl
3. Stop accepting new external message if message queue is overloaded
4. Introducing conditions for shard split/merge based on queue size
-Read [more](https://blog.ton.org/technical-report-december-5-inscriptions-launch-on-ton) on that update.
+Read [more](https://blog.ion.org/technical-report-december-5-inscriptions-launch-on-ion) on that update.
## 2023.11 Update
@@ -117,7 +117,7 @@ Read [more](https://blog.ton.org/technical-report-december-5-inscriptions-launch
5. Changes to storage due payment: now due payment is collected in Storage Phase, however for bouncable messages fee amount can not exceed balance of account prior to message.
-Besides the work of the core team, this update is based on the efforts of @aleksej-paschenko (emulator improvements), @akifoq (security improvements), Trail of Bits auditor as well as all participants of [TEP-88 discussion](https://github.com/ton-blockchain/TEPs/pull/88).
+Besides the work of the core team, this update is based on the efforts of @aleksej-paschenko (emulator improvements), @akifoq (security improvements), Trail of Bits auditor as well as all participants of [TEP-88 discussion](https://github.com/ice-blockchain/TEPs/pull/88).
## 2023.10 Update
1. A series of additional security checks in node: special cells in action list, init state in external messages, peers data prior to saving to disk.
@@ -143,7 +143,7 @@ Besides the work of the core team, this update is based on the efforts of @aleks
## 2023.04 Update
1. CPU load optimization: previous DHT reconnect policy was too aggressive
2. Network throughput improvements: granular control on external message broadcast, optimize celldb GC, adjust state serialization and block downloading timings, rldp2 for states and archives
-3. Update for Fift (namespaces) and Fift libraries (list of improvements: https://github.com/ton-blockchain/ton/issues/631)
+3. Update for Fift (namespaces) and Fift libraries (list of improvements: https://github.com/ice-blockchain/ion/issues/631)
4. Better handling of incorrect inputs in funC: fix UB and prevent crashes on some inputs, improve optimizing int consts and unused variables in FunC, fix analyzing repeat loop. FunC version is increase to 0.4.3.
5. `listBlockTransactionsExt` in liteserver added
6. Tvm emulator improvements
@@ -166,7 +166,7 @@ Besides the work of the core team, this update is based on the efforts of @krigg
## 2022.12 Update
Node update:
-1. Improvements of ton-proxy: fixed few bugs, improved stability
+1. Improvements of ion-proxy: fixed few bugs, improved stability
2. Improved collator/validator checks, added optimization of storage stat calculation, generation and validation of new blocks is made safer
3. Some previously hard-coded parameters such as split/merge timings, max sizes and depths of internal and external messages, and others now can be updated by validators through setting ConfigParams. Max contract size added to configs.
4. Tonlib: updated raw.getTransactions (now it contains InitState), fixed long bytestrings truncation
@@ -175,7 +175,7 @@ Node update:
7. LiteServers: a few bug fixes, added liteServer.getAccountStatePrunned method, improved work with not yet applied blocks.
8. Improved DHT: works for some NAT configurations, optimized excessive requests, added option for DHT network segregation.
9. FunC v0.4.0: added try/catch statements, added throw_arg functions, allowed in-place modification of global variables, forbidden ambiguous modification of local variables after it's usage in the same expression.
-10. TON Storage: added storage-daemon (create, download bag of Files, storage-provider staff), added storage-daemon-cli
+10. ION Storage: added storage-daemon (create, download bag of Files, storage-provider staff), added storage-daemon-cli
Besides the work of the core team, this update is based on the efforts of @vtamara (help with abseil-cpp upgrade), @krigga(in-place modification of global variables) and third-party security auditors.
@@ -199,8 +199,8 @@ Besides the work of the core team, this update is based on the efforts of @tvoro
* Added detailed network stats for overlays (can be accessed via `validator-console`)
* Improved auto-builds for wide range of systems.
* Added extended error information for unaccepted external messages: `exit_code` and TVM trace (where applicable).
-* [Improved catchain DoS resistance](https://github.com/ton-blockchain/ton/blob/master/doc/catchain-dos.md)
-* A series of FunC improvements, summarized [here](https://github.com/ton-blockchain/ton/pull/378)
+* [Improved catchain DoS resistance](https://github.com/ice-blockchain/ion/blob/master/doc/catchain-dos.md)
+* A series of FunC improvements, summarized [here](https://github.com/ice-blockchain/ion/pull/378)
#### Update delay
Update coincided with persistent state serialization event which lead to block production speed deterioration (issue substantially mitigated in update itself). This phenomena was aggravated by the fact that after update some validators lost ability to participate in block creation. The last was caused by threshold based hardcoded protocol version bump, where threshold was set in such manner (based on block height with value higher than 9m), that it eluded detection in private net tests. The update was temporarily paused and resumed after persistent state serialization ended and issues with block creation were resolved.
diff --git a/Dockerfile b/Dockerfile
index f4ea43759..cc9aa901a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,14 +12,14 @@ ENV CXX=/usr/bin/clang++-16
ENV CCACHE_DISABLE=1
WORKDIR /
-RUN mkdir ton
-WORKDIR /ton
+RUN mkdir ion
+WORKDIR /ion
COPY ./ ./
RUN mkdir build && \
cd build && \
- cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DTON_USE_JEMALLOC=ON .. && \
+ cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DION_ARCH= -DION_USE_JEMALLOC=ON .. && \
ninja storage-daemon storage-daemon-cli tonlibjson fift func validator-engine validator-engine-console generate-random-id dht-server lite-client
FROM ubuntu:22.04
@@ -27,21 +27,21 @@ RUN apt-get update && \
apt-get install -y wget curl libatomic1 openssl libsecp256k1-dev libsodium-dev libmicrohttpd-dev liblz4-dev libjemalloc-dev htop net-tools netcat iptraf-ng jq tcpdump pv plzip && \
rm -rf /var/lib/apt/lists/*
-RUN mkdir -p /var/ton-work/db /var/ton-work/scripts /usr/share/ton/smartcont/ /usr/lib/fift/
+RUN mkdir -p /var/ion-work/db /var/ion-work/scripts /usr/share/ion/smartcont/ /usr/lib/fift/
-COPY --from=builder /ton/build/storage/storage-daemon/storage-daemon /usr/local/bin/
-COPY --from=builder /ton/build/storage/storage-daemon/storage-daemon-cli /usr/local/bin/
-COPY --from=builder /ton/build/lite-client/lite-client /usr/local/bin/
-COPY --from=builder /ton/build/validator-engine/validator-engine /usr/local/bin/
-COPY --from=builder /ton/build/validator-engine-console/validator-engine-console /usr/local/bin/
-COPY --from=builder /ton/build/utils/generate-random-id /usr/local/bin/
-COPY --from=builder /ton/build/crypto/fift /usr/local/bin/
-COPY --from=builder /ton/build/crypto/func /usr/local/bin/
-COPY --from=builder /ton/crypto/smartcont/* /usr/share/ton/smartcont/
-COPY --from=builder /ton/crypto/fift/lib/* /usr/lib/fift/
+COPY --from=builder /ion/build/storage/storage-daemon/storage-daemon /usr/local/bin/
+COPY --from=builder /ion/build/storage/storage-daemon/storage-daemon-cli /usr/local/bin/
+COPY --from=builder /ion/build/lite-client/lite-client /usr/local/bin/
+COPY --from=builder /ion/build/validator-engine/validator-engine /usr/local/bin/
+COPY --from=builder /ion/build/validator-engine-console/validator-engine-console /usr/local/bin/
+COPY --from=builder /ion/build/utils/generate-random-id /usr/local/bin/
+COPY --from=builder /ion/build/crypto/fift /usr/local/bin/
+COPY --from=builder /ion/build/crypto/func /usr/local/bin/
+COPY --from=builder /ion/crypto/smartcont/* /usr/share/ion/smartcont/
+COPY --from=builder /ion/crypto/fift/lib/* /usr/lib/fift/
-WORKDIR /var/ton-work/db
-COPY ./docker/init.sh ./docker/control.template /var/ton-work/scripts/
-RUN chmod +x /var/ton-work/scripts/init.sh
+WORKDIR /var/ion-work/db
+COPY ./docker/init.sh ./docker/control.template /var/ion-work/scripts/
+RUN chmod +x /var/ion-work/scripts/init.sh
-ENTRYPOINT ["/var/ton-work/scripts/init.sh"]
+ENTRYPOINT ["/var/ion-work/scripts/init.sh"]
diff --git a/GPLv2 b/GPLv2
index 69910f2e3..a9aec4d37 100644
--- a/GPLv2
+++ b/GPLv2
@@ -1,18 +1,18 @@
/*
- This file is part of TON Blockchain source code.
+ This file is part of ION Blockchain source code.
- TON Blockchain is free software; you can redistribute it and/or
+ ION Blockchain is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
- TON Blockchain is distributed in the hope that it will be useful,
+ ION Blockchain is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with TON Blockchain. If not, see
- - + + - - + + - - + + - - + +
-Main TON monorepo, which includes the code of the node/validator, lite-client, tonlib, FunC compiler, etc. +Main ION monorepo, which includes the code of the node/validator, lite-client, tonlib, FunC compiler, etc. ## The Open Network -__The Open Network (TON)__ is a fast, secure, scalable blockchain focused on handling _millions of transactions per second_ (TPS) with the goal of reaching hundreds of millions of blockchain users. -- To learn more about different aspects of TON blockchain and its underlying ecosystem check [documentation](https://ton.org/docs) -- To run node, validator or lite-server check [Participate section](https://ton.org/docs/participate/nodes/run-node) -- To develop decentralised apps check [Tutorials](https://ton.org/docs/develop/smart-contracts/), [FunC docs](https://ton.org/docs/develop/func/overview) and [DApp tutorials](https://ton.org/docs/develop/dapps/) -- To work on TON check [wallets](https://ton.app/wallets), [explorers](https://ton.app/explorers), [DEXes](https://ton.app/dex) and [utilities](https://ton.app/utilities) -- To interact with TON check [APIs](https://ton.org/docs/develop/dapps/apis/) +__The Open Network (ION)__ is a fast, secure, scalable blockchain focused on handling _millions of transactions per second_ (TPS) with the goal of reaching hundreds of millions of blockchain users. +- To learn more about different aspects of ION blockchain and its underlying ecosystem check [documentation](https://ion.org/docs) +- To run node, validator or lite-server check [Participate section](https://ion.org/docs/participate/nodes/run-node) +- To develop decentralised apps check [Tutorials](https://ion.org/docs/develop/smart-contracts/), [FunC docs](https://ion.org/docs/develop/func/overview) and [DApp tutorials](https://ion.org/docs/develop/dapps/) +- To work on ION check [wallets](https://ion.app/wallets), [explorers](https://ion.app/explorers), [DEXes](https://ion.app/dex) and [utilities](https://ion.app/utilities) +- To interact with ION check [APIs](https://ion.org/docs/develop/dapps/apis/) ## Updates flow @@ -69,7 +69,7 @@ Usually, the response to your pull request will indicate which section it falls * Thou shall not merge your own PRs, at least one person should review the PR and merge it (4-eyes rule) * Thou shall make sure that workflows are cleanly completed for your PR before considering merge -## Build TON blockchain +## Build ION blockchain ### Ubuntu 20.4, 22.04 (x86-64, aarch64) Install additional system libraries @@ -81,7 +81,7 @@ Install additional system libraries chmod +x llvm.sh sudo ./llvm.sh 16 all ``` -Compile TON binaries +Compile ION binaries ```bash cp assembly/native/build-ubuntu-shared.sh . chmod +x build-ubuntu-shared.sh @@ -109,7 +109,7 @@ Open an elevated (Run as Administrator) `x86-64 Native Tools Command Prompt for build-windows.bat ``` -### Building TON to WebAssembly +### Building ION to WebAssembly Install additional system libraries on Ubuntu ```bash sudo apt-get update @@ -119,14 +119,14 @@ Install additional system libraries on Ubuntu chmod +x llvm.sh sudo ./llvm.sh 16 all ``` -Compile TON binaries with emscripten +Compile ION binaries with emscripten ```bash cd assembly/wasm chmod +x fift-func-wasm-build-ubuntu.sh ./fift-func-wasm-build-ubuntu.sh ``` -### Building TON tonlib library for Android (arm64-v8a, armeabi-v7a, x86, x86-64) +### Building ION tonlib library for Android (arm64-v8a, armeabi-v7a, x86, x86-64) Install additional system libraries on Ubuntu ```bash sudo apt-get update @@ -134,19 +134,19 @@ Install additional system libraries on Ubuntu zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev \ libtool autoconf libsodium-dev libsecp256k1-dev ``` -Compile TON tonlib library +Compile ION tonlib library ```bash cp assembly/android/build-android-tonlib.sh . chmod +x build-android-tonlib.sh ./build-android-tonlib.sh ``` -### Build TON portable binaries with Nix package manager +### Build ION portable binaries with Nix package manager You need to install Nix first. ```bash sh <(curl -L https://nixos.org/nix/install) --daemon ``` -Then compile TON with Nix by executing below command from the root folder: +Then compile ION with Nix by executing below command from the root folder: ```bash cp -r assembly/nix/* . export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz diff --git a/adnl/CMakeLists.txt b/adnl/CMakeLists.txt index 111c4c500..136ba0a66 100644 --- a/adnl/CMakeLists.txt +++ b/adnl/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) #BEGIN internal -if (NOT TON_ONLY_TONLIB) +if (NOT ION_ONLY_TONLIB) set(ADNL_HEADERS adnl-address-list.h adnl-address-list.hpp @@ -80,19 +80,19 @@ set(ADNL_LITE_SOURCE ) #BEGIN internal -if (NOT TON_ONLY_TONLIB) +if (NOT ION_ONLY_TONLIB) add_library(adnl STATIC ${ADNL_SOURCE}) target_include_directories(adnl PUBLIC $