Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 930 Bytes

README.md

File metadata and controls

45 lines (32 loc) · 930 Bytes

Fractional NFT Project

NFT Fractionalizer with Purchase, Redeem and Buyout Functionality

About this repo

It is a Foundry repo with Solidity tests powered by the ds-test library.

Setup

  1. git clone repo
  2. Ensure you have installed Rust and Cargo: Install Rust
  3. Install Foundry: instructions
  4. Run tests: forge test

Pre-deployment

Copy the .env.example file to .env and update the values:

PRIVATE_KEY=''
ETHERSCAN_API_KEY=''
INFURA_API_KEY=''

Deployment & Verification

NFTCollection:

./script/1_deploy.sh

TokenVault:

./script/2_deploy.sh

Example of Foundry/Forge commands

forge tree
forge build
forge test -vvv
forge test --match-contract <ContractTest> --match-test <testName> -vvvvv