tokenregistry

package
v0.10.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModuleName = types.ModuleName
)

Functions

This section is empty.

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	AppModuleSimulation
	Keeper types.Keeper
	Codec  *codec.Codec
}

AppModule implements an application module.

func NewAppModule

func NewAppModule(keeper types.Keeper, cdc *codec.Codec) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

BeginBlock returns the begin blocker.

func (AppModule) ConsensusVersion added in v0.10.1

func (AppModule) ConsensusVersion() uint64

func (AppModule) EndBlock

EndBlock returns the end blocker. It returns no validator updates.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context, marshaler codec.JSONCodec) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes.

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(ctx sdk.Context, marshaler codec.JSONCodec, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization. It returns no validator updates.

func (AppModule) LegacyQuerierHandler deprecated

func (am AppModule) LegacyQuerierHandler(_ *codec.LegacyAmino) sdk.Querier

Deprecated: LegacyQuerierHandler use RegisterServices

func (AppModule) Name

func (AppModule) Name() string

Name returns the module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the module.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the module's querier route name.

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants registers the module invariants.

func (AppModule) RegisterServices

func (am AppModule) RegisterServices(cfg module.Configurator)

func (AppModule) Route

func (am AppModule) Route() sdk.Route

Route returns the message routing key for the module.

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module.

func (AppModuleBasic) DefaultGenesis

func (b AppModuleBasic) DefaultGenesis(marshaler codec.JSONCodec) json.RawMessage

DefaultGenesis returns default genesis state as raw bytes.

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd() *cobra.Command

GetQueryCmd returns no root query command.

func (AppModuleBasic) GetTxCmd

func (b AppModuleBasic) GetTxCmd() *cobra.Command

GetTxCmd returns the root tx command.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the module's name.

func (AppModuleBasic) RegisterGRPCGatewayRoutes

func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx sdkclient.Context, mux *runtime.ServeMux)

func (AppModuleBasic) RegisterInterfaces

func (b AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)

func (AppModuleBasic) RegisterLegacyAminoCodec

func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterCodec registers the module's types for the given codec.

func (AppModuleBasic) RegisterRESTRoutes

func (b AppModuleBasic) RegisterRESTRoutes(ctx sdkclient.Context, router *mux.Router)

RegisterRESTRoutes registers the REST routes.

func (AppModuleBasic) ValidateGenesis

func (b AppModuleBasic) ValidateGenesis(marshaler codec.JSONCodec, _ sdkclient.TxEncodingConfig, message json.RawMessage) error

ValidateGenesis performs genesis state validation.

type AppModuleSimulation

type AppModuleSimulation struct{}

AppModuleSimulation defines the module simulation functions.

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.
mock
Package tokenregistrymocks is a generated GoMock package.
Package tokenregistrymocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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