Skip to content

TK-1420: TON->Gram#664

Merged
nstus merged 4 commits into
v4_7_1_hffrom
TK-1420-prod
Jun 9, 2026
Merged

TK-1420: TON->Gram#664
nstus merged 4 commits into
v4_7_1_hffrom
TK-1420-prod

Conversation

@nstus

@nstus nstus commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

https://tk-1420-prod.tonkeeper-web.pages.dev

Introduce a single source of truth for the native coin/chain DISPLAY names so the wallet can be rebranded (e.g. TON/Toncoin -> GRAM) without hunting through the codebase, and de-hardcode every client-owned spot that showed "TON"/"Toncoin".

Client changes (rename now lives in one place):

  • Add packages/core/src/config/brand.ts: BRAND_CONFIG (chainName/coinName/coinSymbol) + getBrandConfig()/setBrandConfig().
  • TON_ASSET.symbol/name and FiatCurrencies.TON.symbol now derive from BRAND_CONFIG.
  • i18n: auto-inject %{chainName}/%{coinName}/%{coinSymbol} into every translation via useTWithReplaces; replace hardcoded coin/chain text with those placeholders across the tonkeeper-web AND tonkeeper locale namespaces, all 19 languages (incl. CJK-glued and transliterated forms; brand names like "Tonkeeper"/"TON Connect" preserved). Includes the confirm-screen title (txActions.signRaw.types.tonTransfer).
  • Replace DISPLAY uses of CryptoCurrency.TON and hardcoded 'TON'/'Toncoin' literals (activity/history, staking, swap fee, ConfirmListItem, AssetSelect dropdown, getJettonSymbol native fallback, MultisigConfigForm) with coinSymbol/coinName.

Protocol/identifier values intentionally left as the literal 'TON':
CryptoCurrency.TON value, BLOCKCHAIN_NAME.TON, TON_ASSET.address/id, rate-token keys. Changing these would break asset matching and backend calls.

Boundary: only FRONTEND-owned strings are de-hardcoded here. Display values that come from a backend are passed through unchanged and must be renamed by the ecosystem on the API side.

@linear

linear Bot commented Jun 5, 2026

Copy link
Copy Markdown

TK-1420

@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Successful WEB deployment 🚀🚀🚀

Well done!
Link to test environment:
https://c4cd0a0f.tonkeeper-web.pages.dev

@nstus nstus force-pushed the TK-1420-prod branch 3 times, most recently from d0a3eb5 to a8da6b5 Compare June 5, 2026 12:18
@nstus nstus requested a review from nvasilchuk June 5, 2026 12:22
@nstus nstus added build:extension Run the Chrome/Firefox extension build on this PR build:desktop Run the desktop matrix on this PR build:ipad Run the iPad TestFlight build on this PR labels Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Successful iPad build 🚀🚀🚀

Well done!
The app with build version: 4.7.1(5)
Uploaded to TestFlight

@nstus nstus merged commit d456306 into v4_7_1_hf Jun 9, 2026
9 checks passed
@nstus nstus mentioned this pull request Jun 9, 2026
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build:desktop Run the desktop matrix on this PR build:extension Run the Chrome/Firefox extension build on this PR build:ipad Run the iPad TestFlight build on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants