referrerpolicy=no-referrer-when-downgrade
pallet_nfts::pallet

Trait BenchmarkHelper

Source
pub trait BenchmarkHelper<CollectionId, ItemId, Public, AccountId, Signature> {
    // Required methods
    fn collection(i: u16) -> CollectionId;
    fn item(i: u16) -> ItemId;
    fn signer() -> (Public, AccountId);
    fn sign(signer: &Public, message: &[u8]) -> Signature;
}

Required Methods§

Source

fn collection(i: u16) -> CollectionId

Source

fn item(i: u16) -> ItemId

Source

fn signer() -> (Public, AccountId)

Source

fn sign(signer: &Public, message: &[u8]) -> Signature

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<CollectionId, ItemId> BenchmarkHelper<CollectionId, ItemId, MultiSigner, AccountId32, MultiSignature> for ()
where CollectionId: From<u16>, ItemId: From<u16>,

Source§

fn collection(i: u16) -> CollectionId

Source§

fn item(i: u16) -> ItemId

Source§

fn signer() -> (MultiSigner, AccountId32)

Source§

fn sign(signer: &MultiSigner, message: &[u8]) -> MultiSignature

Implementors§