Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement balance_transfer_keep_alive #747

Closed
brenzi opened this issue Mar 5, 2024 · 0 comments · Fixed by #775
Closed

implement balance_transfer_keep_alive #747

brenzi opened this issue Mar 5, 2024 · 0 comments · Fixed by #775
Assignees

Comments

@brenzi
Copy link
Contributor

brenzi commented Mar 5, 2024

currently, only allow_deathis supported. Even if we could compose our own extrinsics as we like, keep_alive would be a very common default way to transfer

pub trait BalancesExtrinsics {
type Balance;
type Address;
type Extrinsic<Call>;
/// Transfer some liquid free balance to another account.
#[allow(clippy::type_complexity)]
async fn balance_transfer_allow_death(
&self,
to: Self::Address,
amount: Self::Balance,
) -> Option<Self::Extrinsic<TransferAllowDeathCall<Self::Address, Self::Balance>>>;
/// Set the balances of a given account.
#[allow(clippy::type_complexity)]
async fn balance_force_set_balance(
&self,
who: Self::Address,
free_balance: Self::Balance,
) -> Option<Self::Extrinsic<ForceSetBalanceCall<Self::Address, Self::Balance>>>;
}

@Niederb Niederb self-assigned this Jun 5, 2024
@Niederb Niederb linked a pull request Jun 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants