Documentation ¶
Index ¶
- Variables
- func MigrateParams(ctx sdk.Context, storeKey storetypes.StoreKey, ...) error
- type ExponentialStepMinting
- func (*ExponentialStepMinting) Descriptor() ([]byte, []int)
- func (m *ExponentialStepMinting) GetStepDuration() time.Duration
- func (m *ExponentialStepMinting) Marshal() (dAtA []byte, err error)
- func (m *ExponentialStepMinting) MarshalTo(dAtA []byte) (int, error)
- func (m *ExponentialStepMinting) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExponentialStepMinting) ProtoMessage()
- func (m *ExponentialStepMinting) Reset()
- func (m *ExponentialStepMinting) Size() (n int)
- func (m *ExponentialStepMinting) String() string
- func (m *ExponentialStepMinting) Unmarshal(dAtA []byte) error
- func (m *ExponentialStepMinting) XXX_DiscardUnknown()
- func (m *ExponentialStepMinting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExponentialStepMinting) XXX_Merge(src proto.Message)
- func (m *ExponentialStepMinting) XXX_Size() int
- func (m *ExponentialStepMinting) XXX_Unmarshal(b []byte) error
- type LinearMinting
- func (*LinearMinting) Descriptor() ([]byte, []int)
- func (m *LinearMinting) Marshal() (dAtA []byte, err error)
- func (m *LinearMinting) MarshalTo(dAtA []byte) (int, error)
- func (m *LinearMinting) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LinearMinting) ProtoMessage()
- func (m *LinearMinting) Reset()
- func (m *LinearMinting) Size() (n int)
- func (m *LinearMinting) String() string
- func (m *LinearMinting) Unmarshal(dAtA []byte) error
- func (m *LinearMinting) XXX_DiscardUnknown()
- func (m *LinearMinting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LinearMinting) XXX_Merge(src proto.Message)
- func (m *LinearMinting) XXX_Size() int
- func (m *LinearMinting) XXX_Unmarshal(b []byte) error
- type Minter
- func (*Minter) Descriptor() ([]byte, []int)
- func (m *Minter) GetConfig() *types.Any
- func (m *Minter) GetEndTime() *time.Time
- func (m *Minter) GetSequenceId() uint32
- 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 (acc *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) GetSequenceId() uint32
- 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 NoMinting
- func (*NoMinting) Descriptor() ([]byte, []int)
- func (m *NoMinting) Marshal() (dAtA []byte, err error)
- func (m *NoMinting) MarshalTo(dAtA []byte) (int, error)
- func (m *NoMinting) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NoMinting) ProtoMessage()
- func (m *NoMinting) Reset()
- func (m *NoMinting) Size() (n int)
- func (m *NoMinting) String() string
- func (m *NoMinting) Unmarshal(dAtA []byte) error
- func (m *NoMinting) XXX_DiscardUnknown()
- func (m *NoMinting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NoMinting) XXX_Merge(src proto.Message)
- func (m *NoMinting) XXX_Size() int
- func (m *NoMinting) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMintDenom() string
- func (m *Params) GetMinters() []*Minter
- func (m *Params) GetStartTime() time.Time
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (params 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
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") )
View Source
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
View Source
var ParamsKey = []byte{0x00}
Functions ¶
func MigrateParams ¶
func MigrateParams(ctx sdk.Context, storeKey storetypes.StoreKey, legacySubspace subspace.Subspace, cdc codec.BinaryCodec) error
MigrateParams migrates the x/cfeminter module state from the consensus version 2 to version 3. Specifically, it takes the parameters that are currently stored and managed by the x/params module and stores them directly into the x/cfeminter module state. The migration also includes: - cfeminter module refactoring - delete type field from minterConfig - minter config is now of type Any rather than using 2 fields (LinearMinting and ExponentialStepMinting) - MinterConfig was deleted and minters and start-time was moved directly to cfeminter params
Types ¶
type ExponentialStepMinting ¶ added in v1.3.0
type ExponentialStepMinting struct { StepDuration time.Duration `protobuf:"bytes,1,opt,name=step_duration,json=stepDuration,proto3,stdduration" json:"step_duration"` Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"` AmountMultiplier github_com_cosmos_cosmos_sdk_types.Dec `` /* 149-byte string literal not displayed */ }
func (*ExponentialStepMinting) Descriptor ¶ added in v1.3.0
func (*ExponentialStepMinting) Descriptor() ([]byte, []int)
func (*ExponentialStepMinting) GetStepDuration ¶ added in v1.3.0
func (m *ExponentialStepMinting) GetStepDuration() time.Duration
func (*ExponentialStepMinting) Marshal ¶ added in v1.3.0
func (m *ExponentialStepMinting) Marshal() (dAtA []byte, err error)
func (*ExponentialStepMinting) MarshalTo ¶ added in v1.3.0
func (m *ExponentialStepMinting) MarshalTo(dAtA []byte) (int, error)
func (*ExponentialStepMinting) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *ExponentialStepMinting) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExponentialStepMinting) ProtoMessage ¶ added in v1.3.0
func (*ExponentialStepMinting) ProtoMessage()
func (*ExponentialStepMinting) Reset ¶ added in v1.3.0
func (m *ExponentialStepMinting) Reset()
func (*ExponentialStepMinting) Size ¶ added in v1.3.0
func (m *ExponentialStepMinting) Size() (n int)
func (*ExponentialStepMinting) String ¶ added in v1.3.0
func (m *ExponentialStepMinting) String() string
func (*ExponentialStepMinting) Unmarshal ¶ added in v1.3.0
func (m *ExponentialStepMinting) Unmarshal(dAtA []byte) error
func (*ExponentialStepMinting) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *ExponentialStepMinting) XXX_DiscardUnknown()
func (*ExponentialStepMinting) XXX_Marshal ¶ added in v1.3.0
func (m *ExponentialStepMinting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExponentialStepMinting) XXX_Merge ¶ added in v1.3.0
func (m *ExponentialStepMinting) XXX_Merge(src proto.Message)
func (*ExponentialStepMinting) XXX_Size ¶ added in v1.3.0
func (m *ExponentialStepMinting) XXX_Size() int
func (*ExponentialStepMinting) XXX_Unmarshal ¶ added in v1.3.0
func (m *ExponentialStepMinting) XXX_Unmarshal(b []byte) error
type LinearMinting ¶ added in v1.3.0
type LinearMinting 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 (*LinearMinting) Descriptor ¶ added in v1.3.0
func (*LinearMinting) Descriptor() ([]byte, []int)
func (*LinearMinting) Marshal ¶ added in v1.3.0
func (m *LinearMinting) Marshal() (dAtA []byte, err error)
func (*LinearMinting) MarshalTo ¶ added in v1.3.0
func (m *LinearMinting) MarshalTo(dAtA []byte) (int, error)
func (*LinearMinting) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *LinearMinting) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LinearMinting) ProtoMessage ¶ added in v1.3.0
func (*LinearMinting) ProtoMessage()
func (*LinearMinting) Reset ¶ added in v1.3.0
func (m *LinearMinting) Reset()
func (*LinearMinting) Size ¶ added in v1.3.0
func (m *LinearMinting) Size() (n int)
func (*LinearMinting) String ¶ added in v1.3.0
func (m *LinearMinting) String() string
func (*LinearMinting) Unmarshal ¶ added in v1.3.0
func (m *LinearMinting) Unmarshal(dAtA []byte) error
func (*LinearMinting) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *LinearMinting) XXX_DiscardUnknown()
func (*LinearMinting) XXX_Marshal ¶ added in v1.3.0
func (m *LinearMinting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LinearMinting) XXX_Merge ¶ added in v1.3.0
func (m *LinearMinting) XXX_Merge(src proto.Message)
func (*LinearMinting) XXX_Size ¶ added in v1.3.0
func (m *LinearMinting) XXX_Size() int
func (*LinearMinting) XXX_Unmarshal ¶ added in v1.3.0
func (m *LinearMinting) XXX_Unmarshal(b []byte) error
type Minter ¶ added in v1.3.0
type Minter struct { SequenceId uint32 `protobuf:"varint,1,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` EndTime *time.Time `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time,omitempty"` Config *types.Any `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` }
func (*Minter) Descriptor ¶ added in v1.3.0
func (*Minter) GetEndTime ¶ added in v1.3.0
func (*Minter) GetSequenceId ¶ added in v1.3.0
func (*Minter) MarshalToSizedBuffer ¶ added in v1.3.0
func (*Minter) ProtoMessage ¶ added in v1.3.0
func (*Minter) ProtoMessage()
func (*Minter) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *Minter) XXX_DiscardUnknown()
func (*Minter) XXX_Marshal ¶ added in v1.3.0
func (*Minter) XXX_Unmarshal ¶ added in v1.3.0
type MinterState ¶ added in v1.3.0
type MinterState struct { SequenceId uint32 `protobuf:"varint,1,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,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"` RemainderFromPreviousMinter github_com_cosmos_cosmos_sdk_types.Dec `` /* 186-byte string literal not displayed */ }
func (*MinterState) Descriptor ¶ added in v1.3.0
func (*MinterState) Descriptor() ([]byte, []int)
func (*MinterState) GetLastMintBlockTime ¶ added in v1.3.0
func (m *MinterState) GetLastMintBlockTime() time.Time
func (*MinterState) GetSequenceId ¶ added in v1.3.0
func (m *MinterState) GetSequenceId() uint32
func (*MinterState) Marshal ¶ added in v1.3.0
func (m *MinterState) Marshal() (dAtA []byte, err error)
func (*MinterState) MarshalTo ¶ added in v1.3.0
func (m *MinterState) MarshalTo(dAtA []byte) (int, error)
func (*MinterState) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *MinterState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MinterState) ProtoMessage ¶ added in v1.3.0
func (*MinterState) ProtoMessage()
func (*MinterState) Reset ¶ added in v1.3.0
func (m *MinterState) Reset()
func (*MinterState) Size ¶ added in v1.3.0
func (m *MinterState) Size() (n int)
func (*MinterState) String ¶ added in v1.3.0
func (m *MinterState) String() string
func (*MinterState) Unmarshal ¶ added in v1.3.0
func (m *MinterState) Unmarshal(dAtA []byte) error
func (*MinterState) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *MinterState) XXX_DiscardUnknown()
func (*MinterState) XXX_Marshal ¶ added in v1.3.0
func (m *MinterState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MinterState) XXX_Merge ¶ added in v1.3.0
func (m *MinterState) XXX_Merge(src proto.Message)
func (*MinterState) XXX_Size ¶ added in v1.3.0
func (m *MinterState) XXX_Size() int
func (*MinterState) XXX_Unmarshal ¶ added in v1.3.0
func (m *MinterState) XXX_Unmarshal(b []byte) error
type NoMinting ¶ added in v1.3.0
type NoMinting struct { }
func (*NoMinting) Descriptor ¶ added in v1.3.0
func (*NoMinting) MarshalToSizedBuffer ¶ added in v1.3.0
func (*NoMinting) ProtoMessage ¶ added in v1.3.0
func (*NoMinting) ProtoMessage()
func (*NoMinting) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *NoMinting) XXX_DiscardUnknown()
func (*NoMinting) XXX_Marshal ¶ added in v1.3.0
func (*NoMinting) XXX_Unmarshal ¶ added in v1.3.0
type Params ¶ added in v1.3.0
type Params struct { MintDenom string `protobuf:"bytes,1,opt,name=mint_denom,json=mintDenom,proto3" json:"mint_denom,omitempty"` StartTime time.Time `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` Minters []*Minter `protobuf:"bytes,3,rep,name=minters,proto3" json:"minters,omitempty"` }
Params defines the parameters for the module.
func (*Params) Descriptor ¶ added in v1.3.0
func (*Params) GetMintDenom ¶ added in v1.3.0
func (*Params) GetMinters ¶ added in v1.3.0
func (*Params) GetStartTime ¶ added in v1.3.0
func (*Params) MarshalToSizedBuffer ¶ added in v1.3.0
func (*Params) ProtoMessage ¶ added in v1.3.0
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v1.3.0
func (*Params) XXX_Unmarshal ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.