Documentation ¶
Index ¶
- Constants
- Variables
- func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
- func ParamKeyTable() paramtypes.KeyTable
- type AccountVestingPools
- func (*AccountVestingPools) Descriptor() ([]byte, []int)
- func (m *AccountVestingPools) GetAddress() string
- func (m *AccountVestingPools) GetVestingPools() []*VestingPool
- func (m *AccountVestingPools) Marshal() (dAtA []byte, err error)
- func (m *AccountVestingPools) MarshalTo(dAtA []byte) (int, error)
- func (m *AccountVestingPools) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AccountVestingPools) ProtoMessage()
- func (m *AccountVestingPools) Reset()
- func (m *AccountVestingPools) Size() (n int)
- func (m *AccountVestingPools) String() string
- func (m *AccountVestingPools) Unmarshal(dAtA []byte) error
- func (m *AccountVestingPools) XXX_DiscardUnknown()
- func (m *AccountVestingPools) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AccountVestingPools) XXX_Merge(src proto.Message)
- func (m *AccountVestingPools) XXX_Size() int
- func (m *AccountVestingPools) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDenom() string
- 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 (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
- type VestingAccount
- func (*VestingAccount) Descriptor() ([]byte, []int)
- func (m *VestingAccount) GetAddress() string
- func (m *VestingAccount) GetId() uint64
- func (m *VestingAccount) Marshal() (dAtA []byte, err error)
- func (m *VestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *VestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestingAccount) ProtoMessage()
- func (m *VestingAccount) Reset()
- func (m *VestingAccount) Size() (n int)
- func (m *VestingAccount) String() string
- func (m *VestingAccount) Unmarshal(dAtA []byte) error
- func (m *VestingAccount) XXX_DiscardUnknown()
- func (m *VestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestingAccount) XXX_Merge(src proto.Message)
- func (m *VestingAccount) XXX_Size() int
- func (m *VestingAccount) XXX_Unmarshal(b []byte) error
- type VestingPool
- func (*VestingPool) Descriptor() ([]byte, []int)
- func (m *VestingPool) GetLockEnd() time.Time
- func (m *VestingPool) GetLockStart() time.Time
- func (m *VestingPool) GetName() string
- func (m *VestingPool) GetVestingType() string
- func (m *VestingPool) Marshal() (dAtA []byte, err error)
- func (m *VestingPool) MarshalTo(dAtA []byte) (int, error)
- func (m *VestingPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestingPool) ProtoMessage()
- func (m *VestingPool) Reset()
- func (m *VestingPool) Size() (n int)
- func (m *VestingPool) String() string
- func (m *VestingPool) Unmarshal(dAtA []byte) error
- func (m *VestingPool) XXX_DiscardUnknown()
- func (m *VestingPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestingPool) XXX_Merge(src proto.Message)
- func (m *VestingPool) XXX_Size() int
- func (m *VestingPool) XXX_Unmarshal(b []byte) error
- type VestingType
- func (*VestingType) Descriptor() ([]byte, []int)
- func (m *VestingType) GetLockupPeriod() time.Duration
- func (m *VestingType) GetName() string
- func (m *VestingType) GetVestingPeriod() time.Duration
- func (m *VestingType) Marshal() (dAtA []byte, err error)
- func (m *VestingType) MarshalTo(dAtA []byte) (int, error)
- func (m *VestingType) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestingType) ProtoMessage()
- func (m *VestingType) Reset()
- func (m *VestingType) Size() (n int)
- func (m *VestingType) String() string
- func (m *VestingType) Unmarshal(dAtA []byte) error
- func (m *VestingType) XXX_DiscardUnknown()
- func (m *VestingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestingType) XXX_Merge(src proto.Message)
- func (m *VestingType) XXX_Size() int
- func (m *VestingType) XXX_Unmarshal(b []byte) error
- type VestingTypes
- func (*VestingTypes) Descriptor() ([]byte, []int)
- func (m *VestingTypes) GetVestingTypes() []*VestingType
- func (m *VestingTypes) Marshal() (dAtA []byte, err error)
- func (m *VestingTypes) MarshalTo(dAtA []byte) (int, error)
- func (m *VestingTypes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestingTypes) ProtoMessage()
- func (m *VestingTypes) Reset()
- func (m *VestingTypes) Size() (n int)
- func (m *VestingTypes) String() string
- func (m *VestingTypes) Unmarshal(dAtA []byte) error
- func (m *VestingTypes) XXX_DiscardUnknown()
- func (m *VestingTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestingTypes) XXX_Merge(src proto.Message)
- func (m *VestingTypes) XXX_Size() int
- func (m *VestingTypes) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const ( VestingAccountKey = "VestingAccount-value-" VestingAccountCountKey = "VestingAccount-count-" )
Variables ¶
View Source
var ( ErrInvalidLengthAccountVestingPool = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAccountVestingPool = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAccountVestingPool = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( VestingTypesKey = []byte{0x01} AccountVestingPoolsKeyPrefix = []byte{0x02} )
View Source
var ( KeyDenom = []byte("Denom") DefaultDenom string = "uc4e" )
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") )
Functions ¶
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v1.0.1 to v1.1.0 The migration includes: - Vesting pools structure changed. - Vesting types changed to map
func ParamKeyTable ¶ added in v1.3.0
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
Types ¶
type AccountVestingPools ¶
type AccountVestingPools struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` VestingPools []*VestingPool `protobuf:"bytes,3,rep,name=vesting_pools,json=vestingPools,proto3" json:"vesting_pools,omitempty"` }
func (*AccountVestingPools) Descriptor ¶
func (*AccountVestingPools) Descriptor() ([]byte, []int)
func (*AccountVestingPools) GetAddress ¶
func (m *AccountVestingPools) GetAddress() string
func (*AccountVestingPools) GetVestingPools ¶
func (m *AccountVestingPools) GetVestingPools() []*VestingPool
func (*AccountVestingPools) Marshal ¶
func (m *AccountVestingPools) Marshal() (dAtA []byte, err error)
func (*AccountVestingPools) MarshalTo ¶
func (m *AccountVestingPools) MarshalTo(dAtA []byte) (int, error)
func (*AccountVestingPools) MarshalToSizedBuffer ¶
func (m *AccountVestingPools) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AccountVestingPools) ProtoMessage ¶
func (*AccountVestingPools) ProtoMessage()
func (*AccountVestingPools) Reset ¶
func (m *AccountVestingPools) Reset()
func (*AccountVestingPools) Size ¶
func (m *AccountVestingPools) Size() (n int)
func (*AccountVestingPools) String ¶
func (m *AccountVestingPools) String() string
func (*AccountVestingPools) Unmarshal ¶
func (m *AccountVestingPools) Unmarshal(dAtA []byte) error
func (*AccountVestingPools) XXX_DiscardUnknown ¶
func (m *AccountVestingPools) XXX_DiscardUnknown()
func (*AccountVestingPools) XXX_Marshal ¶
func (m *AccountVestingPools) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AccountVestingPools) XXX_Merge ¶
func (m *AccountVestingPools) XXX_Merge(src proto.Message)
func (*AccountVestingPools) XXX_Size ¶
func (m *AccountVestingPools) XXX_Size() int
func (*AccountVestingPools) XXX_Unmarshal ¶
func (m *AccountVestingPools) XXX_Unmarshal(b []byte) error
type Params ¶ added in v1.3.0
type Params struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty" yaml:"denom"`
}
Params defines the parameters for the module.
func DefaultParams ¶ added in v1.3.0
func DefaultParams() Params
DefaultParams returns a default set of parameters
func (*Params) Descriptor ¶ added in v1.3.0
func (*Params) MarshalToSizedBuffer ¶ added in v1.3.0
func (*Params) ParamSetPairs ¶ added in v1.3.0
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
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
type VestingAccount ¶
type VestingAccount struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
func (*VestingAccount) Descriptor ¶
func (*VestingAccount) Descriptor() ([]byte, []int)
func (*VestingAccount) GetAddress ¶
func (m *VestingAccount) GetAddress() string
func (*VestingAccount) GetId ¶
func (m *VestingAccount) GetId() uint64
func (*VestingAccount) Marshal ¶
func (m *VestingAccount) Marshal() (dAtA []byte, err error)
func (*VestingAccount) MarshalToSizedBuffer ¶
func (m *VestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VestingAccount) ProtoMessage ¶
func (*VestingAccount) ProtoMessage()
func (*VestingAccount) Reset ¶
func (m *VestingAccount) Reset()
func (*VestingAccount) Size ¶
func (m *VestingAccount) Size() (n int)
func (*VestingAccount) String ¶
func (m *VestingAccount) String() string
func (*VestingAccount) Unmarshal ¶
func (m *VestingAccount) Unmarshal(dAtA []byte) error
func (*VestingAccount) XXX_DiscardUnknown ¶
func (m *VestingAccount) XXX_DiscardUnknown()
func (*VestingAccount) XXX_Marshal ¶
func (m *VestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VestingAccount) XXX_Merge ¶
func (m *VestingAccount) XXX_Merge(src proto.Message)
func (*VestingAccount) XXX_Size ¶
func (m *VestingAccount) XXX_Size() int
func (*VestingAccount) XXX_Unmarshal ¶
func (m *VestingAccount) XXX_Unmarshal(b []byte) error
type VestingPool ¶
type VestingPool struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` VestingType string `protobuf:"bytes,2,opt,name=vesting_type,json=vestingType,proto3" json:"vesting_type,omitempty"` LockStart time.Time `protobuf:"bytes,3,opt,name=lock_start,json=lockStart,proto3,stdtime" json:"lock_start"` LockEnd time.Time `protobuf:"bytes,4,opt,name=lock_end,json=lockEnd,proto3,stdtime" json:"lock_end"` InitiallyLocked github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ Withdrawn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,opt,name=withdrawn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"withdrawn"` Sent github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=sent,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"sent"` }
func (*VestingPool) Descriptor ¶
func (*VestingPool) Descriptor() ([]byte, []int)
func (*VestingPool) GetLockEnd ¶
func (m *VestingPool) GetLockEnd() time.Time
func (*VestingPool) GetLockStart ¶
func (m *VestingPool) GetLockStart() time.Time
func (*VestingPool) GetName ¶
func (m *VestingPool) GetName() string
func (*VestingPool) GetVestingType ¶
func (m *VestingPool) GetVestingType() string
func (*VestingPool) Marshal ¶
func (m *VestingPool) Marshal() (dAtA []byte, err error)
func (*VestingPool) MarshalToSizedBuffer ¶
func (m *VestingPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VestingPool) ProtoMessage ¶
func (*VestingPool) ProtoMessage()
func (*VestingPool) Reset ¶
func (m *VestingPool) Reset()
func (*VestingPool) Size ¶
func (m *VestingPool) Size() (n int)
func (*VestingPool) String ¶
func (m *VestingPool) String() string
func (*VestingPool) Unmarshal ¶
func (m *VestingPool) Unmarshal(dAtA []byte) error
func (*VestingPool) XXX_DiscardUnknown ¶
func (m *VestingPool) XXX_DiscardUnknown()
func (*VestingPool) XXX_Marshal ¶
func (m *VestingPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VestingPool) XXX_Merge ¶
func (m *VestingPool) XXX_Merge(src proto.Message)
func (*VestingPool) XXX_Size ¶
func (m *VestingPool) XXX_Size() int
func (*VestingPool) XXX_Unmarshal ¶
func (m *VestingPool) XXX_Unmarshal(b []byte) error
type VestingType ¶ added in v1.3.0
type VestingType struct { // vesting type name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // period of locked coins (minutes) from vesting start LockupPeriod time.Duration `protobuf:"bytes,2,opt,name=lockup_period,json=lockupPeriod,proto3,stdduration" json:"lockup_period"` // period of vesting coins (minutes) from lockup period end VestingPeriod time.Duration `protobuf:"bytes,3,opt,name=vesting_period,json=vestingPeriod,proto3,stdduration" json:"vesting_period"` // the percentage of tokens that are released initially Free github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=free,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"free"` }
func (*VestingType) Descriptor ¶ added in v1.3.0
func (*VestingType) Descriptor() ([]byte, []int)
func (*VestingType) GetLockupPeriod ¶ added in v1.3.0
func (m *VestingType) GetLockupPeriod() time.Duration
func (*VestingType) GetName ¶ added in v1.3.0
func (m *VestingType) GetName() string
func (*VestingType) GetVestingPeriod ¶ added in v1.3.0
func (m *VestingType) GetVestingPeriod() time.Duration
func (*VestingType) Marshal ¶ added in v1.3.0
func (m *VestingType) Marshal() (dAtA []byte, err error)
func (*VestingType) MarshalTo ¶ added in v1.3.0
func (m *VestingType) MarshalTo(dAtA []byte) (int, error)
func (*VestingType) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *VestingType) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VestingType) ProtoMessage ¶ added in v1.3.0
func (*VestingType) ProtoMessage()
func (*VestingType) Reset ¶ added in v1.3.0
func (m *VestingType) Reset()
func (*VestingType) Size ¶ added in v1.3.0
func (m *VestingType) Size() (n int)
func (*VestingType) String ¶ added in v1.3.0
func (m *VestingType) String() string
func (*VestingType) Unmarshal ¶ added in v1.3.0
func (m *VestingType) Unmarshal(dAtA []byte) error
func (*VestingType) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *VestingType) XXX_DiscardUnknown()
func (*VestingType) XXX_Marshal ¶ added in v1.3.0
func (m *VestingType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VestingType) XXX_Merge ¶ added in v1.3.0
func (m *VestingType) XXX_Merge(src proto.Message)
func (*VestingType) XXX_Size ¶ added in v1.3.0
func (m *VestingType) XXX_Size() int
func (*VestingType) XXX_Unmarshal ¶ added in v1.3.0
func (m *VestingType) XXX_Unmarshal(b []byte) error
type VestingTypes ¶ added in v1.3.0
type VestingTypes struct {
VestingTypes []*VestingType `protobuf:"bytes,1,rep,name=vesting_types,json=vestingTypes,proto3" json:"vesting_types,omitempty"`
}
func (*VestingTypes) Descriptor ¶ added in v1.3.0
func (*VestingTypes) Descriptor() ([]byte, []int)
func (*VestingTypes) GetVestingTypes ¶ added in v1.3.0
func (m *VestingTypes) GetVestingTypes() []*VestingType
func (*VestingTypes) Marshal ¶ added in v1.3.0
func (m *VestingTypes) Marshal() (dAtA []byte, err error)
func (*VestingTypes) MarshalTo ¶ added in v1.3.0
func (m *VestingTypes) MarshalTo(dAtA []byte) (int, error)
func (*VestingTypes) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *VestingTypes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VestingTypes) ProtoMessage ¶ added in v1.3.0
func (*VestingTypes) ProtoMessage()
func (*VestingTypes) Reset ¶ added in v1.3.0
func (m *VestingTypes) Reset()
func (*VestingTypes) Size ¶ added in v1.3.0
func (m *VestingTypes) Size() (n int)
func (*VestingTypes) String ¶ added in v1.3.0
func (m *VestingTypes) String() string
func (*VestingTypes) Unmarshal ¶ added in v1.3.0
func (m *VestingTypes) Unmarshal(dAtA []byte) error
func (*VestingTypes) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *VestingTypes) XXX_DiscardUnknown()
func (*VestingTypes) XXX_Marshal ¶ added in v1.3.0
func (m *VestingTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VestingTypes) XXX_Merge ¶ added in v1.3.0
func (m *VestingTypes) XXX_Merge(src proto.Message)
func (*VestingTypes) XXX_Size ¶ added in v1.3.0
func (m *VestingTypes) XXX_Size() int
func (*VestingTypes) XXX_Unmarshal ¶ added in v1.3.0
func (m *VestingTypes) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.