Dagora SimpleNFT Wizard
Below is the technical documentation for the Dagora SimpleNFT wizard contract, that uses ERC721A.
SimpleNFTA
isPaused
State variable to track if the contract is paused
baseURI
The base URI for all tokens
baseExtension
The Extension at the end of the URI
bulkBuyLimit
The maximum number of tokens that can be minted in a single transaction
mintPrice
The price of a single token
maxSupply
The maximum number of tokens that can be minted
Minted
the event that is emitted when a token is minted
Parameters
BaseURIChanged
the event that is emitted when the baseURI is changed
The baseURI is the URI at the beginning of the tokenURI
Parameters
BaseExtensionChanged
the event that is emitted when the baseExtension is changed
The baseExtension is the extension at the end of the baseURI
Parameters
MintCostChanged
the event that is emitted when the mintPrice is changed
The mintPrice is the price of a single token can only be changed by the owner
Parameters
BulkBuyLimitChanged
the event that is emitted when the bulkBuyLimit is changed
The bulkBuyLimit is the maximum number of tokens that can be minted in a single transaction
Parameters
PausedToggled
the event that is emitted when the contract is paused or unpaused
The contract can only be paused or unpaused by the owner
Parameters
constructor
The constructor for the contract
Parameters
isNotPaused
Modifier to check if the contract is paused
Throws if the contract is paused
mintNFT
the function to mint nft tokens can be one or up to bulkBuyLimit
the function can only be called if the contract is not paused
Parameters
reserveTokens
onlyOwner function to mint nft tokens can be one or up to bulkBuyLimit
the function can only be called if the contract is not paused
Parameters
tokenURI
function that returns the tokenURI for a given token
the function can only be called if the token exists
Parameters
Return Values
setBaseURI
onlyInOwner function to change the baseURI
the function can only be called by the owner
Parameters
setBaseExtension
onlyInOwner function to change the baseExtension
the function can only be called by the owner
Parameters
setMintPrice
onlyInOwner function to change the mintPrice
the function can only be called by the owner
Parameters
setBulkBuyLimit
onlyInOwner function to change the bulkBuyLimit
the function can only be called by the owner
Parameters
togglePaused
onlyInOwner function to change the isPaused state
the function can only be called by the owner
withdrawETH
onlyInOwner function to withdraw ETH from the contract
the function can only be called by the owner
withdrawERC20
onlyInOwner function to withdraw ERC20 tokens from the contract
the function can only be called by the owner
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