> @incubare/cell@1.0.0-alpha.0 benchmark
> npx tsx benchmark.ts
=== @incubare/cell ===
Iterations: 100,000
| // npx ts-node hex-to-boc.ts | |
| import { BitReader, BitString, Builder, Slice } from "@ton/core"; | |
| async function main() { | |
| const data = Buffer.from('000000000000000000000000000000000000000000000000000000000000002a', 'hex'); | |
| const bs = new BitString(data, 0, data.length * 8); | |
| const r = new BitReader(bs); | |
| const s = new Slice(r, []); | |
| const b = new Builder(); |
PR: ton-community/ton-docs#1294
When writing contracts for the TON blockchain, it's important to consider how efficiently gas is consumed when executing the logic you implement, in addition, unlike other blockchains, in the TON blockchain you need to pay for storing contract data and for forward messages between contracts
Therefore, when developing a contract, it's important to pay attention to how data size changes and how gas consumption changes after you modify the contract's behavior or add new functionality
| #!/usr/bin/env bash | |
| # tonup - TON toolchain versions manager | |
| # INSTALL | |
| # wget -O tonup.sh https://gist.githubusercontent.com/ilyar/ec7f560d4632cb09a319d60f75a518a2/raw/6ad10f2e33dad7f138cefee441c0ba2dcb83d182/tonup.sh | |
| # cp tonup.sh ~/bin/tonup && chmod +x ~/bin/tonup | |
| # SETUP | |
| # export PATH="$HOME/bin-ton/current:$PATH" | |
| set -eo pipefail # https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/ |
| { | |
| "comment": "Some label", | |
| "createdAt": "2025-05-07T19:07:22.277Z", | |
| "items": [ | |
| { | |
| "address": "EQBiA46W-PQaaZZNFIDglnVknV9CR6J5hs81bSv70FwfNTrD", | |
| "codeHash": "0xd992502b94ea96e7b34e5d62ffb0c6fc73d78b3e61f11f0848fb3a1eb1afc912", | |
| "contractName": "TreasuryContract", | |
| "methodName": "send", | |
| "receiver": "external-in", |
If you haven’t installed tonutils-reverse-proxy, follow the instructions docs.ton.org/develop/dapps/tutorials/how-to-run-ton-site, for example:
curl -fsSL -o tonutils-reverse-proxy https://github.com/ton-utils/reverse-proxy/releases/latest/download/tonutils-reverse-proxy-linux-amd64
chmod +x tonutils-reverse-proxy
mv tonutils-reverse-proxy /usr/local/bin/| { | |
| "p0": "5555555555555555555555555555555555555555555555555555555555555555", | |
| "p1": "3333333333333333333333333333333333333333333333333333333333333333", | |
| "p2": "0000000000000000000000000000000000000000000000000000000000000000", | |
| "p7": [ | |
| { | |
| "currency": 239, | |
| "value": "666666666666" | |
| }, | |
| { |
The COIN Conversation Model is a structured approach to feedback and conflict resolution in the workplace. This method was developed to help managers and employees effectively discuss complex issues and reach consensus. The COIN model consists of four key stages:
- C (Connect): Start the conversation by establishing rapport and creating an atmosphere of trust. This might include expressing gratitude for the employee's efforts or acknowledging their achievements.
- O (Observe): Share your observations without judgment or evaluation. This is factual information about what you've seen or heard.
- I (Impact): Explain the implications of your observations for the team, project, or organization. This could include both positive and negative impacts.
- N (Next): Discuss the next steps or actions that need to be taken. This might involve corrective actions, new goals, or changes in behavior.
The COIN model can be particularly useful when there's a need to discuss c
