The BatchMintMetadata smart contract is an extension for any NFT contract. It lets the smart contract using this extension set the metadata for n number of NFTs in one transaction. A single base URI for a batch of n NFTs is defined, where the metadata URI for each NFT in a relevant batch is baseURI/tokenId.
The extension smart contract stores an array of 'batch IDs' i.e. IDs for different batches of NFTs minted on the contract. This function returns the batch ID at a given index in this ordered array of batch IDs.
Mints a batch of tokenIds and associates a common baseURI to all those Ids.
Parameter _startId: The lowest tokenId from the batch of NFTs to mint. It is assumed that token Ids are assigned to NFTs in a serial order, when batch minting e.g. [startId, startId + 1, ... n-1, n]
Parameter _amountToMint: The number of NFTs to mint at once.
Parameter _baseURIForTokens: The common base URI for the batch of NFTs being minted, where for a batch of NFTs with token IDs [startId, startId + 1, ... n-1, n], each NFT's associated metadata URI is [baseURI/startId, baseURI/startId+1, ... baseURI/n-1, baseURI/n]