-
Notifications
You must be signed in to change notification settings - Fork 17
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
Phase4 #20
Merged
Phase4 #20
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
c78f627
Include commitment, connection and ics23 prost gen files
hu55a1n1 a8bb61f
Implement IBC Connection Reader/Keeper traits
hu55a1n1 08f5a6a
Add ibc-proto crate as dependency
hu55a1n1 fd50149
Implement Connection gRPC query server
hu55a1n1 6151dc0
Fix memory get impl bug
hu55a1n1 82ccfd4
Change serde for ConnectionEnd to use protobufs
hu55a1n1 92215ed
Provide placeholder proofs in ABCI query response
hu55a1n1 3952aba
Update Cargo.toml
hu55a1n1 81a76a0
Implement Tx simulate service
hu55a1n1 0899fd7
Allow modules to return query proofs
hu55a1n1 e5bc766
Implement proof support for InMemoryStore
hu55a1n1 bd5613c
Proof support for IBC module
hu55a1n1 a921346
Modify module query method to add proof arg
hu55a1n1 e78f7c7
Refine query proof impl for IBC module
hu55a1n1 75e45e4
Enable indexing for IBC events
hu55a1n1 3bc037c
Fix missing prefix for store proof
hu55a1n1 5a7d148
Update ibc deps
hu55a1n1 5c53a51
Return ConsensusStateNotFound error
hu55a1n1 9a4de4a
Implement next/prev_consensus_state()
hu55a1n1 114a79d
Patch IBC deps
hu55a1n1 25406a1
Placeholder impl for account nonce
hu55a1n1 50ff86c
Print committed app hash
hu55a1n1 dec0597
Modify Store::get_proof() to include height
hu55a1n1 ba775c4
Minor refactoring
hu55a1n1 80d3d15
Fix AVL store get_proof() for overwritten keys
hu55a1n1 f011cb3
Add trace log to get_proof()
hu55a1n1 3d628fc
Add store() and commit() method to Module trait
hu55a1n1 0c0023d
Implement sub-stores as separate stores with only commitments in main…
hu55a1n1 a84bc08
Depend on ibc-rs's basecoin/phase-4 branch
hu55a1n1 8f7716d
Fix clippy warnings
hu55a1n1 41a4b09
Remove generic prefix from SubStore
hu55a1n1 f3dc2ad
More cleanup
hu55a1n1 e7e8975
Change WalStore strategy to apply in-place and reset using log
hu55a1n1 baf6935
Update substore hash after commit
hu55a1n1 8ef7fbf
Refactor SubStore and update docs
hu55a1n1 6e03809
Remove redundant definitions of {next, prev}_consensus_state()
hu55a1n1 e8bb36b
Update ibc patched deps
hu55a1n1 5a948c5
Return old value from AVL set()
hu55a1n1 564fe24
Modify Store::set() to return old value for updates
hu55a1n1 10faf2d
Fix AVL set_node
hu55a1n1 c0c13df
Fix WALStore impl
hu55a1n1 3ea1bcb
Update ibc.md
hu55a1n1 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 interest's sake, is there any other pattern that would work here that doesn't involve using trait objects?
No need to change this now, I was just wondering.
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.
Good question! I've been thinking about this myself recently. 🤔 One possible alternative would be to have an
enum
with one variant per module, but that would imply that we know of all supported modules beforehand and that is not desirable if we think of this code as part of a framework.Furthermore, ICS25 requires that ->
So I am not aware of a better alternative but happy to discuss other ideas/solutions.