Skip to content

Relayer CLI for MsgConnectionOpenTry #358

Closed
@adizere

Description

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

Metadata

Assignees

No one assigned

    Labels

    I: CLIInternal: related to the relayer's CLI

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions