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

Relayer CLI for MsgConnectionOpenAck #359

Closed
5 tasks
adizere opened this issue Nov 4, 2020 · 0 comments · Fixed by #397
Closed
5 tasks

Relayer CLI for MsgConnectionOpenAck #359

adizere opened this issue Nov 4, 2020 · 0 comments · Fixed by #397
Labels
I: CLI Internal: related to the relayer's CLI
Milestone

Comments

@adizere
Copy link
Member

adizere commented Nov 4, 2020

Crate

mostly relayer and relayer-cli, but may cross into modules also

Problem Definition

Implement support for the command:

relayer tx raw conn-ack <to-chain-A> <remote-chain-B> <conn-id-on-B>

  • sends request to local client for chain-B to retrieve latest header header_B with height hb
  • makes the following queries to chain-B at height hb-1:
    - the connection with id conn-id-on-B with proof, stores results in connection and try_proof
    - the state of client with id client-A-on-B and retrieves the height of last consensus state, last_cs_height
    - the consensus state for client with id client-A-on-B and height last_cs_height with proof, consensus_proof
  • sends a MsgUpdateState to chain-A with:
        client_id = client-B-on-A, 
        header = header_B, 
        signer = get_account(to-chain-A)
  • sends a MsgConnectionOpenAck to chain-B with:
        connection_id = connection.counterparty_connection_id,
        try_proof
        consensus_proof,
        proofs_height = hb,
        consensus_height = last_cs_height,
        version = connection.versions[0]
        signer = get_account(to-chain-A)

Note: get_... are functions that retrieve information from the relayer configuration.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@adizere adizere added this to the v0.0.6 milestone Nov 4, 2020
@adizere adizere added the I: CLI Internal: related to the relayer's CLI label Nov 5, 2020
@adizere adizere mentioned this issue Nov 9, 2020
42 tasks
@adizere adizere modified the milestones: v0.0.6, v0.0.5 Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: CLI Internal: related to the relayer's CLI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant