Dagora Pay-Splitter NFT
DagoraPaymentSplitterNFT
PayeeShare
isPaused
Boolean to determine if the contract is isPaused.
default value is true, contract is isPaused on deployment.
baseURI
The base URI for all tokens.
baseExtension
The file extension of the metadata can be set to nothing.
default value is json
bulkBuyLimit
The maximum number of tokens that can be minted in a single transaction.
mintPrice
The cost to mint a token.
maxSupply
The maximum number of tokens that can be minted.
payeeCount
The number of payees.
payeeShares
Minted
BaseURIChanged
BaseExtensionChanged
MintCostChanged
BulkBuyLimitChanged
isPausedToggled
PayeeAdded
PaymentReleased
ERC20PaymentReleased
PaymentReceived
constructor
Constructor for the contract.
Parameters
isNotPaused
Modifier to check if the contract is isPaused.
Throws if the contract is isPaused.
mintNFT
Funtion to mint one or more tokens.
Throws if the number of tokens to mint exceeds the bulk buy limit. Throws if the number of tokens to mint exceeds the max supply. Throws if the amount of ETH sent is less than the cost to mint a token.
Parameters
reserveTokens
onlyOwner function to mint one or more tokens.
Throws if the number of tokens to mint exceeds the max supply.
Parameters
totalShares
getter function for the total shares.
Return Values
totalReleased
getter function for the total released.
Return Values
totalReleased
getter function for the total released.
Parameters
shares
getter function for the shares.
Parameters
Return Values
released
getter function for the released.
Parameters
Return Values
released
getter function for the released.
Parameters
payee
getter function for the payees.
Parameters
Return Values
releasable
getter function for checking how much a payee is owed.
Parameters
Return Values
releasable
getter function for checking how much a payee is owed.
Parameters
Return Values
release
function to release the amount owed to a payee.
Throws if the address has no shares. Throws if the address is not due payment.
Parameters
tokenURI
returns the tokenURI for a given token.
this function is only callable when the token exists.
Parameters
setBaseURI
Onlyowner function to set the base URI.
this function is only callable by the owner of the contract.
Parameters
setBaseExtension
Onlyowner function to set the base extension.
this function is only callable by the owner of the contract.
Parameters
setMintPrice
Onlyowner function to set the mint price for the public sale.
this function is only callable by the owner of the contract.
Parameters
setBulkBuyLimit
Onlyowner function to set the bulk buy limit.
this function is only callable by the owner of the contract.
Parameters
togglePaused
Onlyowner function to set the paused state of the contract.
this function is only callable by the owner of the contract.
_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
receive
_The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the reliability of the events, and not the actual splitting of Ether.
To learn more about this see the Solidity documentation for https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback functions]._
Last updated