## folder testContract/

Contains contracts used only for test (see the tests in ../test/ folder) dont audit them, they serve as actors in the test.

- **"OpenSeaSendRoyaltiesSimulate.sol"** is used to simulate Opensea, it send royalties funds to the alternative version of NFT contracts (implemented with receive functionnality, see introduction of readme), you can see these alternative contracts in folder contractsWithReceiveSplitRoyalties/
- **"HackContract.sol"** is used to simulate a reentrance attack with receive function in the test folder
- **"MarketPlaceV2/V3.sol"** is used for testing upgrade of marketplace contract

Even if MarketplaceV2 and MarketplaceV3 are not to be audited, we want to know if they are correctly instantiated for upgrade. Our understanding is we do not need to instantiate anything in the constructor of a next version of marketplace.

## folder contractWithReceiveSplitRoyalties

These contracts are the alternative version of our NFT contracts (KANJIERC721A/KANJIERC1155/KANJIDROPERC721A/KANJIDROPERC1155), implementing splitting of royalties through the receive function (see second point in introduction of the readme). They are here to show you the alternative versions of split of royalties we propose, they are not extra contracts to be audited (or to be audited if we chose those ones instead of the payemetnsplitter versions)

## folder lib/ contains

Contains custom libraries we need to our contracts logics.

- **"CurrencyTransferLib.sol"** is used for transfer currency in our drop contracts
- **"MerkleProof.sol"** is used for whitelisting with merkle tree in our drop contracts
- **"PaymentSplitter.sol"** is a fork of paymentsplitter.sol from openzeppelin [openzeppelin](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/finance/PaymentSplitter.sol) , but we added a releaseAll() function and allowed everyone to trigger the release() function.
- **"Struct.sol"** contains structure LIST and TOKENS in marketplace.sol contract
- **"UERC721A.sol"** is a fork ERC721A.sol, we only added the function \_mintSpecificToken(), as explain in readme.
- **"ERC721R.sol"** is a fork ERC721R.sol, is used for randomize mint.
