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

Added interface to accept any type of ADR 031 message router. #2058

Merged
merged 7 commits into from
Aug 23, 2022

Conversation

Taztingo
Copy link
Contributor

Description

Updated the controller and host keeper to take in an interface for the router. This allows systems that implement ADR 031, but do not use the default baseapp.router to use ICA.

closes: #2044


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

…s added to the controller and host keepers.
Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

Thank you for opening the issue and fixing it, @Taztingo! :)

Could you please also add a changelog entry in the API breaking section?

Copy link
Contributor

@crodriguezvega crodriguezvega left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for implementing the changes!

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@colin-axner colin-axner left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to open an issue and implement the pr! <3

@Taztingo Taztingo requested review from damiannolan, crodriguezvega and seantking and removed request for damiannolan and crodriguezvega August 23, 2022 13:02
@mergify mergify bot merged commit 397b88c into cosmos:main Aug 23, 2022
mergify bot pushed a commit that referenced this pull request Aug 23, 2022
## Description

Updated the controller and host keeper to take in an interface for the router. This allows systems that implement ADR 031, but do not use the default baseapp.router to use ICA.

closes: #2044

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes

(cherry picked from commit 397b88c)

# Conflicts:
#	CHANGELOG.md
#	modules/apps/27-interchain-accounts/controller/keeper/keeper.go
#	modules/apps/27-interchain-accounts/host/keeper/keeper.go
mergify bot pushed a commit that referenced this pull request Aug 23, 2022
## Description

Updated the controller and host keeper to take in an interface for the router. This allows systems that implement ADR 031, but do not use the default baseapp.router to use ICA.

closes: #2044

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes

(cherry picked from commit 397b88c)

# Conflicts:
#	CHANGELOG.md
#	modules/apps/27-interchain-accounts/controller/keeper/keeper.go
#	modules/apps/27-interchain-accounts/host/keeper/keeper.go
damiannolan added a commit that referenced this pull request Aug 24, 2022
#2058) (#2088)

* Added interface to accept any type of ADR 031 message router.  (#2058)

## Description

Updated the controller and host keeper to take in an interface for the router. This allows systems that implement ADR 031, but do not use the default baseapp.router to use ICA.

closes: #2044

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes

(cherry picked from commit 397b88c)

# Conflicts:
#	CHANGELOG.md
#	modules/apps/27-interchain-accounts/controller/keeper/keeper.go
#	modules/apps/27-interchain-accounts/host/keeper/keeper.go

* fix conflict

* fix conflict

* fix conflict

* Update keeper.go

* Update keeper.go

Co-authored-by: Matt Witkowski <[email protected]>
Co-authored-by: Carlos Rodriguez <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
damiannolan added a commit that referenced this pull request Aug 24, 2022
#2058) (#2087)

* Added interface to accept any type of ADR 031 message router.  (#2058)

## Description

Updated the controller and host keeper to take in an interface for the router. This allows systems that implement ADR 031, but do not use the default baseapp.router to use ICA.

closes: #2044

---

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

- [ ] Targeted PR against correct branch (see [CONTRIBUTING.md](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Code follows the [module structure standards](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules/structure.md).
- [ ] Wrote unit and integration [tests](https://github.com/cosmos/ibc-go/blob/master/CONTRIBUTING.md#testing)
- [ ] Updated relevant documentation (`docs/`) or specification (`x/<module>/spec/`)
- [ ] Added relevant `godoc` [comments](https://blog.golang.org/godoc-documenting-go-code).
- [ ] Added a relevant changelog entry to the `Unreleased` section in `CHANGELOG.md`
- [ ] Re-reviewed `Files changed` in the Github PR explorer
- [ ] Review `Codecov Report` in the comment section below once CI passes

(cherry picked from commit 397b88c)

# Conflicts:
#	CHANGELOG.md
#	modules/apps/27-interchain-accounts/controller/keeper/keeper.go
#	modules/apps/27-interchain-accounts/host/keeper/keeper.go

* fix conflict

* fix conflict

* Update keeper.go

* Update keeper.go

* Update keeper.go

Co-authored-by: Matt Witkowski <[email protected]>
Co-authored-by: Carlos Rodriguez <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
crodriguezvega pushed a commit that referenced this pull request Sep 7, 2022
crodriguezvega pushed a commit that referenced this pull request Sep 26, 2022
* wip: migration docs v4 to v5

* adding some code diffs

* adding more code snippets and diffs

* add link to docs

* fix alignment

* fix alignment

* fix alignment

* fix typo

* code improvement

* add links to sections in the document

* add migration docs for #2058

* added link to PR that renamed the ante decorator

* changes for #2083

* docs: updating migration docs with additional ics27 host parameter (#2309)

* updating migration docs with additional ics27 host parameter

* fix indentation

Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
mergify bot pushed a commit that referenced this pull request Sep 26, 2022
* wip: migration docs v4 to v5

* adding some code diffs

* adding more code snippets and diffs

* add link to docs

* fix alignment

* fix alignment

* fix alignment

* fix typo

* code improvement

* add links to sections in the document

* add migration docs for #2058

* added link to PR that renamed the ante decorator

* changes for #2083

* docs: updating migration docs with additional ics27 host parameter (#2309)

* updating migration docs with additional ics27 host parameter

* fix indentation

Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
(cherry picked from commit a278287)
mergify bot pushed a commit that referenced this pull request Sep 26, 2022
* wip: migration docs v4 to v5

* adding some code diffs

* adding more code snippets and diffs

* add link to docs

* fix alignment

* fix alignment

* fix alignment

* fix typo

* code improvement

* add links to sections in the document

* add migration docs for #2058

* added link to PR that renamed the ante decorator

* changes for #2083

* docs: updating migration docs with additional ics27 host parameter (#2309)

* updating migration docs with additional ics27 host parameter

* fix indentation

Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
(cherry picked from commit a278287)
crodriguezvega pushed a commit that referenced this pull request Sep 26, 2022
* wip: migration docs v4 to v5

* adding some code diffs

* adding more code snippets and diffs

* add link to docs

* fix alignment

* fix alignment

* fix alignment

* fix typo

* code improvement

* add links to sections in the document

* add migration docs for #2058

* added link to PR that renamed the ante decorator

* changes for #2083

* docs: updating migration docs with additional ics27 host parameter (#2309)

* updating migration docs with additional ics27 host parameter

* fix indentation

Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
(cherry picked from commit a278287)

Co-authored-by: Carlos Rodriguez <[email protected]>
damiannolan pushed a commit that referenced this pull request Sep 26, 2022
* wip: migration docs v4 to v5

* adding some code diffs

* adding more code snippets and diffs

* add link to docs

* fix alignment

* fix alignment

* fix alignment

* fix typo

* code improvement

* add links to sections in the document

* add migration docs for #2058

* added link to PR that renamed the ante decorator

* changes for #2083

* docs: updating migration docs with additional ics27 host parameter (#2309)

* updating migration docs with additional ics27 host parameter

* fix indentation

Co-authored-by: colin axnér <[email protected]>
Co-authored-by: Damian Nolan <[email protected]>
(cherry picked from commit a278287)

Co-authored-by: Carlos Rodriguez <[email protected]>
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.

Add the ability to inject message routers that support ADR 031
6 participants