Skip to main content
logo

vesting

The vesting module is responsible for handling the vesting account implementation used by Mars Hub.

For more information, visit https://docs.cosmos.network/main/modules/vesting/

Message Types

Msg defines the bank Msg service.

tx.proto
Copy

_11
service Msg {
_11
// CreateVestingAccount defines a method that enables creating a vesting
_11
// account.
_11
rpc CreateVestingAccount(MsgCreateVestingAccount) returns (MsgCreateVestingAccountResponse);
_11
// CreatePermanentLockedAccount defines a method that enables creating a permanent
_11
// locked account.
_11
rpc CreatePermanentLockedAccount(MsgCreatePermanentLockedAccount) returns (MsgCreatePermanentLockedAccountResponse);
_11
// CreatePeriodicVestingAccount defines a method that enables creating a
_11
// periodic vesting account.
_11
rpc CreatePeriodicVestingAccount(MsgCreatePeriodicVestingAccount) returns (MsgCreatePeriodicVestingAccountResponse);
_11
}

MsgCreateVestingAccount

MsgCreateVestingAccount defines a message that enables creating a vesting account.

tx.proto
Copy

_13
message MsgCreateVestingAccount {
_13
option (cosmos.msg.v1.signer) = "from_address";
_13
_13
option (gogoproto.equal) = true;
_13
_13
string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_13
string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
_13
repeated cosmos.base.v1beta1.Coin amount = 3
_13
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
_13
_13
int64 end_time = 4;
_13
bool delayed = 5;
_13
}

MsgCreateVestingAccountResponse

MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.

tx.proto
Copy

_1
message MsgCreateVestingAccountResponse {}

MsgCreatePermanentLockedAccount

MsgCreatePermanentLockedAccount defines a message that enables creating a permanent locked account.

tx.proto
Copy

_8
message MsgCreatePermanentLockedAccount {
_8
option (gogoproto.equal) = true;
_8
_8
string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""];
_8
string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""];
_8
repeated cosmos.base.v1beta1.Coin amount = 3
_8
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
_8
}

MsgCreatePermanentLockedAccountResponse

MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.

tx.proto
Copy

_1
message MsgCreatePermanentLockedAccountResponse {}

MsgCreateVestingAccount

MsgCreateVestingAccount defines a message that enables creating a vesting account.

tx.proto
Copy

_10
message MsgCreatePeriodicVestingAccount {
_10
option (cosmos.msg.v1.signer) = "from_address";
_10
_10
option (gogoproto.equal) = false;
_10
_10
string from_address = 1;
_10
string to_address = 2;
_10
int64 start_time = 3;
_10
repeated Period vesting_periods = 4 [(gogoproto.nullable) = false];
_10
}

MsgCreateVestingAccountResponse

MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount response type.

tx.proto
Copy

_1
message MsgCreatePeriodicVestingAccountResponse {}