SKILL.md
The skill is based on the LayerZero Hardhat TRON example (layerzero-hardhat-tron), generated at 2026-02-25.
Use this skill when configuring Hardhat for TRON (Nile/mainnet), compiling Solidity with tronSolc, deploying with hardhat-deploy, or writing tests. Plugin: @layerzerolabs/hardhat-tron; deploy: @layerzerolabs/hardhat-deploy.
Dependencies & versions
- Hardhat must be v2:
@layerzerolabs/hardhat-tronrequires Hardhat 2.x; Hardhat 3 is not supported. - Recommended versions (aligned with the example project):
- hardhat: ^2.26.3 - @layerzerolabs/hardhat-tron: ^3.0.124 - @layerzerolabs/hardhat-deploy: ^0.11.45-lz.4 - @nomicfoundation/hardhat-toolbox: ^6.1.0 - dotenv: ^17.2.1
Core References
| Topic | Description | Reference |
|---|---|---|
| Config | Plugin, solidity/tronSolc alignment, networks (Nile), env (TRONPRIVATEKEY, TRONPROAPI_KEY) | [core-config](references/core-config.md) |
| Compilation | tronSolc enable/filter/compilers, version match, remapping | [core-compilation](references/core-compilation.md) |
Features
| Topic | Description | Reference |
|---|---|---|
| Deployment | hardhat-deploy script pattern, deploy to Nile, tags | [features-deployment](references/features-deployment.md) |
| Testing | Mocha/Chai tests on local Hardhat network, ethers | [features-testing](references/features-testing.md) |