Documentation ¶
Index ¶
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- type Minter
- func (*Minter) Descriptor() ([]byte, []int)
- func (m *Minter) GetPeriods() []*MintingPeriod
- func (m *Minter) GetStart() time.Time
- func (m *Minter) Marshal() (dAtA []byte, err error)
- func (m *Minter) MarshalTo(dAtA []byte) (int, error)
- func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Minter) ProtoMessage()
- func (m *Minter) Reset()
- func (m *Minter) Size() (n int)
- func (m *Minter) String() string
- func (m *Minter) Unmarshal(dAtA []byte) error
- func (m *Minter) XXX_DiscardUnknown()
- func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Minter) XXX_Merge(src proto.Message)
- func (m *Minter) XXX_Size() int
- func (m *Minter) XXX_Unmarshal(b []byte) error
- type MinterState
- func (*MinterState) Descriptor() ([]byte, []int)
- func (m *MinterState) GetLastMintBlockTime() time.Time
- func (m *MinterState) GetPosition() int32
- func (m *MinterState) Marshal() (dAtA []byte, err error)
- func (m *MinterState) MarshalTo(dAtA []byte) (int, error)
- func (m *MinterState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MinterState) ProtoMessage()
- func (m *MinterState) Reset()
- func (m *MinterState) Size() (n int)
- func (m *MinterState) String() string
- func (m *MinterState) Unmarshal(dAtA []byte) error
- func (m *MinterState) XXX_DiscardUnknown()
- func (m *MinterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinterState) XXX_Merge(src proto.Message)
- func (m *MinterState) XXX_Size() int
- func (m *MinterState) XXX_Unmarshal(b []byte) error
- type MintingPeriod
- func (*MintingPeriod) Descriptor() ([]byte, []int)
- func (m *MintingPeriod) GetPeriodEnd() *time.Time
- func (m *MintingPeriod) GetPeriodicReductionMinter() *PeriodicReductionMinter
- func (m *MintingPeriod) GetPosition() int32
- func (m *MintingPeriod) GetTimeLinearMinter() *TimeLinearMinter
- func (m *MintingPeriod) GetType() string
- func (m *MintingPeriod) Marshal() (dAtA []byte, err error)
- func (m *MintingPeriod) MarshalTo(dAtA []byte) (int, error)
- func (m *MintingPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MintingPeriod) ProtoMessage()
- func (m *MintingPeriod) Reset()
- func (m *MintingPeriod) Size() (n int)
- func (m *MintingPeriod) String() string
- func (m *MintingPeriod) Unmarshal(dAtA []byte) error
- func (m *MintingPeriod) XXX_DiscardUnknown()
- func (m *MintingPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MintingPeriod) XXX_Merge(src proto.Message)
- func (m *MintingPeriod) XXX_Size() int
- func (m *MintingPeriod) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMintDenom() string
- func (m *Params) GetMinter() Minter
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PeriodicReductionMinter
- func (*PeriodicReductionMinter) Descriptor() ([]byte, []int)
- func (m *PeriodicReductionMinter) GetMintPeriod() int32
- func (m *PeriodicReductionMinter) GetReductionPeriodLength() int32
- func (m *PeriodicReductionMinter) Marshal() (dAtA []byte, err error)
- func (m *PeriodicReductionMinter) MarshalTo(dAtA []byte) (int, error)
- func (m *PeriodicReductionMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PeriodicReductionMinter) ProtoMessage()
- func (m *PeriodicReductionMinter) Reset()
- func (m *PeriodicReductionMinter) Size() (n int)
- func (m *PeriodicReductionMinter) String() string
- func (m *PeriodicReductionMinter) Unmarshal(dAtA []byte) error
- func (m *PeriodicReductionMinter) XXX_DiscardUnknown()
- func (m *PeriodicReductionMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeriodicReductionMinter) XXX_Merge(src proto.Message)
- func (m *PeriodicReductionMinter) XXX_Size() int
- func (m *PeriodicReductionMinter) XXX_Unmarshal(b []byte) error
- type TimeLinearMinter
- func (*TimeLinearMinter) Descriptor() ([]byte, []int)
- func (m *TimeLinearMinter) Marshal() (dAtA []byte, err error)
- func (m *TimeLinearMinter) MarshalTo(dAtA []byte) (int, error)
- func (m *TimeLinearMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TimeLinearMinter) ProtoMessage()
- func (m *TimeLinearMinter) Reset()
- func (m *TimeLinearMinter) Size() (n int)
- func (m *TimeLinearMinter) String() string
- func (m *TimeLinearMinter) Unmarshal(dAtA []byte) error
- func (m *TimeLinearMinter) XXX_DiscardUnknown()
- func (m *TimeLinearMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TimeLinearMinter) XXX_Merge(src proto.Message)
- func (m *TimeLinearMinter) XXX_Size() int
- func (m *TimeLinearMinter) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthMinter = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMinter = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMinter = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
Types ¶
type Minter ¶
type Minter struct { Start time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start"` Periods []*MintingPeriod `protobuf:"bytes,2,rep,name=periods,proto3" json:"periods,omitempty"` }
func (*Minter) Descriptor ¶
func (*Minter) GetPeriods ¶
func (m *Minter) GetPeriods() []*MintingPeriod
func (*Minter) MarshalToSizedBuffer ¶
func (*Minter) ProtoMessage ¶
func (*Minter) ProtoMessage()
func (*Minter) XXX_DiscardUnknown ¶
func (m *Minter) XXX_DiscardUnknown()
func (*Minter) XXX_Marshal ¶
func (*Minter) XXX_Unmarshal ¶
type MinterState ¶
type MinterState struct { Position int32 `protobuf:"varint,1,opt,name=position,proto3" json:"position,omitempty"` AmountMinted github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */ RemainderToMint github_com_cosmos_cosmos_sdk_types.Dec `` /* 148-byte string literal not displayed */ LastMintBlockTime time.Time `protobuf:"bytes,4,opt,name=last_mint_block_time,json=lastMintBlockTime,proto3,stdtime" json:"last_mint_block_time"` RemainderFromPreviousPeriod github_com_cosmos_cosmos_sdk_types.Dec `` /* 186-byte string literal not displayed */ }
func (*MinterState) Descriptor ¶
func (*MinterState) Descriptor() ([]byte, []int)
func (*MinterState) GetLastMintBlockTime ¶
func (m *MinterState) GetLastMintBlockTime() time.Time
func (*MinterState) GetPosition ¶
func (m *MinterState) GetPosition() int32
func (*MinterState) Marshal ¶
func (m *MinterState) Marshal() (dAtA []byte, err error)
func (*MinterState) MarshalToSizedBuffer ¶
func (m *MinterState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MinterState) ProtoMessage ¶
func (*MinterState) ProtoMessage()
func (*MinterState) Reset ¶
func (m *MinterState) Reset()
func (*MinterState) Size ¶
func (m *MinterState) Size() (n int)
func (*MinterState) String ¶
func (m *MinterState) String() string
func (*MinterState) Unmarshal ¶
func (m *MinterState) Unmarshal(dAtA []byte) error
func (*MinterState) XXX_DiscardUnknown ¶
func (m *MinterState) XXX_DiscardUnknown()
func (*MinterState) XXX_Marshal ¶
func (m *MinterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinterState) XXX_Merge ¶
func (m *MinterState) XXX_Merge(src proto.Message)
func (*MinterState) XXX_Size ¶
func (m *MinterState) XXX_Size() int
func (*MinterState) XXX_Unmarshal ¶
func (m *MinterState) XXX_Unmarshal(b []byte) error
type MintingPeriod ¶
type MintingPeriod struct { Position int32 `protobuf:"varint,1,opt,name=position,proto3" json:"position,omitempty"` PeriodEnd *time.Time `protobuf:"bytes,2,opt,name=period_end,json=periodEnd,proto3,stdtime" json:"period_end,omitempty"` // types: // // NO_MINTING; // TIME_LINEAR_MINTER; // PERIODIC_REDUCTION_MINTER; Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` TimeLinearMinter *TimeLinearMinter `protobuf:"bytes,4,opt,name=time_linear_minter,json=timeLinearMinter,proto3" json:"time_linear_minter,omitempty"` PeriodicReductionMinter *PeriodicReductionMinter `` /* 132-byte string literal not displayed */ }
func (*MintingPeriod) Descriptor ¶
func (*MintingPeriod) Descriptor() ([]byte, []int)
func (*MintingPeriod) GetPeriodEnd ¶
func (m *MintingPeriod) GetPeriodEnd() *time.Time
func (*MintingPeriod) GetPeriodicReductionMinter ¶
func (m *MintingPeriod) GetPeriodicReductionMinter() *PeriodicReductionMinter
func (*MintingPeriod) GetPosition ¶
func (m *MintingPeriod) GetPosition() int32
func (*MintingPeriod) GetTimeLinearMinter ¶
func (m *MintingPeriod) GetTimeLinearMinter() *TimeLinearMinter
func (*MintingPeriod) GetType ¶
func (m *MintingPeriod) GetType() string
func (*MintingPeriod) Marshal ¶
func (m *MintingPeriod) Marshal() (dAtA []byte, err error)
func (*MintingPeriod) MarshalToSizedBuffer ¶
func (m *MintingPeriod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MintingPeriod) ProtoMessage ¶
func (*MintingPeriod) ProtoMessage()
func (*MintingPeriod) Reset ¶
func (m *MintingPeriod) Reset()
func (*MintingPeriod) Size ¶
func (m *MintingPeriod) Size() (n int)
func (*MintingPeriod) String ¶
func (m *MintingPeriod) String() string
func (*MintingPeriod) Unmarshal ¶
func (m *MintingPeriod) Unmarshal(dAtA []byte) error
func (*MintingPeriod) XXX_DiscardUnknown ¶
func (m *MintingPeriod) XXX_DiscardUnknown()
func (*MintingPeriod) XXX_Marshal ¶
func (m *MintingPeriod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MintingPeriod) XXX_Merge ¶
func (m *MintingPeriod) XXX_Merge(src proto.Message)
func (*MintingPeriod) XXX_Size ¶
func (m *MintingPeriod) XXX_Size() int
func (*MintingPeriod) XXX_Unmarshal ¶
func (m *MintingPeriod) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` Minter Minter `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetMintDenom ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PeriodicReductionMinter ¶
type PeriodicReductionMinter struct { // mint_period in seconds MintPeriod int32 `protobuf:"varint,1,opt,name=mint_period,json=mintPeriod,proto3" json:"mint_period,omitempty"` MintAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */ ReductionPeriodLength int32 `` /* 127-byte string literal not displayed */ ReductionFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */ }
func (*PeriodicReductionMinter) Descriptor ¶
func (*PeriodicReductionMinter) Descriptor() ([]byte, []int)
func (*PeriodicReductionMinter) GetMintPeriod ¶
func (m *PeriodicReductionMinter) GetMintPeriod() int32
func (*PeriodicReductionMinter) GetReductionPeriodLength ¶
func (m *PeriodicReductionMinter) GetReductionPeriodLength() int32
func (*PeriodicReductionMinter) Marshal ¶
func (m *PeriodicReductionMinter) Marshal() (dAtA []byte, err error)
func (*PeriodicReductionMinter) MarshalTo ¶
func (m *PeriodicReductionMinter) MarshalTo(dAtA []byte) (int, error)
func (*PeriodicReductionMinter) MarshalToSizedBuffer ¶
func (m *PeriodicReductionMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PeriodicReductionMinter) ProtoMessage ¶
func (*PeriodicReductionMinter) ProtoMessage()
func (*PeriodicReductionMinter) Reset ¶
func (m *PeriodicReductionMinter) Reset()
func (*PeriodicReductionMinter) Size ¶
func (m *PeriodicReductionMinter) Size() (n int)
func (*PeriodicReductionMinter) String ¶
func (m *PeriodicReductionMinter) String() string
func (*PeriodicReductionMinter) Unmarshal ¶
func (m *PeriodicReductionMinter) Unmarshal(dAtA []byte) error
func (*PeriodicReductionMinter) XXX_DiscardUnknown ¶
func (m *PeriodicReductionMinter) XXX_DiscardUnknown()
func (*PeriodicReductionMinter) XXX_Marshal ¶
func (m *PeriodicReductionMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeriodicReductionMinter) XXX_Merge ¶
func (m *PeriodicReductionMinter) XXX_Merge(src proto.Message)
func (*PeriodicReductionMinter) XXX_Size ¶
func (m *PeriodicReductionMinter) XXX_Size() int
func (*PeriodicReductionMinter) XXX_Unmarshal ¶
func (m *PeriodicReductionMinter) XXX_Unmarshal(b []byte) error
type TimeLinearMinter ¶
type TimeLinearMinter struct {
Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}
func (*TimeLinearMinter) Descriptor ¶
func (*TimeLinearMinter) Descriptor() ([]byte, []int)
func (*TimeLinearMinter) Marshal ¶
func (m *TimeLinearMinter) Marshal() (dAtA []byte, err error)
func (*TimeLinearMinter) MarshalToSizedBuffer ¶
func (m *TimeLinearMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TimeLinearMinter) ProtoMessage ¶
func (*TimeLinearMinter) ProtoMessage()
func (*TimeLinearMinter) Reset ¶
func (m *TimeLinearMinter) Reset()
func (*TimeLinearMinter) Size ¶
func (m *TimeLinearMinter) Size() (n int)
func (*TimeLinearMinter) String ¶
func (m *TimeLinearMinter) String() string
func (*TimeLinearMinter) Unmarshal ¶
func (m *TimeLinearMinter) Unmarshal(dAtA []byte) error
func (*TimeLinearMinter) XXX_DiscardUnknown ¶
func (m *TimeLinearMinter) XXX_DiscardUnknown()
func (*TimeLinearMinter) XXX_Marshal ¶
func (m *TimeLinearMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TimeLinearMinter) XXX_Merge ¶
func (m *TimeLinearMinter) XXX_Merge(src proto.Message)
func (*TimeLinearMinter) XXX_Size ¶
func (m *TimeLinearMinter) XXX_Size() int
func (*TimeLinearMinter) XXX_Unmarshal ¶
func (m *TimeLinearMinter) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.