0.2.1 • Published 1 year ago

@traderjoe-xyz/nft-base-contracts v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NFT base contracts

Set of contracts to be used as a base for NFT collections. Three contracts are included as of now:

  • ERC1155BaseUpgradeable an 1155 contract, in the upgradeable version
  • ERC721ABaseUpgradeable an ERC721A contract (v4.2.0), in the upgradeable version
  • OZNFTBaseUpgradeable a 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)
  • WithdrawAVAX method 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 install

Tests

To run tests, run the following command:

forge test
0.2.1

1 year ago

0.2.0

1 year ago