Zayn Network
  • β˜•Overview
  • ⚑Quick Start
  • πŸͺœRoadmap
  • πŸ§‘β€πŸ’»Developers' Onboarding Checklist
  • The Zayn Network Stack
    • 🀝Settlement on Ethereum
    • 🀝Settlement on Bitcoin
    • πŸ₯ˆDual Data Availability
    • πŸ‘¨β€πŸ”§Generating ZK Proofs
    • 🀜EVM Compatibility
    • AI-Powered SLS
  • Research Areas
    • πŸ“œZK Roll up on Bitcoin
      • ⛏️Merged Mining
      • πŸ”PoS / Economic Security
      • πŸ—žοΈZK Rollups
      • πŸ—žοΈSovereign Rollups
    • πŸŒ‰Trustless Bridging
      • πŸŒ•Over-collateralized zBTC
      • πŸŽ†Federated Bridging
      • πŸ’°Economic Security
  • Tools
    • 🚰Testnet Faucets
    • πŸ–₯️RPC
    • πŸ“ŸMultisig Wallets
    • πŸ•ΈοΈBlock Explorers
    • ⌨️Data Indexers
    • πŸ§™β€β™‚οΈOracles
    • πŸŒ‰Bridges
  • Build On Zayn
    • 🐣Hello World
    • πŸ™ŒDeploying Smart Contracts
      • πŸͺ–Hardhat
      • 🟣ThirdWeb
      • πŸ“–Foundry
    • βœ…Verify Your Smart Contracts
Powered by GitBook
On this page
  1. Build On Zayn
  2. Deploying Smart Contracts

Foundry

Introduction to Foundry

Foundry is a fast, portable, and modular toolkit for Ethereum application development designed around Forge, a Solidity testing framework. It's known for its simplicity and powerful performance.

Steps to Deploy Using Foundry

  1. Install and Initialize Foundry:

    • Install Foundry using the Foundry installer:

      bashCopy codecurl -L https://foundry.paradigm.xyz | bash
      foundryup
  2. Set Up Your Foundry Project:

    • Create a new Foundry project:

      bashCopy codeforge init my-project
      cd my-project
  3. Configure Foundry for Zayn Network:

    • Add Zayn Network configuration to the foundry.toml:

      tomlCopy code[networks.zayn]
      url = "https://rpc.zayn.network"
  4. Write and Compile Your Contract:

    • Write your contract in the src directory and compile it using:

      bashCopy codeforge build
  5. Deploy Your Contract:

    • Use Forge to deploy:

      bashCopy codeforge create --rpc-url https://rpc.zayn.network YourContract
PreviousThirdWebNextVerify Your Smart Contracts

Last updated 1 year ago

πŸ™Œ
πŸ“–