Skip to content

Foundational Nation3 smart contracts

License

Notifications You must be signed in to change notification settings

nation3/foundations

Repository files navigation

Nation3 foundational Smart Contracts

Overview

Contributing

Requirements

  • foundry
  • pyenv
  • 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

Install pyenv

brew update
brew install pyenv

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

Audits