-
Notifications
You must be signed in to change notification settings - Fork 657
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
imp: pass client store provider as arg to client modules #6028
Merged
+43
−77
Merged
Changes from 2 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d551d17
feat: Pass keys to light client modules during initialization.
DimitrisJim 2bb2f38
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim e2bd593
nit: fix rebase conflict & linter.
DimitrisJim d8d9220
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim caeee91
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim fe34473
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim d52d934
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim e309897
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim a47b9d8
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim b09c366
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
DimitrisJim b153a96
Merge branch 'main' into jim/issue6009-init-provider-in-lcm
damiannolan 769f514
refactor: pass store provider to light client modules as arg
damiannolan d168816
imp: add GetStoreProvider to 02-client keeper
damiannolan e505277
docs: remove ref to RegisterStoreProvider in docs
damiannolan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,11 +54,6 @@ type ClientStoreProvider interface { | |
// LightClientModule is an interface which core IBC uses to interact with light client modules. | ||
// Light client modules must implement this interface to integrate with core IBC. | ||
type LightClientModule interface { | ||
// RegisterStoreProvider is called by core IBC when a LightClientModule is added to the router. | ||
// It allows the LightClientModule to set a ClientStoreProvider which supplies isolated prefix client stores | ||
// to IBC light client instances. | ||
RegisterStoreProvider(storeProvider ClientStoreProvider) | ||
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. And this! |
||
|
||
// Initialize is called upon client creation, it allows the client to perform validation on the client state and initial consensus state. | ||
// The light client module is responsible for setting any client-specific data in the store. This includes the client state, | ||
// initial consensus state and any associated metadata. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For context: this was the main thing we wanted to remove with this PR!