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 MsgConnectionOpenTry #358

Closed
5 tasks
adizere opened this issue Nov 4, 2020 · 1 comment · Fixed by #388
Closed
5 tasks

Relayer CLI for MsgConnectionOpenTry #358

adizere opened this issue Nov 4, 2020 · 1 comment · Fixed by #388
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 command:

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

  • sends request to local client for chain-A to retrieve latest header header_A with height ha
  • makes the following queries to chain-A at height ha-1:
    - the connection with id conn-id-on-A with proof, stores results in connection and init_proof
    - the state of client with id connection.client_id and retrieves the height of last consensus state, last_cs_height
    - the consensus state for client with id connection.client_id and height last_cs_height with proof, consensus_proof
  • sends a MsgUpdateState to chain-B with:
        client_id = connection.counterparty_client_id, 
        header = header_A, 
        signer = get_account(to-chain-B)
  • sends a MsgConnectionOpenTry to chain-B with
        connection_id = connection.counterparty_connection_id,
        client_id = connection.counterparty_client_id,
        counterparty_connection_id = conn-id-on-A,
        counterparty_client_id = connection.client_id,
        counterparty_commitment_prefix = get_store_prefix(remote-chain-A),
        counterparty_versions: connection.versions,
        init_proof,
        consensus_proof,
        proofs_height = ha,
        consensus_height = last_cs_height,
        signer = get_account(to-chain-B)

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
@ancazamfir
Copy link
Collaborator

Closed via #388

@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.

2 participants