-
Notifications
You must be signed in to change notification settings - Fork 78
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
feat(cli): add command to perform ics20 withdrawals #1631
Conversation
4967960
to
5f58098
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just nits on doc comments for flags
#[arg(long, default_value = None)] | ||
pub(crate) bridge_address: Option<Address>, | ||
#[arg(long, action(ArgAction::SetTrue))] | ||
pub(crate) use_compact: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is compact?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have been "compat" for the compatibility addresses. this has been fixed.
/// The address to refund on timeout, if unset refunds the signer | ||
#[arg(long)] | ||
return_address: Address, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd need to make this field an Option
to allow it to be unset. Just now, the command will fail if --return-address
is not specified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set the return address to the sender address by default if --return-address
is not specified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me, yes. But if others disagree, we need to update the comment to not say ", if unset refunds the signer".
Summary
Adds Ics20Withdrawal command to the cli for Ics20Withdrawal action
Background
part of adding all sequencer actions as cli commands.
Changes
astria-cli sequencer ics20-withdrawal
commandTesting
Related Issues
part of #1474
closes #1623