util

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Bech32PrefixAccAddr defines the Bech32 prefix of an account's address
	Bech32PrefixAccAddr = "terra"
	// Bech32PrefixAccPub defines the Bech32 prefix of an account's public key
	Bech32PrefixAccPub = "terrapub"
	// Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address
	Bech32PrefixValAddr = "terravaloper"
	// Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key
	Bech32PrefixValPub = "terravaloperpub"
	// Bech32PrefixConsAddr defines the Bech32 prefix of a consensus node address
	Bech32PrefixConsAddr = "terravalcons"
	// Bech32PrefixConsPub defines the Bech32 prefix of a consensus node public key
	Bech32PrefixConsPub = "terravalconspub"
)

Variables

This section is empty.

Functions

func Clear

func Clear(dbKey sdk.StoreKey, ctx sdk.Context, storePrefix []byte)

func Delete

func Delete(dbKey sdk.StoreKey, ctx sdk.Context, storeKey []byte)

func Set

func Set(dbKey sdk.StoreKey, cdc *codec.Codec, ctx sdk.Context, storeKey []byte, value Value)

Types

type Value

type Value interface {
}

func Collect

func Collect(dbKey sdk.StoreKey, cdc *codec.Codec, ctx sdk.Context, storePrefix []byte) (res []Value)

func Get

func Get(dbKey sdk.StoreKey, cdc *codec.Codec, ctx sdk.Context, storeKey []byte) (res Value)

Jump to

Keyboard shortcuts

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