Skip to content

Rebrand wTON as wGRAM#757

Open
krebernisak wants to merge 1 commit into
mainfrom
feat/wgram
Open

Rebrand wTON as wGRAM#757
krebernisak wants to merge 1 commit 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 on lines +1 to +3
# Wrapped TON

A token escrow protocol to make TON behave as Jetton in a new asset called wGRAM.

@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

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":

withdraw any TON surplus
backedTonAmount
Soft reserve check: keep TON that was

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