IERC2981AdminSafeDispatcherTrait
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminSafeDispatcherTrait
Part of the group: dispatchers
pub trait IERC2981AdminSafeDispatcherTrait<T>
Trait functions
set_default_royalty
Sets the royalty information that all ids in this contract will default to.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminSafeDispatcherTrait::set_default_royalty
fn set_default_royalty(
self: T, receiver: ContractAddress, fee_numerator: u128,
) -> Result<(), Array<felt252>>
delete_default_royalty
Sets the default royalty percentage and receiver to zero.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminSafeDispatcherTrait::delete_default_royalty
fn delete_default_royalty(self: T) -> Result<(), Array<felt252>>
set_token_royalty
Sets the royalty information for a specific token id that takes precedence over the global default.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminSafeDispatcherTrait::set_token_royalty
fn set_token_royalty(
self: T, token_id: u256, receiver: ContractAddress, fee_numerator: u128,
) -> Result<(), Array<felt252>>
reset_token_royalty
Resets royalty information for the token id back to unset.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminSafeDispatcherTrait::reset_token_royalty
fn reset_token_royalty(self: T, token_id: u256) -> Result<(), Array<felt252>>