-
Notifications
You must be signed in to change notification settings - Fork 608
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
Integrate Async ICQ #4207
Integrate Async ICQ #4207
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package keepers | ||
|
||
import ( | ||
sdk "github.com/cosmos/cosmos-sdk/types" | ||
abci "github.com/tendermint/tendermint/abci/types" | ||
) | ||
|
||
// QuerierWrapper is a local wrapper around BaseApp that exports only the Queryable interface. | ||
// This is used to pass the baseApp to Async ICQ without exposing all methods | ||
type QuerierWrapper struct { | ||
querier sdk.Queryable | ||
} | ||
|
||
var _ sdk.Queryable = QuerierWrapper{} | ||
|
||
func NewQuerierWrapper(querier sdk.Queryable) QuerierWrapper { | ||
return QuerierWrapper{querier: querier} | ||
} | ||
|
||
func (q QuerierWrapper) Query(req abci.RequestQuery) abci.ResponseQuery { | ||
return q.querier.Query(req) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,8 @@ require ( | |
github.com/spf13/cobra v1.6.1 | ||
github.com/spf13/pflag v1.0.5 | ||
github.com/spf13/viper v1.15.0 | ||
// Async ICQ branch: ibc-v4 | ||
github.com/strangelove-ventures/async-icq v0.0.0-20230116084035-5609e84dd443 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM, can we add a release blocking TODO / issue for this to be replaced with a tag? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added #4218. I'll ping them to add a tag There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. also, how do I make a ticket release blocking? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can add it to the tracker issue for now |
||
github.com/stretchr/testify v1.8.1 | ||
github.com/tendermint/tendermint v0.34.24 | ||
github.com/tendermint/tm-db v0.6.8-0.20220506192307-f628bb5dc95b | ||
|
@@ -67,7 +69,7 @@ require ( | |
|
||
require ( | ||
4d63.com/gochecknoglobals v0.1.0 // indirect | ||
filippo.io/edwards25519 v1.0.0-beta.2 // indirect | ||
filippo.io/edwards25519 v1.0.0-rc.1 // indirect | ||
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect | ||
github.com/99designs/keyring v1.2.1 // indirect | ||
github.com/Antonboom/errname v0.1.7 // indirect | ||
|
@@ -83,7 +85,7 @@ require ( | |
github.com/OpenPeeDeeP/depguard v1.1.1 // indirect | ||
github.com/Workiva/go-datastructures v1.0.53 // indirect | ||
github.com/alexkohler/prealloc v1.0.0 // indirect | ||
github.com/armon/go-metrics v0.4.0 // indirect | ||
github.com/armon/go-metrics v0.4.1 // indirect | ||
github.com/ashanbrown/forbidigo v1.3.0 // indirect | ||
github.com/ashanbrown/makezero v1.1.1 // indirect | ||
github.com/beorn7/perks v1.0.1 // indirect | ||
|
@@ -174,9 +176,9 @@ require ( | |
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-version v1.6.0 // indirect | ||
github.com/hashicorp/golang-lru v0.5.4 // indirect | ||
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/hdevalence/ed25519consensus v0.0.0-20210204194344-59a8610d2b87 // indirect | ||
github.com/hdevalence/ed25519consensus v0.0.0-20220222234857-c00d1f31bab3 // indirect | ||
github.com/hexops/gotextdiff v1.0.3 // indirect | ||
github.com/imdario/mergo v0.3.13 // indirect | ||
github.com/improbable-eng/grpc-web v0.15.0 // indirect | ||
|
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.
Can we add a comment for what these args are supposed to be? (Confused why theres two)
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.
Passing it twice is common on IBC modules where you want one with the default implementation and one that is being used to actually route packages through (if there's a middleware, you want to route packets through the middleware but may still need access to the default IBC implementation).
In this case, I don't think the second one is being used. So not sure why it's needed. And the first one is only being used to return the correct app version when implementing
GetAppVersion
(which is required by the interface)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.
Oh I see, I imagine this API / standard could be improved, but for another day (and potentially requires IBC changes). SGTM!