Documentation ¶
Index ¶
- Constants
- Variables
- func InflationKey(t time.Time) []byte
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Inflation
- func (*Inflation) Descriptor() ([]byte, []int)
- func (m *Inflation) Marshal() (dAtA []byte, err error)
- func (m *Inflation) MarshalTo(dAtA []byte) (int, error)
- func (m *Inflation) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Inflation) ProtoMessage()
- func (m *Inflation) Reset()
- func (m *Inflation) Size() (n int)
- func (m *Inflation) String() string
- func (m *Inflation) Unmarshal(dAtA []byte) error
- func (i *Inflation) Validate() error
- func (m *Inflation) XXX_DiscardUnknown()
- func (m *Inflation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Inflation) XXX_Merge(src proto.Message)
- func (m *Inflation) XXX_Size() int
- func (m *Inflation) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( ModuleName = "custommint" StoreKey = ModuleName )
Variables ¶
View Source
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthInflation = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInflation = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInflation = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
InflationKeyPrefix = []byte{0x01}
)
Functions ¶
func InflationKey ¶
Types ¶
type GenesisState ¶
type GenesisState struct { // Field 1: List of inflations included in the genesis state. // - (gogoproto.moretags) = "yaml:\"inflations\"": YAML tag for better representation. // - (gogoproto.nullable) = false: Field is not nullable. Inflations []Inflation `protobuf:"bytes,1,rep,name=inflations,proto3" json:"inflations" yaml:"inflations"` }
GenesisState represents the genesis state for the module.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(inflations []Inflation) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (gs *GenesisState) Validate() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Inflation ¶
type Inflation struct { // Field 1: Maximum inflation rate. // - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec": // Custom type definition for the field. // - (gogoproto.moretags) = "yaml:\"max\"": YAML tag for better representation. // - (gogoproto.nullable) = false: Field is not nullable. Max cosmossdk_io_math.LegacyDec `protobuf:"bytes,1,opt,name=max,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"max" yaml:"max"` // Field 2: Minimum inflation rate. // - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec": // Custom type definition for the field. // - (gogoproto.moretags) = "yaml:\"min\"": YAML tag for better representation. // - (gogoproto.nullable) = false: Field is not nullable. Min cosmossdk_io_math.LegacyDec `protobuf:"bytes,2,opt,name=min,proto3,customtype=cosmossdk.io/math.LegacyDec" json:"min" yaml:"min"` // Field 3: Rate of change of inflation. // - (gogoproto.customtype) = "cosmossdk.io/math.LegacyDec": // Custom type definition for the field. // - (gogoproto.moretags) = "yaml:\"rate_change\"": YAML tag for better representation. // - (gogoproto.nullable) = false: Field is not nullable. RateChange cosmossdk_io_math.LegacyDec `` /* 139-byte string literal not displayed */ // Field 4: Timestamp indicating when the inflation parameters were set. // - (gogoproto.moretags) = "yaml:\"timestamp\"": YAML tag for better representation. // - (gogoproto.nullable) = false: Field is not nullable. // - (gogoproto.stdtime) = true: Use standard time representation for Go. Timestamp time.Time `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"` }
Inflation represents a message for handling inflation parameters.
func (*Inflation) Descriptor ¶
func (*Inflation) MarshalToSizedBuffer ¶
func (*Inflation) ProtoMessage ¶
func (*Inflation) ProtoMessage()
func (*Inflation) XXX_DiscardUnknown ¶
func (m *Inflation) XXX_DiscardUnknown()
func (*Inflation) XXX_Marshal ¶
func (*Inflation) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.