ADVANCED
PROJECT EXPORT
Download a complete Hardhat project with all your contract files.
EXPORTED FILES
The export includes everything needed to continue development locally:
project.zip/ ├── contracts/ │ └── Contract.sol # Your Solidity source ├── artifacts/ │ ├── abi.json # Contract ABI │ └── bytecode.txt # Compiled bytecode ├── scripts/ │ └── deploy.ts # Deployment script ├── test/ │ └── Contract.test.ts # Basic test template ├── subgraph/ # The Graph files (if deployed) │ ├── schema.graphql │ ├── subgraph.yaml │ └── src/mapping.ts ├── frontend/ # Generated UI (if created) │ └── ContractUI.tsx ├── hardhat.config.ts # Mantle network config ├── package.json # Dependencies ├── tsconfig.json # TypeScript config ├── .env.example # Environment template └── README.md # Project documentation
HOW TO EXPORT
- 1
Click Export
Click the Export button in the sidebar or press Ctrl+E.
- 2
Download ZIP
A ZIP file containing all project files will be downloaded.
- 3
Extract and Install
unzip project.zip && cd project && npm install
USING THE PROJECT
Compile
npx hardhat compileTest
npx hardhat testDeploy to Testnet
npx hardhat run scripts/deploy.ts --network mantleSepoliaDeploy to Mainnet
npx hardhat run scripts/deploy.ts --network mantleVerify Contract
npx hardhat verify --network mantleSepolia CONTRACT_ADDRESSENVIRONMENT SETUP
Copy .env.example to .env and fill in your values:
.env
# Your wallet private key (keep secret!) PRIVATE_KEY=0x... # Mantle Explorer API key for verification ETHERSCAN_API_KEY=your_api_key
Never commit your .env file or share your private key. Add .env to your .gitignore file.