Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IERC2981AdminDispatcherTrait

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminDispatcherTrait

Part of the group: dispatchers

pub trait IERC2981AdminDispatcherTrait<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::IERC2981AdminDispatcherTrait::set_default_royalty

fn set_default_royalty(self: T, receiver: ContractAddress, fee_numerator: u128)

delete_default_royalty

Sets the default royalty percentage and receiver to zero.

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminDispatcherTrait::delete_default_royalty

fn delete_default_royalty(self: T)

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::IERC2981AdminDispatcherTrait::set_token_royalty

fn set_token_royalty(self: T, token_id: u256, receiver: ContractAddress, fee_numerator: u128)

reset_token_royalty

Resets royalty information for the token id back to unset.

Fully qualified path: openzeppelin_interfaces::token::erc2981::IERC2981AdminDispatcherTrait::reset_token_royalty

fn reset_token_royalty(self: T, token_id: u256)