Trait darwinia_ethereum::adapter::RemainBalanceOp
source · [−]pub trait RemainBalanceOp<T: Config> {
fn remaining_balance(account_id: &T::AccountId) -> u128;
fn set_remaining_balance(account_id: &T::AccountId, value: u128);
fn remove_remaining_balance(account_id: &T::AccountId);
fn inc_remaining_balance(account_id: &T::AccountId, value: u128);
fn dec_remaining_balance(account_id: &T::AccountId, value: u128);
fn deposit_dvm_transfer_event(
source: &T::AccountId,
target: &T::AccountId,
value: U256
);
}
Expand description
The operations for the remaining balance.
Required Methods
fn remaining_balance(account_id: &T::AccountId) -> u128
fn remaining_balance(account_id: &T::AccountId) -> u128
Get the remaining balance
fn set_remaining_balance(account_id: &T::AccountId, value: u128)
fn set_remaining_balance(account_id: &T::AccountId, value: u128)
Set the remaining balance
fn remove_remaining_balance(account_id: &T::AccountId)
fn remove_remaining_balance(account_id: &T::AccountId)
Remove the remaining balance
fn inc_remaining_balance(account_id: &T::AccountId, value: u128)
fn inc_remaining_balance(account_id: &T::AccountId, value: u128)
Inc remaining balance
fn dec_remaining_balance(account_id: &T::AccountId, value: u128)
fn dec_remaining_balance(account_id: &T::AccountId, value: u128)
Dec remaining balance
fn deposit_dvm_transfer_event(
source: &T::AccountId,
target: &T::AccountId,
value: U256
)
fn deposit_dvm_transfer_event(
source: &T::AccountId,
target: &T::AccountId,
value: U256
)
Deposit dvm related transfer events