Some checks failed
Build SimApp / build (amd64) (push) Waiting to run
Build SimApp / build (arm64) (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Build & Push / build (push) Waiting to run
Run Gosec / Gosec (push) Waiting to run
Lint / golangci-lint (push) Waiting to run
Checks dependencies and mocks generation / Check go mod tidy (push) Waiting to run
Checks dependencies and mocks generation / Check up to date mocks (push) Waiting to run
System Tests / setup (push) Waiting to run
System Tests / test-system (push) Blocked by required conditions
System Tests / test-system-legacy (push) Blocked by required conditions
Tests / Code Coverage / split-test-files (push) Waiting to run
Tests / Code Coverage / tests (00) (push) Blocked by required conditions
Tests / Code Coverage / tests (01) (push) Blocked by required conditions
Tests / Code Coverage / tests (02) (push) Blocked by required conditions
Tests / Code Coverage / tests (03) (push) Blocked by required conditions
Tests / Code Coverage / test-integration (push) Waiting to run
Tests / Code Coverage / test-e2e (push) Waiting to run
Tests / Code Coverage / repo-analysis (push) Blocked by required conditions
Tests / Code Coverage / test-sim-nondeterminism (push) Waiting to run
Tests / Code Coverage / test-clientv2 (push) Waiting to run
Tests / Code Coverage / test-core (push) Waiting to run
Tests / Code Coverage / test-depinject (push) Waiting to run
Tests / Code Coverage / test-errors (push) Waiting to run
Tests / Code Coverage / test-math (push) Waiting to run
Tests / Code Coverage / test-schema (push) Waiting to run
Tests / Code Coverage / test-collections (push) Waiting to run
Tests / Code Coverage / test-cosmovisor (push) Waiting to run
Tests / Code Coverage / test-confix (push) Waiting to run
Tests / Code Coverage / test-store (push) Waiting to run
Tests / Code Coverage / test-log (push) Waiting to run
Tests / Code Coverage / test-x-tx (push) Waiting to run
Tests / Code Coverage / test-x-nft (push) Waiting to run
Tests / Code Coverage / test-x-circuit (push) Waiting to run
Tests / Code Coverage / test-x-feegrant (push) Waiting to run
Tests / Code Coverage / test-x-evidence (push) Waiting to run
Tests / Code Coverage / test-x-upgrade (push) Waiting to run
Tests / Code Coverage / test-tools-benchmark (push) Waiting to run
Build & Push SDK Proto Builder / build (push) Has been cancelled
100 lines
4 KiB
Protocol Buffer
100 lines
4 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.vesting.v1beta1;
|
|
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "cosmos/vesting/v1beta1/vesting.proto";
|
|
import "cosmos/msg/v1/msg.proto";
|
|
import "amino/amino.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types";
|
|
|
|
// Msg defines the bank Msg service.
|
|
service Msg {
|
|
option (cosmos.msg.v1.service) = true;
|
|
|
|
// CreateVestingAccount defines a method that enables creating a vesting
|
|
// account.
|
|
rpc CreateVestingAccount(MsgCreateVestingAccount) returns (MsgCreateVestingAccountResponse);
|
|
// CreatePermanentLockedAccount defines a method that enables creating a permanent
|
|
// locked account.
|
|
rpc CreatePermanentLockedAccount(MsgCreatePermanentLockedAccount) returns (MsgCreatePermanentLockedAccountResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.46";
|
|
};
|
|
// CreatePeriodicVestingAccount defines a method that enables creating a
|
|
// periodic vesting account.
|
|
rpc CreatePeriodicVestingAccount(MsgCreatePeriodicVestingAccount) returns (MsgCreatePeriodicVestingAccountResponse) {
|
|
option (cosmos_proto.method_added_in) = "cosmos-sdk 0.46";
|
|
};
|
|
}
|
|
|
|
// MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
// account.
|
|
message MsgCreateVestingAccount {
|
|
option (cosmos.msg.v1.signer) = "from_address";
|
|
option (amino.name) = "cosmos-sdk/MsgCreateVestingAccount";
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
string from_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
string to_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
|
|
// end of vesting as unix time (in seconds).
|
|
int64 end_time = 4;
|
|
bool delayed = 5;
|
|
}
|
|
|
|
// MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type.
|
|
message MsgCreateVestingAccountResponse {}
|
|
|
|
// MsgCreatePermanentLockedAccount defines a message that enables creating a permanent
|
|
// locked account.
|
|
message MsgCreatePermanentLockedAccount {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
option (cosmos.msg.v1.signer) = "from_address";
|
|
option (amino.name) = "cosmos-sdk/MsgCreatePermLockedAccount";
|
|
option (gogoproto.equal) = true;
|
|
|
|
string from_address = 1 [(gogoproto.moretags) = "yaml:\"from_address\""];
|
|
string to_address = 2 [(gogoproto.moretags) = "yaml:\"to_address\""];
|
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.
|
|
message MsgCreatePermanentLockedAccountResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
}
|
|
|
|
// MsgCreateVestingAccount defines a message that enables creating a vesting
|
|
// account.
|
|
message MsgCreatePeriodicVestingAccount {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
option (cosmos.msg.v1.signer) = "from_address";
|
|
option (amino.name) = "cosmos-sdk/MsgCreatePeriodVestAccount";
|
|
|
|
option (gogoproto.equal) = false;
|
|
|
|
string from_address = 1;
|
|
string to_address = 2;
|
|
// start of vesting as unix time (in seconds).
|
|
int64 start_time = 3;
|
|
repeated Period vesting_periods = 4 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
|
}
|
|
|
|
// MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount
|
|
// response type.
|
|
message MsgCreatePeriodicVestingAccountResponse {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.46";
|
|
}
|