Documentation ¶
Index ¶
- Constants
- Variables
- type Bandwidth
- func (b Bandwidth) Add(v Bandwidth) Bandwidth
- func (b Bandwidth) CeilTo(precision sdk.Int) Bandwidth
- func (b Bandwidth) IsAllLTE(v Bandwidth) bool
- func (b Bandwidth) IsAllZero() bool
- func (b Bandwidth) IsAnyGT(v Bandwidth) bool
- func (b Bandwidth) IsAnyNegative() bool
- func (b Bandwidth) IsAnyZero() bool
- func (b Bandwidth) IsValid() bool
- func (b Bandwidth) String() string
- func (b Bandwidth) Sub(v Bandwidth) Bandwidth
- func (b Bandwidth) Sum() sdk.Int
- type Config
- func (c *Config) GetBech32NodeAddrPrefix() string
- func (c *Config) GetBech32NodePubPrefix() string
- func (c *Config) GetBech32ProviderAddrPrefix() string
- func (c *Config) GetBech32ProviderPubPrefix() string
- func (c *Config) Seal()
- func (c *Config) SetBech32PrefixForNode(addr, pub string)
- func (c *Config) SetBech32PrefixForProvider(addr, pub string)
- type NodeAddress
- func (n NodeAddress) Bytes() []byte
- func (n NodeAddress) Empty() bool
- func (n NodeAddress) Equals(address sdk.Address) bool
- func (n NodeAddress) Format(f fmt.State, c rune)
- func (n NodeAddress) Marshal() ([]byte, error)
- func (n NodeAddress) MarshalJSON() ([]byte, error)
- func (n NodeAddress) MarshalYAML() (interface{}, error)
- func (n NodeAddress) String() string
- func (n *NodeAddress) Unmarshal(data []byte) error
- func (n *NodeAddress) UnmarshalJSON(data []byte) error
- func (n *NodeAddress) UnmarshalYAML(data []byte) error
- type ProvAddress
- func (p ProvAddress) Bytes() []byte
- func (p ProvAddress) Empty() bool
- func (p ProvAddress) Equals(address sdk.Address) bool
- func (p ProvAddress) Format(f fmt.State, c rune)
- func (p ProvAddress) Marshal() ([]byte, error)
- func (p ProvAddress) MarshalJSON() ([]byte, error)
- func (p ProvAddress) MarshalYAML() (interface{}, error)
- func (p ProvAddress) String() string
- func (p *ProvAddress) Unmarshal(data []byte) error
- func (p *ProvAddress) UnmarshalJSON(data []byte) error
- func (p *ProvAddress) UnmarshalYAML(data []byte) error
- type Status
Constants ¶
View Source
const ( // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32MainPrefix = "moove" // PrefixValidator is the prefix for validator keys PrefixValidator = "val" // PrefixConsensus is the prefix for consensus keys PrefixConsensus = "cons" // PrefixPublic is the prefix for public keys PrefixPublic = "pub" // PrefixOperator is the prefix for operator keys PrefixOperator = "oper" // PrefixProvider is the prefix for provider keys PrefixProvider = "prov" // PrefixNode is the prefix for node keys PrefixNode = "node" // Bech32PrefixAccAddr defines the Bech32 prefix of an account's address Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account's public key Bech32PrefixAccPub = Bech32MainPrefix + PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator's operator address Bech32PrefixValAddr = Bech32MainPrefix + PrefixValidator + PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator's operator public key Bech32PrefixValPub = Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a validator's consensus address Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a validator's consensus public key Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic // Bech32PrefixProvAddr defines the Bech32 prefix of a providers's address Bech32PrefixProvAddr = Bech32MainPrefix + PrefixProvider // Bech32PrefixProvPub defines the Bech32 prefix of a providers's public key Bech32PrefixProvPub = Bech32MainPrefix + PrefixProvider + PrefixPublic // Bech32PrefixNodeAddr defines the Bech32 prefix of a node's address Bech32PrefixNodeAddr = Bech32MainPrefix + PrefixNode // Bech32PrefixNodePub defines the Bech32 prefix of a node's public key Bech32PrefixNodePub = Bech32MainPrefix + PrefixNode + PrefixPublic )
View Source
const ( ErrorCodeMarshal = iota + 101 ErrorCodeUnmarshal )
View Source
const ( ErrorMsgMarshal = "error occurred while marshalling the data" ErrorMsgUnmarshal = "error occurred while unmarshalling the data" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Config ¶
func (*Config) GetBech32NodeAddrPrefix ¶
func (*Config) GetBech32NodePubPrefix ¶
func (*Config) GetBech32ProviderAddrPrefix ¶
func (*Config) GetBech32ProviderPubPrefix ¶
func (*Config) SetBech32PrefixForNode ¶
func (*Config) SetBech32PrefixForProvider ¶
type NodeAddress ¶
type NodeAddress []byte
func NodeAddressFromBech32 ¶
func NodeAddressFromBech32(s string) (NodeAddress, error)
func (NodeAddress) Bytes ¶
func (n NodeAddress) Bytes() []byte
func (NodeAddress) Empty ¶
func (n NodeAddress) Empty() bool
func (NodeAddress) Marshal ¶
func (n NodeAddress) Marshal() ([]byte, error)
func (NodeAddress) MarshalJSON ¶
func (n NodeAddress) MarshalJSON() ([]byte, error)
func (NodeAddress) MarshalYAML ¶
func (n NodeAddress) MarshalYAML() (interface{}, error)
func (NodeAddress) String ¶
func (n NodeAddress) String() string
func (*NodeAddress) Unmarshal ¶
func (n *NodeAddress) Unmarshal(data []byte) error
func (*NodeAddress) UnmarshalJSON ¶
func (n *NodeAddress) UnmarshalJSON(data []byte) error
func (*NodeAddress) UnmarshalYAML ¶
func (n *NodeAddress) UnmarshalYAML(data []byte) error
type ProvAddress ¶
type ProvAddress []byte
func ProvAddressFromBech32 ¶
func ProvAddressFromBech32(s string) (ProvAddress, error)
func (ProvAddress) Bytes ¶
func (p ProvAddress) Bytes() []byte
func (ProvAddress) Empty ¶
func (p ProvAddress) Empty() bool
func (ProvAddress) Marshal ¶
func (p ProvAddress) Marshal() ([]byte, error)
func (ProvAddress) MarshalJSON ¶
func (p ProvAddress) MarshalJSON() ([]byte, error)
func (ProvAddress) MarshalYAML ¶
func (p ProvAddress) MarshalYAML() (interface{}, error)
func (ProvAddress) String ¶
func (p ProvAddress) String() string
func (*ProvAddress) Unmarshal ¶
func (p *ProvAddress) Unmarshal(data []byte) error
func (*ProvAddress) UnmarshalJSON ¶
func (p *ProvAddress) UnmarshalJSON(data []byte) error
func (*ProvAddress) UnmarshalYAML ¶
func (p *ProvAddress) UnmarshalYAML(data []byte) error
Click to show internal directories.
Click to hide internal directories.