Documentation ¶
Index ¶
- Constants
- Variables
- type Bandwidth
- func (b Bandwidth) Add(v Bandwidth) Bandwidth
- func (b Bandwidth) CeilTo(precision sdk.Int) Bandwidth
- func (*Bandwidth) Descriptor() ([]byte, []int)
- func (b Bandwidth) IsAllLTE(v Bandwidth) bool
- func (b Bandwidth) IsAllPositive() bool
- func (b Bandwidth) IsAllZero() bool
- func (b Bandwidth) IsAnyGT(v Bandwidth) bool
- func (b Bandwidth) IsAnyNegative() bool
- func (b Bandwidth) IsAnyZero() bool
- func (m *Bandwidth) Marshal() (dAtA []byte, err error)
- func (m *Bandwidth) MarshalTo(dAtA []byte) (int, error)
- func (m *Bandwidth) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bandwidth) ProtoMessage()
- func (m *Bandwidth) Reset()
- func (m *Bandwidth) Size() (n int)
- func (m *Bandwidth) String() string
- func (b Bandwidth) Sub(v Bandwidth) Bandwidth
- func (b Bandwidth) Sum() sdk.Int
- func (m *Bandwidth) Unmarshal(dAtA []byte) error
- func (m *Bandwidth) XXX_DiscardUnknown()
- func (m *Bandwidth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bandwidth) XXX_Merge(src proto.Message)
- func (m *Bandwidth) XXX_Size() int
- func (m *Bandwidth) XXX_Unmarshal(b []byte) error
- 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 PaginatedIterator
- 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 ( // Bech32MainPrefix defines the Bech32 prefix of an account address. Bech32MainPrefix = "sent" // 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 address. Bech32PrefixAccAddr = Bech32MainPrefix // Bech32PrefixAccPub defines the Bech32 prefix of an account public key. Bech32PrefixAccPub = Bech32MainPrefix + PrefixPublic // Bech32PrefixValAddr defines the Bech32 prefix of a validator operator address. Bech32PrefixValAddr = Bech32MainPrefix + PrefixValidator + PrefixOperator // Bech32PrefixValPub defines the Bech32 prefix of a validator operator public key. Bech32PrefixValPub = Bech32MainPrefix + PrefixValidator + PrefixOperator + PrefixPublic // Bech32PrefixConsAddr defines the Bech32 prefix of a validator consensus address. Bech32PrefixConsAddr = Bech32MainPrefix + PrefixValidator + PrefixConsensus // Bech32PrefixConsPub defines the Bech32 prefix of a validator consensus public key. Bech32PrefixConsPub = Bech32MainPrefix + PrefixValidator + PrefixConsensus + PrefixPublic // Bech32PrefixProvAddr defines the Bech32 prefix of a provider address. Bech32PrefixProvAddr = Bech32MainPrefix + PrefixProvider // Bech32PrefixProvPub defines the Bech32 prefix of a provider public key. Bech32PrefixProvPub = Bech32MainPrefix + PrefixProvider + PrefixPublic // Bech32PrefixNodeAddr defines the Bech32 prefix of a node address. Bech32PrefixNodeAddr = Bech32MainPrefix + PrefixNode // Bech32PrefixNodePub defines the Bech32 prefix of a node public key. Bech32PrefixNodePub = Bech32MainPrefix + PrefixNode + PrefixPublic )
Variables ¶
View Source
var ( Kilobyte = sdk.NewInt(1000) Megabyte = sdk.NewInt(1000).Mul(Kilobyte) Gigabyte = sdk.NewInt(1000).Mul(Megabyte) )
View Source
var ( ErrInvalidLengthBandwidth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBandwidth = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBandwidth = fmt.Errorf("proto: unexpected end of group") )
View Source
var Status_name = map[int32]string{
0: "STATUS_UNKNOWN",
1: "STATUS_ACTIVE",
2: "STATUS_INACTIVE_PENDING",
3: "STATUS_INACTIVE",
}
View Source
var Status_value = map[string]int32{
"STATUS_UNKNOWN": 0,
"STATUS_ACTIVE": 1,
"STATUS_INACTIVE_PENDING": 2,
"STATUS_INACTIVE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Bandwidth ¶
type Bandwidth struct { Upload github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=upload,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"upload"` Download github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=download,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"download"` }
func NewBandwidth ¶
func NewBandwidthFromInt64 ¶
func (*Bandwidth) Descriptor ¶ added in v0.6.0
func (Bandwidth) IsAllPositive ¶ added in v0.6.0
func (Bandwidth) IsAnyNegative ¶ added in v0.3.0
func (*Bandwidth) MarshalToSizedBuffer ¶ added in v0.6.0
func (*Bandwidth) ProtoMessage ¶ added in v0.6.0
func (*Bandwidth) ProtoMessage()
func (*Bandwidth) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *Bandwidth) XXX_DiscardUnknown()
func (*Bandwidth) XXX_Marshal ¶ added in v0.6.0
func (*Bandwidth) XXX_Unmarshal ¶ added in v0.6.0
type Config ¶ added in v0.3.0
func (*Config) GetBech32NodeAddrPrefix ¶ added in v0.3.0
func (*Config) GetBech32NodePubPrefix ¶ added in v0.3.0
func (*Config) GetBech32ProviderAddrPrefix ¶ added in v0.3.0
func (*Config) GetBech32ProviderPubPrefix ¶ added in v0.3.0
func (*Config) SetBech32PrefixForNode ¶ added in v0.3.0
func (*Config) SetBech32PrefixForProvider ¶ added in v0.3.0
type NodeAddress ¶ added in v0.3.0
type NodeAddress []byte
func NodeAddressFromBech32 ¶ added in v0.3.0
func NodeAddressFromBech32(s string) (NodeAddress, error)
func (NodeAddress) Bytes ¶ added in v0.3.0
func (n NodeAddress) Bytes() []byte
func (NodeAddress) Empty ¶ added in v0.3.0
func (n NodeAddress) Empty() bool
func (NodeAddress) Marshal ¶ added in v0.3.0
func (n NodeAddress) Marshal() ([]byte, error)
func (NodeAddress) MarshalJSON ¶ added in v0.3.0
func (n NodeAddress) MarshalJSON() ([]byte, error)
func (NodeAddress) MarshalYAML ¶ added in v0.3.0
func (n NodeAddress) MarshalYAML() (interface{}, error)
func (NodeAddress) String ¶ added in v0.3.0
func (n NodeAddress) String() string
func (*NodeAddress) Unmarshal ¶ added in v0.3.0
func (n *NodeAddress) Unmarshal(data []byte) error
func (*NodeAddress) UnmarshalJSON ¶ added in v0.3.0
func (n *NodeAddress) UnmarshalJSON(data []byte) error
func (*NodeAddress) UnmarshalYAML ¶ added in v0.3.0
func (n *NodeAddress) UnmarshalYAML(data []byte) error
type PaginatedIterator ¶ added in v0.4.0
type PaginatedIterator struct {
// contains filtered or unexported fields
}
func NewPaginatedIterator ¶ added in v0.4.0
func NewPaginatedIterator(items ...sdk.Iterator) *PaginatedIterator
func (*PaginatedIterator) Close ¶ added in v0.4.0
func (p *PaginatedIterator) Close()
func (*PaginatedIterator) Limit ¶ added in v0.4.0
func (p *PaginatedIterator) Limit(limit int64, iterFunc func(iter sdk.Iterator))
func (*PaginatedIterator) Skip ¶ added in v0.4.0
func (p *PaginatedIterator) Skip(skip int64)
type ProvAddress ¶ added in v0.3.0
type ProvAddress []byte
func ProvAddressFromBech32 ¶ added in v0.3.0
func ProvAddressFromBech32(s string) (ProvAddress, error)
func (ProvAddress) Bytes ¶ added in v0.3.0
func (p ProvAddress) Bytes() []byte
func (ProvAddress) Empty ¶ added in v0.3.0
func (p ProvAddress) Empty() bool
func (ProvAddress) Marshal ¶ added in v0.3.0
func (p ProvAddress) Marshal() ([]byte, error)
func (ProvAddress) MarshalJSON ¶ added in v0.3.0
func (p ProvAddress) MarshalJSON() ([]byte, error)
func (ProvAddress) MarshalYAML ¶ added in v0.3.0
func (p ProvAddress) MarshalYAML() (interface{}, error)
func (ProvAddress) String ¶ added in v0.3.0
func (p ProvAddress) String() string
func (*ProvAddress) Unmarshal ¶ added in v0.3.0
func (p *ProvAddress) Unmarshal(data []byte) error
func (*ProvAddress) UnmarshalJSON ¶ added in v0.3.0
func (p *ProvAddress) UnmarshalJSON(data []byte) error
func (*ProvAddress) UnmarshalYAML ¶ added in v0.3.0
func (p *ProvAddress) UnmarshalYAML(data []byte) error
type Status ¶ added in v0.3.0
type Status int32
func StatusFromString ¶ added in v0.3.0
func (Status) EnumDescriptor ¶ added in v0.6.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.