byop

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	ModuleName string

	MsgsInterfaces      []RegisterInterface
	MsgsImplementations []RegisterImplementation
}

func (Module) DefaultGenesis

func (m Module) DefaultGenesis(codec.JSONCodec) json.RawMessage

func (Module) GetQueryCmd

func (m Module) GetQueryCmd() *cobra.Command

func (Module) GetTxCmd

func (m Module) GetTxCmd() *cobra.Command

func (Module) Name

func (m Module) Name() string

func (Module) RegisterGRPCGatewayRoutes

func (m Module) RegisterGRPCGatewayRoutes(client.Context, *runtime.ServeMux)

func (Module) RegisterInterfaces

func (m Module) RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces is the only method that we care about. It registers the injected interfaces into the provided registry, so that it can be decoded.

func (Module) RegisterLegacyAminoCodec

func (m Module) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func (Module) RegisterRESTRoutes

func (m Module) RegisterRESTRoutes(client.Context, *mux.Router)

func (Module) ValidateGenesis

type RegisterImplementation

type RegisterImplementation struct {
	Iface interface{}
	Msgs  []proto.Message
}

type RegisterInterface

type RegisterInterface struct {
	Name  string
	Iface interface{}
	Msgs  []proto.Message
}

Jump to

Keyboard shortcuts

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