cosmos-sdk: github.com/cosmos/cosmos-sdk/x/ibc/04-channel/client/rest Index | Files

package rest

import "github.com/cosmos/cosmos-sdk/x/ibc/04-channel/client/rest"

Index

Package Files

query.go rest.go tx.go

Constants

const (
    RestChannelID = "channel-id"
    RestPortID    = "port-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 ChannelCloseConfirmReq Uses

type ChannelCloseConfirmReq struct {
    BaseReq     rest.BaseReq `json:"base_req" yaml:"base_req"`
    ProofInit   []byte       `json:"proof_init" yaml:"proof_init"`
    ProofHeight uint64       `json:"proof_height" yaml:"proof_height"`
}

ChannelCloseConfirmReq defines the properties of a channel close confirm request's body.

type ChannelCloseInitReq Uses

type ChannelCloseInitReq struct {
    BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
}

ConnectionOpenInitReq defines the properties of a channel close init request's body.

type ChannelOpenAckReq Uses

type ChannelOpenAckReq struct {
    BaseReq             rest.BaseReq `json:"base_req" yaml:"base_req"`
    CounterpartyVersion string       `json:"counterparty_version" yaml:"counterparty_version"`
    ProofTry            []byte       `json:"proof_try" yaml:"proof_try"`
    ProofHeight         uint64       `json:"proof_height" yaml:"proof_height"`
}

ChannelOpenAckReq defines the properties of a channel open ack request's body.

type ChannelOpenConfirmReq Uses

type ChannelOpenConfirmReq 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"`
}

ChannelOpenConfirmReq defines the properties of a channel open confirm request's body.

type ChannelOpenInitReq Uses

type ChannelOpenInitReq struct {
    BaseReq               rest.BaseReq `json:"base_req" yaml:"base_req"`
    PortID                string       `json:"port_id" yaml:"port_id"`
    ChannelID             string       `json:"channel_id" yaml:"channel_id"`
    Version               string       `json:"version" yaml:"version"`
    ChannelOrder          types.Order  `json:"channel_order" yaml:"channel_order"`
    ConnectionHops        []string     `json:"connection_hops" yaml:"connection_hops"`
    CounterpartyPortID    string       `json:"counterparty_port_id" yaml:"counterparty_port_id"`
    CounterpartyChannelID string       `json:"counterparty_channel_id" yaml:"counterparty_channel_id"`
}

ChannelOpenInitReq defines the properties of a channel open init request's body.

type ChannelOpenTryReq Uses

type ChannelOpenTryReq struct {
    BaseReq               rest.BaseReq `json:"base_req" yaml:"base_req"`
    PortID                string       `json:"port_id" yaml:"port_id"`
    ChannelID             string       `json:"channel_id" yaml:"channel_id"`
    Version               string       `json:"version" yaml:"version"`
    ChannelOrder          types.Order  `json:"channel_order" yaml:"channel_order"`
    ConnectionHops        []string     `json:"connection_hops" yaml:"connection_hops"`
    CounterpartyPortID    string       `json:"counterparty_port_id" yaml:"counterparty_port_id"`
    CounterpartyChannelID string       `json:"counterparty_channel_id" yaml:"counterparty_channel_id"`
    CounterpartyVersion   string       `json:"counterparty_version" yaml:"counterparty_version"`
    ProofInit             []byte       `json:"proof_init" yaml:"proof_init"`
    ProofHeight           uint64       `json:"proof_height" yaml:"proof_height"`
}

ChannelOpenTryReq defines the properties of a channel open try request's body.

type RecvPacketReq Uses

type RecvPacketReq struct {
    BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
    Packet  types.Packet `json:"packet" yaml:"packet"`
    Proofs  []byte       `json:"proofs" yaml:"proofs"`
    Height  uint64       `json:"height" yaml:"height"`
}

RecvPacketReq defines the properties of a receive packet request's body.

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