Dagora Power NFT Factory
DagoraFactory__TokenCreationPaused
DagoraFactory__InvalidTier
DagoraFactory__NotDAgoraMembershipsOwnerOrDelegate
DagoraFactory__ExpiredMembership
DagoraPowerNFTFactory
isPaused
Boolean to determine if the contract is paused.
default value is false, contract is not paused on deployment.
dAgoraMembershipsAddress
The address of the dAgoraMemberships contract.
minPowerNFTATier
The minimum tier required to create a Power NFT contract.
contractsDeployed
the count of all the contracts deployed by the factory
PowerNFTACreated
The event emitted when a PowerNFTA contract is created.
userContracts
initialize
isNotPaused
Modifier to check if the contract is paused.
Reverts if the contract is paused.
canCreate
Modifier to check if the user can create a contract.
Reverts if the user membership tier is not high enough, if the membership is expired, and if the user is not owner of tokenId.
Parameters
tokenId
uint256
The id of the users membership tokenId.
neededTier
uint8
The tier required to create the Contract.
createPowerNFT
Function to create a PowerNFTA contract.
Creates a PowerNFTA contract, and emits an event.
Parameters
name_
string
The name of the contract.
symbol_
string
The symbol of the contract.
baseURI_
string
The baseURI of the contract.
_bulkBuyLimit
uint16
The bulk buy limit of the contract.
_royaltyBps
uint96
The royalty bps of the contract.
_mintCost
uint256
The mint cost of the contract.
_maxSupply
uint256
The max total supply of the contract.
_royaltyRecipient
address
The royalty recipient of the contract.
_newOwner
address
The new owner of the contract.
_id
uint256
The id of the users membership tokenId.
getUserContracts
togglePaused
setMinPowerNFTATier
_canCreate
Internal function that checks if a address owns or is a delegate of a membership, and if the membership is valid, and if the membership tier is high enough.
Parameters
_id
uint256
The id of the users membership tokenId.
_neededTier
uint8
The minimum membership tier required to create a contract.
Return Values
[0]
bool
bool True or False.
Last updated