Documentation ¶
Index ¶
- Constants
- Variables
- func GetDowntimeGarbageKey(block uint64) []byte
- func GetDowntimeKey(height uint64) []byte
- func ParseDowntimeGarbageKey(key []byte) uint64
- func ParseDowntimeKey(key []byte) uint64
- func RegisterInterfaces(_ codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
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
GetDowntimeGarbageKey returns the downtime garbage storage key given the height.
func GetDowntimeKey ¶
GetDowntimeKey returns the downtime storage key given the height.
func ParseDowntimeGarbageKey ¶ added in v0.20.4
ParseDowntimeGarbageKey returns the downtime garbage time given the key.
func ParseDowntimeKey ¶
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.
Click to show internal directories.
Click to hide internal directories.