Trait t3rn_primitives::threevm::Remuneration
source · 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§
sourcefn try_remunerate<Module: ModuleOperations<T, Balance>>(
payee: &T::AccountId,
module: &Module
) -> Result<Remunerated<T::Hash>, DispatchError>
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
sourcefn try_remunerate_exact<Module: ModuleOperations<T, Balance>>(
payee: &T::AccountId,
amount: Balance,
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>
Try to remunerate the fees from the given module with a custom balance
sourcefn try_finalize(ledger_id: T::Hash, outcome: Outcome) -> DispatchResult
fn try_finalize(ledger_id: T::Hash, outcome: Outcome) -> DispatchResult
Try to finalize a ledger item with an reason