Skip to content

Rebrand wTON as wGRAM#757

Merged
krebernisak merged 5 commits into
mainfrom
feat/wgram
Jun 23, 2026
Merged

Rebrand wTON as wGRAM#757
krebernisak merged 5 commits into
mainfrom
feat/wgram

Conversation

@krebernisak

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings June 10, 2026 17:34
@krebernisak krebernisak requested a review from a team as a code owner June 10, 2026 17:34
@github-actions

Copy link
Copy Markdown

👋 krebernisak, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

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.

Pull request overview

This PR rebrands the wrapped-native-coin Jetton wrapper previously referred to as “wTON” to “wGRAM”, updating docs, contract sources, wrapper compile targets, tests, and gas-report tooling to use the new naming.

Changes:

  • Renames documentation pages/sidebars and updates internal doc IDs/links from wTON → wGRAM.
  • Moves/renames contract and wrapper surfaces to wgram (including blueprint compile entrypoints and Jest gas-report config/script names).
  • Updates test suites and adds a new wGRAM gas-report snapshot/config.

Reviewed changes

Copilot reviewed 18 out of 22 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/contracts/overview/wgram/index.md Rebrands overview page content/ids to wGRAM.
docs/contracts/overview/wgram/gas_report.md Updates gas-report doc references and command to wGRAM.
docs/contracts/overview/wgram/design.md Updates design doc wording/ids to wGRAM.
docs/contracts/overview/wgram/category.yaml Updates sidebar category label/id to wGRAM.
docs/contracts/overview/index.md Updates overview link from wTON to wGRAM.
docs/contracts/index.md Updates contracts docs index link from wTON to wGRAM.
contracts/wrappers/wgram/index.ts Adds barrel exports for wGRAM wrapper constants/errors.
contracts/wrappers/wgram/errors.ts Introduces wGRAM-specific exported error codes.
contracts/wrappers/wgram/constants.ts Introduces wGRAM opcode constants (currently still wTON-named identifiers).
contracts/wrappers/wgram.JettonWallet.compile.ts Points wallet compile config to contracts/wgram/JettonWallet.tolk.
contracts/wrappers/wgram.JettonMinter.compile.ts Points minter compile config to contracts/wgram/JettonMinter.tolk.
contracts/wrappers/jetton/JettonWallet.ts Updates comment to reference wGRAM extension.
contracts/wgram-gas-report.json Adds wGRAM gas-report output snapshot.
contracts/wgram-gas-report.config.ts Renames gas-report test match and report name to wGRAM.
contracts/tests/wgram/wgram.spec.ts Renames test suite and compilation targets to wGRAM.
contracts/tests/gas-report/wgram/wgram.spec.ts Renames gas calibration suite paths/strings to wGRAM.
contracts/package.json Renames yarn script wton-gas-reportwgram-gas-report.
contracts/contracts/wton/README.md Removes old wTON README.
contracts/contracts/wgram/README.md Adds new README for wGRAM (currently contains TON wording inconsistencies).
contracts/contracts/wgram/JettonWallet.tolk Updates contract description/type/version string to wGRAM naming.
contracts/contracts/wgram/JettonMinter.tolk Updates contract description/type/version string to wGRAM naming.
contracts/contracts/wgram/fees-management.tolk Updates gas-report reference comment to wGRAM paths/command.
Comments suppressed due to low confidence (2)

contracts/tests/wgram/wgram.spec.ts:18

  • The test imports WTON_MINT_OPCODE / WTON_WITHDRAW_EXCESS_OPCODE from wrappers/wgram, which conflicts with the wGRAM naming and can be confusing. After introducing WGRAM_* exports, update the test to use the wGRAM-named constants.
    contracts/tests/gas-report/wgram/wgram.spec.ts:13
  • This gas-report test still uses WTON_MINT_OPCODE even though it now targets wGRAM. For consistency with the rebrand (and to reduce confusion when reading reports), switch to a WGRAM_MINT_OPCODE constant once it exists, keeping WTON_* only as a compatibility alias if needed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread contracts/contracts/wgram/README.md Outdated

@patricios-space patricios-space left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shoul we also rename mentions of TON to Gram? The new name of the coin

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Github won't let me comment on lines not modified.

Some places where "ton" should be replaced by "gram":

TopUpTons
returns TON
a forced TON deposit
forwardTonAmount
hosted TON backing
Accept TONs

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I've left TopUpTons and forwardTonAmount for now as they are part of standard Jetton contracts - we can consider renaming that down the line.

Comment thread contracts/contracts/wgram/JettonWallet.tolk
@krebernisak krebernisak enabled auto-merge (squash) June 23, 2026 13:26
@krebernisak krebernisak merged commit 532fd16 into main Jun 23, 2026
35 checks passed
@krebernisak krebernisak deleted the feat/wgram branch June 23, 2026 13: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.

3 participants