IERC2981Info
Interface providing external read functions for discovering the state of ERC2981 component.
Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981Info
pub trait IERC2981Info<TState>
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::IERC2981Info::default_royalty
fn default_royalty(self: @TState) -> (ContractAddress, u128, u128)
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::IERC2981Info::token_royalty
fn token_royalty(self: @TState, token_id: u256) -> (ContractAddress, u128, u128)