Documentation ¶
Index ¶
- Variables
- type Bandwidth
- func (b Bandwidth) Add(v Bandwidth) Bandwidth
- func (b Bandwidth) CeilTo(pre sdkmath.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) IsAnyNil() 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() sdkmath.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 Price
- func (p Price) Add(v Price) Price
- func (p Price) BasePrice() sdk.DecCoin
- func (p Price) Copy() Price
- func (*Price) Descriptor() ([]byte, []int)
- func (p Price) IsEqual(v Price) bool
- func (p Price) IsValid() bool
- func (m *Price) Marshal() (dAtA []byte, err error)
- func (m *Price) MarshalTo(dAtA []byte) (int, error)
- func (m *Price) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Price) ProtoMessage()
- func (p Price) QuotePrice() sdk.Coin
- func (m *Price) Reset()
- func (m *Price) Size() (n int)
- func (p Price) String() string
- func (p Price) Sub(v Price) Price
- func (m *Price) Unmarshal(dAtA []byte) error
- func (p Price) UpdateQuoteValue(ctx sdk.Context, fn QuotePriceFunc) (Price, error)
- func (p Price) Validate() error
- func (m *Price) XXX_DiscardUnknown()
- func (m *Price) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Price) XXX_Merge(src proto.Message)
- func (m *Price) XXX_Size() int
- func (m *Price) XXX_Unmarshal(b []byte) error
- type Prices
- func (p Prices) Add(items ...Price) Prices
- func (p Prices) AmountOf(denom string) (sdkmath.LegacyDec, sdkmath.Int)
- func (p Prices) Copy() Prices
- func (p Prices) Find(denom string) (Price, bool)
- func (p Prices) IndexOf(denom string) int
- func (p Prices) IsEqual(v Prices) bool
- func (p Prices) IsSorted() bool
- func (p Prices) IsValid() bool
- func (p Prices) Len() int
- func (p Prices) Less(i, j int) bool
- func (p Prices) Sort() Prices
- func (p Prices) String() string
- func (p Prices) Sub(items ...Price) Prices
- func (p Prices) Swap(i, j int)
- func (p Prices) Validate() error
- type QuotePriceFunc
- type RenewalPricePolicy
- type Status
Constants ¶
This section is empty.
Variables ¶
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 ( ErrInvalidLengthPrice = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPrice = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPrice = fmt.Errorf("proto: unexpected end of group") )
View Source
var RenewalPricePolicy_name = map[int32]string{
0: "RENEWAL_PRICE_POLICY_UNSPECIFIED",
1: "RENEWAL_PRICE_POLICY_IF_LESSER",
2: "RENEWAL_PRICE_POLICY_IF_LESSER_OR_EQUAL",
3: "RENEWAL_PRICE_POLICY_IF_EQUAL",
4: "RENEWAL_PRICE_POLICY_IF_NOT_EQUAL",
5: "RENEWAL_PRICE_POLICY_IF_GREATER",
6: "RENEWAL_PRICE_POLICY_IF_GREATER_OR_EQUAL",
7: "RENEWAL_PRICE_POLICY_ALWAYS",
}
View Source
var RenewalPricePolicy_value = map[string]int32{
"RENEWAL_PRICE_POLICY_UNSPECIFIED": 0,
"RENEWAL_PRICE_POLICY_IF_LESSER": 1,
"RENEWAL_PRICE_POLICY_IF_LESSER_OR_EQUAL": 2,
"RENEWAL_PRICE_POLICY_IF_EQUAL": 3,
"RENEWAL_PRICE_POLICY_IF_NOT_EQUAL": 4,
"RENEWAL_PRICE_POLICY_IF_GREATER": 5,
"RENEWAL_PRICE_POLICY_IF_GREATER_OR_EQUAL": 6,
"RENEWAL_PRICE_POLICY_ALWAYS": 7,
}
View Source
var Status_name = map[int32]string{
0: "STATUS_UNSPECIFIED",
1: "STATUS_ACTIVE",
2: "STATUS_INACTIVE_PENDING",
3: "STATUS_INACTIVE",
}
View Source
var Status_value = map[string]int32{
"STATUS_UNSPECIFIED": 0,
"STATUS_ACTIVE": 1,
"STATUS_INACTIVE_PENDING": 2,
"STATUS_INACTIVE": 3,
}
Functions ¶
This section is empty.
Types ¶
type Bandwidth ¶
type Bandwidth struct { Upload cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=upload,proto3,customtype=cosmossdk.io/math.Int" json:"upload"` Download cosmossdk_io_math.Int `protobuf:"bytes,2,opt,name=download,proto3,customtype=cosmossdk.io/math.Int" json:"download"` }
func NewBandwidth ¶
func NewBandwidthFromInt64 ¶
func (*Bandwidth) Descriptor ¶
func (Bandwidth) IsAllPositive ¶
func (Bandwidth) IsAnyNegative ¶
func (*Bandwidth) MarshalToSizedBuffer ¶
func (*Bandwidth) ProtoMessage ¶
func (*Bandwidth) ProtoMessage()
func (*Bandwidth) XXX_DiscardUnknown ¶
func (m *Bandwidth) XXX_DiscardUnknown()
func (*Bandwidth) XXX_Marshal ¶
func (*Bandwidth) XXX_Unmarshal ¶
type Price ¶
type Price struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` BaseValue cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=base_value,json=baseValue,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"base_value"` QuoteValue cosmossdk_io_math.Int `protobuf:"bytes,3,opt,name=quote_value,json=quoteValue,proto3,customtype=cosmossdk.io/math.Int" json:"quote_value"` }
func NewPriceFromString ¶
func (*Price) Descriptor ¶
func (*Price) ProtoMessage ¶
func (*Price) ProtoMessage()
func (Price) QuotePrice ¶
func (Price) UpdateQuoteValue ¶
func (*Price) XXX_DiscardUnknown ¶
func (m *Price) XXX_DiscardUnknown()
func (*Price) XXX_Marshal ¶
func (*Price) XXX_Unmarshal ¶
type QuotePriceFunc ¶
type RenewalPricePolicy ¶
type RenewalPricePolicy int32
Enum for renewal price policies
const ( RenewalPricePolicyUnspecified RenewalPricePolicy = 0 RenewalPricePolicyIfLesser RenewalPricePolicy = 1 RenewalPricePolicyIfLesserOrEqual RenewalPricePolicy = 2 RenewalPricePolicyIfEqual RenewalPricePolicy = 3 RenewalPricePolicyIfNotEqual RenewalPricePolicy = 4 RenewalPricePolicyIfGreater RenewalPricePolicy = 5 RenewalPricePolicyIfGreaterOrEqual RenewalPricePolicy = 6 RenewalPricePolicyAlways RenewalPricePolicy = 7 )
func RenewalPricePolicyFromString ¶
func RenewalPricePolicyFromString(s string) RenewalPricePolicy
RenewalPricePolicyFromString converts a string to a RenewalPricePolicy.
func (RenewalPricePolicy) EnumDescriptor ¶
func (RenewalPricePolicy) EnumDescriptor() ([]byte, []int)
func (RenewalPricePolicy) Equal ¶
func (r RenewalPricePolicy) Equal(v RenewalPricePolicy) bool
Equal checks if two RenewalPricePolicy values are equal.
func (RenewalPricePolicy) IsValid ¶
func (r RenewalPricePolicy) IsValid() bool
IsValid checks whether the RenewalPricePolicy is a valid value.
func (RenewalPricePolicy) String ¶
func (r RenewalPricePolicy) String() string
String converts a RenewalPricePolicy to its string representation.
func (RenewalPricePolicy) Validate ¶
func (r RenewalPricePolicy) Validate(curr, prev Price) error
Click to show internal directories.
Click to hide internal directories.