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
94 lines
3.8 KiB
Protocol Buffer
94 lines
3.8 KiB
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.vesting.v1beta1;
|
|
|
|
import "amino/amino.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "cosmos/auth/v1beta1/auth.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/auth/vesting/types";
|
|
|
|
// BaseVestingAccount implements the VestingAccount interface. It contains all
|
|
// the necessary fields needed for any vesting account implementation.
|
|
message BaseVestingAccount {
|
|
option (amino.name) = "cosmos-sdk/BaseVestingAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
cosmos.auth.v1beta1.BaseAccount base_account = 1 [(gogoproto.embed) = true];
|
|
repeated cosmos.base.v1beta1.Coin original_vesting = 2 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
repeated cosmos.base.v1beta1.Coin delegated_free = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
repeated cosmos.base.v1beta1.Coin delegated_vesting = 4 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
// Vesting end time, as unix timestamp (in seconds).
|
|
int64 end_time = 5;
|
|
}
|
|
|
|
// ContinuousVestingAccount implements the VestingAccount interface. It
|
|
// continuously vests by unlocking coins linearly with respect to time.
|
|
message ContinuousVestingAccount {
|
|
option (amino.name) = "cosmos-sdk/ContinuousVestingAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
|
|
// Vesting start time, as unix timestamp (in seconds).
|
|
int64 start_time = 2;
|
|
}
|
|
|
|
// 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.
|
|
message DelayedVestingAccount {
|
|
option (amino.name) = "cosmos-sdk/DelayedVestingAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
|
|
}
|
|
|
|
// Period defines a length of time and amount of coins that will vest.
|
|
message Period {
|
|
// Period duration in seconds.
|
|
int64 length = 1;
|
|
repeated cosmos.base.v1beta1.Coin amount = 2 [
|
|
(gogoproto.nullable) = false,
|
|
(amino.dont_omitempty) = true,
|
|
(amino.encoding) = "legacy_coins",
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// PeriodicVestingAccount implements the VestingAccount interface. It
|
|
// periodically vests by unlocking coins during each specified period.
|
|
message PeriodicVestingAccount {
|
|
option (amino.name) = "cosmos-sdk/PeriodicVestingAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
|
|
int64 start_time = 2;
|
|
repeated Period vesting_periods = 3 [(gogoproto.nullable) = false, (amino.dont_omitempty) = true];
|
|
}
|
|
|
|
// 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.
|
|
message PermanentLockedAccount {
|
|
option (cosmos_proto.message_added_in) = "cosmos-sdk 0.43";
|
|
option (amino.name) = "cosmos-sdk/PermanentLockedAccount";
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
BaseVestingAccount base_vesting_account = 1 [(gogoproto.embed) = true];
|
|
}
|