pub trait Posting<AccountId, Hash, BlockNumber, CoinAmount> {
    type PostingIndex: Member + Copy + Into<u128> + Encode + Decode + Eq;
    fn handle_multiposting_amounts(
        keys: &[Record<AccountId, Hash, BlockNumber>]
    ) -> DispatchResultWithPostInfo;
fn account_for_simple_transfer(
        from: AccountId,
        to: AccountId,
        amount: CoinAmount
    ) -> DispatchResultWithPostInfo;
fn account_for_fees(
        fee: CoinAmount,
        payer: AccountId
    ) -> DispatchResultWithPostInfo;
fn account_for_burnt_fees(
        fee: CoinAmount,
        loser: AccountId
    ) -> DispatchResultWithPostInfo;
fn distribute_fees_rewards(
        fee: CoinAmount,
        author: AccountId
    ) -> DispatchResultWithPostInfo;
fn get_escrow_account() -> AccountId;
fn get_netfees_account() -> AccountId;
fn get_pseudo_random_hash(s: AccountId, r: AccountId) -> Hash; }
Expand description

Main Totem accounting trait.

Associated Types

Required methods

Implementors