referrerpolicy=no-referrer-when-downgrade

Trait pallet_treasury::ArgumentsFactory

source ·
pub trait ArgumentsFactory<AssetKind, Beneficiary> {
    // Required methods
    fn create_asset_kind(seed: u32) -> AssetKind;
    fn create_beneficiary(seed: [u8; 32]) -> Beneficiary;
}
Expand description

Trait describing factory functions for dispatchables’ parameters.

Required Methods§

source

fn create_asset_kind(seed: u32) -> AssetKind

Factory function for an asset kind.

source

fn create_beneficiary(seed: [u8; 32]) -> Beneficiary

Factory function for a beneficiary.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<AssetKind, Beneficiary> ArgumentsFactory<AssetKind, Beneficiary> for ()
where AssetKind: FromEntropy, Beneficiary: FromEntropy,

Implementation that expects the parameters implement the [FromEntropy] trait.

source§

fn create_asset_kind(seed: u32) -> AssetKind

source§

fn create_beneficiary(seed: [u8; 32]) -> Beneficiary

Implementors§