Token Royalty Sale Factory
The TokenRoyaltySaleFactory smart contract is a factory contract that allows the creation of TokenRoyaltySale contracts. A TokenRoyaltySale contract is a contract that allows the sale of royalties as an ERC20 token.
The factory contract maintains a mapping of TokenRoyaltySale contracts, indexed by the token royalty ID, as well as a mapping of TokenRoyaltyDetails, which holds details about the TokenRoyaltySale contracts. It also maintains a struct called RoyaltyDetails, which holds the percentage of royalties to be paid and the address of the party receiving the royalties.
TokenRoyaltySaleFactoryV2
TokenRoyaltyDetails
RoyaltyDetails
createTokenRoyalty
Creats A ERC20 token royalty sale. contract is created using the Clones library
Parameters
_askAmount
uint256
The total askinng amount for royalty
_returnPercentage
uint256
Percentage of royalty to sell
creatorName
string
name
string
creator
address
updateRoyaltyDetails
the function is used to update the royalty percentage.
only hub admin can call this function
Parameters
_royaltyPercentage
uint256
the amount in percentage the hub takes.
getRoyaltyDetails
getTokenRoyaltyAddress
getRoyaltySaleDetails
getHubAddress
getLinkToken
Last updated