types

package
v12.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "node"
)

Variables

View Source
var (
	ErrorInvalidMessage = sdkerrors.Register(ModuleName, 101, "invalid message")

	ErrorDuplicateNode     = sdkerrors.Register(ModuleName, 201, "duplicate node")
	ErrorInvalidGigabytes  = sdkerrors.Register(ModuleName, 202, "invalid gigabytes")
	ErrorInvalidHours      = sdkerrors.Register(ModuleName, 203, "invalid hours")
	ErrorInvalidNodeStatus = sdkerrors.Register(ModuleName, 205, "invalid node status")
	ErrorInvalidPrices     = sdkerrors.Register(ModuleName, 204, "invalid prices")
	ErrorNodeNotFound      = sdkerrors.Register(ModuleName, 206, "node not found")
	ErrorPriceNotFound     = sdkerrors.Register(ModuleName, 207, "price not found")
	ErrorUnauthorized      = sdkerrors.Register(ModuleName, 208, "unauthorized")
)
View Source
var (
	ParamsKey = []byte{0x00}

	NodeKeyPrefix              = []byte{0x10}
	ActiveNodeKeyPrefix        = append(NodeKeyPrefix, 0x01)
	InactiveNodeKeyPrefix      = append(NodeKeyPrefix, 0x02)
	NodeForPlanKeyPrefix       = []byte{0x11}
	NodeForInactiveAtKeyPrefix = []byte{0x12}
)

Functions

func ActiveNodeKey

func ActiveNodeKey(addr base.NodeAddress) []byte

func AddressFromNodeForInactiveAtKey

func AddressFromNodeForInactiveAtKey(key []byte) base.NodeAddress

func AddressFromNodeForPlanKey

func AddressFromNodeForPlanKey(key []byte) base.NodeAddress

func GetNodeForInactiveAtKeyPrefix

func GetNodeForInactiveAtKeyPrefix(at time.Time) []byte

func GetNodeForPlanKeyPrefix

func GetNodeForPlanKeyPrefix(id uint64) []byte

func InactiveNodeKey

func InactiveNodeKey(addr base.NodeAddress) []byte

func NewErrorDuplicateNode

func NewErrorDuplicateNode(addr base.NodeAddress) error

func NewErrorInvalidGigabytes

func NewErrorInvalidGigabytes(gigabytes int64) error

func NewErrorInvalidHours

func NewErrorInvalidHours(hours int64) error

func NewErrorInvalidNodeStatus

func NewErrorInvalidNodeStatus(addr base.NodeAddress, status v1base.Status) error

func NewErrorInvalidPrices

func NewErrorInvalidPrices(prices sdk.Coins) error

func NewErrorNodeNotFound

func NewErrorNodeNotFound(addr base.NodeAddress) error

func NewErrorPriceNotFound

func NewErrorPriceNotFound(denom string) error

func NewErrorUnauthorized

func NewErrorUnauthorized(addr string) error

func NodeForInactiveAtKey

func NodeForInactiveAtKey(at time.Time, addr base.NodeAddress) []byte

func NodeForPlanKey

func NodeForPlanKey(id uint64, addr base.NodeAddress) []byte

Types

This section is empty.

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.
Package v2 is a reverse proxy.
Package v2 is a reverse proxy.
Package v3 is a reverse proxy.
Package v3 is a reverse proxy.

Jump to

Keyboard shortcuts

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