Pharo
  • 🟢Getting Started
  • 🤝Meet Pharo
    • ❔Why Pharo
    • 🌪️Use Cases
    • 📐Architecture
  • ✨Protocol
    • 🎨Product Design
    • 💰Pricing Models
    • 🏛️Capitol Provision
    • 📊Risk Assessment
  • 🛣️Roadmap
  • ⁉️FAQs
  • Market Manager
    • 💹Creating a Pharo Market
    • 👩‍💼Managing a Market
  • Liquidity Provider
    • 🎯Selecting a Market
    • 💵Provide Liquidity
  • Cover Buyer
    • 🤔What it means to buy cover
    • 🔅Buy Cover
  • Governance
    • Overview
    • Process
      • 📄Writing A Proposal
    • Glossary
    • Adversarial Circumstances
    • Governance Reference
  • PHRO Token
    • Overview
    • 🪙Tokenomics
    • Staking
    • 📄Contracts
    • 🐪PHRO Distribution Speed
  • Guides
  • Beginners Guide to Voting
  • Setting Up Your Local Environment
    • Hardhat
    • Foundry
  • API Reference
    • Start Here Developer
  • Technical Reference
    • Litepaper
    • Smart Contracts Overview
    • Pharo SDK
    • Anubis
    • Obelisk
Powered by GitBook
On this page

Was this helpful?

  1. Setting Up Your Local Environment

Foundry

Getting setup with Foundry

Setting up your environment

Create a new directory and navigate to it.

$ mkdir create-pharo-foundry
$ cd create-pharo-foundry

For this example, we'll use `forge build` to compile our contracts.

Now we can install the v1 Core contracts, so that we can inherit what we need to create a new Pharo.

$ npm i @pharo/contracts

Compiling Your Contract

We can compile our contracts with forge build

PreviousHardhatNextStart Here Developer

Last updated 1 year ago

Was this helpful?