This Solidity smart contract deploys an ERC721A-based NFT collection named "AI Collection" on the Ethereum blockchain. The collection consists of five unique AI-themed items, each with a distinct description. Additionally, the contract supports metadata storage on IPFS using the base URI "ipfs://QmXppnKSEp3opCDc4jDv1wVwekp1UDwGFcntioXAB4jE7J/BeretDog". The contract owner has the exclusive right to mint batches of these NFTs and retrieve the prompt descriptions used for image generation.
- Deploy an ERC721A-based NFT collection on Ethereum.
- Store metadata on IPFS using a predefined base URI.
- Mint batches of NFTs, with ownership restricted to the contract owner.
- Retrieve prompt descriptions used for image generation.
- Contract Name: AICollection
- Symbol: PDC (AI Collection)
- Base URI: ipfs://QmXppnKSEp3opCDc4jDv1wVwekp1UDwGFcntioXAB4jE7J/BeretDog
The contract owner can mint batches of NFTs using the MintBatches
function. This function requires the recipient's address and the quantity of NFTs to be minted.
function MintBatches(address to, uint quantity) public onlyOwner {
_safeMint(to, quantity, "");
}
The promptDescription function allows anyone to retrieve an array of AI collection descriptions used for image generation.
function promptDescription() public view returns (string[] memory) {
return collectionDescriptions;
}
The contract has been bridged to Polygon Mumbai using the Foundry script along side the FxPortal Bridge.