0.2.1 • Published 3 years ago
@traderjoe-xyz/nft-base-contracts v0.2.1
NFT base contracts
Set of contracts to be used as a base for NFT collections. Three contracts are included as of now:
ERC1155BaseUpgradeablean 1155 contract, in the upgradeable versionERC721ABaseUpgradeablean ERC721A contract (v4.2.0), in the upgradeable versionOZNFTBaseUpgradeablea regular ERC721 that implements the LayerZero bridging mechanism, to launch multichain NFTs. In the upgradeable version.
All these contracts implements the same base layer:
- Two steps ownership transfers
- Role management
- Pausable
- ERC165
- ERC2981
- Subscription to the OpenSea Filter Registry (can be disabled)
WithdrawAVAXmethod to send sale proceeds to the project owner minus a launchpad fee
OZNFT contracts have been forked from the Layer Zero solidity examples repo, to replace the Ownable contract by PendingOwnable.
Install dependencies
To install dependencies, run the following to install dependencies:
forge installTests
To run tests, run the following command:
forge test