v1

package
v2.0.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (
	IsGenesisKey                = []byte{0x01}
	MinterStateKey              = []byte{0x02}
	MinterStateHistoryKeyPrefix = []byte{0x03}
	KeyMintDenom                = []byte("MintDenom")
	KeyMinter                   = []byte("Minter")
)

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) Descriptor() ([]byte, []int)

func (*Minter) GetPeriods

func (m *Minter) GetPeriods() []*MintingPeriod

func (*Minter) GetStart

func (m *Minter) GetStart() time.Time

func (*Minter) Marshal

func (m *Minter) Marshal() (dAtA []byte, err error)

func (*Minter) MarshalTo

func (m *Minter) MarshalTo(dAtA []byte) (int, error)

func (*Minter) MarshalToSizedBuffer

func (m *Minter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Minter) ProtoMessage

func (*Minter) ProtoMessage()

func (*Minter) Reset

func (m *Minter) Reset()

func (*Minter) Size

func (m *Minter) Size() (n int)

func (*Minter) String

func (m *Minter) String() string

func (*Minter) Unmarshal

func (m *Minter) Unmarshal(dAtA []byte) error

func (*Minter) XXX_DiscardUnknown

func (m *Minter) XXX_DiscardUnknown()

func (*Minter) XXX_Marshal

func (m *Minter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Minter) XXX_Merge

func (m *Minter) XXX_Merge(src proto.Message)

func (*Minter) XXX_Size

func (m *Minter) XXX_Size() int

func (*Minter) XXX_Unmarshal

func (m *Minter) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *MinterState) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MintingPeriod) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Params) GetMintDenom

func (m *Params) GetMintDenom() string

func (*Params) GetMinter

func (m *Params) GetMinter() Minter

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *TimeLinearMinter) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL