deploy-contract

Deploy Solidity contracts to 0G Chain using Hardhat, Foundry, or ethers v6.

Updated Apr 26, 2026
One-click install
npx skills add https://github.com/gabrielfior/ai-village-open-agents --skill deploy-contract
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-contract
Source: https://github.com/gabrielfior/ai-village-open-agents/tree/main/.opencode/skills/deploy-contract
Command: npx skills add https://github.com/gabrielfior/ai-village-open-agents --skill deploy-contract

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Deploying Solidity contracts to 0G Chain often requires using multiple toolchains, correct evmVersion and careful deployment steps, which can be error-prone without a unified workflow.

Core Features & Use Cases

  • Supports Hardhat, Foundry, and ethers v6 deployment pipelines for 0G Chain with strict evmVersion: cancun.
  • Provides reproducible build and deployment steps, including testnet deployment, and optional verification guidance across 0G Chain environments.
  • Real-world use: a developer can compile, deploy, and track deployed addresses across environments with minimal setup.

Quick Start

Write a Solidity contract, configure the compiler to evmVersion cancun, and deploy to 0G testnet using your preferred tool.

Frequently Asked Questions about deploy-contract

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Solidity contracts to 0G Chain using Hardhat or Foundry?

Deploying Solidity contracts to 0G Chain uses Hardhat, Foundry, or ethers v6 pipelines. The workflow requires setting the compiler to evmVersion 'cancun' and executing reproducible build steps to compile, deploy, and optionally verify contracts across testnet or mainnet environments.

What is the required evmVersion for compiling Solidity contracts for 0G Chain?

The required evmVersion for compiling Solidity contracts for 0G Chain is 'cancun'. Enforcing this specific evmVersion ensures compatibility with the 0G Chain environment during reproducible builds and deployment workflows using Hardhat, Foundry, or ethers v6.

Can I use ethers v6 to deploy and verify contracts on 0G Chain testnet?

Yes, you can use ethers v6 syntax to deploy and verify contracts on 0G Chain testnet. The workflow supports ethers v6 alongside Hardhat and Foundry, providing steps for compiling, deploying, and tracking deployed addresses with optional on-chain verification.

What's the best way to track deployed contract addresses across 0G Chain environments?

The best way to track deployed contract addresses across 0G Chain environments is using a reproducible deployment pipeline. Automating the compile and deploy steps with Hardhat, Foundry, or ethers v6 allows developers to track addresses across testnet and mainnet with minimal setup.

Why does deploying to 0G Chain require multiple toolchains and careful steps?

Deploying to 0G Chain requires careful steps because developers use different toolchains like Hardhat, Foundry, or ethers v6. Without a unified workflow enforcing the correct evmVersion 'cancun' and deployment sequence, managing reproducible builds across testnet and mainnet becomes error-prone.