Function pallet_oneshot_account::pallet::dispatchables::consume_oneshot_account_with_remaining
source · pub fn consume_oneshot_account_with_remaining<T: Config>(
block_height: BlockNumberFor<T>,
dest: Account<<T::Lookup as StaticLookup>::Source>,
remaining_to: Account<<T::Lookup as StaticLookup>::Source>,
balance: <T::Currency as Currency<T::AccountId>>::Balance
)
Expand description
Consume a oneshot account then transfer some amount to an account, and the remaining amount to another account.
block_height
: Must be a recent block number. The limit isBlockHashCount
in the past. (this is to prevent replay attacks)dest
: The destination account.dest_is_oneshot
: If set totrue
, then a oneshot account is created atdest
. Else,dest
has to be an existing account.dest2
: The second destination account.dest2_is_oneshot
: If set totrue
, then a oneshot account is created atdest2
. Else,dest2
has to be an existing account.balance1
: The amount transfered todest
, the leftover being transfered todest2
.
§Warning: Doc-Only
This function is an automatically generated, and is doc-only, uncallable
stub. See the real version in
Pallet::consume_oneshot_account_with_remaining
.