v3

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "epochstorage"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_epochstorage"
)
View Source
const (
	EpochDetailsKey = "EpochDetails-value-"
)
View Source
const (
	// StakeStorageKeyPrefix is the prefix to retrieve all StakeStorage
	StakeStorageKeyPrefix = "StakeStorage/value/"
)

Variables

View Source
var (
	ErrInvalidLengthEndpoint        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEndpoint          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEndpoint = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStakeEntry        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStakeEntry          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStakeEntry = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStakeStorage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStakeStorage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStakeStorage = fmt.Errorf("proto: unexpected end of group")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func StakeStorageKey

func StakeStorageKey(
	index string,
) []byte

StakeStorageKey returns the store key to retrieve a StakeStorage from the index fields

Types

type Endpoint

type Endpoint struct {
	IPPORT        string   `protobuf:"bytes,1,opt,name=iPPORT,proto3" json:"iPPORT,omitempty"`
	Geolocation   uint64   `protobuf:"varint,3,opt,name=geolocation,proto3" json:"geolocation,omitempty"`
	Addons        []string `protobuf:"bytes,4,rep,name=addons,proto3" json:"addons,omitempty"`
	ApiInterfaces []string `protobuf:"bytes,5,rep,name=api_interfaces,json=apiInterfaces,proto3" json:"api_interfaces,omitempty"`
	Extensions    []string `protobuf:"bytes,6,rep,name=extensions,proto3" json:"extensions,omitempty"`
}

func (*Endpoint) Descriptor

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

func (*Endpoint) GetAddons

func (m *Endpoint) GetAddons() []string

func (*Endpoint) GetApiInterfaces

func (m *Endpoint) GetApiInterfaces() []string

func (*Endpoint) GetExtensions

func (m *Endpoint) GetExtensions() []string

func (*Endpoint) GetGeolocation

func (m *Endpoint) GetGeolocation() uint64

func (*Endpoint) GetIPPORT

func (m *Endpoint) GetIPPORT() string

func (*Endpoint) Marshal

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

func (*Endpoint) MarshalTo

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

func (*Endpoint) MarshalToSizedBuffer

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

func (*Endpoint) ProtoMessage

func (*Endpoint) ProtoMessage()

func (*Endpoint) Reset

func (m *Endpoint) Reset()

func (*Endpoint) Size

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

func (*Endpoint) String

func (m *Endpoint) String() string

func (*Endpoint) Unmarshal

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

func (*Endpoint) XXX_DiscardUnknown

func (m *Endpoint) XXX_DiscardUnknown()

func (*Endpoint) XXX_Marshal

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

func (*Endpoint) XXX_Merge

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

func (*Endpoint) XXX_Size

func (m *Endpoint) XXX_Size() int

func (*Endpoint) XXX_Unmarshal

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

type StakeEntry

type StakeEntry struct {
	Stake             types.Coin `protobuf:"bytes,1,opt,name=stake,proto3" json:"stake"`
	Address           string     `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	StakeAppliedBlock uint64     `protobuf:"varint,3,opt,name=stake_applied_block,json=stakeAppliedBlock,proto3" json:"stake_applied_block,omitempty"`
	Endpoints         []Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints"`
	Geolocation       uint64     `protobuf:"varint,5,opt,name=geolocation,proto3" json:"geolocation,omitempty"`
	Chain             string     `protobuf:"bytes,6,opt,name=chain,proto3" json:"chain,omitempty"`
	Moniker           string     `protobuf:"bytes,8,opt,name=moniker,proto3" json:"moniker,omitempty"`
}

func (*StakeEntry) Descriptor

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

func (*StakeEntry) GetAddress

func (m *StakeEntry) GetAddress() string

func (*StakeEntry) GetChain

func (m *StakeEntry) GetChain() string

func (*StakeEntry) GetEndpoints

func (m *StakeEntry) GetEndpoints() []Endpoint

func (*StakeEntry) GetGeolocation

func (m *StakeEntry) GetGeolocation() uint64

func (*StakeEntry) GetMoniker

func (m *StakeEntry) GetMoniker() string

func (*StakeEntry) GetStake

func (m *StakeEntry) GetStake() types.Coin

func (*StakeEntry) GetStakeAppliedBlock

func (m *StakeEntry) GetStakeAppliedBlock() uint64

func (*StakeEntry) Marshal

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

func (*StakeEntry) MarshalTo

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

func (*StakeEntry) MarshalToSizedBuffer

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

func (*StakeEntry) ProtoMessage

func (*StakeEntry) ProtoMessage()

func (*StakeEntry) Reset

func (m *StakeEntry) Reset()

func (*StakeEntry) Size

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

func (*StakeEntry) String

func (m *StakeEntry) String() string

func (*StakeEntry) Unmarshal

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

func (*StakeEntry) XXX_DiscardUnknown

func (m *StakeEntry) XXX_DiscardUnknown()

func (*StakeEntry) XXX_Marshal

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

func (*StakeEntry) XXX_Merge

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

func (*StakeEntry) XXX_Size

func (m *StakeEntry) XXX_Size() int

func (*StakeEntry) XXX_Unmarshal

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

type StakeStorage

type StakeStorage struct {
	Index          string       `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	StakeEntries   []StakeEntry `protobuf:"bytes,2,rep,name=stakeEntries,proto3" json:"stakeEntries"`
	EpochBlockHash []byte       `protobuf:"bytes,3,opt,name=epochBlockHash,proto3" json:"epochBlockHash,omitempty"`
}

func (*StakeStorage) Descriptor

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

func (*StakeStorage) GetEpochBlockHash

func (m *StakeStorage) GetEpochBlockHash() []byte

func (*StakeStorage) GetIndex

func (m *StakeStorage) GetIndex() string

func (*StakeStorage) GetStakeEntries

func (m *StakeStorage) GetStakeEntries() []StakeEntry

func (*StakeStorage) Marshal

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

func (*StakeStorage) MarshalTo

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

func (*StakeStorage) MarshalToSizedBuffer

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

func (*StakeStorage) ProtoMessage

func (*StakeStorage) ProtoMessage()

func (*StakeStorage) Reset

func (m *StakeStorage) Reset()

func (*StakeStorage) Size

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

func (*StakeStorage) String

func (m *StakeStorage) String() string

func (*StakeStorage) Unmarshal

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

func (*StakeStorage) XXX_DiscardUnknown

func (m *StakeStorage) XXX_DiscardUnknown()

func (*StakeStorage) XXX_Marshal

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

func (*StakeStorage) XXX_Merge

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

func (*StakeStorage) XXX_Size

func (m *StakeStorage) XXX_Size() int

func (*StakeStorage) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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