rest

package
Version: v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string)

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

Types

type ConnectionOpenAckReq

type ConnectionOpenAckReq struct {
	BaseReq         rest.BaseReq                `json:"base_req" yaml:"base_req"`
	ProofTry        commitmenttypes.MerkleProof `json:"proof_try" yaml:"proof_try"`
	ProofConsensus  commitmenttypes.MerkleProof `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

type ConnectionOpenConfirmReq struct {
	BaseReq     rest.BaseReq                `json:"base_req" yaml:"base_req"`
	ProofAck    commitmenttypes.MerkleProof `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

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

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                commitmenttypes.MerkleProof  `json:"proof_init" yaml:"proof_init"`
	ProofConsensus           commitmenttypes.MerkleProof  `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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL