tronbox

SKILL.md

The skill is based on TronBox v4.5.0, generated at 2026-02-25.

TronBox is a Truffle-style framework for TRON: smart contract compilation, migrations, testing, and an interactive console. It supports both the native TRON Virtual Machine (TVM) and EVM-compatible chains (e.g. BTTC) via a separate config and the --evm flag. Migrations and tests use ethers v6 in EVM mode and TronWeb for TVM.

Core References

Topic Description Reference
Configuration tronbox.js / tronbox-evm-config.js, networks, paths, solc core-config
Migrations & Deployer Migration scripts, deploy/link/then API, context (artifacts, tronWeb, ethers) core-migrations
Compile Compiling contracts, --all / --evm, build output core-compile
Testing tronbox test, test discovery, artifacts in tests core-testing
Console Interactive REPL with contract abstractions core-console
CLI All commands and options core-cli
Artifacts & Resolver Build output shape, resolver order, artifacts.require / resolve core-artifacts-resolver
Contract abstraction new(), at(), deployed(), call(), link, defaults core-contract-abstraction

Features

Topic Description Reference
EVM mode EVM chains, tronbox-evm-config.js, --evm, ethers features-evm
Init & Unbox tronbox init (sample/MetaCoin), unbox templates features-init-unbox
Flatten Flatten contracts and dependencies to single file (verification/auditing) features-flatten
Deploy Alias for migrate; same options and behavior features-deploy
TronWrap & provider TronWeb/ethers context, waitForTransactionReceipt, TRE features-tronwrap

Best Practices

Topic Description Reference
Environment & networks Environment.detect, default network, network_id/from, common errors best-practices-environment
Errors & exit behavior TaskError, config/compile/migrate errors, exit codes best-practices-errors
Weekly Installs
3
GitHub Stars
3
First Seen
Feb 25, 2026
Installed on
opencode3
github-copilot3
codex3
kimi-cli3
gemini-cli3
cursor3