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

feat(x/bank): autocli tx support #17868

Merged
merged 26 commits into from
Oct 5, 2023
Merged

feat(x/bank): autocli tx support #17868

merged 26 commits into from
Oct 5, 2023

Conversation

atheeshp
Copy link
Contributor

@atheeshp atheeshp commented Sep 25, 2023

Description

Closes: #17827


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • run make lint and make test
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

testutil/cli/cmd.go Fixed Show fixed Hide fixed
@atheeshp atheeshp changed the base branch from main to julien/autocli-from October 5, 2023 06:51
@julienrbrt julienrbrt added the S:blocked Status: Blocked label Oct 5, 2023
@atheeshp atheeshp marked this pull request as ready for review October 5, 2023 08:07
@atheeshp atheeshp requested a review from a team as a code owner October 5, 2023 08:07
x/bank/client/cli/tx.go Outdated Show resolved Hide resolved
@github-actions

This comment has been minimized.

x/nft/client/cli/tx_test.go Outdated Show resolved Hide resolved
x/bank/autocli.go Show resolved Hide resolved
x/authz/keeper/keeper_test.go Outdated Show resolved Hide resolved
RpcMethod: "Burn",
Use: "burn [from_key_or_address] [amount]",
Short: "Burns the amount specified from the given account.",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "amount"}},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not match the usage description. If you want the from_key_or_address as a positional argument, you need to add it here.

Base automatically changed from julien/autocli-from to main October 5, 2023 11:06
@julienrbrt julienrbrt removed the S:blocked Status: Blocked label Oct 5, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly lgtm!

tests/e2e/tx/benchmarks_test.go Outdated Show resolved Hide resolved
@@ -80,7 +76,7 @@ func BenchmarkTx(b *testing.B) {
// - tx.* events: tx.fee, tx.acc_seq, tx.signature
// - Sending Amount to recipient: coin_spent, coin_received, transfer and message.sender=<val1>
// - Msg events: message.module=bank and message.action=/cosmos.bank.v1beta1.MsgSend (in one message)
assert.Equal(b, 12, len(res.GetResult().GetEvents()))
assert.Equal(b, 10, len(res.GetResult().GetEvents()))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which ones are not send anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compared with old main commits, observed that few of the duplicate events were removed.

x/bank/autocli.go Outdated Show resolved Hide resolved
x/bank/autocli.go Outdated Show resolved Hide resolved
x/bank/autocli.go Show resolved Hide resolved
@julienrbrt julienrbrt self-assigned this Oct 5, 2023
@github-actions github-actions bot removed the C:x/nft label Oct 5, 2023
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@julienrbrt julienrbrt added this pull request to the merge queue Oct 5, 2023
Merged via the queue into main with commit 6f53f7c Oct 5, 2023
51 checks passed
@julienrbrt julienrbrt deleted the ap/bank-autocli branch October 5, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoCLI Tx Options for x/bank
2 participants