types

package
v0.20.5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "downtime"
	// StoreKey is the default store key for the module.
	StoreKey = ModuleName
)

Variables

View Source
var (
	LastBlockTimeKey         = []byte{0x01}
	DowntimeHeightKey        = []byte{0x02}
	DowntimeHeightGarbageKey = []byte{0x03}
)

Functions

func GetDowntimeGarbageKey added in v0.20.4

func GetDowntimeGarbageKey(block uint64) []byte

GetDowntimeGarbageKey returns the downtime garbage storage key given the height.

func GetDowntimeKey

func GetDowntimeKey(height uint64) []byte

GetDowntimeKey returns the downtime storage key given the height.

func ParseDowntimeGarbageKey added in v0.20.4

func ParseDowntimeGarbageKey(key []byte) uint64

ParseDowntimeGarbageKey returns the downtime garbage time given the key.

func ParseDowntimeKey

func ParseDowntimeKey(key []byte) uint64

ParseDowntimeKey returns the downtime height given the key.

func RegisterInterfaces

func RegisterInterfaces(_ codectypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)

Types

This section is empty.

Jump to

Keyboard shortcuts

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