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

havi-kim/NFT-Reveal

Repository files navigation

NFT-Reveal

Installation:

  1. Clone derivative platform
$ git clone https://github.com/havi-kim/NFT-Reveal.git
$ cd NFT-Reveal
  1. Install foundry
$ curl -L https://foundry.paradigm.xyz | bash
$ foundryup
  1. Test
Local test
$ yarn test

Sepolia fork test // Integration tests are run on Sepolia fork. Not unit tests.
$ yarn test_sepolia
  1. Deploy local
$ anvil
$ yarn deployNFT
  1. Deploy Sepolia
$ yarn deployNFT_sepolia
  1. Interact with contracts
You can type the command with forge or use yarn command. 
Please refer to each script for instructions.

Structure:

  • src/: Solidity feature contracts
    • objects/: Object libraries based on Diamond storage. It has responsibilities for storage and logics.
    • utils/: Utility libraries. It has responsibilities for utility functions.
    • NFT: NFT contract with multiple reveal options.
    • RevealedNFT: Revealed NFT contract.
  • scripts/: Scripts for deploying and interacting with contracts
  • test/: Tests for contracts

Troubleshooting:

If you encounter evm version or solidity version issues, please refer to the following steps.

$ foundryup
$ cargo install svm-rs
$ svm install "0.8.24"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published