types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName   = protocol.UpgradeModuleName
	StoreKey     = ModuleName
	RouterKey    = ModuleName
	QuerierRoute = ModuleName
)

Variables

This section is empty.

Functions

func GetAddressFromSignalKey

func GetAddressFromSignalKey(key []byte) string

GetAddressFromSignalKey gets address from signal key

func GetFailedVersionKey

func GetFailedVersionKey(versionID uint64, proposalID uint64) []byte

GetFailedVersionKey gets failed version store key

func GetProposalIDKey

func GetProposalIDKey(proposalID uint64) []byte

GetProposalIDKey gets proposal ID store key

func GetSignalKey

func GetSignalKey(versionID uint64, switchVoterAddr string) []byte

GetSignalKey gets signal store key

func GetSignalPrefixKey

func GetSignalPrefixKey(versionID uint64) []byte

GetSignalPrefixKey gets signal prefix store key

func GetSuccessVersionKey

func GetSuccessVersionKey(versionID uint64) []byte

GetSuccessVersionKey gets successful version store key

func UintToHexString

func UintToHexString(i uint64) string

UintToHexString converts uint to hex string

Types

type VersionInfo

type VersionInfo struct {
	UpgradeInfo sdk.UpgradeConfig `json:"upgrade_info"`
	Success     bool              `json:"success"`
}

func NewVersionInfo

func NewVersionInfo(upgradeConfig sdk.UpgradeConfig, success bool) VersionInfo

Jump to

Keyboard shortcuts

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