| abstract | The aim of this text is to provide a description of the Telegram Open Network Virtual Machine (TON VM or TVM), used to execute smart contracts in the TON Blockchain. | |
|---|---|---|
| author |
|
|
| title | Telegram Open Network Virtual Machine |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -o errexit | |
| # npx everdev network default se | |
| # npx everdev signer default coder | |
| user=${user:-alice} | |
| appName=${app:-Example} | |
| src=${src:-.} |
This file contains hidden or 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
| pragma ton-solidity >=0.40.0; | |
| pragma AbiHeader expire; | |
| pragma AbiHeader time; | |
| pragma AbiHeader pubkey; | |
| import "https://raw.githubusercontent.com/tonlabs/debots/main/Debot.sol"; | |
| import "https://raw.githubusercontent.com/tonlabs/DeBot-IS-consortium/main/Terminal/Terminal.sol"; | |
| import "https://raw.githubusercontent.com/tonlabs/DeBot-IS-consortium/main/Media/Media.sol"; | |
| import "https://raw.githubusercontent.com/tonlabs/DeBot-IS-consortium/main/Network/Network.sol"; |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -o errexit | |
| generate() { | |
| name="${1}" | |
| pragma="${2}" | |
| cat << EOF > "build/${name}.sol" | |
| pragma ton-solidity >= 0.57.3; | |
| pragma AbiHeader time; |
- Install cmake https://cmake.org/install/
- Install rust, cargo https://doc.rust-lang.org/cargo/getting-started/installation.html
- Install docker https://www.docker.com/get-started
- Install nodejs https://nodejs.org/en/download/
This file contains hidden or 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
| { | |
| "filter": { | |
| "symbol": "BRIDGE", | |
| "balance": 100 | |
| }, | |
| "list": [ | |
| "0:e0acbc21f0a538a1cca6b1434d454697527a5678479976fdf48af2ba12360c4f", | |
| "0:ade6e32df9e59c476e14f6ecc1f4cdc4fb1b6aaf165893f54b5d3a73695a0081", | |
| "0:a80bc3541b81aa1016a23dcd1d9ea4683378e7a006be6278efa1ad147ec54a1b", | |
| "0:8c0728cd29321d3e00552032af88365899d3e900169d0a87ff8180b15d4ccdac", |
Get address by code hash (dev)
query:
query {
accounts(
filter: {
code_hash: {
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -o errexit | |
| mkdir -p src | |
| cat > src/implicit.sol <<- SOL | |
| pragma ton-solidity >= 0.61.0; | |
| contract implicit {} | |
| SOL |
