Dagora PowerNFT Wizard
PowerNFT
PowerNFT is ERC721A contract that is ownable and has royalties.
This contract is used as a template for creating new NFT contracts.
baseURI
The base URI for all tokens.
baseExtension
The file extension of the metadata can be set to nothing.
default value is json
royaltyRecipient
The address that will receive the royalties.
isPaused
Boolean to determine if the contract is isPaused.
default value is true, contract is isPaused on deployment.
mintPrice
The cost to mint a token.
maxSupply
The maximum number of tokens that can be minted.
bulkBuyLimit
The maximum number of tokens that can be minted in a single transaction.
Minted
BaseURIChanged
BaseExtensionChanged
MintCostChanged
BulkBuyLimitChanged
PausedToggled
RoyaltysChanged
constructor
The constructor for the PowerNFT contract.
Parameters
isNotPaused
Modifer to check if the contract is isPaused.
mintNFT
Function to Mint nfts.
The amount of tokens to mint must be less than or equal to the bulk buy limit, and contract must not be isPaused.
Parameters
reserveTokens
Function to reserve nfts.
only the owner can call this function.
Parameters
tokenURI
returns the Uri for a token.
The token must exist.
Parameters
setBaseURI
OnlyOwner function to set the baseURI.
only the owner can call this function.
Parameters
setBaseExtension
OnlyOwner function to set the baseExstension.
only the owner can call this function.
Parameters
setMintPrice
OnlyOwner function to set the mint cost of a nft.
only the owner can call this function.
Parameters
setBulkBuyLimit
OnlyOwner function to set the bulk buy limit.
only the owner can call this function.
Parameters
togglePaused
OnlyOwner function to toggle the isPaused state of the contract.
only the owner can call this function.
setRoyalties
OnlyOwner function to set the royalties.
only the owner can call this function.
Parameters
supportsInterface
withdrawETH
OnlyOwner function to withdraw ETH.
only the owner can call this function. the owner can withdraw the ETH from the contract.
withdrawERC20
OnlyOwner function to withdraw ERC20 tokens.
only the owner can call this function.
Parameters
_beforeTokenTransfers
internal override function that is called before any token transfer.
this function will revert if the contract is paused, pausing transfers of tokens.
Parameters
typeOf
function that returns the dagora contract type
Return Values
version
function that returns the dagora contract version
Return Values
_startTokenId
internal function that handles that starting tokenId of the collection
Return Values
Last updated