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: app wiring setup for tx's and ante/post handlers #12193

Merged

Conversation

julienrbrt
Copy link
Member

@julienrbrt julienrbrt commented Jun 8, 2022

Description

Closes: #12056


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)

@julienrbrt julienrbrt requested a review from a team as a code owner June 8, 2022 14:29
@julienrbrt julienrbrt linked an issue Jun 8, 2022 that may be closed by this pull request
@julienrbrt julienrbrt marked this pull request as draft June 8, 2022 14:29
types/tx/module/module.go Outdated Show resolved Hide resolved
@cosmos cosmos deleted a comment from aaronc Jun 8, 2022
@julienrbrt
Copy link
Member Author

julienrbrt commented Jun 8, 2022

Wow weird glitch.

+ type TxModuleConfig struct {
+ TxConfig client.TxConfig
+ AnteHandler sdk.AnteHandler
+ PostHandler sdk.AnteHandler
+}

what's the purpose of this struct?

I meant to hide the comment, but to answer it this struct isn't necessary, so removed.

@julienrbrt julienrbrt marked this pull request as ready for review June 9, 2022 11:41
types/tx/module/module.go Outdated Show resolved Hide resolved
simapp/app.go Outdated Show resolved Hide resolved
core/appmodule/doc.go Outdated Show resolved Hide resolved
core/appmodule/option.go Outdated Show resolved Hide resolved
proto/cosmos/tx/module/v1/module.proto Outdated Show resolved Hide resolved
simapp/app.go Outdated Show resolved Hide resolved
simapp/app.go Outdated Show resolved Hide resolved
simapp/app.go Outdated Show resolved Hide resolved
simapp/app.yaml Outdated Show resolved Hide resolved
x/auth/tx/module/module.go Outdated Show resolved Hide resolved
x/auth/tx/module/module.go Show resolved Hide resolved
Copy link
Member

@aaronc aaronc left a comment

Choose a reason for hiding this comment

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

LGTM pending tests passing

protoiface "google.golang.org/protobuf/runtime/protoiface"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
io "io"
reflect "reflect"

Check notice

Code scanning / CodeQL

Sensitive package import

Certain system packages contain functions which may be a possible source of non-determinism
@julienrbrt
Copy link
Member Author

Thank you, @facundomedica, for your help debugging the tests <3

simapp/app.go Outdated Show resolved Hide resolved
simapp/app.go Outdated Show resolved Hide resolved
x/auth/tx/module/module.go Outdated Show resolved Hide resolved
@aaronc
Copy link
Member

aaronc commented Jun 9, 2022

There's pretty detailed grahviz output that I think would have pointed out that the base app option just wasn't getting wired up. We need to make that graph really easy to get at and it should be one of the first things in the tutorial on how to setup a config.

@codecov
Copy link

codecov bot commented Jun 9, 2022

Codecov Report

Merging #12193 (85d3383) into main (dd2e432) will decrease coverage by 0.47%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #12193      +/-   ##
==========================================
- Coverage   66.61%   66.14%   -0.48%     
==========================================
  Files         691      673      -18     
  Lines       72421    71013    -1408     
==========================================
- Hits        48246    46972    -1274     
+ Misses      21496    21403      -93     
+ Partials     2679     2638      -41     
Impacted Files Coverage Δ
simapp/app.go 75.74% <ø> (-0.99%) ⬇️
x/distribution/simulation/operations.go 80.43% <0.00%> (-9.79%) ⬇️
crypto/keys/internal/ecdsa/privkey.go 81.13% <0.00%> (-1.89%) ⬇️
depinject/module_key.go
depinject/group.go
depinject/supply.go
errors/stacktrace.go
depinject/inject.go
depinject/debug.go
depinject/module_dep.go
... and 11 more

@julienrbrt julienrbrt added the A:automerge Automatically merge PR once all prerequisites pass. label Jun 9, 2022
@mergify mergify bot merged commit c859589 into main Jun 9, 2022
@mergify mergify bot deleted the julien/12056-app-wiring-setup-for-txs-and-antepost-handlers branch June 9, 2022 23:43
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
## Description

Closes: cosmos#12056



---

### 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](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] 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](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:x/auth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App wiring setup for tx's and ante/post handlers
4 participants