2020-09-08 09:09:50 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
package cosmos.vesting.v1beta1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
2021-09-21 02:46:29 -07:00
|
|
|
import "cosmos_proto/cosmos.proto";
|
2021-08-25 03:03:57 -07:00
|
|
|
import "cosmos/vesting/v1beta1/vesting.proto";
|
2020-09-08 09:09:50 -07:00
|
|
|
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types";
|
|
|
|
|
2020-10-19 02:22:56 -07:00
|
|
|
// Msg defines the bank Msg service.
|
|
|
|
service Msg {
|
|
|
|
// CreateVestingAccount defines a method that enables creating a vesting
|
|
|
|
// account.
|
|
|
|
rpc CreateVestingAccount(MsgCreateVestingAccount) returns (MsgCreateVestingAccountResponse);
|
2021-08-25 03:03:57 -07:00
|
|
|
// CreatePeriodicVestingAccount defines a method that enables creating a
|
|
|
|
// periodic vesting account.
|
|
|
|
rpc CreatePeriodicVestingAccount(MsgCreatePeriodicVestingAccount) returns (MsgCreatePeriodicVestingAccountResponse);
|
2020-10-19 02:22:56 -07:00
|
|
|
}
|
|
|
|
|
2020-09-08 09:09:50 -07:00
|
|
|
// MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
|
|
// account.
|
|
|
|
message MsgCreateVestingAccount {
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2021-09-24 07:37:34 -07:00
|
|
|
string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2020-09-08 09:09:50 -07:00
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 3
|
|
|
|
[(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"];
|
|
|
|
|
2021-09-24 07:37:34 -07:00
|
|
|
int64 end_time = 4;
|
2020-09-08 09:09:50 -07:00
|
|
|
bool delayed = 5;
|
|
|
|
}
|
2020-10-19 02:22:56 -07:00
|
|
|
|
|
|
|
// MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
|
2021-08-25 03:03:57 -07:00
|
|
|
message MsgCreateVestingAccountResponse {}
|
|
|
|
|
|
|
|
|
|
|
|
// MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
|
|
// account.
|
|
|
|
message MsgCreatePeriodicVestingAccount {
|
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
|
2021-09-24 07:37:34 -07:00
|
|
|
string from_address = 1;
|
|
|
|
string to_address = 2;
|
|
|
|
int64 start_time = 3;
|
2021-08-25 03:03:57 -07:00
|
|
|
repeated Period vesting_periods = 4 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
2021-08-25 08:05:45 -07:00
|
|
|
// MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount
|
|
|
|
// response type.
|
2021-08-25 03:03:57 -07:00
|
|
|
message MsgCreatePeriodicVestingAccountResponse {}
|