RoyaltyFeeSetter
It is used to allow creators to set royalty parameters in the
RoyaltyFeeRegistry
.function INTERFACE_ID_ERC1155() external view returns (bytes4)
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC1155 | bytes4 | - |
function INTERFACE_ID_ERC2981() external view returns (bytes4)
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC2981 | bytes4 | - |
function INTERFACE_ID_ERC721() external view returns (bytes4)
Name | Type | Description |
---|---|---|
INTERFACE_ID_ERC721 | bytes4 | - |
function checkForCollectionSetter(address collection) external view returns (address, uint8)
Check royalty info for collection
Name | Type | Description |
---|---|---|
collection | address | collection address |
Name | Type | Description |
---|---|---|
- | address | whether there is a setter (address(0) if not) |
- | uint8 | 0: Royalty setter is set in the registry
1: ERC2981 and no setter
2: setter can be set using owner()
3: setter can be set using admin()
4: setter cannot be set, nor support for ERC2981 |
function owner() external view returns (address)
Returns the address of the current owner.
Name | Type | Description |
---|---|---|
owner | address | address of the current owner |
function royaltyFeeRegistry() external view returns (address)
Name | Type | Description |
---|---|---|
royaltyFeeRegistry | address | address of the RoyaltyFeeRegistry contract |
function renounceOwnership() external nonpayable
Leaves the contract without owner. It will not be possible to call
onlyOwner
functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.function transferOwnership(address newOwner) external nonpayable
Transfers ownership of the contract to a new account (
newOwner
). Can only be called by the current owner.Name | Type | Description |
---|---|---|
newOwner | address | address of the new owner |
function updateOwnerOfRoyaltyFeeRegistry(address _owner) external nonpayable
Update owner of royalty fee registry
Can be used for migration of this royalty fee setter contract
Name | Type | Description |
---|---|---|
_owner | address | address of the new owner |
function updateRoyaltyFeeLimit(uint256 _royaltyFeeLimit) external nonpayable
Update royalty info for collection
Name | Type | Description |
---|---|---|
_royaltyFeeLimit | uint256 | new royalty fee limit (500 = 5%, 1,000 = 10%) |
function updateRoyaltyInfoForCollection(address collection, address setter, address receiver, uint256 fee) external nonpayable
Update royalty info for collection
Can only be called by contract owner (of this)
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
setter | address | address that sets the receiver |
receiver | address | receiver for the royalty fee |
fee | uint256 | fee (500 = 5%, 1,000 = 10%) |
function updateRoyaltyInfoForCollectionIfAdmin(address collection, address setter, address receiver, uint256 fee) external nonpayable
Update royalty info for collection if admin
Only to be called if there is no setter address
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
setter | address | address that sets the receiver |
receiver | address | receiver for the royalty fee |
fee | uint256 | fee (500 = 5%, 1,000 = 10%) |
function updateRoyaltyInfoForCollectionIfOwner(address collection, address setter, address receiver, uint256 fee) external nonpayable
Update royalty info for collection if owner
Only to be called if there is no setter address
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
setter | address | address that sets the receiver |
receiver | address | receiver for the royalty fee |
fee | uint256 | fee (500 = 5%, 1,000 = 10%) |
function updateRoyaltyInfoForCollectionIfSetter(address collection, address setter, address receiver, uint256 fee) external nonpayable
Update royalty info for collection
Only to be called if there msg.sender is the setter
Name | Type | Description |
---|---|---|
collection | address | address of the NFT contract |
setter | address | address that sets the receiver |
receiver | address | receiver for the royalty fee |
fee | uint256 | fee (500 = 5%, 1,000 = 10%) |
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
Name | Type | Description |
---|---|---|
previousOwner indexed | address | address of the previous owner |
newOwner indexed | address | address of the new owner |
Last modified 10mo ago