Skip to content
cfxdevkit edited this page Dec 18, 2024 · 2 revisions

Welcome to the Core Hardhat Template Wiki!

The core-hardhat-template is designed to simplify smart contract development and deployment on the Conflux Core Space blockchain.

This template integrates Hardhat with Cive, offering a robust environment to kickstart your blockchain project.


What's Included?

Hardhat Integration

  • Hardhat Configuration: Preconfigured for development and deployment on Conflux Core Space.
  • Support for managing and interacting with Conflux-specific smart contracts.
  • Predefined custom tasks in Hardhat, including:
    • node: Launch a local Conflux Core blockchain node.
    • accounts: List available accounts.
    • balance: Display account balances.

CLI Utility

  • Access to the devkit CLI utility for starting and managing a local Conflux blockchain node.
  • Preconfigured environment for seamless interaction between Hardhat and the local Conflux node.

Developer Experience Enhancements

  • hh Command: Hardhat CLI is aliased to hh for quick access to commands.
  • Tab Autocomplete: Tab-completion for Hardhat commands to enhance productivity.

What This Template Is (and Isn't)

What It Is:

  • A complete, preconfigured environment for developing and deploying smart contracts on the Conflux Core blockchain using Hardhat.
  • A template optimized for projects in JavaScript or TypeScript.

What It Isn't:

  • A comprehensive blockchain toolkit—this template focuses on smart contract development and allows developers to build additional tools as needed.

Why Use This Template?

The core-hardhat-template is ideal for:

  • Developers Building on Conflux Core Space: Preconfigured to streamline development workflows.
  • Teams Prototyping Smart Contracts: Simplified tools and tasks for fast iteration.
  • Custom Blockchain Projects: A flexible foundation to adapt and expand based on your project's needs.

Next Steps

Check out the Quickstart-Guide to set up your environment and start deploying smart contracts on Conflux Core today!