types

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ModuleName   = "vpn"
	RouterKey    = ModuleName
	QuerierRoute = ModuleName
	StoreKey     = ModuleName
)

Variables

View Source
var (
	ErrorMarshal          = errors.Register(ModuleName, 101, "error occurred while marshalling")
	ErrorUnmarshal        = errors.Register(ModuleName, 102, "error occurred while unmarshalling")
	ErrorUnknownMsgType   = errors.Register(ModuleName, 103, "unknown message type")
	ErrorUnknownQueryType = errors.Register(ModuleName, 104, "unknown query type")
	ErrorInvalidField     = errors.Register(ModuleName, 105, "invalid field")
)
View Source
var (
	ModuleCdc *codec.Codec
)

Functions

func RegisterCodec

func RegisterCodec(cdc *codec.Codec)

Types

type GenesisState

type GenesisState struct {
	Deposits      deposit.GenesisState      `json:"deposits"`
	Providers     provider.GenesisState     `json:"providers"`
	Nodes         node.GenesisState         `json:"nodes"`
	Plans         plan.GenesisState         `json:"plans"`
	Subscriptions subscription.GenesisState `json:"subscriptions"`
	Sessions      session.GenesisState      `json:"sessions"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

func NewGenesisState

func NewGenesisState(deposits deposit.GenesisState, providers provider.GenesisState, nodes node.GenesisState,
	plans plan.GenesisState, subscriptions subscription.GenesisState, sessions session.GenesisState) GenesisState

Jump to

Keyboard shortcuts

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