node

package
v0.4.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/sentinel-official/hub/x/node/types ALIASGEN: github.com/sentinel-official/hub/x/node/keeper ALIASGEN: github.com/sentinel-official/hub/x/node/querier

Index

Constants

View Source
const (
	AttributeKeyProvider    = types.AttributeKeyProvider
	AttributeKeyAddress     = types.AttributeKeyAddress
	AttributeKeyStatus      = types.AttributeKeyStatus
	ModuleName              = types.ModuleName
	QuerierRoute            = types.QuerierRoute
	DefaultInactiveDuration = types.DefaultInactiveDuration
	QueryNode               = types.QueryNode
	QueryNodes              = types.QueryNodes
	QueryNodesForProvider   = types.QueryNodesForProvider
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec                       = types.RegisterCodec
	NewGenesisState                     = types.NewGenesisState
	DefaultGenesisState                 = types.DefaultGenesisState
	NodeKey                             = types.NodeKey
	ActiveNodeKey                       = types.ActiveNodeKey
	InactiveNodeKey                     = types.InactiveNodeKey
	GetActiveNodeForProviderKeyPrefix   = types.GetActiveNodeForProviderKeyPrefix
	ActiveNodeForProviderKey            = types.ActiveNodeForProviderKey
	GetInactiveNodeForProviderKeyPrefix = types.GetInactiveNodeForProviderKeyPrefix
	InactiveNodeForProviderKey          = types.InactiveNodeForProviderKey
	GetActiveNodeAtKeyPrefix            = types.GetActiveNodeAtKeyPrefix
	ActiveNodeAtKey                     = types.ActiveNodeAtKey
	GetInactiveNodeAtKeyPrefix          = types.GetInactiveNodeAtKeyPrefix
	InactiveNodeAtKey                   = types.InactiveNodeAtKey
	AddressFromStatusNodeKey            = types.AddressFromStatusNodeKey
	AddressFromStatusNodeForProviderKey = types.AddressFromStatusNodeForProviderKey
	AddressFromStatusNodeAtKey          = types.AddressFromStatusNodeAtKey
	NewMsgRegister                      = types.NewMsgRegister
	NewMsgUpdate                        = types.NewMsgUpdate
	NewMsgSetStatus                     = types.NewMsgSetStatus
	NewParams                           = types.NewParams
	DefaultParams                       = types.DefaultParams
	ParamsKeyTable                      = types.ParamsKeyTable
	NewQueryNodeParams                  = types.NewQueryNodeParams
	NewQueryNodesParams                 = types.NewQueryNodesParams
	NewQueryNodesForProviderParams      = types.NewQueryNodesForProviderParams
	NewKeeper                           = keeper.NewKeeper
	Querier                             = querier.Querier

	// variable aliases
	ModuleCdc                        = types.ModuleCdc
	ErrorMarshal                     = types.ErrorMarshal
	ErrorUnmarshal                   = types.ErrorUnmarshal
	ErrorUnknownMsgType              = types.ErrorUnknownMsgType
	ErrorUnknownQueryType            = types.ErrorUnknownQueryType
	ErrorInvalidField                = types.ErrorInvalidField
	ErrorProviderDoesNotExist        = types.ErrorProviderDoesNotExist
	ErrorDuplicateNode               = types.ErrorDuplicateNode
	ErrorNodeDoesNotExist            = types.ErrorNodeDoesNotExist
	EventTypeSet                     = types.EventTypeSet
	EventTypeUpdate                  = types.EventTypeUpdate
	EventTypeSetStatus               = types.EventTypeSetStatus
	ParamsSubspace                   = types.ParamsSubspace
	RouterKey                        = types.RouterKey
	StoreKey                         = types.StoreKey
	EventModuleName                  = types.EventModuleName
	NodeKeyPrefix                    = types.NodeKeyPrefix
	ActiveNodeKeyPrefix              = types.ActiveNodeKeyPrefix
	InactiveNodeKeyPrefix            = types.InactiveNodeKeyPrefix
	ActiveNodeForProviderKeyPrefix   = types.ActiveNodeForProviderKeyPrefix
	InactiveNodeForProviderKeyPrefix = types.InactiveNodeForProviderKeyPrefix
	ActiveNodeAtKeyPrefix            = types.ActiveNodeAtKeyPrefix
	InactiveNodeAtKeyPrefix          = types.InactiveNodeAtKeyPrefix
	DefaultDeposit                   = types.DefaultDeposit
	KeyDeposit                       = types.KeyDeposit
	KeyInactiveDuration              = types.KeyInactiveDuration
)

Functions

func EndBlock

func EndBlock(ctx sdk.Context, k keeper.Keeper) []abci.ValidatorUpdate

func ExportGenesis

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

func HandleRegister

func HandleRegister(ctx sdk.Context, k keeper.Keeper, msg types.MsgRegister) (*sdk.Result, error)

func HandleSetStatus

func HandleSetStatus(ctx sdk.Context, k keeper.Keeper, msg types.MsgSetStatus) (*sdk.Result, error)

func HandleUpdate

func HandleUpdate(ctx sdk.Context, k keeper.Keeper, msg types.MsgUpdate) (*sdk.Result, error)

func InitGenesis

func InitGenesis(ctx sdk.Context, k keeper.Keeper, state types.GenesisState)

func ValidateGenesis

func ValidateGenesis(state types.GenesisState) error

Types

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgRegister

type MsgRegister = types.MsgRegister

type MsgSetStatus

type MsgSetStatus = types.MsgSetStatus

type MsgUpdate

type MsgUpdate = types.MsgUpdate

type Node

type Node = types.Node

type Nodes

type Nodes = types.Nodes

type Params

type Params = types.Params

type QueryNodeParams

type QueryNodeParams = types.QueryNodeParams

type QueryNodesForProviderParams

type QueryNodesForProviderParams = types.QueryNodesForProviderParams

type QueryNodesParams

type QueryNodesParams = types.QueryNodesParams

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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