cosmos-sdk: github.com/cosmos/cosmos-sdk/x/ibc/03-connection/client/rest Index | Files

package rest

import "github.com/cosmos/cosmos-sdk/x/ibc/03-connection/client/rest"

Index

Package Files

query.go rest.go tx.go

Constants

const (
    RestConnectionID = "connection-id"
    RestClientID     = "client-id"
)

func RegisterRoutes Uses

func RegisterRoutes(clientCtx client.Context, r *mux.Router)

RegisterRoutes - Central function to define routes that get registered by the main application

type ConnectionOpenAckReq Uses

type ConnectionOpenAckReq struct {
    BaseReq         rest.BaseReq `json:"base_req" yaml:"base_req"`
    ProofTry        []byte       `json:"proof_try" yaml:"proof_try"`
    ProofConsensus  []byte       `json:"proof_consensus" yaml:"proof_consensus"`
    ProofHeight     uint64       `json:"proof_height" yaml:"proof_height"`
    ConsensusHeight uint64       `json:"consensus_height" yaml:"consensus_height"`
    Version         string       `json:"version" yaml:"version"`
}

ConnectionOpenAckReq defines the properties of a connection open ack request's body.

type ConnectionOpenConfirmReq Uses

type ConnectionOpenConfirmReq struct {
    BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
    ProofAck    []byte       `json:"proof_ack" yaml:"proof_ack"`
    ProofHeight uint64       `json:"proof_height" yaml:"proof_height"`
}

ConnectionOpenConfirmReq defines the properties of a connection open confirm request's body.

type ConnectionOpenInitReq Uses

type ConnectionOpenInitReq struct {
    BaseReq                  rest.BaseReq                 `json:"base_req" yaml:"base_req"`
    ConnectionID             string                       `json:"connection_id" yaml:"connection_id"`
    ClientID                 string                       `json:"client_id" yaml:"client_id"`
    CounterpartyClientID     string                       `json:"counterparty_client_id" yaml:"counterparty_client_id"`
    CounterpartyConnectionID string                       `json:"counterparty_connection_id" yaml:"counterparty_connection_id"`
    CounterpartyPrefix       commitmenttypes.MerklePrefix `json:"counterparty_prefix" yaml:"counterparty_prefix"`
}

ConnectionOpenInitReq defines the properties of a connection open init request's body.

type ConnectionOpenTryReq Uses

type ConnectionOpenTryReq struct {
    BaseReq                  rest.BaseReq                 `json:"base_req" yaml:"base_req"`
    ConnectionID             string                       `json:"connection_id" yaml:"connection_id"`
    ClientID                 string                       `json:"client_id" yaml:"client_id"`
    CounterpartyClientID     string                       `json:"counterparty_client_id" yaml:"counterparty_client_id"`
    CounterpartyConnectionID string                       `json:"counterparty_connection_id" yaml:"counterparty_connection_id"`
    CounterpartyPrefix       commitmenttypes.MerklePrefix `json:"counterparty_prefix" yaml:"counterparty_prefix"`
    CounterpartyVersions     []string                     `json:"counterparty_versions" yaml:"counterparty_versions"`
    ProofInit                []byte                       `json:"proof_init" yaml:"proof_init"`
    ProofConsensus           []byte                       `json:"proof_consensus" yaml:"proof_consensus"`
    ProofHeight              uint64                       `json:"proof_height" yaml:"proof_height"`
    ConsensusHeight          uint64                       `json:"consensus_height" yaml:"consensus_height"`
}

ConnectionOpenTryReq defines the properties of a connection open try request's body.

Package rest imports 13 packages (graph) and is imported by 1 packages. Updated 2020-08-13. Refresh now. Tools for package owners.