IERC2981InfoSafeDispatcherTrait
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981InfoSafeDispatcherTrait
Part of the group: dispatchers
pub trait IERC2981InfoSafeDispatcherTrait<T>
Trait functions
default_royalty
Returns the royalty information that all ids in this contract will default to.
The returned tuple contains:
t.0: The receiver of the royalty payment.t.1: The numerator of the royalty fraction.t.2: The denominator of the royalty fraction.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981InfoSafeDispatcherTrait::default_royalty
fn default_royalty(self: T) -> Result<(ContractAddress, u128, u128), Array<felt252>>
token_royalty
Returns the royalty information specific to a token. If no specific royalty information is set for the token, the default is returned.
The returned tuple contains:
t.0: The receiver of the royalty payment.t.1: The numerator of the royalty fraction.t.2: The denominator of the royalty fraction.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981InfoSafeDispatcherTrait::token_royalty
fn token_royalty(self: T, token_id: u256) -> Result<(ContractAddress, u128, u128), Array<felt252>>