Skip to content

Commit 7151ff2

Browse files
authored
Merge pull request #1345 from ton-blockchain/tolk-v0.6.0
Tolk Language: next-generation FunC
2 parents eed3153 + d110022 commit 7151ff2

File tree

204 files changed

+23041
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+23041
-47
lines changed

.github/script/amd64-20.04.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ENV CC clang
1717
ENV CXX clang++
1818
ENV CCACHE_DISABLE 1
1919
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
20-
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
20+
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

.github/script/amd64-22.04.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ENV CC clang
1717
ENV CXX clang++
1818
ENV CCACHE_DISABLE 1
1919
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= -DCMAKE_CXX_FLAGS="-mavx2" ..
20-
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id create-hardfork dht-server lite-client
20+
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

.github/script/arm64-20.04.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ENV CC clang
1717
ENV CXX clang++
1818
ENV CCACHE_DISABLE 1
1919
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= ..
20-
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
20+
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

.github/script/arm64-22.04.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ ENV CC clang
1717
ENV CXX clang++
1818
ENV CCACHE_DISABLE 1
1919
RUN cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DPORTABLE=1 -DTON_ARCH= ..
20-
RUN ninja storage-daemon storage-daemon-cli tonlibjson blockchain-explorer fift func validator-engine validator-engine-console create-state generate-random-id dht-server lite-client
20+
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

.github/workflows/create-release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ jobs:
167167
asset_name: func.exe
168168
tag: ${{ steps.tag.outputs.TAG }}
169169

170+
- name: Upload Windows 2019 single artifact - tolk
171+
uses: svenstaro/upload-release-action@v2
172+
with:
173+
repo_token: ${{ secrets.GITHUB_TOKEN }}
174+
file: artifacts/ton-win-binaries/tolk.exe
175+
asset_name: tolk.exe
176+
tag: ${{ steps.tag.outputs.TAG }}
177+
170178
- name: Upload Windows 2019 single artifact - lite-client
171179
uses: svenstaro/upload-release-action@v2
172180
with:
@@ -257,6 +265,14 @@ jobs:
257265
asset_name: func-mac-x86-64
258266
tag: ${{ steps.tag.outputs.TAG }}
259267

268+
- name: Upload Mac x86-64 single artifact - tolk
269+
uses: svenstaro/upload-release-action@v2
270+
with:
271+
repo_token: ${{ secrets.GITHUB_TOKEN }}
272+
file: artifacts/ton-x86_64-macos-binaries/tolk
273+
asset_name: tolk-mac-x86-64
274+
tag: ${{ steps.tag.outputs.TAG }}
275+
260276
- name: Upload Mac x86-64 single artifact - lite-client
261277
uses: svenstaro/upload-release-action@v2
262278
with:
@@ -348,6 +364,14 @@ jobs:
348364
asset_name: func-mac-arm64
349365
tag: ${{ steps.tag.outputs.TAG }}
350366

367+
- name: Upload Mac arm64 single artifact - tolk
368+
uses: svenstaro/upload-release-action@v2
369+
with:
370+
repo_token: ${{ secrets.GITHUB_TOKEN }}
371+
file: artifacts/ton-arm64-macos-binaries/tolk
372+
asset_name: tolk-mac-arm64
373+
tag: ${{ steps.tag.outputs.TAG }}
374+
351375
- name: Upload Mac arm64 single artifact - lite-client
352376
uses: svenstaro/upload-release-action@v2
353377
with:
@@ -438,6 +462,14 @@ jobs:
438462
asset_name: func-linux-x86_64
439463
tag: ${{ steps.tag.outputs.TAG }}
440464

465+
- name: Upload Linux x86-64 single artifact - tolk
466+
uses: svenstaro/upload-release-action@v2
467+
with:
468+
repo_token: ${{ secrets.GITHUB_TOKEN }}
469+
file: artifacts/ton-x86_64-linux-binaries/tolk
470+
asset_name: tolk-linux-x86_64
471+
tag: ${{ steps.tag.outputs.TAG }}
472+
441473
- name: Upload Linux x86-64 single artifact - lite-client
442474
uses: svenstaro/upload-release-action@v2
443475
with:

.github/workflows/ton-arm64-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
artifacts/lite-client -V
3030
artifacts/fift -V
3131
artifacts/func -V
32+
artifacts/tolk -v
3233
3334
- name: Upload artifacts
3435
uses: actions/upload-artifact@master

.github/workflows/ton-x86-64-linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
artifacts/lite-client -V
3434
artifacts/fift -V
3535
artifacts/func -V
36+
artifacts/tolk -v
3637
3738
- name: Upload artifacts
3839
uses: actions/upload-artifact@master

.github/workflows/ton-x86-64-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
artifacts/lite-client -V
3030
artifacts/fift -V
3131
artifacts/func -V
32+
artifacts/tolk -v
3233
3334
- name: Upload artifacts
3435
uses: actions/upload-artifact@master

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ test/regression-tests.cache/
1313
**/*build*/
1414
.idea
1515
.vscode
16+
.DS_Store
17+
dev/
1618
zlib/
1719
libsodium/
1820
libmicrohttpd-0.9.77-w32-bin/

CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ add_subdirectory(adnl)
413413
add_subdirectory(crypto)
414414
add_subdirectory(lite-client)
415415
add_subdirectory(emulator)
416+
add_subdirectory(tolk)
416417

417418
#BEGIN tonlib
418419
add_subdirectory(tonlib)
@@ -626,6 +627,30 @@ if (NOT NIX)
626627
endif()
627628
endif()
628629

630+
# Tolk tests
631+
if (NOT NIX)
632+
if (MSVC)
633+
set(PYTHON_VER "python")
634+
else()
635+
set(PYTHON_VER "python3")
636+
endif()
637+
add_test(
638+
NAME test-tolk
639+
COMMAND ${PYTHON_VER} tolk-tester.py tests/
640+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tolk-tester)
641+
if (WIN32)
642+
set_property(TEST test-tolk PROPERTY ENVIRONMENT
643+
"TOLK_EXECUTABLE=${CMAKE_CURRENT_BINARY_DIR}/tolk/tolk.exe"
644+
"FIFT_EXECUTABLE=${CMAKE_CURRENT_BINARY_DIR}/crypto/fift.exe"
645+
"FIFTPATH=${CMAKE_CURRENT_SOURCE_DIR}/crypto/fift/lib/")
646+
else()
647+
set_property(TEST test-tolk PROPERTY ENVIRONMENT
648+
"TOLK_EXECUTABLE=${CMAKE_CURRENT_BINARY_DIR}/tolk/tolk"
649+
"FIFT_EXECUTABLE=${CMAKE_CURRENT_BINARY_DIR}/crypto/fift"
650+
"FIFTPATH=${CMAKE_CURRENT_SOURCE_DIR}/crypto/fift/lib/")
651+
endif()
652+
endif()
653+
629654
#BEGIN internal
630655
if (NOT TON_ONLY_TONLIB)
631656
add_test(test-adnl test-adnl)

assembly/native/build-macos-portable.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ test $? -eq 0 || { echo "Can't configure ton"; exit 1; }
153153

154154
if [ "$with_tests" = true ]; then
155155
ninja storage-daemon storage-daemon-cli blockchain-explorer \
156-
tonlib tonlibjson tonlib-cli validator-engine func fift \
156+
tonlib tonlibjson tonlib-cli validator-engine func tolk fift \
157157
lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server \
158158
http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator \
159159
test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont \
@@ -162,7 +162,7 @@ if [ "$with_tests" = true ]; then
162162
test $? -eq 0 || { echo "Can't compile ton"; exit 1; }
163163
else
164164
ninja storage-daemon storage-daemon-cli blockchain-explorer \
165-
tonlib tonlibjson tonlib-cli validator-engine func fift \
165+
tonlib tonlibjson tonlib-cli validator-engine func tolk fift \
166166
lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server \
167167
http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator
168168
test $? -eq 0 || { echo "Can't compile ton"; exit 1; }
@@ -173,6 +173,7 @@ strip -s storage/storage-daemon/storage-daemon-cli
173173
strip -s blockchain-explorer/blockchain-explorer
174174
strip -s crypto/fift
175175
strip -s crypto/func
176+
strip -s tolk/tolk
176177
strip -s crypto/create-state
177178
strip -s crypto/tlbc
178179
strip -s validator-engine-console/validator-engine-console
@@ -197,6 +198,7 @@ if [ "$with_artifacts" = true ]; then
197198
cp build/blockchain-explorer/blockchain-explorer artifacts/
198199
cp build/crypto/fift artifacts/
199200
cp build/crypto/func artifacts/
201+
cp build/tolk/tolk artifacts/
200202
cp build/crypto/create-state artifacts/
201203
cp build/crypto/tlbc artifacts/
202204
cp build/validator-engine-console/validator-engine-console artifacts/

assembly/native/build-macos-shared.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test $? -eq 0 || { echo "Can't configure ton"; exit 1; }
8181

8282
if [ "$with_tests" = true ]; then
8383
ninja storage-daemon storage-daemon-cli blockchain-explorer \
84-
tonlib tonlibjson tonlib-cli validator-engine func fift \
84+
tonlib tonlibjson tonlib-cli validator-engine func tolk fift \
8585
lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server \
8686
http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator \
8787
test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont \
@@ -90,7 +90,7 @@ if [ "$with_tests" = true ]; then
9090
test $? -eq 0 || { echo "Can't compile ton"; exit 1; }
9191
else
9292
ninja storage-daemon storage-daemon-cli blockchain-explorer \
93-
tonlib tonlibjson tonlib-cli validator-engine func fift \
93+
tonlib tonlibjson tonlib-cli validator-engine func tolk fift \
9494
lite-client pow-miner validator-engine-console generate-random-id json2tlo dht-server \
9595
http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork tlbc emulator
9696
test $? -eq 0 || { echo "Can't compile ton"; exit 1; }
@@ -102,6 +102,7 @@ strip -s storage/storage-daemon/storage-daemon-cli
102102
strip -s blockchain-explorer/blockchain-explorer
103103
strip -s crypto/fift
104104
strip -s crypto/func
105+
strip -s tolk/tolk
105106
strip -s crypto/create-state
106107
strip -s crypto/tlbc
107108
strip -s validator-engine-console/validator-engine-console
@@ -126,6 +127,7 @@ if [ "$with_artifacts" = true ]; then
126127
cp build/blockchain-explorer/blockchain-explorer artifacts/
127128
cp build/crypto/fift artifacts/
128129
cp build/crypto/func artifacts/
130+
cp build/tolk/tolk artifacts/
129131
cp build/crypto/create-state artifacts/
130132
cp build/crypto/tlbc artifacts/
131133
cp build/validator-engine-console/validator-engine-console artifacts/

assembly/native/build-ubuntu-portable.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ cmake -GNinja .. \
144144
test $? -eq 0 || { echo "Can't configure ton"; exit 1; }
145145

146146
if [ "$with_tests" = true ]; then
147-
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli \
147+
ninja storage-daemon storage-daemon-cli fift func tolk tonlib tonlibjson tonlib-cli \
148148
validator-engine lite-client pow-miner validator-engine-console blockchain-explorer \
149149
generate-random-id json2tlo dht-server http-proxy rldp-http-proxy \
150150
adnl-proxy create-state emulator test-ed25519 test-ed25519-crypto test-bigint \
@@ -153,7 +153,7 @@ ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli \
153153
test-fec test-tddb test-db test-validator-session-state test-emulator
154154
test $? -eq 0 || { echo "Can't compile ton"; exit 1; }
155155
else
156-
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli \
156+
ninja storage-daemon storage-daemon-cli fift func tolk tonlib tonlibjson tonlib-cli \
157157
validator-engine lite-client pow-miner validator-engine-console blockchain-explorer \
158158
generate-random-id json2tlo dht-server http-proxy rldp-http-proxy \
159159
adnl-proxy create-state emulator
@@ -166,6 +166,7 @@ strip -s storage/storage-daemon/storage-daemon \
166166
crypto/fift \
167167
crypto/tlbc \
168168
crypto/func \
169+
tolk/tolk \
169170
crypto/create-state \
170171
validator-engine-console/validator-engine-console \
171172
tonlib/tonlib-cli \
@@ -195,7 +196,7 @@ if [ "$with_artifacts" = true ]; then
195196
mkdir artifacts
196197
mv build/tonlib/libtonlibjson.so.0.5 build/tonlib/libtonlibjson.so
197198
cp build/storage/storage-daemon/storage-daemon build/storage/storage-daemon/storage-daemon-cli \
198-
build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/blockchain-explorer/blockchain-explorer \
199+
build/crypto/fift build/crypto/tlbc build/crypto/func build/tolk/tolk build/crypto/create-state build/blockchain-explorer/blockchain-explorer \
199200
build/validator-engine-console/validator-engine-console build/tonlib/tonlib-cli \
200201
build/tonlib/libtonlibjson.so build/http/http-proxy build/rldp-http-proxy/rldp-http-proxy \
201202
build/dht-server/dht-server build/lite-client/lite-client build/validator-engine/validator-engine \

assembly/native/build-ubuntu-shared.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cmake -GNinja -DTON_USE_JEMALLOC=ON .. \
5252
test $? -eq 0 || { echo "Can't configure ton"; exit 1; }
5353

5454
if [ "$with_tests" = true ]; then
55-
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli \
55+
ninja storage-daemon storage-daemon-cli fift func tolk tonlib tonlibjson tonlib-cli \
5656
validator-engine lite-client pow-miner validator-engine-console blockchain-explorer \
5757
generate-random-id json2tlo dht-server http-proxy rldp-http-proxy \
5858
adnl-proxy create-state emulator test-ed25519 test-ed25519-crypto test-bigint \
@@ -61,7 +61,7 @@ ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli \
6161
test-fec test-tddb test-db test-validator-session-state test-emulator
6262
test $? -eq 0 || { echo "Can't compile ton"; exit 1; }
6363
else
64-
ninja storage-daemon storage-daemon-cli fift func tonlib tonlibjson tonlib-cli \
64+
ninja storage-daemon storage-daemon-cli fift func tolk tonlib tonlibjson tonlib-cli \
6565
validator-engine lite-client pow-miner validator-engine-console blockchain-explorer \
6666
generate-random-id json2tlo dht-server http-proxy rldp-http-proxy \
6767
adnl-proxy create-state emulator
@@ -74,6 +74,7 @@ strip -s storage/storage-daemon/storage-daemon \
7474
crypto/fift \
7575
crypto/tlbc \
7676
crypto/func \
77+
tolk/tolk \
7778
crypto/create-state \
7879
validator-engine-console/validator-engine-console \
7980
tonlib/tonlib-cli \
@@ -105,7 +106,7 @@ if [ "$with_artifacts" = true ]; then
105106
mkdir artifacts
106107
mv build/tonlib/libtonlibjson.so.0.5 build/tonlib/libtonlibjson.so
107108
cp build/storage/storage-daemon/storage-daemon build/storage/storage-daemon/storage-daemon-cli \
108-
build/crypto/fift build/crypto/tlbc build/crypto/func build/crypto/create-state build/blockchain-explorer/blockchain-explorer \
109+
build/crypto/fift build/crypto/tlbc build/crypto/func build/tolk/tolk build/crypto/create-state build/blockchain-explorer/blockchain-explorer \
109110
build/validator-engine-console/validator-engine-console build/tonlib/tonlib-cli \
110111
build/tonlib/libtonlibjson.so build/http/http-proxy build/rldp-http-proxy/rldp-http-proxy \
111112
build/dht-server/dht-server build/lite-client/lite-client build/validator-engine/validator-engine \

assembly/native/build-windows-2019.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ IF %errorlevel% NEQ 0 (
155155
)
156156

157157
IF "%1"=="-t" (
158-
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson ^
158+
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tolk tonlib tonlibjson ^
159159
tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id ^
160160
json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator ^
161161
test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont test-net ^
@@ -166,7 +166,7 @@ IF %errorlevel% NEQ 0 (
166166
exit /b %errorlevel%
167167
)
168168
) else (
169-
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson ^
169+
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tolk tonlib tonlibjson ^
170170
tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id ^
171171
json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator
172172
IF %errorlevel% NEQ 0 (
@@ -204,6 +204,7 @@ build\blockchain-explorer\blockchain-explorer.exe ^
204204
build\crypto\fift.exe ^
205205
build\crypto\tlbc.exe ^
206206
build\crypto\func.exe ^
207+
build\tolk\tolk.exe ^
207208
build\crypto\create-state.exe ^
208209
build\validator-engine-console\validator-engine-console.exe ^
209210
build\tonlib\tonlib-cli.exe ^

assembly/native/build-windows.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ IF %errorlevel% NEQ 0 (
156156
)
157157

158158
IF "%1"=="-t" (
159-
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson ^
159+
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tolk tonlib tonlibjson ^
160160
tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id ^
161161
json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator ^
162162
test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont test-net ^
@@ -167,7 +167,7 @@ IF %errorlevel% NEQ 0 (
167167
exit /b %errorlevel%
168168
)
169169
) else (
170-
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson ^
170+
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tolk tonlib tonlibjson ^
171171
tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id ^
172172
json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator
173173
IF %errorlevel% NEQ 0 (
@@ -205,6 +205,7 @@ build\blockchain-explorer\blockchain-explorer.exe ^
205205
build\crypto\fift.exe ^
206206
build\crypto\tlbc.exe ^
207207
build\crypto\func.exe ^
208+
build\tolk\tolk.exe ^
208209
build\crypto\create-state.exe ^
209210
build\validator-engine-console\validator-engine-console.exe ^
210211
build\tonlib\tonlib-cli.exe ^

assembly/nix/build-linux-arm64-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ sudo strip -s storage-daemon \
4343
fift \
4444
tlbc \
4545
func \
46+
tolk \
4647
create-state \
4748
validator-engine-console \
4849
tonlib-cli \

assembly/nix/build-linux-x86-64-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ sudo strip -s storage-daemon \
4343
fift \
4444
tlbc \
4545
func \
46+
tolk \
4647
create-state \
4748
validator-engine-console \
4849
tonlib-cli \

assembly/nix/build-macos-nix.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ sudo strip -xSX storage-daemon \
4343
fift \
4444
tlbc \
4545
func \
46+
tolk \
4647
create-state \
4748
validator-engine-console \
4849
tonlib-cli \

crypto/fift/lib/Asm.fif

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,6 +1589,9 @@ forget @proclist forget @proccnt
15891589
{ }END> b> } : }END>c
15901590
{ }END>c <s } : }END>s
15911591

1592+
// This is the way how FunC assigns method_id for reserved functions.
1593+
// Note, that Tolk entrypoints have other names (`onInternalMessage`, etc.),
1594+
// but method_id is assigned not by Fift, but by Tolk code generation.
15921595
0 constant recv_internal
15931596
-1 constant recv_external
15941597
-2 constant run_ticktock

0 commit comments

Comments
 (0)