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

Phase4 #20

Merged
merged 42 commits into from
Dec 7, 2021
Merged
Changes from 1 commit
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 Sep 29, 2021
a8bb61f
Implement IBC Connection Reader/Keeper traits
hu55a1n1 Sep 29, 2021
08f5a6a
Add ibc-proto crate as dependency
hu55a1n1 Sep 29, 2021
fd50149
Implement Connection gRPC query server
hu55a1n1 Sep 30, 2021
6151dc0
Fix memory get impl bug
hu55a1n1 Sep 30, 2021
82ccfd4
Change serde for ConnectionEnd to use protobufs
hu55a1n1 Sep 30, 2021
92215ed
Provide placeholder proofs in ABCI query response
hu55a1n1 Sep 30, 2021
3952aba
Update Cargo.toml
hu55a1n1 Oct 6, 2021
81a76a0
Implement Tx simulate service
hu55a1n1 Oct 6, 2021
0899fd7
Allow modules to return query proofs
hu55a1n1 Oct 11, 2021
e5bc766
Implement proof support for InMemoryStore
hu55a1n1 Oct 11, 2021
bd5613c
Proof support for IBC module
hu55a1n1 Oct 11, 2021
a921346
Modify module query method to add proof arg
hu55a1n1 Oct 12, 2021
e78f7c7
Refine query proof impl for IBC module
hu55a1n1 Oct 12, 2021
75e45e4
Enable indexing for IBC events
hu55a1n1 Oct 12, 2021
3bc037c
Fix missing prefix for store proof
hu55a1n1 Oct 12, 2021
5a7d148
Update ibc deps
hu55a1n1 Oct 18, 2021
5c53a51
Return ConsensusStateNotFound error
hu55a1n1 Oct 25, 2021
9a4de4a
Implement next/prev_consensus_state()
hu55a1n1 Oct 25, 2021
114a79d
Patch IBC deps
hu55a1n1 Oct 25, 2021
25406a1
Placeholder impl for account nonce
hu55a1n1 Oct 25, 2021
50ff86c
Print committed app hash
hu55a1n1 Nov 2, 2021
dec0597
Modify Store::get_proof() to include height
hu55a1n1 Nov 2, 2021
ba775c4
Minor refactoring
hu55a1n1 Nov 2, 2021
80d3d15
Fix AVL store get_proof() for overwritten keys
hu55a1n1 Nov 4, 2021
f011cb3
Add trace log to get_proof()
hu55a1n1 Nov 4, 2021
3d628fc
Add store() and commit() method to Module trait
hu55a1n1 Nov 4, 2021
0c0023d
Implement sub-stores as separate stores with only commitments in main…
hu55a1n1 Nov 4, 2021
a84bc08
Depend on ibc-rs's basecoin/phase-4 branch
hu55a1n1 Nov 4, 2021
8f7716d
Fix clippy warnings
hu55a1n1 Nov 5, 2021
41a4b09
Remove generic prefix from SubStore
hu55a1n1 Nov 5, 2021
f3dc2ad
More cleanup
hu55a1n1 Nov 5, 2021
e7e8975
Change WalStore strategy to apply in-place and reset using log
hu55a1n1 Nov 6, 2021
baf6935
Update substore hash after commit
hu55a1n1 Nov 6, 2021
8ef7fbf
Refactor SubStore and update docs
hu55a1n1 Nov 8, 2021
6e03809
Remove redundant definitions of {next, prev}_consensus_state()
hu55a1n1 Nov 19, 2021
e8bb36b
Update ibc patched deps
hu55a1n1 Nov 19, 2021
5a948c5
Return old value from AVL set()
hu55a1n1 Nov 29, 2021
564fe24
Modify Store::set() to return old value for updates
hu55a1n1 Nov 29, 2021
10faf2d
Fix AVL set_node
hu55a1n1 Nov 29, 2021
c0c13df
Fix WALStore impl
hu55a1n1 Nov 29, 2021
3ea1bcb
Update ibc.md
hu55a1n1 Dec 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Provide placeholder proofs in ABCI query response
  • Loading branch information
hu55a1n1 committed Nov 19, 2021
commit 92215ed2dda127e1988458b24d77d093bebe26ac
11 changes: 10 additions & 1 deletion src/app/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ use tendermint_proto::abci::{
Event, RequestDeliverTx, RequestInfo, RequestInitChain, RequestQuery, ResponseCommit,
ResponseDeliverTx, ResponseInfo, ResponseInitChain, ResponseQuery,
};
use tendermint_proto::p2p::DefaultNodeInfo;
use tendermint_proto::crypto::{ProofOp, ProofOps};
use tendermint_proto::p2p::{DefaultNodeInfo, ProtocolVersion};
use tonic::{Request, Response, Status};
use tracing::{debug, info};

Expand Down Expand Up @@ -175,11 +176,19 @@ impl<S: ProvableStore + 'static> Application for BaseCoinApp<S> {
) {
// success - implies query was handled by this module, so return response
Ok(result) => {
// TODO(hu55a1n1): Add proof support
return ResponseQuery {
code: 0,
log: "exists".to_string(),
key: request.data,
value: result,
proof_ops: Some(ProofOps {
ops: vec![ProofOp {
r#type: "dummy proof".to_string(),
key: vec![0],
data: vec![0],
}],
}),
height: self.store.read().unwrap().current_height() as i64,
..ResponseQuery::default()
};
Expand Down