types

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 16 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 (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterInterfaces added in v0.6.0

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v0.6.0

func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)

Types

type GenesisState

type GenesisState struct {
	Deposits      []types.Deposit      `protobuf:"bytes,1,rep,name=deposits,proto3" json:"deposits"`
	Nodes         *types1.GenesisState `protobuf:"bytes,2,opt,name=nodes,proto3" json:"nodes,omitempty"`
	Plans         []types2.GenesisPlan `protobuf:"bytes,3,rep,name=plans,proto3" json:"plans"`
	Providers     *types3.GenesisState `protobuf:"bytes,4,opt,name=providers,proto3" json:"providers,omitempty"`
	Sessions      *types4.GenesisState `protobuf:"bytes,5,opt,name=sessions,proto3" json:"sessions,omitempty"`
	Subscriptions *types5.GenesisState `protobuf:"bytes,6,opt,name=subscriptions,proto3" json:"subscriptions,omitempty"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func (*GenesisState) Descriptor added in v0.6.0

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) Marshal added in v0.6.0

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo added in v0.6.0

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer added in v0.6.0

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage added in v0.6.0

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset added in v0.6.0

func (m *GenesisState) Reset()

func (*GenesisState) Size added in v0.6.0

func (m *GenesisState) Size() (n int)

func (*GenesisState) String added in v0.6.0

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal added in v0.6.0

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) Validate added in v0.6.0

func (s *GenesisState) Validate() error

func (*GenesisState) XXX_DiscardUnknown added in v0.6.0

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal added in v0.6.0

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge added in v0.6.0

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size added in v0.6.0

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal added in v0.6.0

func (m *GenesisState) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
legacy

Jump to

Keyboard shortcuts

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