types

package
v1.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func InflationKey(t time.Time) []byte

Types

type GenesisState

type GenesisState struct {
	Inflations []Inflation `protobuf:"bytes,1,rep,name=inflations,proto3" json:"inflations" yaml:"inflations"`
}

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

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 {
	Max        github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=max,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"max" yaml:"max"`
	Min        github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=min,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"min" yaml:"min"`
	RateChange github_com_cosmos_cosmos_sdk_types.Dec `` /* 150-byte string literal not displayed */
	Timestamp  time.Time                              `protobuf:"bytes,4,opt,name=timestamp,proto3,stdtime" json:"timestamp" yaml:"timestamp"`
}

func (*Inflation) Descriptor

func (*Inflation) Descriptor() ([]byte, []int)

func (*Inflation) Marshal

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

func (*Inflation) MarshalTo

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

func (*Inflation) MarshalToSizedBuffer

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

func (*Inflation) ProtoMessage

func (*Inflation) ProtoMessage()

func (*Inflation) Reset

func (m *Inflation) Reset()

func (*Inflation) Size

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

func (*Inflation) String

func (m *Inflation) String() string

func (*Inflation) Unmarshal

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

func (*Inflation) Validate

func (i *Inflation) Validate() error

func (*Inflation) XXX_DiscardUnknown

func (m *Inflation) XXX_DiscardUnknown()

func (*Inflation) XXX_Marshal

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

func (*Inflation) XXX_Merge

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

func (*Inflation) XXX_Size

func (m *Inflation) XXX_Size() int

func (*Inflation) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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