Skip to content

feat: add Hardhat support with examples for Counter & UniversalCounter on Push Chai#9

Open
Kali-Decoder wants to merge 1 commit intopushchain:mainfrom
Kali-Decoder:hardhat-support
Open

feat: add Hardhat support with examples for Counter & UniversalCounter on Push Chai#9
Kali-Decoder wants to merge 1 commit intopushchain:mainfrom
Kali-Decoder:hardhat-support

Conversation

@Kali-Decoder
Copy link
Copy Markdown

📌 Summary

This PR introduces Hardhat support for smart contract developers building on Push Chain. It includes example contracts, deployment scripts, and test suites for both a basic counter and a universal cross-chain counter.


What’s Added

  • 🧱 Hardhat Support Folder

    • Added a dedicated setup for Hardhat-based smart contract development
    • Simplifies onboarding for developers using Hardhat
  • 📄 Example Contracts

    • Counter → basic increment counter
    • UniversalCounter → multi-chain counter using UEA (Sepolia, Push)
  • 🚀 Deployment Scripts

    • Added scripts to deploy contracts on Push Chain Donut Testnet
    • Supports seamless contract deployment for both examples
  • 🧪 Test Scripts

    • Added unit tests for:
      • Counter
      • UniversalCounter
    • Covers:
      • Deployment validation
      • Increment logic
      • Multi-user interaction
      • Chain-based logic (for UniversalCounter)

🛠 How to Use

# Install dependencies
npm install

# Run tests
npx hardhat test

# Deploy (Push Testnet)
npx hardhat run scripts/deployCounter.ts --network pushTestnet


@pranshurastogi  @mohammeds1992  

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@Kali-Decoder is attempting to deploy a commit to the riyanshupatro99-2138's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant