-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Clients] embed ParamsQuerier
into SharedQueryClient
#1000
base: issues/543/params/query-client
Are you sure you want to change the base?
[Clients] embed ParamsQuerier
into SharedQueryClient
#1000
Conversation
a19f686
to
1e3af86
Compare
49183d7
to
ba61d14
Compare
678f795
to
f72639f
Compare
The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks. You may need to run GCP workloads (requires changing the namespace to 1000) |
9397ffe
to
03269f1
Compare
d52af81
to
d630484
Compare
fd61a91
to
ebc0b2e
Compare
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.
I can tell there's a lot more work to do but this is a great step forward :)
// shared module's params type. This is required to resolve generic type constraints. | ||
type SharedQueryClient interface { | ||
QueryClient | ||
GetParams(context.Context) (*Params, error) |
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.
GetParams(context.Context) (*Params, error) | |
GetParams(context.Context) (*Params, error) | |
// TODO_MAINNET(@bryanchriswhite, #931): GetParamsAtHeight(context.Context, uint64) (*Params, error) |
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.
This is not accurate. The point of this interface is only to adapt from:
Params(context.Context, *QueryParamsRequest, ...) (*QueryParamsResponse, error)
to:
GetParams(context.Context) (*Params, error)
This interface is used as a generic type parameter to the NewCachedParamsQuerier()
constructor which is what returns the object that defines GetParamsAtHeight().
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 you #PUC so this reasoning is clear to others please?
ParamsQuerier
into SharedQueryClient
ParamsQuerier
into SharedQueryClient
ParamsQuerier
into SharedQueryClient
ParamsQuerier
into SharedQueryClient
Summary
Embed the
ParamsQuerier
interface intoSharedQueryClient
and update both off- and on-chain implementations; i.e.sharedQuerier
andsharedKeeperQueryClient
, respectively.Issue
Type of change
Select one or more from the following:
consensus-breaking
label if so. See [Infra] Automatically add theconsensus-breaking
label #791 for detailsTesting
make docusaurus_start
; only needed if you make doc changesmake go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.Sanity Checklist