types

package
v0.0.0-...-7c30539 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

RegisterCodec registers the necessary x/ibc interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

RegisterInterfaces registers x/ibc interfaces into protobuf Any.

func RegisterQueryService

func RegisterQueryService(server grpc.Server, queryService QueryServer)

RegisterQueryService registers each individual IBC submodule query service

Types

type GenesisState

type GenesisState struct {
	ClientGenesis     clienttypes.GenesisState     `json:"client_genesis" yaml:"client_genesis"`
	ConnectionGenesis connectiontypes.GenesisState `json:"connection_genesis" yaml:"connection_genesis"`
	ChannelGenesis    channeltypes.GenesisState    `json:"channel_genesis" yaml:"channel_genesis"`
}

GenesisState defines the ibc module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesisState returns the ibc module's default genesis state.

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

type QueryServer

type QueryServer interface {
	connectiontypes.QueryServer
	channeltypes.QueryServer
}

QueryServer defines the IBC interfaces that the gRPC query server must implement

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL