plan

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: 6 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/plan/types ALIASGEN: github.com/sentinel-official/hub/x/plan/keeper ALIASGEN: github.com/sentinel-official/hub/x/plan/querier

Index

Constants

View Source
const (
	AttributeKeyAddress   = types.AttributeKeyAddress
	AttributeKeyID        = types.AttributeKeyID
	AttributeKeyCount     = types.AttributeKeyCount
	AttributeKeyStatus    = types.AttributeKeyStatus
	ModuleName            = types.ModuleName
	QuerierRoute          = types.QuerierRoute
	QueryPlan             = types.QueryPlan
	QueryPlans            = types.QueryPlans
	QueryPlansForProvider = types.QueryPlansForProvider
	QueryNodesForPlan     = types.QueryNodesForPlan
)

Variables

View Source
var (
	// functions aliases
	RegisterCodec                       = types.RegisterCodec
	NewGenesisState                     = types.NewGenesisState
	DefaultGenesisState                 = types.DefaultGenesisState
	PlanKey                             = types.PlanKey
	ActivePlanKey                       = types.ActivePlanKey
	InactivePlanKey                     = types.InactivePlanKey
	GetActivePlanForProviderKeyPrefix   = types.GetActivePlanForProviderKeyPrefix
	ActivePlanForProviderKey            = types.ActivePlanForProviderKey
	GetInactivePlanForProviderKeyPrefix = types.GetInactivePlanForProviderKeyPrefix
	InactivePlanForProviderKey          = types.InactivePlanForProviderKey
	GetNodeForPlanKeyPrefix             = types.GetNodeForPlanKeyPrefix
	NodeForPlanKey                      = types.NodeForPlanKey
	IDFromStatusPlanKey                 = types.IDFromStatusPlanKey
	IDFromStatusPlanForProviderKey      = types.IDFromStatusPlanForProviderKey
	AddressFromNodeForPlanKey           = types.AddressFromNodeForPlanKey
	NewMsgAdd                           = types.NewMsgAdd
	NewMsgSetStatus                     = types.NewMsgSetStatus
	NewMsgAddNode                       = types.NewMsgAddNode
	NewMsgRemoveNode                    = types.NewMsgRemoveNode
	NewQueryPlanParams                  = types.NewQueryPlanParams
	NewQueryPlansParams                 = types.NewQueryPlansParams
	NewQueryPlansForProviderParams      = types.NewQueryPlansForProviderParams
	NewQueryNodesForPlanParams          = types.NewQueryNodesForPlanParams
	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
	ErrorPlanDoesNotExist            = types.ErrorPlanDoesNotExist
	ErrorNodeDoesNotExist            = types.ErrorNodeDoesNotExist
	ErrorUnauthorized                = types.ErrorUnauthorized
	EventTypeSetCount                = types.EventTypeSetCount
	EventTypeSet                     = types.EventTypeSet
	EventTypeSetStatus               = types.EventTypeSetStatus
	EventTypeAddNode                 = types.EventTypeAddNode
	EventTypeRemoveNode              = types.EventTypeRemoveNode
	RouterKey                        = types.RouterKey
	StoreKey                         = types.StoreKey
	EventModuleName                  = types.EventModuleName
	CountKey                         = types.CountKey
	PlanKeyPrefix                    = types.PlanKeyPrefix
	ActivePlanKeyPrefix              = types.ActivePlanKeyPrefix
	InactivePlanKeyPrefix            = types.InactivePlanKeyPrefix
	ActivePlanForProviderKeyPrefix   = types.ActivePlanForProviderKeyPrefix
	InactivePlanForProviderKeyPrefix = types.InactivePlanForProviderKeyPrefix
	NodeForPlanKeyPrefix             = types.NodeForPlanKeyPrefix
)

Functions

func ExportGenesis

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

func HandleAdd

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

func HandleAddNode

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

func HandleRemoveNode

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

func HandleSetStatus

func HandleSetStatus(ctx sdk.Context, k keeper.Keeper, msg types.MsgSetStatus) (*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 GenesisPlan

type GenesisPlan = types.GenesisPlan

type GenesisPlans

type GenesisPlans = types.GenesisPlans

type GenesisState

type GenesisState = types.GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgAdd

type MsgAdd = types.MsgAdd

type MsgAddNode

type MsgAddNode = types.MsgAddNode

type MsgRemoveNode

type MsgRemoveNode = types.MsgRemoveNode

type MsgSetStatus

type MsgSetStatus = types.MsgSetStatus

type Plan

type Plan = types.Plan

type Plans

type Plans = types.Plans

type QueryNodesForPlanParams

type QueryNodesForPlanParams = types.QueryNodesForPlanParams

type QueryPlanParams

type QueryPlanParams = types.QueryPlanParams

type QueryPlansForProviderParams

type QueryPlansForProviderParams = types.QueryPlansForProviderParams

type QueryPlansParams

type QueryPlansParams = types.QueryPlansParams

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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