VitalR / FractionalNFT

NFT Fractionalizer with Purchase, Redeem and Buyout Functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

NFT Fractionalizer with Purchase, Redeem and Buyout Functionality


Languages

Language:Solidity 98.1%Language:Shell 1.9%