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

refactor!: Add context arg to sign mode handler GetSignBytes #13701

Merged
merged 23 commits into from
Nov 29, 2022

Conversation

amaury1093
Copy link
Contributor

@amaury1093 amaury1093 commented Oct 31, 2022

Description

Closes: #13646

The context.Context arg is set in this PR:


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
  • 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)

@github-actions github-actions bot added the C:CLI label Oct 31, 2022
@amaury1093 amaury1093 marked this pull request as ready for review November 2, 2022 09:30
@amaury1093 amaury1093 requested a review from a team as a code owner November 2, 2022 09:30
@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Merging #13701 (bec1699) into main (2739f83) will decrease coverage by 0.25%.
The diff coverage is 65.38%.

❗ Current head bec1699 differs from pull request most recent head 4dd06b0. Consider uploading reports for the commit 4dd06b0 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #13701      +/-   ##
==========================================
- Coverage   56.25%   56.00%   -0.26%     
==========================================
  Files         667      666       -1     
  Lines       56576    57916    +1340     
==========================================
+ Hits        31829    32435     +606     
- Misses      22165    22843     +678     
- Partials     2582     2638      +56     
Impacted Files Coverage Δ
testutil/sims/tx_helpers.go 0.00% <0.00%> (ø)
x/auth/client/tx.go 30.84% <0.00%> (ø)
x/auth/tx/direct_aux.go 83.78% <ø> (ø)
client/tx/tx.go 33.57% <50.00%> (ø)
simapp/simd/cmd/testnet.go 62.08% <50.00%> (ø)
x/auth/client/cli/tx_multisign.go 29.23% <50.00%> (+0.12%) ⬆️
tools/rosetta/converter.go 56.75% <100.00%> (ø)
x/auth/ante/sigverify.go 66.99% <100.00%> (ø)
x/auth/client/cli/validate_sigs.go 80.20% <100.00%> (+0.20%) ⬆️
x/auth/migrations/legacytx/amino_signing.go 63.82% <100.00%> (ø)
... and 74 more

Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

utACK. could we have an upgrading.md entry as many teams have to fork our ante handlers to add ibc ones. Also do we want this in 0.47? or can it wait for an alpha to be cut then merged?

@amaury1093
Copy link
Contributor Author

Yeah i'm fine to wait for a 0.47 release branch, but maybe in 2 weeks this will start blocking textual work

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
@amaury1093 amaury1093 marked this pull request as draft November 2, 2022 14:51
@amaury1093 amaury1093 added the S: DO NOT MERGE Status: DO NOT MERGE label Nov 2, 2022
@amaury1093 amaury1093 changed the title refactor!: Add context arg to sign mode handler GetSignBytes [DNM] refactor!: Add context arg to sign mode handler GetSignBytes Nov 2, 2022
@amaury1093
Copy link
Contributor Author

Putting as draft so it doesn't get merged accidentally

@tac0turtle tac0turtle removed the S: DO NOT MERGE Status: DO NOT MERGE label Nov 14, 2022
@tac0turtle tac0turtle changed the title [DNM] refactor!: Add context arg to sign mode handler GetSignBytes refactor!: Add context arg to sign mode handler GetSignBytes Nov 14, 2022
@tac0turtle tac0turtle marked this pull request as ready for review November 14, 2022 15:28
@amaury1093 amaury1093 enabled auto-merge (squash) November 14, 2022 17:31
@github-actions github-actions bot added the C:Rosetta Issues and PR related to Rosetta label Nov 14, 2022
@julienrbrt
Copy link
Member

This seems to be blocked on a vulnerability unrelated to this PR: https://github.com/cosmos/cosmos-sdk/actions/runs/3487690117

@amaury1093
Copy link
Contributor Author

I'll fix conflicts and try to have another look at the btc dep

@amaury1093 amaury1093 disabled auto-merge November 28, 2022 17:17
@sonarqubecloud
Copy link

[Cosmos SDK] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

82.4% 82.4% Coverage
0.0% 0.0% Duplication

@sonarqubecloud
Copy link

[Cosmos SDK - SimApp] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@amaury1093 amaury1093 merged commit fffc9d0 into main Nov 29, 2022
@amaury1093 amaury1093 deleted the am/13646-context branch November 29, 2022 18:49
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
…s#13701)

* refactor!: Add context arg to sign mode handler `GetSignBytes`

* fix build

* fix tests

* Fix goling

* fix lint

* Fix lint

* Fix test

* Update CHANGELOG.md

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* Fix tests

* Fix rosetta deps

* fix

* go mod tidy all

* go mod tidy

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:CLI C:Rosetta Issues and PR related to Rosetta C:x/auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SignModeHandler's GetSignBytes: add Context arg
4 participants