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

Local chain type #158

Closed
ebuchman opened this issue Jul 19, 2020 · 0 comments · Fixed by #422
Closed

Local chain type #158

ebuchman opened this issue Jul 19, 2020 · 0 comments · Fixed by #422
Assignees
Labels
I: dependencies Internal: related to dependencies O: tests Objective: Test more aspect of the relayer
Milestone

Comments

@ebuchman
Copy link
Member

ebuchman commented Jul 19, 2020

We should add a new type of Chain type that is a local in-process chain. This chain will basically be our implementation of the IBC handlers. It can also be used for in-process testing of the relayer.

A Chain is expected to be running a blockchain (generating at least light blocks ...) and to have some on-chain state that can be queried and updated by transactions. So we'll need:

  • A way to produce a chain of real Tendermint light blocks (we should have all the tools for this now given the tendermint-rs model-based testing work to do this)
  • An on chain kv-store. For now we should mock out proofs so we don't worry about checking them but soon we'll want to implement a basic merkle tree backing here, even a simple merkle tree that's recomputed every block. Eventually we'll use something like merk or otherwise.
  • A way to query the on chain kv-store (should roughly match the ABCI query interface)
  • IBC handlers: ie. functions that take IBC msgs as input and executes them against the kv-store
  • A way to send the msgs to the handlers (ie. "transactions")

So basically we need to mock out a Tendermint blockchain using light blocks and a simple state machine for the ibc handlers.

Note this wouldn't be using ABCI directly, since that would assume a running instance of Tendermint Core. So we don't need to hook up real ABCI queries or any kind of transaction stuff, just a simple interface for passing in the IBC msg types and for querying from the KV store. Ultimately though we'll want this application state/logic to be able to run on top of ABCI, so it's worth keeping in mind.

@ebuchman ebuchman added this to the v.0.0.3 milestone Jul 19, 2020
@adizere adizere added O: tests Objective: Test more aspect of the relayer ibc-ics labels Jul 21, 2020
@ebuchman ebuchman removed the ibc-ics label Aug 1, 2020
@ancazamfir ancazamfir modified the milestones: v.0.0.3, v0.0.4 Aug 14, 2020
@ebuchman ebuchman modified the milestones: v0.0.4, v0.0.5 Aug 28, 2020
@ancazamfir ancazamfir modified the milestones: v0.0.5, v0.0.4 Sep 10, 2020
@adizere adizere modified the milestones: v0.0.4, v0.0.5 Sep 30, 2020
@adizere adizere added the I: dependencies Internal: related to dependencies label Nov 9, 2020
@adizere adizere self-assigned this Dec 2, 2020
@adizere adizere modified the milestones: v0.0.5, v0.0.6 Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: dependencies Internal: related to dependencies O: tests Objective: Test more aspect of the relayer
Projects
None yet
3 participants