v3

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 (
	ErrInvalidLengthVestingAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVestingAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVestingAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthVestingTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowVestingTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupVestingTypes = 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/cfevesting 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/cfevesting module state.

func MigrateStore

func MigrateStore(ctx sdk.Context, storeKey storetypes.StoreKey, cdc codec.BinaryCodec) error

MigrateStore performs in-place store migrations from v1.1.0 to v1.2.0 The migration includes: - Vesting pools structure changed. - Vesting Acounts Traces changed to map

Types

type AccountVestingPools added in v1.3.0

type AccountVestingPools struct {
	Owner        string         `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	VestingPools []*VestingPool `protobuf:"bytes,2,rep,name=vesting_pools,json=vestingPools,proto3" json:"vesting_pools,omitempty"`
}

func (*AccountVestingPools) Descriptor added in v1.3.0

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

func (*AccountVestingPools) GetOwner added in v1.3.0

func (m *AccountVestingPools) GetOwner() string

func (*AccountVestingPools) GetVestingPools added in v1.3.0

func (m *AccountVestingPools) GetVestingPools() []*VestingPool

func (*AccountVestingPools) Marshal added in v1.3.0

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

func (*AccountVestingPools) MarshalTo added in v1.3.0

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

func (*AccountVestingPools) MarshalToSizedBuffer added in v1.3.0

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

func (*AccountVestingPools) ProtoMessage added in v1.3.0

func (*AccountVestingPools) ProtoMessage()

func (*AccountVestingPools) Reset added in v1.3.0

func (m *AccountVestingPools) Reset()

func (*AccountVestingPools) Size added in v1.3.0

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

func (*AccountVestingPools) String added in v1.3.0

func (m *AccountVestingPools) String() string

func (*AccountVestingPools) Unmarshal added in v1.3.0

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

func (*AccountVestingPools) XXX_DiscardUnknown added in v1.3.0

func (m *AccountVestingPools) XXX_DiscardUnknown()

func (*AccountVestingPools) XXX_Marshal added in v1.3.0

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

func (*AccountVestingPools) XXX_Merge added in v1.3.0

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

func (*AccountVestingPools) XXX_Size added in v1.3.0

func (m *AccountVestingPools) XXX_Size() int

func (*AccountVestingPools) XXX_Unmarshal added in v1.3.0

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

type VestingAccountTrace added in v1.3.0

type VestingAccountTrace 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"`
	Genesis            bool   `protobuf:"varint,3,opt,name=genesis,proto3" json:"genesis,omitempty"`
	FromGenesisPool    bool   `protobuf:"varint,4,opt,name=from_genesis_pool,json=fromGenesisPool,proto3" json:"from_genesis_pool,omitempty"`
	FromGenesisAccount bool   `protobuf:"varint,5,opt,name=from_genesis_account,json=fromGenesisAccount,proto3" json:"from_genesis_account,omitempty"`
}

func (*VestingAccountTrace) Descriptor added in v1.3.0

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

func (*VestingAccountTrace) GetAddress added in v1.3.0

func (m *VestingAccountTrace) GetAddress() string

func (*VestingAccountTrace) GetFromGenesisAccount added in v1.3.0

func (m *VestingAccountTrace) GetFromGenesisAccount() bool

func (*VestingAccountTrace) GetFromGenesisPool added in v1.3.0

func (m *VestingAccountTrace) GetFromGenesisPool() bool

func (*VestingAccountTrace) GetGenesis added in v1.3.0

func (m *VestingAccountTrace) GetGenesis() bool

func (*VestingAccountTrace) GetId added in v1.3.0

func (m *VestingAccountTrace) GetId() uint64

func (*VestingAccountTrace) Marshal added in v1.3.0

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

func (*VestingAccountTrace) MarshalTo added in v1.3.0

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

func (*VestingAccountTrace) MarshalToSizedBuffer added in v1.3.0

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

func (*VestingAccountTrace) ProtoMessage added in v1.3.0

func (*VestingAccountTrace) ProtoMessage()

func (*VestingAccountTrace) Reset added in v1.3.0

func (m *VestingAccountTrace) Reset()

func (*VestingAccountTrace) Size added in v1.3.0

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

func (*VestingAccountTrace) String added in v1.3.0

func (m *VestingAccountTrace) String() string

func (*VestingAccountTrace) Unmarshal added in v1.3.0

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

func (*VestingAccountTrace) XXX_DiscardUnknown added in v1.3.0

func (m *VestingAccountTrace) XXX_DiscardUnknown()

func (*VestingAccountTrace) XXX_Marshal added in v1.3.0

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

func (*VestingAccountTrace) XXX_Merge added in v1.3.0

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

func (*VestingAccountTrace) XXX_Size added in v1.3.0

func (m *VestingAccountTrace) XXX_Size() int

func (*VestingAccountTrace) XXX_Unmarshal added in v1.3.0

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

type VestingPool added in v1.3.0

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"`
	GenesisPool     bool                                   `protobuf:"varint,8,opt,name=genesis_pool,json=genesisPool,proto3" json:"genesis_pool,omitempty"`
}

func (*VestingPool) Descriptor added in v1.3.0

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

func (*VestingPool) GetGenesisPool added in v1.3.0

func (m *VestingPool) GetGenesisPool() bool

func (*VestingPool) GetLockEnd added in v1.3.0

func (m *VestingPool) GetLockEnd() time.Time

func (*VestingPool) GetLockStart added in v1.3.0

func (m *VestingPool) GetLockStart() time.Time

func (*VestingPool) GetName added in v1.3.0

func (m *VestingPool) GetName() string

func (*VestingPool) GetVestingType added in v1.3.0

func (m *VestingPool) GetVestingType() string

func (*VestingPool) Marshal added in v1.3.0

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

func (*VestingPool) MarshalTo added in v1.3.0

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

func (*VestingPool) MarshalToSizedBuffer added in v1.3.0

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

func (*VestingPool) ProtoMessage added in v1.3.0

func (*VestingPool) ProtoMessage()

func (*VestingPool) Reset added in v1.3.0

func (m *VestingPool) Reset()

func (*VestingPool) Size added in v1.3.0

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

func (*VestingPool) String added in v1.3.0

func (m *VestingPool) String() string

func (*VestingPool) Unmarshal added in v1.3.0

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

func (*VestingPool) XXX_DiscardUnknown added in v1.3.0

func (m *VestingPool) XXX_DiscardUnknown()

func (*VestingPool) XXX_Marshal added in v1.3.0

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

func (*VestingPool) XXX_Merge added in v1.3.0

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

func (*VestingPool) XXX_Size added in v1.3.0

func (m *VestingPool) XXX_Size() int

func (*VestingPool) XXX_Unmarshal added in v1.3.0

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

Jump to

Keyboard shortcuts

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