types

package
v4.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 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 GetDowntimeKey

func GetDowntimeKey(height uint64) []byte

GetDowntimeKey returns the downtime storage key given the height.

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