Skip to content

Dimvy-Clothing-brand/hardhat-tenderly

 
 

hardhat-tenderly

This repository integrates Hardhat with Tenderly for advanced Ethereum smart contract development, testing, and monitoring.

Overview

hardhat-tenderly provides:

  • Seamless deployment, verification, and monitoring of smart contracts on Tenderly.
  • Powerful development environment using Hardhat.
  • Automated error tracking and debugging capabilities.

Features

  • Hardhat Integration: Use Hardhat tasks and plugins for streamlined development.
  • Tenderly Monitoring: Track contract transactions, errors, and performance on Tenderly.
  • Automated Verification: Auto-verify contracts after deployment.
  • Custom Scripts: Add your own custom deployment, testing, and management scripts.

Getting Started

Prerequisites

Installation

Clone the repository:

git clone https://github.com/Dimvy-Clothing-brand/hardhat-tenderly.git
cd hardhat-tenderly

Install dependencies:

yarn install
# or
npm install

Configuration

  1. Create a .env file in the root directory:
    TENDERLY_PROJECT=<your-tenderly-project>
    TENDERLY_USERNAME=<your-tenderly-username>
    TENDERLY_ACCESS_KEY=<your-tenderly-access-key>
    
  2. Update hardhat.config.js with your desired network and Tenderly settings.

Usage

  • Compile Contracts

    npx hardhat compile
  • Deploy Contracts

    npx hardhat run scripts/deploy.js --network <network>
  • Push to Tenderly

    npx hardhat tenderly:push --network <network>
  • Verify on Tenderly

    npx hardhat tenderly:verify --network <network>

Project Structure

  • /contracts: Solidity smart contracts
  • /scripts: Deployment and management scripts
  • /test: Automated tests
  • /tasks: Custom Hardhat tasks

Security

  • Avoid exposing sensitive keys and secrets.
  • Use .env for API keys and credentials.
  • Regularly audit contracts for vulnerabilities.

Troubleshooting

  • If you encounter errors, check your configuration and API keys.
  • Ensure your Hardhat and Tenderly plugins are up to date.
  • Refer to the Hardhat documentation and Tenderly docs for more information.

Contributing

Pull requests and issues are welcome! Please open an issue to discuss improvements or report bugs.

License

MIT


Dimvy Clothing Brand — Blockchain Innovation for Fashion

About

Tenderly plugin for HardHat

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages

  • TypeScript 96.5%
  • JavaScript 3.5%