Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Files

Latest commit

 

History

History
 
 

contracts

MOONEY smart contracts

Overview

Contributing

Requirements

  • foundry
  • node v16
  • working rpc node (local chain)

Install Foundry

See https://book.getfoundry.sh/getting-started/installation.html

curl -L https://foundry.paradigm.xyz | bash
brew install libusb
foundryup

Local Setup

# Install dependencies
yarn install

# Set up environment variables
cp .env.sample .env

# Install Vyper
pip install vyper==0.2.4

# Install Git submodules
forge install

# Compile Solidity and Vyper contracts
yarn compile

# Deploy stack for local development
yarn dev-deploy

Running a node

If you want to test/develop locally, you'll need to run a local node, for example with Ganache.

Testing

Forge testing guide