meshsecurity

package
v0.0.0-...-3cdce6e Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 16 Imported by: 2

README

Meshi-security

Cosmos module implementation

Documentation

Index

Constants

View Source
const ConsensusVersion = 1

ConsensusVersion defines the module's consensus version.

Variables

This section is empty.

Functions

func EndBlocker

func EndBlocker(ctx sdk.Context, k *keeper.Keeper, h TaskExecutionResponseHandler)

EndBlocker is called after every block

Types

type AppModule

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

AppModule implements an application module interface

func NewAppModule

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

NewAppModule constructor with defaults

func NewAppModuleX

NewAppModuleX extended constructor

func (AppModule) BeginBlock

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

BeginBlock executed before every block

func (AppModule) ConsensusVersion

func (AppModule) ConsensusVersion() uint64

ConsensusVersion implements AppModule/ConsensusVersion.

func (AppModule) EndBlock

EndBlock executed after every block. It returns no validator updates.

func (AppModule) ExportGenesis

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

ExportGenesis returns the exported genesis state as raw bytes for the mesh-security

func (AppModule) InitGenesis

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

InitGenesis performs genesis initialization for the mesh-security module. It returns no validator updates.

func (AppModule) IsAppModule

func (am AppModule) IsAppModule()

IsAppModule implements the appmodule.AppModule interface.

func (AppModule) Name

func (AppModule) Name() string

Name returns the module's name.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the bank module's querier route name.

func (AppModule) RegisterInvariants

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

RegisterInvariants registers the module's invariants.

func (AppModule) RegisterServices

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

RegisterServices registers module services.

func (*AppModule) SetAsyncTaskRspHandler

func (am *AppModule) SetAsyncTaskRspHandler(asyncTaskRspHandler TaskExecutionResponseHandler)

SetAsyncTaskRspHandler set custom handler

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the mesh-security module.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the mesh-security module.

func (AppModuleBasic) GetQueryCmd

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

GetQueryCmd returns no root query command for the mesh-security module.

func (AppModuleBasic) GetTxCmd

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

GetTxCmd returns the root tx command for the mesh-security module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the meshsecurity module's name.

func (AppModuleBasic) RegisterGRPCGatewayRoutes

func (b AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, serveMux *runtime.ServeMux)

func (AppModuleBasic) RegisterInterfaces

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

RegisterInterfaces implements InterfaceModule

func (AppModuleBasic) RegisterLegacyAminoCodec

func (b AppModuleBasic) RegisterLegacyAminoCodec(amino *codec.LegacyAmino)

func (AppModuleBasic) ValidateGenesis

func (b AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the mesh-security module.

type TaskExecutionResponseHandler

type TaskExecutionResponseHandler interface {
	Handle(ctx sdk.Context, e keeper.ExecResult)
}

TaskExecutionResponseHandler is an extension point for custom implementations

type TaskExecutionResponseHandlerFn

type TaskExecutionResponseHandlerFn func(ctx sdk.Context, e keeper.ExecResult)

TaskExecutionResponseHandlerFn helper type that implements TaskExecutionResponseHandler

func DefaultExecutionResponseHandler

func DefaultExecutionResponseHandler() TaskExecutionResponseHandlerFn

DefaultExecutionResponseHandler default implementation that panics on reschedule errors but otherwise logs only TODO: revisit, is this a good default?

func PanicOnErrorExecutionResponseHandler

func PanicOnErrorExecutionResponseHandler() TaskExecutionResponseHandlerFn

PanicOnErrorExecutionResponseHandler is an alternative TaskExecutionResponseHandler implementation that always panics on errors

func (TaskExecutionResponseHandlerFn) Handle

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

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