guardian

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/bianjieai/irita/modules/guardian/internal/keeper ALIASGEN: github.com/bianjieai/irita/modules/guardian/internal/types

Index

Constants

View Source
const (
	EventTypeAddProfiler        = types.EventTypeAddProfiler
	EventTypeAddTrustee         = types.EventTypeAddTrustee
	EventTypeDeleteProfiler     = types.EventTypeDeleteProfiler
	EventTypeDeleteTrustee      = types.EventTypeDeleteTrustee
	AttributeKeyProfilerAddress = types.AttributeKeyProfilerAddress
	AttributeKeyTrusteeAddress  = types.AttributeKeyTrusteeAddress
	AttributeKeyAddedBy         = types.AttributeKeyAddedBy
	AttributeKeyDeletedBy       = types.AttributeKeyDeletedBy
	AttributeValueCategory      = types.AttributeValueCategory
	ModuleName                  = types.ModuleName
	StoreKey                    = types.StoreKey
	RouterKey                   = types.RouterKey
	TypeMsgAddProfiler          = types.TypeMsgAddProfiler
	TypeMsgDeleteProfiler       = types.TypeMsgDeleteProfiler
	TypeMsgAddTrustee           = types.TypeMsgAddTrustee
	TypeMsgDeleteTrustee        = types.TypeMsgDeleteTrustee
	QuerierRoute                = types.QuerierRoute
	QueryProfilers              = types.QueryProfilers
	QueryTrustees               = types.QueryTrustees
	Genesis                     = types.Genesis
	Ordinary                    = types.Ordinary
)

Variables

View Source
var (
	// functions aliases
	NewKeeper                = keeper.NewKeeper
	NewQuerier               = keeper.NewQuerier
	RegisterCodec            = types.RegisterCodec
	ErrUnknownOperator       = types.ErrUnknownOperator
	ErrUnknownProfiler       = types.ErrUnknownProfiler
	ErrUnknownTrustee        = types.ErrUnknownTrustee
	ErrDeleteGenesisProfiler = types.ErrDeleteGenesisProfiler
	ErrDeleteGenesisTrustee  = types.ErrDeleteGenesisTrustee
	NewGenesisState          = types.NewGenesisState
	DefaultGenesisState      = types.DefaultGenesisState
	ProfilerKey              = types.ProfilerKey
	TrusteeKey               = types.TrusteeKey
	GetProfilerKey           = types.GetProfilerKey
	GetTrusteeKey            = types.GetTrusteeKey
	GetProfilersSubspaceKey  = types.GetProfilersSubspaceKey
	GetTrusteesSubspaceKey   = types.GetTrusteesSubspaceKey
	NewMsgAddProfiler        = types.NewMsgAddProfiler
	NewMsgDeleteProfiler     = types.NewMsgDeleteProfiler
	NewMsgAddTrustee         = types.NewMsgAddTrustee
	NewMsgDeleteTrustee      = types.NewMsgDeleteTrustee
	NewGuardian              = types.NewGuardian
	AccountTypeFromString    = types.AccountTypeFromString

	// variable aliases
	ModuleCdc = types.ModuleCdc
)

Functions

func InitGenesis

func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)

InitGenesis stores genesis data

func NewHandler

func NewHandler(k Keeper) sdk.Handler

NewHandler returns a handler for all "guardian" type messages.

Types

type AccountType

type AccountType = types.AccountType

type AddGuardian

type AddGuardian = types.AddGuardian

type AppModule

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

AppModule implements an application module for the guardian module.

func NewAppModule

func NewAppModule(keeper Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock

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

BeginBlock returns the begin blocker for the guardian module.

func (AppModule) EndBlock

EndBlock returns the end blocker for the guardian module. It returns no validator updates.

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes for the mint module.

func (AppModule) InitGenesis

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

InitGenesis performs genesis initialization for the guardian module. It returns no validator updates.

func (AppModule) Name

func (AppModule) Name() string

Name returns the guardian module's name.

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

NewHandler returns an sdk.Handler for the guardian module.

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

NewQuerierHandler returns the guardian module sdk.Querier.

func (AppModule) QuerierRoute

func (AppModule) QuerierRoute() string

QuerierRoute returns the guardian module's querier route name.

func (AppModule) RegisterInvariants

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

RegisterInvariants registers the guardian module invariants.

func (AppModule) Route

func (AppModule) Route() string

Route returns the message routing key for the guardian module.

type AppModuleBasic

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the guardian module.

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the guardian module

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the root query command for the guardian module.

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

GetTxCmd returns no root tx command for the guardian module.

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Name returns the guardian module's name.

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

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

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)

RegisterRESTRoutes registers the REST routes for the guardian module.

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the guardian module.

type DeleteGuardian

type DeleteGuardian = types.DeleteGuardian

type GenesisState

type GenesisState = types.GenesisState

func ExportGenesis

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

ExportGenesis outputs genesis data

type Guardian

type Guardian = types.Guardian

type Keeper

type Keeper = keeper.Keeper

type MsgAddProfiler

type MsgAddProfiler = types.MsgAddProfiler

type MsgAddTrustee

type MsgAddTrustee = types.MsgAddTrustee

type MsgDeleteProfiler

type MsgDeleteProfiler = types.MsgDeleteProfiler

type MsgDeleteTrustee

type MsgDeleteTrustee = types.MsgDeleteTrustee

type Profilers

type Profilers = types.Profilers

type Trustees

type Trustees = types.Trustees

Directories

Path Synopsis
client
cli
nolint
nolint
internal
types
nolint
nolint

Jump to

Keyboard shortcuts

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