referrerpolicy=no-referrer-when-downgrade
pallet_treasury

Trait 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.

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<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§

impl<Parents: Get<u8>, ParaId: Get<u32>> ArgumentsFactory<VersionedLocatableAsset, VersionedLocation> for TreasuryArguments<Parents, ParaId>