Documentation ¶
Index ¶
- Constants
- func GetAddressFromSignalKey(key []byte) string
- func GetFailedVersionKey(versionID uint64, proposalID uint64) []byte
- func GetProposalIDKey(proposalID uint64) []byte
- func GetSignalKey(versionID uint64, switchVoterAddr string) []byte
- func GetSignalPrefixKey(versionID uint64) []byte
- func GetSuccessVersionKey(versionID uint64) []byte
- func UintToHexString(i uint64) string
- type VersionInfo
Constants ¶
View Source
const ( ModuleName = protocol.UpgradeModuleName StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName )
Variables ¶
This section is empty.
Functions ¶
func GetAddressFromSignalKey ¶
GetAddressFromSignalKey gets address from signal key
func GetFailedVersionKey ¶
GetFailedVersionKey gets failed version store key
func GetProposalIDKey ¶
GetProposalIDKey gets proposal ID store key
func GetSignalKey ¶
GetSignalKey gets signal store key
func GetSignalPrefixKey ¶
GetSignalPrefixKey gets signal prefix store key
func GetSuccessVersionKey ¶
GetSuccessVersionKey gets successful version store key
func UintToHexString ¶
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
Click to show internal directories.
Click to hide internal directories.