-
Notifications
You must be signed in to change notification settings - Fork 189
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 for sending Wallet{Spend}Action transactions #5144
Conversation
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.
Thanks for doing this based on a napkin sketch. 😄
The only change I'd suggest is to make --spend
more like --allow-spend
or --authorize-spend
or something.
@@ -18,6 +18,10 @@ import ( | |||
sdk "github.com/cosmos/cosmos-sdk/types" | |||
) | |||
|
|||
const ( | |||
FlagSpend = "spend" |
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.
FlagSpend = "spend" | |
FlagAllowSpend = "allow-spend" |
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.
Done.
}, | ||
} | ||
|
||
cmd.Flags().Bool(FlagSpend, false, "Send a WalletSpendAction transaction if true") |
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.
cmd.Flags().Bool(FlagSpend, false, "Send a WalletSpendAction transaction if true") | |
cmd.Flags().Bool(FlagAllowSpend, false, "Allow the WalletAction to spend assets if specified") |
My wording's not so great. Alternatives in this direction would be appreciated.
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.
Done. Wording seems fine except trimmed the redundant "if true" at the end.
f7aec13
to
c78f7c7
Compare
closes: #5141
Description
Commands for sending
WalletAction
andWalletSpendAction
transactions.Security Considerations
Ensures address and JSON are valid but performs no other checks.
Documentation Considerations
Needs long description?
Testing Considerations
Needs some end-to-end testing, currently difficult to automate.