# Hardhat Tron

> Agent-oriented skills for Hardhat on TRON—config, compilation, deployment, and testing with @layerzerolabs/hardhat-tron and hardhat-deploy.

- Skill: `hairyf/hardhat-tron` (Agent Skill, multi-file: 6 files)
- Install (CLI): `npx skillmds@latest add hairyf/hardhat-tron`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hairyf/hardhat-tron/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: hairyf (https://skillmd.com/u/hairyf)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/hairyf/hardhat-tron

---


> 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-tron` requires 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 (TRON_PRIVATE_KEY, TRON_PRO_API_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) |

