Skip to content

Hardhat

Hardhat is an EVM developer environment helping developers quickly and easily create, test, and deploy smart contracts. Hardhat is also home to a vibrant community offering a number of different plugins.

Features

  • Automatic Smart Contract Compilation: Automatically compiles smart contracts whenever files are updated, ensuring your code is always up-to-date.

  • SKALE Chains Integration: All SKALE chains can be easily configured on Hardhat to seamlessly deploy and interact with smart contracts.

  • Integrated Testing Framework: Built-in testing environment with Mocha and Chai, allowing developers to write and run tests seamlessly.

  • Comprehensive Debugging Tools: Provides stack traces, error messages, and a console for debugging Solidity code efficiently.

Quickstart

  1. Please visit Hardhat Guide.

  2. Create a sample project by running on your terminal:

    Terminal window
    npx hardhat init
  3. Setup the hardhat.config file with the desired SKALE Chain

  4. Under the contracts/ folder you’ll find a contract example called Lock.sol

  5. To deploy the Lock.sol contract run the command:

    Terminal window
    npx hardhat ignition deploy ./ignition/modules/Lock.ts --network _network_name_given_on_hardhat.config