Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- type BankKeeper
- type BaseVestingAccount
- func (*BaseVestingAccount) Descriptor() ([]byte, []int)
- func (bva BaseVestingAccount) GetDelegatedFree() sdk.Coins
- func (bva BaseVestingAccount) GetDelegatedVesting() sdk.Coins
- func (bva BaseVestingAccount) GetEndTime() int64
- func (bva BaseVestingAccount) GetOriginalVesting() sdk.Coins
- func (bva BaseVestingAccount) LockedCoinsFromVesting(vestingCoins sdk.Coins) sdk.Coins
- func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *BaseVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (bva BaseVestingAccount) MarshalYAML() (interface{}, error)
- func (*BaseVestingAccount) ProtoMessage()
- func (m *BaseVestingAccount) Reset()
- func (m *BaseVestingAccount) Size() (n int)
- func (bva BaseVestingAccount) String() string
- func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins)
- func (bva *BaseVestingAccount) TrackUndelegation(amount sdk.Coins)
- func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error
- func (bva BaseVestingAccount) Validate() error
- func (m *BaseVestingAccount) XXX_DiscardUnknown()
- func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseVestingAccount) XXX_Merge(src proto.Message)
- func (m *BaseVestingAccount) XXX_Size() int
- func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error
- type CliffVestingAccount
- func (*CliffVestingAccount) Descriptor() ([]byte, []int)
- func (cva CliffVestingAccount) GetCliffTime() int64
- func (cva CliffVestingAccount) GetStartTime() int64
- func (cva CliffVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
- func (cva CliffVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
- func (cva CliffVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
- func (m *CliffVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *CliffVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *CliffVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cva CliffVestingAccount) MarshalYAML() (interface{}, error)
- func (*CliffVestingAccount) ProtoMessage()
- func (m *CliffVestingAccount) Reset()
- func (m *CliffVestingAccount) Size() (n int)
- func (cva CliffVestingAccount) String() string
- func (cva *CliffVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
- func (m *CliffVestingAccount) Unmarshal(dAtA []byte) error
- func (cva CliffVestingAccount) Validate() error
- func (m *CliffVestingAccount) XXX_DiscardUnknown()
- func (m *CliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CliffVestingAccount) XXX_Merge(src proto.Message)
- func (m *CliffVestingAccount) XXX_Size() int
- func (m *CliffVestingAccount) XXX_Unmarshal(b []byte) error
- type ContinuousVestingAccount
- func (*ContinuousVestingAccount) Descriptor() ([]byte, []int)
- func (cva ContinuousVestingAccount) GetStartTime() int64
- func (cva ContinuousVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
- func (cva ContinuousVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
- func (cva ContinuousVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
- func (m *ContinuousVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *ContinuousVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (cva ContinuousVestingAccount) MarshalYAML() (interface{}, error)
- func (*ContinuousVestingAccount) ProtoMessage()
- func (m *ContinuousVestingAccount) Reset()
- func (m *ContinuousVestingAccount) Size() (n int)
- func (cva ContinuousVestingAccount) String() string
- func (cva *ContinuousVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
- func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error
- func (cva ContinuousVestingAccount) Validate() error
- func (m *ContinuousVestingAccount) XXX_DiscardUnknown()
- func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ContinuousVestingAccount) XXX_Merge(src proto.Message)
- func (m *ContinuousVestingAccount) XXX_Size() int
- func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error
- type DelayedVestingAccount
- func (*DelayedVestingAccount) Descriptor() ([]byte, []int)
- func (dva DelayedVestingAccount) GetStartTime() int64
- func (dva DelayedVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
- func (dva DelayedVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
- func (dva DelayedVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
- func (m *DelayedVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *DelayedVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DelayedVestingAccount) ProtoMessage()
- func (m *DelayedVestingAccount) Reset()
- func (m *DelayedVestingAccount) Size() (n int)
- func (dva DelayedVestingAccount) String() string
- func (dva *DelayedVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
- func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error
- func (dva DelayedVestingAccount) Validate() error
- func (m *DelayedVestingAccount) XXX_DiscardUnknown()
- func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DelayedVestingAccount) XXX_Merge(src proto.Message)
- func (m *DelayedVestingAccount) XXX_Size() int
- func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateCliffVestingAccount
- func (*MsgCreateCliffVestingAccount) Descriptor() ([]byte, []int)
- func (this *MsgCreateCliffVestingAccount) Equal(that interface{}) bool
- func (m *MsgCreateCliffVestingAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreateCliffVestingAccount) GetCliffTime() int64
- func (m *MsgCreateCliffVestingAccount) GetEndTime() int64
- func (m *MsgCreateCliffVestingAccount) GetFromAddress() string
- func (m *MsgCreateCliffVestingAccount) GetToAddress() string
- func (m *MsgCreateCliffVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateCliffVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateCliffVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateCliffVestingAccount) ProtoMessage()
- func (m *MsgCreateCliffVestingAccount) Reset()
- func (m *MsgCreateCliffVestingAccount) Size() (n int)
- func (m *MsgCreateCliffVestingAccount) String() string
- func (m *MsgCreateCliffVestingAccount) Unmarshal(dAtA []byte) error
- func (m *MsgCreateCliffVestingAccount) XXX_DiscardUnknown()
- func (m *MsgCreateCliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateCliffVestingAccount) XXX_Merge(src proto.Message)
- func (m *MsgCreateCliffVestingAccount) XXX_Size() int
- func (m *MsgCreateCliffVestingAccount) XXX_Unmarshal(b []byte) error
- type MsgCreateCliffVestingAccountResponse
- func (*MsgCreateCliffVestingAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateCliffVestingAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateCliffVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateCliffVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateCliffVestingAccountResponse) ProtoMessage()
- func (m *MsgCreateCliffVestingAccountResponse) Reset()
- func (m *MsgCreateCliffVestingAccountResponse) Size() (n int)
- func (m *MsgCreateCliffVestingAccountResponse) String() string
- func (m *MsgCreateCliffVestingAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateCliffVestingAccountResponse) XXX_DiscardUnknown()
- func (m *MsgCreateCliffVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateCliffVestingAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateCliffVestingAccountResponse) XXX_Size() int
- func (m *MsgCreateCliffVestingAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePeriodicVestingAccount
- func (*MsgCreatePeriodicVestingAccount) Descriptor() ([]byte, []int)
- func (m *MsgCreatePeriodicVestingAccount) GetFromAddress() string
- func (m *MsgCreatePeriodicVestingAccount) GetStartTime() int64
- func (m *MsgCreatePeriodicVestingAccount) GetToAddress() string
- func (m *MsgCreatePeriodicVestingAccount) GetVestingPeriods() []Period
- func (m *MsgCreatePeriodicVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePeriodicVestingAccount) ProtoMessage()
- func (m *MsgCreatePeriodicVestingAccount) Reset()
- func (m *MsgCreatePeriodicVestingAccount) Size() (n int)
- func (m *MsgCreatePeriodicVestingAccount) String() string
- func (m *MsgCreatePeriodicVestingAccount) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown()
- func (m *MsgCreatePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePeriodicVestingAccount) XXX_Merge(src proto.Message)
- func (m *MsgCreatePeriodicVestingAccount) XXX_Size() int
- func (m *MsgCreatePeriodicVestingAccount) XXX_Unmarshal(b []byte) error
- type MsgCreatePeriodicVestingAccountResponse
- func (*MsgCreatePeriodicVestingAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePeriodicVestingAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePeriodicVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePeriodicVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage()
- func (m *MsgCreatePeriodicVestingAccountResponse) Reset()
- func (m *MsgCreatePeriodicVestingAccountResponse) Size() (n int)
- func (m *MsgCreatePeriodicVestingAccountResponse) String() string
- func (m *MsgCreatePeriodicVestingAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Size() int
- func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePermanentLockedAccount
- func (*MsgCreatePermanentLockedAccount) Descriptor() ([]byte, []int)
- func (this *MsgCreatePermanentLockedAccount) Equal(that interface{}) bool
- func (m *MsgCreatePermanentLockedAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreatePermanentLockedAccount) GetFromAddress() string
- func (m *MsgCreatePermanentLockedAccount) GetToAddress() string
- func (m *MsgCreatePermanentLockedAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePermanentLockedAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePermanentLockedAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePermanentLockedAccount) ProtoMessage()
- func (m *MsgCreatePermanentLockedAccount) Reset()
- func (m *MsgCreatePermanentLockedAccount) Size() (n int)
- func (m *MsgCreatePermanentLockedAccount) String() string
- func (m *MsgCreatePermanentLockedAccount) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePermanentLockedAccount) XXX_DiscardUnknown()
- func (m *MsgCreatePermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePermanentLockedAccount) XXX_Merge(src proto.Message)
- func (m *MsgCreatePermanentLockedAccount) XXX_Size() int
- func (m *MsgCreatePermanentLockedAccount) XXX_Unmarshal(b []byte) error
- type MsgCreatePermanentLockedAccountResponse
- func (*MsgCreatePermanentLockedAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePermanentLockedAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePermanentLockedAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePermanentLockedAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePermanentLockedAccountResponse) ProtoMessage()
- func (m *MsgCreatePermanentLockedAccountResponse) Reset()
- func (m *MsgCreatePermanentLockedAccountResponse) Size() (n int)
- func (m *MsgCreatePermanentLockedAccountResponse) String() string
- func (m *MsgCreatePermanentLockedAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePermanentLockedAccountResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePermanentLockedAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePermanentLockedAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePermanentLockedAccountResponse) XXX_Size() int
- func (m *MsgCreatePermanentLockedAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateVestingAccount
- func (*MsgCreateVestingAccount) Descriptor() ([]byte, []int)
- func (this *MsgCreateVestingAccount) Equal(that interface{}) bool
- func (m *MsgCreateVestingAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreateVestingAccount) GetDelayed() bool
- func (m *MsgCreateVestingAccount) GetEndTime() int64
- func (m *MsgCreateVestingAccount) GetFromAddress() string
- func (m *MsgCreateVestingAccount) GetToAddress() string
- func (m *MsgCreateVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateVestingAccount) ProtoMessage()
- func (m *MsgCreateVestingAccount) Reset()
- func (m *MsgCreateVestingAccount) Size() (n int)
- func (m *MsgCreateVestingAccount) String() string
- func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error
- func (m *MsgCreateVestingAccount) XXX_DiscardUnknown()
- func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateVestingAccount) XXX_Merge(src proto.Message)
- func (m *MsgCreateVestingAccount) XXX_Size() int
- func (m *MsgCreateVestingAccount) XXX_Unmarshal(b []byte) error
- type MsgCreateVestingAccountResponse
- func (*MsgCreateVestingAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateVestingAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateVestingAccountResponse) ProtoMessage()
- func (m *MsgCreateVestingAccountResponse) Reset()
- func (m *MsgCreateVestingAccountResponse) Size() (n int)
- func (m *MsgCreateVestingAccountResponse) String() string
- func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateVestingAccountResponse) XXX_DiscardUnknown()
- func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateVestingAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateVestingAccountResponse) XXX_Size() int
- func (m *MsgCreateVestingAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Period
- func (*Period) Descriptor() ([]byte, []int)
- func (p Period) Duration() time.Duration
- func (m *Period) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Period) GetLength() int64
- func (m *Period) Marshal() (dAtA []byte, err error)
- func (m *Period) MarshalTo(dAtA []byte) (int, error)
- func (m *Period) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Period) ProtoMessage()
- func (m *Period) Reset()
- func (m *Period) Size() (n int)
- func (p Period) String() string
- func (m *Period) Unmarshal(dAtA []byte) error
- func (m *Period) XXX_DiscardUnknown()
- func (m *Period) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Period) XXX_Merge(src proto.Message)
- func (m *Period) XXX_Size() int
- func (m *Period) XXX_Unmarshal(b []byte) error
- type PeriodicVestingAccount
- func (*PeriodicVestingAccount) Descriptor() ([]byte, []int)
- func (pva PeriodicVestingAccount) GetStartTime() int64
- func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
- func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
- func (pva PeriodicVestingAccount) GetVestingPeriods() Periods
- func (pva PeriodicVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
- func (m *PeriodicVestingAccount) Marshal() (dAtA []byte, err error)
- func (m *PeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (pva PeriodicVestingAccount) MarshalYAML() (interface{}, error)
- func (*PeriodicVestingAccount) ProtoMessage()
- func (m *PeriodicVestingAccount) Reset()
- func (m *PeriodicVestingAccount) Size() (n int)
- func (pva PeriodicVestingAccount) String() string
- func (pva *PeriodicVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
- func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error
- func (pva PeriodicVestingAccount) Validate() error
- func (m *PeriodicVestingAccount) XXX_DiscardUnknown()
- func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeriodicVestingAccount) XXX_Merge(src proto.Message)
- func (m *PeriodicVestingAccount) XXX_Size() int
- func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error
- type Periods
- type PermanentLockedAccount
- func (*PermanentLockedAccount) Descriptor() ([]byte, []int)
- func (plva PermanentLockedAccount) GetEndTime() int64
- func (plva PermanentLockedAccount) GetStartTime() int64
- func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins
- func (plva PermanentLockedAccount) GetVestingCoins(_ time.Time) sdk.Coins
- func (plva PermanentLockedAccount) LockedCoins(_ time.Time) sdk.Coins
- func (m *PermanentLockedAccount) Marshal() (dAtA []byte, err error)
- func (m *PermanentLockedAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *PermanentLockedAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PermanentLockedAccount) ProtoMessage()
- func (m *PermanentLockedAccount) Reset()
- func (m *PermanentLockedAccount) Size() (n int)
- func (plva PermanentLockedAccount) String() string
- func (plva *PermanentLockedAccount) TrackDelegation(_ time.Time, balance, amount sdk.Coins)
- func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error
- func (plva PermanentLockedAccount) Validate() error
- func (m *PermanentLockedAccount) XXX_DiscardUnknown()
- func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PermanentLockedAccount) XXX_Merge(src proto.Message)
- func (m *PermanentLockedAccount) XXX_Size() int
- func (m *PermanentLockedAccount) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateCliffVestingAccount(ctx context.Context, req *MsgCreateCliffVestingAccount) (*MsgCreateCliffVestingAccountResponse, error)
- func (*UnimplementedMsgServer) CreatePeriodicVestingAccount(ctx context.Context, req *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error)
- func (*UnimplementedMsgServer) CreatePermanentLockedAccount(ctx context.Context, req *MsgCreatePermanentLockedAccount) (*MsgCreatePermanentLockedAccountResponse, error)
- func (*UnimplementedMsgServer) CreateVestingAccount(ctx context.Context, req *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error)
Constants ¶
const ( // ModuleName defines the module's name. ModuleName = "vesting" // AttributeValueCategory is an alias for the message event value. AttributeValueCategory = ModuleName // RouterKey defines the module's message routing key. RouterKey = ModuleName )
Variables ¶
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterface associates protoName with AccountI and VestingAccount Interfaces and creates a registry of it's concrete implementations.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the vesting interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
Types ¶
type BankKeeper ¶
type BankKeeper interface { IsSendEnabledCoins(ctx context.Context, coins ...sdk.Coin) error SendCoins(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error BlockedAddr(addr sdk.AccAddress) bool }
BankKeeper defines the expected interface contract the vesting module requires for creating vesting accounts with funds.
type BaseVestingAccount ¶
type BaseVestingAccount struct { *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,embedded=base_account" json:"base_account,omitempty"` OriginalVesting github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */ DelegatedFree github_com_cosmos_cosmos_sdk_types.Coins `` /* 144-byte string literal not displayed */ DelegatedVesting github_com_cosmos_cosmos_sdk_types.Coins `` /* 153-byte string literal not displayed */ // Vesting end time, as unix timestamp (in seconds). EndTime int64 `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` }
BaseVestingAccount implements the VestingAccount interface. It contains all the necessary fields needed for any vesting account implementation.
func NewBaseVestingAccount ¶
func NewBaseVestingAccount(baseAccount *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *BaseVestingAccount
NewBaseVestingAccount creates a new BaseVestingAccount object. It is the callers responsibility to ensure the base account has sufficient funds with regards to the original vesting amount.
func (*BaseVestingAccount) Descriptor ¶
func (*BaseVestingAccount) Descriptor() ([]byte, []int)
func (BaseVestingAccount) GetDelegatedFree ¶
func (bva BaseVestingAccount) GetDelegatedFree() sdk.Coins
GetDelegatedFree returns a vesting account's delegation amount that is not vesting.
func (BaseVestingAccount) GetDelegatedVesting ¶
func (bva BaseVestingAccount) GetDelegatedVesting() sdk.Coins
GetDelegatedVesting returns a vesting account's delegation amount that is still vesting.
func (BaseVestingAccount) GetEndTime ¶
func (bva BaseVestingAccount) GetEndTime() int64
GetEndTime returns a vesting account's end time.
func (BaseVestingAccount) GetOriginalVesting ¶
func (bva BaseVestingAccount) GetOriginalVesting() sdk.Coins
GetOriginalVesting returns a vesting account's original vesting amount.
func (BaseVestingAccount) LockedCoinsFromVesting ¶
func (bva BaseVestingAccount) LockedCoinsFromVesting(vestingCoins sdk.Coins) sdk.Coins
LockedCoinsFromVesting returns all the coins that are not spendable (i.e. locked) for a vesting account given the current vesting coins. If no coins are locked, an empty slice of Coins is returned.
CONTRACT: Delegated vesting coins and vestingCoins must be sorted.
func (*BaseVestingAccount) Marshal ¶
func (m *BaseVestingAccount) Marshal() (dAtA []byte, err error)
func (*BaseVestingAccount) MarshalTo ¶
func (m *BaseVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*BaseVestingAccount) MarshalToSizedBuffer ¶
func (m *BaseVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (BaseVestingAccount) MarshalYAML ¶
func (bva BaseVestingAccount) MarshalYAML() (interface{}, error)
MarshalYAML returns the YAML representation of a BaseVestingAccount.
func (*BaseVestingAccount) ProtoMessage ¶
func (*BaseVestingAccount) ProtoMessage()
func (*BaseVestingAccount) Reset ¶
func (m *BaseVestingAccount) Reset()
func (*BaseVestingAccount) Size ¶
func (m *BaseVestingAccount) Size() (n int)
func (BaseVestingAccount) String ¶
func (bva BaseVestingAccount) String() string
func (*BaseVestingAccount) TrackDelegation ¶
func (bva *BaseVestingAccount) TrackDelegation(balance, vestingCoins, amount sdk.Coins)
TrackDelegation tracks a delegation amount for any given vesting account type given the amount of coins currently vesting and the current account balance of the delegation denominations.
CONTRACT: The account's coins, delegation coins, vesting coins, and delegated vesting coins must be sorted.
func (*BaseVestingAccount) TrackUndelegation ¶
func (bva *BaseVestingAccount) TrackUndelegation(amount sdk.Coins)
TrackUndelegation tracks an undelegation amount by setting the necessary values by which delegated vesting and delegated vesting need to decrease and by which amount the base coins need to increase.
NOTE: The undelegation (bond refund) amount may exceed the delegated vesting (bond) amount due to the way undelegation truncates the bond refund, which can increase the validator's exchange rate (tokens/shares) slightly if the undelegated tokens are non-integral.
CONTRACT: The account's coins and undelegation coins must be sorted.
func (*BaseVestingAccount) Unmarshal ¶
func (m *BaseVestingAccount) Unmarshal(dAtA []byte) error
func (BaseVestingAccount) Validate ¶
func (bva BaseVestingAccount) Validate() error
Validate checks for errors on the account fields.
func (*BaseVestingAccount) XXX_DiscardUnknown ¶
func (m *BaseVestingAccount) XXX_DiscardUnknown()
func (*BaseVestingAccount) XXX_Marshal ¶
func (m *BaseVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseVestingAccount) XXX_Merge ¶
func (m *BaseVestingAccount) XXX_Merge(src proto.Message)
func (*BaseVestingAccount) XXX_Size ¶
func (m *BaseVestingAccount) XXX_Size() int
func (*BaseVestingAccount) XXX_Unmarshal ¶
func (m *BaseVestingAccount) XXX_Unmarshal(b []byte) error
type CliffVestingAccount ¶
type CliffVestingAccount struct { // base_vesting_account implements the VestingAccount interface. It contains // all the necessary fields needed for any vesting account implementation *BaseVestingAccount `` /* 147-byte string literal not displayed */ // start_time defines the time at which the vesting period begins StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` CliffTime int64 `protobuf:"varint,3,opt,name=cliff_time,json=cliffTime,proto3" json:"cliff_time,omitempty"` }
CliffVestingAccount implements the VestingAccount interface. It continuously vests by unlocking coins after a cliff period linearly with respect to time.
func NewCliffVestingAccount ¶
func NewCliffVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime, cliffTime, endTime int64, ) *CliffVestingAccount
NewCliffVestingAccount returns a new CliffVestingAccount.
func NewCliffVestingAccountRaw ¶
func NewCliffVestingAccountRaw(bva *BaseVestingAccount, startTime int64, cliffTime int64) *CliffVestingAccount
NewCliffVestingAccountRaw creates a new CliffVestingAccount object from BaseVestingAccount.
func (*CliffVestingAccount) Descriptor ¶
func (*CliffVestingAccount) Descriptor() ([]byte, []int)
func (CliffVestingAccount) GetCliffTime ¶
func (cva CliffVestingAccount) GetCliffTime() int64
GetCliffTime returns the time when vesting cliff end for a cliff vesting account.
func (CliffVestingAccount) GetStartTime ¶
func (cva CliffVestingAccount) GetStartTime() int64
GetStartTime returns the time when vesting starts for a cliff vesting account.
func (CliffVestingAccount) GetVestedCoins ¶
func (cva CliffVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
GetVestedCoins returns the total number of vested coins. If no coins are vested, nil is returned.
func (CliffVestingAccount) GetVestingCoins ¶
func (cva CliffVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
GetVestingCoins returns the total number of vesting coins. If no coins are vesting, nil is returned.
func (CliffVestingAccount) LockedCoins ¶
func (cva CliffVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (*CliffVestingAccount) Marshal ¶
func (m *CliffVestingAccount) Marshal() (dAtA []byte, err error)
func (*CliffVestingAccount) MarshalTo ¶
func (m *CliffVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*CliffVestingAccount) MarshalToSizedBuffer ¶
func (m *CliffVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (CliffVestingAccount) MarshalYAML ¶
func (cva CliffVestingAccount) MarshalYAML() (interface{}, error)
MarshalYAML returns the YAML representation of a ContinuousVestingAccount.
func (*CliffVestingAccount) ProtoMessage ¶
func (*CliffVestingAccount) ProtoMessage()
func (*CliffVestingAccount) Reset ¶
func (m *CliffVestingAccount) Reset()
func (*CliffVestingAccount) Size ¶
func (m *CliffVestingAccount) Size() (n int)
func (CliffVestingAccount) String ¶
func (cva CliffVestingAccount) String() string
func (*CliffVestingAccount) TrackDelegation ¶
func (cva *CliffVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (*CliffVestingAccount) Unmarshal ¶
func (m *CliffVestingAccount) Unmarshal(dAtA []byte) error
func (CliffVestingAccount) Validate ¶
func (cva CliffVestingAccount) Validate() error
Validate checks for errors on the account fields.
func (*CliffVestingAccount) XXX_DiscardUnknown ¶
func (m *CliffVestingAccount) XXX_DiscardUnknown()
func (*CliffVestingAccount) XXX_Marshal ¶
func (m *CliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CliffVestingAccount) XXX_Merge ¶
func (m *CliffVestingAccount) XXX_Merge(src proto.Message)
func (*CliffVestingAccount) XXX_Size ¶
func (m *CliffVestingAccount) XXX_Size() int
func (*CliffVestingAccount) XXX_Unmarshal ¶
func (m *CliffVestingAccount) XXX_Unmarshal(b []byte) error
type ContinuousVestingAccount ¶
type ContinuousVestingAccount struct { *BaseVestingAccount `` /* 147-byte string literal not displayed */ // Vesting start time, as unix timestamp (in seconds). StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` }
ContinuousVestingAccount implements the VestingAccount interface. It continuously vests by unlocking coins linearly with respect to time.
func NewContinuousVestingAccount ¶
func NewContinuousVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime, endTime int64, ) *ContinuousVestingAccount
NewContinuousVestingAccount returns a new ContinuousVestingAccount.
func NewContinuousVestingAccountRaw ¶
func NewContinuousVestingAccountRaw(bva *BaseVestingAccount, startTime int64) *ContinuousVestingAccount
NewContinuousVestingAccountRaw creates a new ContinuousVestingAccount object from BaseVestingAccount.
func (*ContinuousVestingAccount) Descriptor ¶
func (*ContinuousVestingAccount) Descriptor() ([]byte, []int)
func (ContinuousVestingAccount) GetStartTime ¶
func (cva ContinuousVestingAccount) GetStartTime() int64
GetStartTime returns the time when vesting starts for a continuous vesting account.
func (ContinuousVestingAccount) GetVestedCoins ¶
func (cva ContinuousVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
GetVestedCoins returns the total number of vested coins. If no coins are vested, nil is returned.
func (ContinuousVestingAccount) GetVestingCoins ¶
func (cva ContinuousVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
GetVestingCoins returns the total number of vesting coins. If no coins are vesting, nil is returned.
func (ContinuousVestingAccount) LockedCoins ¶
func (cva ContinuousVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (*ContinuousVestingAccount) Marshal ¶
func (m *ContinuousVestingAccount) Marshal() (dAtA []byte, err error)
func (*ContinuousVestingAccount) MarshalTo ¶
func (m *ContinuousVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*ContinuousVestingAccount) MarshalToSizedBuffer ¶
func (m *ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (ContinuousVestingAccount) MarshalYAML ¶
func (cva ContinuousVestingAccount) MarshalYAML() (interface{}, error)
MarshalYAML returns the YAML representation of a ContinuousVestingAccount.
func (*ContinuousVestingAccount) ProtoMessage ¶
func (*ContinuousVestingAccount) ProtoMessage()
func (*ContinuousVestingAccount) Reset ¶
func (m *ContinuousVestingAccount) Reset()
func (*ContinuousVestingAccount) Size ¶
func (m *ContinuousVestingAccount) Size() (n int)
func (ContinuousVestingAccount) String ¶
func (cva ContinuousVestingAccount) String() string
func (*ContinuousVestingAccount) TrackDelegation ¶
func (cva *ContinuousVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (*ContinuousVestingAccount) Unmarshal ¶
func (m *ContinuousVestingAccount) Unmarshal(dAtA []byte) error
func (ContinuousVestingAccount) Validate ¶
func (cva ContinuousVestingAccount) Validate() error
Validate checks for errors on the account fields.
func (*ContinuousVestingAccount) XXX_DiscardUnknown ¶
func (m *ContinuousVestingAccount) XXX_DiscardUnknown()
func (*ContinuousVestingAccount) XXX_Marshal ¶
func (m *ContinuousVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContinuousVestingAccount) XXX_Merge ¶
func (m *ContinuousVestingAccount) XXX_Merge(src proto.Message)
func (*ContinuousVestingAccount) XXX_Size ¶
func (m *ContinuousVestingAccount) XXX_Size() int
func (*ContinuousVestingAccount) XXX_Unmarshal ¶
func (m *ContinuousVestingAccount) XXX_Unmarshal(b []byte) error
type DelayedVestingAccount ¶
type DelayedVestingAccount struct {
*BaseVestingAccount `` /* 147-byte string literal not displayed */
}
DelayedVestingAccount implements the VestingAccount interface. It vests all coins after a specific time, but non prior. In other words, it keeps them locked until a specified time.
func NewDelayedVestingAccount ¶
func NewDelayedVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, endTime int64) *DelayedVestingAccount
NewDelayedVestingAccount returns a DelayedVestingAccount.
func NewDelayedVestingAccountRaw ¶
func NewDelayedVestingAccountRaw(bva *BaseVestingAccount) *DelayedVestingAccount
NewDelayedVestingAccountRaw creates a new DelayedVestingAccount object from BaseVestingAccount.
func (*DelayedVestingAccount) Descriptor ¶
func (*DelayedVestingAccount) Descriptor() ([]byte, []int)
func (DelayedVestingAccount) GetStartTime ¶
func (dva DelayedVestingAccount) GetStartTime() int64
GetStartTime returns zero since a delayed vesting account has no start time.
func (DelayedVestingAccount) GetVestedCoins ¶
func (dva DelayedVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
GetVestedCoins returns the total amount of vested coins for a delayed vesting account. All coins are only vested once the schedule has elapsed.
func (DelayedVestingAccount) GetVestingCoins ¶
func (dva DelayedVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
GetVestingCoins returns the total number of vesting coins for a delayed vesting account.
func (DelayedVestingAccount) LockedCoins ¶
func (dva DelayedVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (*DelayedVestingAccount) Marshal ¶
func (m *DelayedVestingAccount) Marshal() (dAtA []byte, err error)
func (*DelayedVestingAccount) MarshalTo ¶
func (m *DelayedVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*DelayedVestingAccount) MarshalToSizedBuffer ¶
func (m *DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DelayedVestingAccount) ProtoMessage ¶
func (*DelayedVestingAccount) ProtoMessage()
func (*DelayedVestingAccount) Reset ¶
func (m *DelayedVestingAccount) Reset()
func (*DelayedVestingAccount) Size ¶
func (m *DelayedVestingAccount) Size() (n int)
func (DelayedVestingAccount) String ¶
func (dva DelayedVestingAccount) String() string
func (*DelayedVestingAccount) TrackDelegation ¶
func (dva *DelayedVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (*DelayedVestingAccount) Unmarshal ¶
func (m *DelayedVestingAccount) Unmarshal(dAtA []byte) error
func (DelayedVestingAccount) Validate ¶
func (dva DelayedVestingAccount) Validate() error
Validate checks for errors on the account fields.
func (*DelayedVestingAccount) XXX_DiscardUnknown ¶
func (m *DelayedVestingAccount) XXX_DiscardUnknown()
func (*DelayedVestingAccount) XXX_Marshal ¶
func (m *DelayedVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DelayedVestingAccount) XXX_Merge ¶
func (m *DelayedVestingAccount) XXX_Merge(src proto.Message)
func (*DelayedVestingAccount) XXX_Size ¶
func (m *DelayedVestingAccount) XXX_Size() int
func (*DelayedVestingAccount) XXX_Unmarshal ¶
func (m *DelayedVestingAccount) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateVestingAccount defines a method that enables creating a vesting // account. CreateVestingAccount(ctx context.Context, in *MsgCreateVestingAccount, opts ...grpc.CallOption) (*MsgCreateVestingAccountResponse, error) // CreatePermanentLockedAccount defines a method that enables creating a permanent // locked account. // // Since: cosmos-sdk 0.46 CreatePermanentLockedAccount(ctx context.Context, in *MsgCreatePermanentLockedAccount, opts ...grpc.CallOption) (*MsgCreatePermanentLockedAccountResponse, error) // CreatePeriodicVestingAccount defines a method that enables creating a // periodic vesting account. // // Since: cosmos-sdk 0.46 CreatePeriodicVestingAccount(ctx context.Context, in *MsgCreatePeriodicVestingAccount, opts ...grpc.CallOption) (*MsgCreatePeriodicVestingAccountResponse, error) // CreateCliffVestingAccount defines a method that enables creating a cliff vesting // account. CreateCliffVestingAccount(ctx context.Context, in *MsgCreateCliffVestingAccount, opts ...grpc.CallOption) (*MsgCreateCliffVestingAccountResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateCliffVestingAccount ¶
type MsgCreateCliffVestingAccount struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` CliffTime int64 `protobuf:"varint,5,opt,name=cliff_time,json=cliffTime,proto3" json:"cliff_time,omitempty"` }
MsgCreateCliffVestingAccount defines a message that enables creating a cliff vesting account.
func NewMsgCreateCliffVestingAccount ¶
func NewMsgCreateCliffVestingAccount(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins, endTime, cliffTime int64, ) *MsgCreateCliffVestingAccount
NewMsgCreateCliffVestingAccount returns a reference to a new MsgCreateCliffVestingAccount.
func (*MsgCreateCliffVestingAccount) Descriptor ¶
func (*MsgCreateCliffVestingAccount) Descriptor() ([]byte, []int)
func (*MsgCreateCliffVestingAccount) Equal ¶
func (this *MsgCreateCliffVestingAccount) Equal(that interface{}) bool
func (*MsgCreateCliffVestingAccount) GetAmount ¶
func (m *MsgCreateCliffVestingAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCreateCliffVestingAccount) GetCliffTime ¶
func (m *MsgCreateCliffVestingAccount) GetCliffTime() int64
func (*MsgCreateCliffVestingAccount) GetEndTime ¶
func (m *MsgCreateCliffVestingAccount) GetEndTime() int64
func (*MsgCreateCliffVestingAccount) GetFromAddress ¶
func (m *MsgCreateCliffVestingAccount) GetFromAddress() string
func (*MsgCreateCliffVestingAccount) GetToAddress ¶
func (m *MsgCreateCliffVestingAccount) GetToAddress() string
func (*MsgCreateCliffVestingAccount) Marshal ¶
func (m *MsgCreateCliffVestingAccount) Marshal() (dAtA []byte, err error)
func (*MsgCreateCliffVestingAccount) MarshalTo ¶
func (m *MsgCreateCliffVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateCliffVestingAccount) MarshalToSizedBuffer ¶
func (m *MsgCreateCliffVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateCliffVestingAccount) ProtoMessage ¶
func (*MsgCreateCliffVestingAccount) ProtoMessage()
func (*MsgCreateCliffVestingAccount) Reset ¶
func (m *MsgCreateCliffVestingAccount) Reset()
func (*MsgCreateCliffVestingAccount) Size ¶
func (m *MsgCreateCliffVestingAccount) Size() (n int)
func (*MsgCreateCliffVestingAccount) String ¶
func (m *MsgCreateCliffVestingAccount) String() string
func (*MsgCreateCliffVestingAccount) Unmarshal ¶
func (m *MsgCreateCliffVestingAccount) Unmarshal(dAtA []byte) error
func (*MsgCreateCliffVestingAccount) XXX_DiscardUnknown ¶
func (m *MsgCreateCliffVestingAccount) XXX_DiscardUnknown()
func (*MsgCreateCliffVestingAccount) XXX_Marshal ¶
func (m *MsgCreateCliffVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateCliffVestingAccount) XXX_Merge ¶
func (m *MsgCreateCliffVestingAccount) XXX_Merge(src proto.Message)
func (*MsgCreateCliffVestingAccount) XXX_Size ¶
func (m *MsgCreateCliffVestingAccount) XXX_Size() int
func (*MsgCreateCliffVestingAccount) XXX_Unmarshal ¶
func (m *MsgCreateCliffVestingAccount) XXX_Unmarshal(b []byte) error
type MsgCreateCliffVestingAccountResponse ¶
type MsgCreateCliffVestingAccountResponse struct { }
MsgCreateCliffVestingAccountResponse defines the Msg/CreateVestingAccount response type.
func (*MsgCreateCliffVestingAccountResponse) Descriptor ¶
func (*MsgCreateCliffVestingAccountResponse) Descriptor() ([]byte, []int)
func (*MsgCreateCliffVestingAccountResponse) Marshal ¶
func (m *MsgCreateCliffVestingAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateCliffVestingAccountResponse) MarshalTo ¶
func (m *MsgCreateCliffVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateCliffVestingAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateCliffVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateCliffVestingAccountResponse) ProtoMessage ¶
func (*MsgCreateCliffVestingAccountResponse) ProtoMessage()
func (*MsgCreateCliffVestingAccountResponse) Reset ¶
func (m *MsgCreateCliffVestingAccountResponse) Reset()
func (*MsgCreateCliffVestingAccountResponse) Size ¶
func (m *MsgCreateCliffVestingAccountResponse) Size() (n int)
func (*MsgCreateCliffVestingAccountResponse) String ¶
func (m *MsgCreateCliffVestingAccountResponse) String() string
func (*MsgCreateCliffVestingAccountResponse) Unmarshal ¶
func (m *MsgCreateCliffVestingAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateCliffVestingAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateCliffVestingAccountResponse) XXX_DiscardUnknown()
func (*MsgCreateCliffVestingAccountResponse) XXX_Marshal ¶
func (m *MsgCreateCliffVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateCliffVestingAccountResponse) XXX_Merge ¶
func (m *MsgCreateCliffVestingAccountResponse) XXX_Merge(src proto.Message)
func (*MsgCreateCliffVestingAccountResponse) XXX_Size ¶
func (m *MsgCreateCliffVestingAccountResponse) XXX_Size() int
func (*MsgCreateCliffVestingAccountResponse) XXX_Unmarshal ¶
func (m *MsgCreateCliffVestingAccountResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePeriodicVestingAccount ¶
type MsgCreatePeriodicVestingAccount struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` // start of vesting as unix time (in seconds). StartTime int64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` VestingPeriods []Period `protobuf:"bytes,4,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods"` }
MsgCreateVestingAccount defines a message that enables creating a vesting account.
Since: cosmos-sdk 0.46
func NewMsgCreatePeriodicVestingAccount ¶
func NewMsgCreatePeriodicVestingAccount(fromAddr, toAddr sdk.AccAddress, startTime int64, periods []Period, ) *MsgCreatePeriodicVestingAccount
NewMsgCreatePeriodicVestingAccount returns a reference to a new MsgCreatePeriodicVestingAccount.
func (*MsgCreatePeriodicVestingAccount) Descriptor ¶
func (*MsgCreatePeriodicVestingAccount) Descriptor() ([]byte, []int)
func (*MsgCreatePeriodicVestingAccount) GetFromAddress ¶
func (m *MsgCreatePeriodicVestingAccount) GetFromAddress() string
func (*MsgCreatePeriodicVestingAccount) GetStartTime ¶
func (m *MsgCreatePeriodicVestingAccount) GetStartTime() int64
func (*MsgCreatePeriodicVestingAccount) GetToAddress ¶
func (m *MsgCreatePeriodicVestingAccount) GetToAddress() string
func (*MsgCreatePeriodicVestingAccount) GetVestingPeriods ¶
func (m *MsgCreatePeriodicVestingAccount) GetVestingPeriods() []Period
func (*MsgCreatePeriodicVestingAccount) Marshal ¶
func (m *MsgCreatePeriodicVestingAccount) Marshal() (dAtA []byte, err error)
func (*MsgCreatePeriodicVestingAccount) MarshalTo ¶
func (m *MsgCreatePeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePeriodicVestingAccount) MarshalToSizedBuffer ¶
func (m *MsgCreatePeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePeriodicVestingAccount) ProtoMessage ¶
func (*MsgCreatePeriodicVestingAccount) ProtoMessage()
func (*MsgCreatePeriodicVestingAccount) Reset ¶
func (m *MsgCreatePeriodicVestingAccount) Reset()
func (*MsgCreatePeriodicVestingAccount) Size ¶
func (m *MsgCreatePeriodicVestingAccount) Size() (n int)
func (*MsgCreatePeriodicVestingAccount) String ¶
func (m *MsgCreatePeriodicVestingAccount) String() string
func (*MsgCreatePeriodicVestingAccount) Unmarshal ¶
func (m *MsgCreatePeriodicVestingAccount) Unmarshal(dAtA []byte) error
func (*MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown ¶
func (m *MsgCreatePeriodicVestingAccount) XXX_DiscardUnknown()
func (*MsgCreatePeriodicVestingAccount) XXX_Marshal ¶
func (m *MsgCreatePeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePeriodicVestingAccount) XXX_Merge ¶
func (m *MsgCreatePeriodicVestingAccount) XXX_Merge(src proto.Message)
func (*MsgCreatePeriodicVestingAccount) XXX_Size ¶
func (m *MsgCreatePeriodicVestingAccount) XXX_Size() int
func (*MsgCreatePeriodicVestingAccount) XXX_Unmarshal ¶
func (m *MsgCreatePeriodicVestingAccount) XXX_Unmarshal(b []byte) error
type MsgCreatePeriodicVestingAccountResponse ¶
type MsgCreatePeriodicVestingAccountResponse struct { }
MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount response type.
Since: cosmos-sdk 0.46
func (*MsgCreatePeriodicVestingAccountResponse) Descriptor ¶
func (*MsgCreatePeriodicVestingAccountResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePeriodicVestingAccountResponse) Marshal ¶
func (m *MsgCreatePeriodicVestingAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePeriodicVestingAccountResponse) MarshalTo ¶
func (m *MsgCreatePeriodicVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePeriodicVestingAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePeriodicVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage ¶
func (*MsgCreatePeriodicVestingAccountResponse) ProtoMessage()
func (*MsgCreatePeriodicVestingAccountResponse) Reset ¶
func (m *MsgCreatePeriodicVestingAccountResponse) Reset()
func (*MsgCreatePeriodicVestingAccountResponse) Size ¶
func (m *MsgCreatePeriodicVestingAccountResponse) Size() (n int)
func (*MsgCreatePeriodicVestingAccountResponse) String ¶
func (m *MsgCreatePeriodicVestingAccountResponse) String() string
func (*MsgCreatePeriodicVestingAccountResponse) Unmarshal ¶
func (m *MsgCreatePeriodicVestingAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePeriodicVestingAccountResponse) XXX_DiscardUnknown()
func (*MsgCreatePeriodicVestingAccountResponse) XXX_Marshal ¶
func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePeriodicVestingAccountResponse) XXX_Merge ¶
func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePeriodicVestingAccountResponse) XXX_Size ¶
func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Size() int
func (*MsgCreatePeriodicVestingAccountResponse) XXX_Unmarshal ¶
func (m *MsgCreatePeriodicVestingAccountResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePermanentLockedAccount ¶
type MsgCreatePermanentLockedAccount struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty" yaml:"from_address"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty" yaml:"to_address"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
MsgCreatePermanentLockedAccount defines a message that enables creating a permanent locked account.
Since: cosmos-sdk 0.46
func NewMsgCreatePermanentLockedAccount ¶
func NewMsgCreatePermanentLockedAccount(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins) *MsgCreatePermanentLockedAccount
NewMsgCreatePermanentLockedAccount returns a reference to a new MsgCreatePermanentLockedAccount.
func (*MsgCreatePermanentLockedAccount) Descriptor ¶
func (*MsgCreatePermanentLockedAccount) Descriptor() ([]byte, []int)
func (*MsgCreatePermanentLockedAccount) Equal ¶
func (this *MsgCreatePermanentLockedAccount) Equal(that interface{}) bool
func (*MsgCreatePermanentLockedAccount) GetAmount ¶
func (m *MsgCreatePermanentLockedAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCreatePermanentLockedAccount) GetFromAddress ¶
func (m *MsgCreatePermanentLockedAccount) GetFromAddress() string
func (*MsgCreatePermanentLockedAccount) GetToAddress ¶
func (m *MsgCreatePermanentLockedAccount) GetToAddress() string
func (*MsgCreatePermanentLockedAccount) Marshal ¶
func (m *MsgCreatePermanentLockedAccount) Marshal() (dAtA []byte, err error)
func (*MsgCreatePermanentLockedAccount) MarshalTo ¶
func (m *MsgCreatePermanentLockedAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePermanentLockedAccount) MarshalToSizedBuffer ¶
func (m *MsgCreatePermanentLockedAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePermanentLockedAccount) ProtoMessage ¶
func (*MsgCreatePermanentLockedAccount) ProtoMessage()
func (*MsgCreatePermanentLockedAccount) Reset ¶
func (m *MsgCreatePermanentLockedAccount) Reset()
func (*MsgCreatePermanentLockedAccount) Size ¶
func (m *MsgCreatePermanentLockedAccount) Size() (n int)
func (*MsgCreatePermanentLockedAccount) String ¶
func (m *MsgCreatePermanentLockedAccount) String() string
func (*MsgCreatePermanentLockedAccount) Unmarshal ¶
func (m *MsgCreatePermanentLockedAccount) Unmarshal(dAtA []byte) error
func (*MsgCreatePermanentLockedAccount) XXX_DiscardUnknown ¶
func (m *MsgCreatePermanentLockedAccount) XXX_DiscardUnknown()
func (*MsgCreatePermanentLockedAccount) XXX_Marshal ¶
func (m *MsgCreatePermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePermanentLockedAccount) XXX_Merge ¶
func (m *MsgCreatePermanentLockedAccount) XXX_Merge(src proto.Message)
func (*MsgCreatePermanentLockedAccount) XXX_Size ¶
func (m *MsgCreatePermanentLockedAccount) XXX_Size() int
func (*MsgCreatePermanentLockedAccount) XXX_Unmarshal ¶
func (m *MsgCreatePermanentLockedAccount) XXX_Unmarshal(b []byte) error
type MsgCreatePermanentLockedAccountResponse ¶
type MsgCreatePermanentLockedAccountResponse struct { }
MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.
Since: cosmos-sdk 0.46
func (*MsgCreatePermanentLockedAccountResponse) Descriptor ¶
func (*MsgCreatePermanentLockedAccountResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePermanentLockedAccountResponse) Marshal ¶
func (m *MsgCreatePermanentLockedAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePermanentLockedAccountResponse) MarshalTo ¶
func (m *MsgCreatePermanentLockedAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePermanentLockedAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePermanentLockedAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePermanentLockedAccountResponse) ProtoMessage ¶
func (*MsgCreatePermanentLockedAccountResponse) ProtoMessage()
func (*MsgCreatePermanentLockedAccountResponse) Reset ¶
func (m *MsgCreatePermanentLockedAccountResponse) Reset()
func (*MsgCreatePermanentLockedAccountResponse) Size ¶
func (m *MsgCreatePermanentLockedAccountResponse) Size() (n int)
func (*MsgCreatePermanentLockedAccountResponse) String ¶
func (m *MsgCreatePermanentLockedAccountResponse) String() string
func (*MsgCreatePermanentLockedAccountResponse) Unmarshal ¶
func (m *MsgCreatePermanentLockedAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePermanentLockedAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePermanentLockedAccountResponse) XXX_DiscardUnknown()
func (*MsgCreatePermanentLockedAccountResponse) XXX_Marshal ¶
func (m *MsgCreatePermanentLockedAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePermanentLockedAccountResponse) XXX_Merge ¶
func (m *MsgCreatePermanentLockedAccountResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePermanentLockedAccountResponse) XXX_Size ¶
func (m *MsgCreatePermanentLockedAccountResponse) XXX_Size() int
func (*MsgCreatePermanentLockedAccountResponse) XXX_Unmarshal ¶
func (m *MsgCreatePermanentLockedAccountResponse) XXX_Unmarshal(b []byte) error
type MsgCreateVestingAccount ¶
type MsgCreateVestingAccount struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` ToAddress string `protobuf:"bytes,2,opt,name=to_address,json=toAddress,proto3" json:"to_address,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` EndTime int64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Delayed bool `protobuf:"varint,6,opt,name=delayed,proto3" json:"delayed,omitempty"` }
MsgCreateVestingAccount defines a message that enables creating a vesting account.
func NewMsgCreateVestingAccount ¶
func NewMsgCreateVestingAccount(fromAddr, toAddr sdk.AccAddress, amount sdk.Coins, endTime int64, delayed bool, ) *MsgCreateVestingAccount
NewMsgCreateVestingAccount returns a reference to a new MsgCreateVestingAccount.
func (*MsgCreateVestingAccount) Descriptor ¶
func (*MsgCreateVestingAccount) Descriptor() ([]byte, []int)
func (*MsgCreateVestingAccount) Equal ¶
func (this *MsgCreateVestingAccount) Equal(that interface{}) bool
func (*MsgCreateVestingAccount) GetAmount ¶
func (m *MsgCreateVestingAccount) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCreateVestingAccount) GetDelayed ¶
func (m *MsgCreateVestingAccount) GetDelayed() bool
func (*MsgCreateVestingAccount) GetEndTime ¶
func (m *MsgCreateVestingAccount) GetEndTime() int64
func (*MsgCreateVestingAccount) GetFromAddress ¶
func (m *MsgCreateVestingAccount) GetFromAddress() string
func (*MsgCreateVestingAccount) GetToAddress ¶
func (m *MsgCreateVestingAccount) GetToAddress() string
func (*MsgCreateVestingAccount) Marshal ¶
func (m *MsgCreateVestingAccount) Marshal() (dAtA []byte, err error)
func (*MsgCreateVestingAccount) MarshalTo ¶
func (m *MsgCreateVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateVestingAccount) MarshalToSizedBuffer ¶
func (m *MsgCreateVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateVestingAccount) ProtoMessage ¶
func (*MsgCreateVestingAccount) ProtoMessage()
func (*MsgCreateVestingAccount) Reset ¶
func (m *MsgCreateVestingAccount) Reset()
func (*MsgCreateVestingAccount) Size ¶
func (m *MsgCreateVestingAccount) Size() (n int)
func (*MsgCreateVestingAccount) String ¶
func (m *MsgCreateVestingAccount) String() string
func (*MsgCreateVestingAccount) Unmarshal ¶
func (m *MsgCreateVestingAccount) Unmarshal(dAtA []byte) error
func (*MsgCreateVestingAccount) XXX_DiscardUnknown ¶
func (m *MsgCreateVestingAccount) XXX_DiscardUnknown()
func (*MsgCreateVestingAccount) XXX_Marshal ¶
func (m *MsgCreateVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateVestingAccount) XXX_Merge ¶
func (m *MsgCreateVestingAccount) XXX_Merge(src proto.Message)
func (*MsgCreateVestingAccount) XXX_Size ¶
func (m *MsgCreateVestingAccount) XXX_Size() int
func (*MsgCreateVestingAccount) XXX_Unmarshal ¶
func (m *MsgCreateVestingAccount) XXX_Unmarshal(b []byte) error
type MsgCreateVestingAccountResponse ¶
type MsgCreateVestingAccountResponse struct { }
MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
func (*MsgCreateVestingAccountResponse) Descriptor ¶
func (*MsgCreateVestingAccountResponse) Descriptor() ([]byte, []int)
func (*MsgCreateVestingAccountResponse) Marshal ¶
func (m *MsgCreateVestingAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateVestingAccountResponse) MarshalTo ¶
func (m *MsgCreateVestingAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateVestingAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateVestingAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateVestingAccountResponse) ProtoMessage ¶
func (*MsgCreateVestingAccountResponse) ProtoMessage()
func (*MsgCreateVestingAccountResponse) Reset ¶
func (m *MsgCreateVestingAccountResponse) Reset()
func (*MsgCreateVestingAccountResponse) Size ¶
func (m *MsgCreateVestingAccountResponse) Size() (n int)
func (*MsgCreateVestingAccountResponse) String ¶
func (m *MsgCreateVestingAccountResponse) String() string
func (*MsgCreateVestingAccountResponse) Unmarshal ¶
func (m *MsgCreateVestingAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateVestingAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateVestingAccountResponse) XXX_DiscardUnknown()
func (*MsgCreateVestingAccountResponse) XXX_Marshal ¶
func (m *MsgCreateVestingAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateVestingAccountResponse) XXX_Merge ¶
func (m *MsgCreateVestingAccountResponse) XXX_Merge(src proto.Message)
func (*MsgCreateVestingAccountResponse) XXX_Size ¶
func (m *MsgCreateVestingAccountResponse) XXX_Size() int
func (*MsgCreateVestingAccountResponse) XXX_Unmarshal ¶
func (m *MsgCreateVestingAccountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateVestingAccount defines a method that enables creating a vesting // account. CreateVestingAccount(context.Context, *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error) // CreatePermanentLockedAccount defines a method that enables creating a permanent // locked account. // // Since: cosmos-sdk 0.46 CreatePermanentLockedAccount(context.Context, *MsgCreatePermanentLockedAccount) (*MsgCreatePermanentLockedAccountResponse, error) // CreatePeriodicVestingAccount defines a method that enables creating a // periodic vesting account. // // Since: cosmos-sdk 0.46 CreatePeriodicVestingAccount(context.Context, *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error) // CreateCliffVestingAccount defines a method that enables creating a cliff vesting // account. CreateCliffVestingAccount(context.Context, *MsgCreateCliffVestingAccount) (*MsgCreateCliffVestingAccountResponse, error) }
MsgServer is the server API for Msg service.
type Period ¶
type Period struct { Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"` }
Period defines a length of time and amount of coins that will vest.
func (*Period) Descriptor ¶
func (*Period) GetAmount ¶
func (m *Period) GetAmount() github_com_cosmos_cosmos_sdk_types.Coins
func (*Period) MarshalToSizedBuffer ¶
func (*Period) ProtoMessage ¶
func (*Period) ProtoMessage()
func (*Period) XXX_DiscardUnknown ¶
func (m *Period) XXX_DiscardUnknown()
func (*Period) XXX_Marshal ¶
func (*Period) XXX_Unmarshal ¶
type PeriodicVestingAccount ¶
type PeriodicVestingAccount struct { *BaseVestingAccount `` /* 147-byte string literal not displayed */ StartTime int64 `protobuf:"varint,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` VestingPeriods []Period `protobuf:"bytes,3,rep,name=vesting_periods,json=vestingPeriods,proto3" json:"vesting_periods"` }
PeriodicVestingAccount implements the VestingAccount interface. It periodically vests by unlocking coins during each specified period.
func NewPeriodicVestingAccount ¶
func NewPeriodicVestingAccount(baseAcc *authtypes.BaseAccount, originalVesting sdk.Coins, startTime int64, periods Periods, ) *PeriodicVestingAccount
NewPeriodicVestingAccount returns a new PeriodicVestingAccount.
func NewPeriodicVestingAccountRaw ¶
func NewPeriodicVestingAccountRaw(bva *BaseVestingAccount, startTime int64, periods Periods) *PeriodicVestingAccount
NewPeriodicVestingAccountRaw creates a new PeriodicVestingAccount object from BaseVestingAccount.
func (*PeriodicVestingAccount) Descriptor ¶
func (*PeriodicVestingAccount) Descriptor() ([]byte, []int)
func (PeriodicVestingAccount) GetStartTime ¶
func (pva PeriodicVestingAccount) GetStartTime() int64
GetStartTime returns the time when vesting starts for a periodic vesting account.
func (PeriodicVestingAccount) GetVestedCoins ¶
func (pva PeriodicVestingAccount) GetVestedCoins(blockTime time.Time) sdk.Coins
GetVestedCoins returns the total number of vested coins. If no coins are vested, nil is returned.
func (PeriodicVestingAccount) GetVestingCoins ¶
func (pva PeriodicVestingAccount) GetVestingCoins(blockTime time.Time) sdk.Coins
GetVestingCoins returns the total number of vesting coins. If no coins are vesting, nil is returned.
func (PeriodicVestingAccount) GetVestingPeriods ¶
func (pva PeriodicVestingAccount) GetVestingPeriods() Periods
GetVestingPeriods returns vesting periods associated with periodic vesting account.
func (PeriodicVestingAccount) LockedCoins ¶
func (pva PeriodicVestingAccount) LockedCoins(blockTime time.Time) sdk.Coins
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (*PeriodicVestingAccount) Marshal ¶
func (m *PeriodicVestingAccount) Marshal() (dAtA []byte, err error)
func (*PeriodicVestingAccount) MarshalTo ¶
func (m *PeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error)
func (*PeriodicVestingAccount) MarshalToSizedBuffer ¶
func (m *PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (PeriodicVestingAccount) MarshalYAML ¶
func (pva PeriodicVestingAccount) MarshalYAML() (interface{}, error)
MarshalYAML returns the YAML representation of a PeriodicVestingAccount.
func (*PeriodicVestingAccount) ProtoMessage ¶
func (*PeriodicVestingAccount) ProtoMessage()
func (*PeriodicVestingAccount) Reset ¶
func (m *PeriodicVestingAccount) Reset()
func (*PeriodicVestingAccount) Size ¶
func (m *PeriodicVestingAccount) Size() (n int)
func (PeriodicVestingAccount) String ¶
func (pva PeriodicVestingAccount) String() string
func (*PeriodicVestingAccount) TrackDelegation ¶
func (pva *PeriodicVestingAccount) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (*PeriodicVestingAccount) Unmarshal ¶
func (m *PeriodicVestingAccount) Unmarshal(dAtA []byte) error
func (PeriodicVestingAccount) Validate ¶
func (pva PeriodicVestingAccount) Validate() error
Validate checks for errors on the account fields.
func (*PeriodicVestingAccount) XXX_DiscardUnknown ¶
func (m *PeriodicVestingAccount) XXX_DiscardUnknown()
func (*PeriodicVestingAccount) XXX_Marshal ¶
func (m *PeriodicVestingAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeriodicVestingAccount) XXX_Merge ¶
func (m *PeriodicVestingAccount) XXX_Merge(src proto.Message)
func (*PeriodicVestingAccount) XXX_Size ¶
func (m *PeriodicVestingAccount) XXX_Size() int
func (*PeriodicVestingAccount) XXX_Unmarshal ¶
func (m *PeriodicVestingAccount) XXX_Unmarshal(b []byte) error
type Periods ¶
type Periods []Period
Periods stores all vesting periods passed as part of a PeriodicVestingAccount.
func (Periods) TotalAmount ¶
TotalDuration returns the sum of coins for the period.
func (Periods) TotalDuration ¶
TotalDuration returns the total duration of the period.
func (Periods) TotalLength ¶
TotalLength return the total length in seconds for a period.
type PermanentLockedAccount ¶
type PermanentLockedAccount struct {
*BaseVestingAccount `` /* 147-byte string literal not displayed */
}
PermanentLockedAccount implements the VestingAccount interface. It does not ever release coins, locking them indefinitely. Coins in this account can still be used for delegating and for governance votes even while locked.
Since: cosmos-sdk 0.43
func NewPermanentLockedAccount ¶
func NewPermanentLockedAccount(baseAcc *authtypes.BaseAccount, coins sdk.Coins) *PermanentLockedAccount
NewPermanentLockedAccount returns a PermanentLockedAccount.
func (*PermanentLockedAccount) Descriptor ¶
func (*PermanentLockedAccount) Descriptor() ([]byte, []int)
func (PermanentLockedAccount) GetEndTime ¶
func (plva PermanentLockedAccount) GetEndTime() int64
GetEndTime returns a vesting account's end time, we return 0 to denote that a permanently locked vesting account has no end time.
func (PermanentLockedAccount) GetStartTime ¶
func (plva PermanentLockedAccount) GetStartTime() int64
GetStartTime returns zero since a permanent locked vesting account has no start time.
func (PermanentLockedAccount) GetVestedCoins ¶
func (plva PermanentLockedAccount) GetVestedCoins(_ time.Time) sdk.Coins
GetVestedCoins returns the total amount of vested coins for a permanent locked vesting account. All coins are only vested once the schedule has elapsed.
func (PermanentLockedAccount) GetVestingCoins ¶
func (plva PermanentLockedAccount) GetVestingCoins(_ time.Time) sdk.Coins
GetVestingCoins returns the total number of vesting coins for a permanent locked vesting account.
func (PermanentLockedAccount) LockedCoins ¶
func (plva PermanentLockedAccount) LockedCoins(_ time.Time) sdk.Coins
LockedCoins returns the set of coins that are not spendable (i.e. locked), defined as the vesting coins that are not delegated.
func (*PermanentLockedAccount) Marshal ¶
func (m *PermanentLockedAccount) Marshal() (dAtA []byte, err error)
func (*PermanentLockedAccount) MarshalTo ¶
func (m *PermanentLockedAccount) MarshalTo(dAtA []byte) (int, error)
func (*PermanentLockedAccount) MarshalToSizedBuffer ¶
func (m *PermanentLockedAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PermanentLockedAccount) ProtoMessage ¶
func (*PermanentLockedAccount) ProtoMessage()
func (*PermanentLockedAccount) Reset ¶
func (m *PermanentLockedAccount) Reset()
func (*PermanentLockedAccount) Size ¶
func (m *PermanentLockedAccount) Size() (n int)
func (PermanentLockedAccount) String ¶
func (plva PermanentLockedAccount) String() string
func (*PermanentLockedAccount) TrackDelegation ¶
func (plva *PermanentLockedAccount) TrackDelegation(_ time.Time, balance, amount sdk.Coins)
TrackDelegation tracks a desired delegation amount by setting the appropriate values for the amount of delegated vesting, delegated free, and reducing the overall amount of base coins.
func (*PermanentLockedAccount) Unmarshal ¶
func (m *PermanentLockedAccount) Unmarshal(dAtA []byte) error
func (PermanentLockedAccount) Validate ¶
func (plva PermanentLockedAccount) Validate() error
Validate checks for errors on the account fields.
func (*PermanentLockedAccount) XXX_DiscardUnknown ¶
func (m *PermanentLockedAccount) XXX_DiscardUnknown()
func (*PermanentLockedAccount) XXX_Marshal ¶
func (m *PermanentLockedAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PermanentLockedAccount) XXX_Merge ¶
func (m *PermanentLockedAccount) XXX_Merge(src proto.Message)
func (*PermanentLockedAccount) XXX_Size ¶
func (m *PermanentLockedAccount) XXX_Size() int
func (*PermanentLockedAccount) XXX_Unmarshal ¶
func (m *PermanentLockedAccount) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateCliffVestingAccount ¶
func (*UnimplementedMsgServer) CreateCliffVestingAccount(ctx context.Context, req *MsgCreateCliffVestingAccount) (*MsgCreateCliffVestingAccountResponse, error)
func (*UnimplementedMsgServer) CreatePeriodicVestingAccount ¶
func (*UnimplementedMsgServer) CreatePeriodicVestingAccount(ctx context.Context, req *MsgCreatePeriodicVestingAccount) (*MsgCreatePeriodicVestingAccountResponse, error)
func (*UnimplementedMsgServer) CreatePermanentLockedAccount ¶
func (*UnimplementedMsgServer) CreatePermanentLockedAccount(ctx context.Context, req *MsgCreatePermanentLockedAccount) (*MsgCreatePermanentLockedAccountResponse, error)
func (*UnimplementedMsgServer) CreateVestingAccount ¶
func (*UnimplementedMsgServer) CreateVestingAccount(ctx context.Context, req *MsgCreateVestingAccount) (*MsgCreateVestingAccountResponse, error)