pub trait Remuneration<T: ConfigSystem, Balance> {
    // Required methods
    fn try_remunerate<Module: ModuleOperations<T, Balance>>(
        payee: &T::AccountId,
        module: &Module
    ) -> Result<Remunerated<T::Hash>, DispatchError>;
    fn try_remunerate_exact<Module: ModuleOperations<T, Balance>>(
        payee: &T::AccountId,
        amount: Balance,
        module: &Module
    ) -> Result<Remunerated<T::Hash>, DispatchError>;
    fn try_finalize(ledger_id: T::Hash, outcome: Outcome) -> DispatchResult;
}

Required Methods§

source

fn try_remunerate<Module: ModuleOperations<T, Balance>>( payee: &T::AccountId, module: &Module ) -> Result<Remunerated<T::Hash>, DispatchError>

Try to remunerate the fees from the given module

source

fn try_remunerate_exact<Module: ModuleOperations<T, Balance>>( payee: &T::AccountId, amount: Balance, module: &Module ) -> Result<Remunerated<T::Hash>, DispatchError>

Try to remunerate the fees from the given module with a custom balance

source

fn try_finalize(ledger_id: T::Hash, outcome: Outcome) -> DispatchResult

Try to finalize a ledger item with an reason

Implementors§

source§

impl<T: ConfigSystem, Balance: Encode + Decode> Remuneration<T, Balance> for NoopThreeVm