Skip to content

[NONEVM-5967] Bump Tolk to 1.4.2 ton->gram - #869

Merged
duck-types merged 7 commits into
mainfrom
chore/bump-tolk-1.4.2
Sep 18, 2026
Merged

duck-types merged 7 commits into
mainfrom
chore/bump-tolk-1.4.2

Conversation

@duck-types

@duck-types duck-types commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

NONEVM-5967

  • can no longer build alias of struct
  • inline annotations are not applicable to asm functions
  • rename ton to gram

See complete changelog: ton-blockchain/ton#2441

krebernisak
krebernisak previously approved these changes Sep 7, 2026
@duck-types
duck-types marked this pull request as ready for review September 18, 2026 14:15
@duck-types
duck-types requested a review from a team as a code owner September 18, 2026 14:15
@duck-types
duck-types requested a lite review from Copilot September 18, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Replace the deprecated reserve call in JettonWithdrawable.onWithdraw and update its related documentation.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates the Tolk toolchain to 1.4.2 and applies required GRAM terminology, language compatibility, and generated-wrapper changes.

Changes:

  • Bumps Tolk.js and Acton dependencies.
  • Updates contract APIs and Tolk compatibility.
  • Regenerates Receiver bindings.
  • Review note: jetton_withdrawable.tolk still uses deprecated reserveToncoinsOnBalance.
File summaries
File Summary
yarn.lock Locks Tolk.js 1.4.2.
contracts/wrappers/gen/index.ts Registers the renamed Receiver wrapper.
contracts/wrappers/gen/ccip/Receiver.ts Regenerates Receiver bindings.
contracts/package.json Bumps the Tolk.js dependency.
contracts/lock.nix Refreshes the Nix dependency hash.
contracts/contracts/wgram/JettonWallet.tolk Updates Tolk and reserve helpers.
contracts/contracts/wgram/JettonMinter.tolk Updates Tolk and reserve helpers.
contracts/contracts/mcms/rbac_timelock.tolk Updates currency helpers and Tolk.
contracts/contracts/mcms/mcms.tolk Updates currency helpers and Tolk.
contracts/contracts/lib/secp256k1.tolk Removes the invalid ASM inline annotation.
contracts/contracts/lib/receiver/CCIPReceiver.tolk Updates the Tolk version.
contracts/contracts/lib/funding/withdrawable.tolk Updates the reserve helper.
contracts/contracts/lib/funding/jetton_withdrawable.tolk Updates Tolk and reserve handling.
contracts/contracts/lib/crypto/merkle_proof.tolk Updates the Tolk version.
contracts/contracts/lib/access/access_control.tolk Updates the currency helper.
contracts/contracts/firedrill/firedrill_onramp.tolk Updates the currency helper and Tolk.
contracts/contracts/firedrill/firedrill_offramp.tolk Updates the Tolk version.
contracts/contracts/firedrill/firedrill_entrypoint.tolk Updates currency helpers and Tolk.
contracts/contracts/examples/jetton/simple_receiver.tolk Updates the Tolk version.
contracts/contracts/examples/jetton/sender.tolk Updates the Tolk version.
contracts/contracts/examples/jetton/onramp_mock.tolk Updates the Tolk version.
contracts/contracts/examples/counter.tolk Updates the Tolk version.
contracts/contracts/ccip/token_admin_registry/contract.tolk Updates Tolk and GRAM values.
contracts/contracts/ccip/token_admin_registry_entry/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/token_admin_registry_entry/contract.tolk Updates Tolk and currency helpers.
contracts/contracts/ccip/test/receiver/contract.tolk Updates Tolk, GRAM values, and reserve API.
contracts/contracts/ccip/router/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/router/contract.tolk Updates Tolk, GRAM values, and reserve terminology.
contracts/contracts/ccip/receive_executor/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/receive_executor/contract.tolk Updates the Tolk version.
contracts/contracts/ccip/pools/lockbox/JettonLockBox.tolk Updates Tolk, GRAM values, and reserve API.
contracts/contracts/ccip/pools/lock_release/types.tolk Updates GRAM constants.
contracts/contracts/ccip/pools/lock_release/contract.tolk Updates Tolk and GRAM values.
contracts/contracts/ccip/pools/lock_release_lockbox/contract.tolk Updates Tolk and GRAM values.
contracts/contracts/ccip/pools/lib/token_pool/entrypoint.tolk Updates GRAM values and reserve API.
contracts/contracts/ccip/pools/burn_mint/types.tolk Updates GRAM constants.
contracts/contracts/ccip/pools/burn_mint/contract.tolk Updates Tolk and GRAM values.
contracts/contracts/ccip/onramp/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/onramp/contract.tolk Updates struct construction, Tolk, and reserve APIs.
contracts/contracts/ccip/offramp/types.tolk Updates GRAM constants.
contracts/contracts/ccip/offramp/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/offramp/contract.tolk Updates Tolk, GRAM values, and reserve APIs.
contracts/contracts/ccip/merkle_root/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/merkle_root/contract.tolk Updates the Tolk version.
contracts/contracts/ccip/fee_quoter/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/fee_quoter/contract.tolk Updates Tolk, GRAM values, and reserve API.
contracts/contracts/ccip/common/cross_chain_address_validation.tolk Updates the Tolk version.
contracts/contracts/ccip/cct/JettonWallet.tolk Updates the reserve API.
contracts/contracts/ccip/cct/JettonMinter.tolk Updates currency and reserve APIs.
contracts/contracts/ccip/ccipsend_executor/messages.tolk Updates GRAM cost values.
contracts/contracts/ccip/ccipsend_executor/contract.tolk Updates Tolk and GRAM values.
contracts/contracts/ccip/accounts/on_ramp_account/contract.tolk Updates the Tolk version.
contracts/contracts/ccip/accounts/deposit/types.tolk Updates the GRAM literal.
contracts/contracts/ccip/accounts/deposit/contract.tolk Updates the Tolk version.
contracts/acton.nix Updates Acton binaries and platform hashes.
Review details
  • Files reviewed: 54/55 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


// Rent cushion reserved on withdraw
const JettonWithdrawable_MIN_RESERVE = ton("0.01");
const JettonWithdrawable_MIN_RESERVE = grams("0.01");
@duck-types
duck-types merged commit f573219 into main Sep 18, 2026
38 checks passed
@duck-types
duck-types deleted the chore/bump-tolk-1.4.2 branch September 18, 2026 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants