Dagora Payment Splitter NFT factory

DagoraFactory__TokenCreationPaused

error DagoraFactory__TokenCreationPaused()

DagoraFactory__InvalidTier

error DagoraFactory__InvalidTier(uint8 tier, uint8 neededTier)

DagoraFactory__NotDAgoraMembershipsOwnerOrDelegate

error DagoraFactory__NotDAgoraMembershipsOwnerOrDelegate()

DagoraFactory__ExpiredMembership

error DagoraFactory__ExpiredMembership()

DagoraFactory__FailedToCreateContract

error DagoraFactory__FailedToCreateContract()

DagoraPaymentSplitterFactory

NFTParams

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.

minTier

The minimum tier required to create a NFTAPlus contract.

contractsDeployed

the count of all the contracts deployed by the factory

PaymentSplitterCreated

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

Name
Type
Description

tokenId

uint256

The id of the users membership tokenId.

neededTier

uint8

The tier required to create the Contract.

createNFT

getUserContracts

Function that returns the deployed contracts by a user.

togglePaused

onlyOwner function to set the paused state of the contract.

setMinTier

onlyOwner function to set the minimum tier required to create a contract.

paymentSharesTotal

createNFTImpl

_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

Name
Type
Description

_id

uint256

The id of the users membership tokenId.

_neededTier

uint8

The minimum membership tier required to create a contract.

Return Values

Name
Type
Description

[0]

bool

bool True or False.

Last updated

Was this helpful?