Skip to content

docs: add Tron ecosystem baseline (tron-contracts) - #198

Open
pepebndc wants to merge 2 commits into
mainfrom
docs/tron-ecosystem-baseline
Open

docs: add Tron ecosystem baseline (tron-contracts)#198
pepebndc wants to merge 2 commits into
mainfrom
docs/tron-ecosystem-baseline

Conversation

@pepebndc

@pepebndc pepebndc commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a baseline documentation section for OpenZeppelin Contracts for Tron, mirroring the structure of the existing Solidity contracts docs. Content is ported from the tron-contracts and tron-contracts-upgradeable repositories' AsciiDoc docs and converted to MDX, and is aligned with the released npm packages: @openzeppelin/tron-contracts and @openzeppelin/tron-contracts-upgradeable (currently 5.6.0-rc.1 on the latest tag).

The new section is available at /tron-contracts, selectable via the Tron entry in the ecosystem switcher.

What's included

16 pages under content/tron-contracts/:

  • Overview, TVM Differences
  • Guides: Extending Contracts, Using with Upgrades, Backwards Compatibility, Access Control
  • Tokens: TRC-20 (+ Creating Supply), TRC-721, TRC-1155, TRC-4626, TRC-6909
  • Modules: Governance, Utilities, FAQ

TRON branding — official logomark icon, ecosystem tab, homepage ecosystem card + brand color (#EF0027), and full navigation wiring.

Release alignment (second commit)

The pages were re-verified against both source repos at the 5.6.0-rc.1 release, covering the full audit-fix wave that landed after the original port:

Notes / decisions

  • Examples are inlined as Solidity code blocks, verified against the released contracts/mocks/docs/ sources.
  • Placed as a flat, unversioned section (like Sui/Stylus).
  • Upstream follow-up flagged for the repo docs (not this PR): the repo's index.adoc still shows a npm install @openzeppelin/tron-contracts@dev example although no dev dist-tag is published.

Validation

  • pnpm build passes (full static generation).
  • Branch rebased onto latest main (Tron + Canton ecosystem entries merged).

🤖 Generated with Claude Code

@pepebndc
pepebndc requested review from a team and stevep0z as code owners July 2, 2026 10:54
@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for openzeppelin-docs-v2 ready!

Name Link
🔨 Latest commit b5276b1
🔍 Latest deploy log https://app.netlify.com/projects/openzeppelin-docs-v2/deploys/6a46434fe46ee40008259541
😎 Deploy Preview https://deploy-preview-198--openzeppelin-docs-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

pepebndc and others added 2 commits August 24, 2026 11:30
Add a baseline docs section for OpenZeppelin Contracts for Tron, mirroring
the structure of the Solidity contracts docs. Content is ported from the
tron-contracts and tron-contracts-upgradeable repositories' AsciiDoc docs.

- New content/tron-contracts/ section (16 pages): Overview, TVM Differences,
  Extending Contracts, Using with Upgrades, Backwards Compatibility, Access
  Control, Tokens (TRC-20 + Creating Supply, TRC-721, TRC-1155, TRC-4626,
  TRC-6909), Governance, Utilities, FAQ.
- New "TVM Differences" page summarizing EVM<->TVM divergences (CREATE2 0x41
  prefix, P256/RIP-7212, TRX 6 decimals, USDT-TRON transfer, TIP-712 address
  format, EIP-7702/4337, resource model, block cadence).
- TRON branding: logomark icon, ecosystem tab, homepage card, nav wiring
  (navigation tree, ecosystem detection, path -> tree hook).
- Diagrams copied under public/tron/.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sync the Tron pages with tron-contracts and tron-contracts-upgradeable
at the 5.6.0-rc.1 release:

- index: link the published npm packages, port the versioning policy,
  drop bug-bounty claims, point security reports at GitHub advisories,
  and replace the @dev install example with @next (npm publishes only
  latest and next).
- utilities: P256 verifies in Solidity (TIP-7951 cited, verifyNative
  gone), TRC165/TRC1271/trc7201Slot renames, TIP-2935 blockhash note,
  correct TRC165 usage (no _registerInterface).
- governance: TRON 3-second block arithmetic (28800/201600) plus the
  block-time callout, TRC-6372/TRC-5805 names, TRX instead of ETH,
  remove the nonexistent TRC20VotesComp variant.
- tvm-differences: safeTransferChecked default (H-01), corrected P256,
  EIP-7702 and ERC-4337 rows, new TRC-10 row and section, new callout
  on 20-byte addresses inside bytes payloads.
- trc4626: fee example uses safeTransferChecked.
- access-control: TimelockController self-administration, AccessManager
  cancellation rights incl. role admins (#141).
- upgradeable, backwards-compatibility: recommend the Tron Upgrades
  plugins; upgradeable versioning note.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@pepebndc
pepebndc force-pushed the docs/tron-ecosystem-baseline branch from b5276b1 to 9647c86 Compare August 24, 2026 09:47
@netlify

netlify Bot commented Aug 24, 2026

Copy link
Copy Markdown

Deploy Preview for openzeppelin-docs-v2 ready!

Name Link
🔨 Latest commit 9647c86
🔍 Latest deploy log https://app.netlify.com/projects/openzeppelin-docs-v2/deploys/6a8c13345bda780008038f8a
😎 Deploy Preview https://deploy-preview-198--openzeppelin-docs-v2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant