cosmos/vesting

Table of Contents

cosmos/vesting/v1beta1/vesting.proto

Top

BaseVestingAccount

BaseVestingAccount implements the VestingAccount interface. It contains all

the necessary fields needed for any vesting account implementation.

FieldTypeLabelDescription
base_account cosmos.auth.v1beta1.BaseAccount

original_vesting cosmos.base.v1beta1.Coin repeated

delegated_free cosmos.base.v1beta1.Coin repeated

delegated_vesting cosmos.base.v1beta1.Coin repeated

end_time int64

ContinuousVestingAccount

ContinuousVestingAccount implements the VestingAccount interface. It

continuously vests by unlocking coins linearly with respect to time.

FieldTypeLabelDescription
base_vesting_account BaseVestingAccount

start_time int64

DelayedVestingAccount

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.

FieldTypeLabelDescription
base_vesting_account BaseVestingAccount

Period

Period defines a length of time and amount of coins that will vest.

FieldTypeLabelDescription
length int64

amount cosmos.base.v1beta1.Coin repeated

PeriodicVestingAccount

PeriodicVestingAccount implements the VestingAccount interface. It

periodically vests by unlocking coins during each specified period.

FieldTypeLabelDescription
base_vesting_account BaseVestingAccount

start_time int64

vesting_periods Period repeated

PermanentLockedAccount

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

FieldTypeLabelDescription
base_vesting_account BaseVestingAccount

cosmos/vesting/v1beta1/tx.proto

Top

MsgCreateVestingAccount

MsgCreateVestingAccount defines a message that enables creating a vesting

account.

FieldTypeLabelDescription
from_address string

to_address string

amount cosmos.base.v1beta1.Coin repeated

end_time int64

delayed bool

MsgCreateVestingAccountResponse

MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.

Msg

Msg defines the bank Msg service.

Method NameRequest TypeResponse TypeDescription
CreateVestingAccount MsgCreateVestingAccount MsgCreateVestingAccountResponse

CreateVestingAccount defines a method that enables creating a vesting account.

Scalar Value Types

.proto Type Notes Python Type
double float
float float
int32 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. int
int64 Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. int/long
uint32 Uses variable-length encoding. int/long
uint64 Uses variable-length encoding. int/long
sint32 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. int
sint64 Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. int/long
fixed32 Always four bytes. More efficient than uint32 if values are often greater than 2^28. int
fixed64 Always eight bytes. More efficient than uint64 if values are often greater than 2^56. int/long
sfixed32 Always four bytes. int
sfixed64 Always eight bytes. int/long
bool boolean
string A string must always contain UTF-8 encoded or 7-bit ASCII text. str/unicode
bytes May contain any arbitrary sequence of bytes. str