pub trait ReceiveMigratedDeposits<HoldReason> {
// Required methods
fn receive_deposit(
key: DepositKey,
amount: Balance,
source: &HoldReason,
) -> DispatchResult;
fn weight_of_receive_deposit() -> Weight;
}Expand description
Receive a migrated HRMP deposit.
HoldReason is the hold reason type of the currency the deposits are held in.
Required Methods§
Sourcefn receive_deposit(
key: DepositKey,
amount: Balance,
source: &HoldReason,
) -> DispatchResult
fn receive_deposit( key: DepositKey, amount: Balance, source: &HoldReason, ) -> DispatchResult
Set the deposit of key to amount, by moving the balance from/into the source hold
reason.
The function is idempotent, the current deposit is reset, so a deposit can be delivered twice.
Sourcefn weight_of_receive_deposit() -> Weight
fn weight_of_receive_deposit() -> Weight
The weight of Self::receive_deposit.
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.