add JSON struct tags to vesting accounts
This commit is contained in:
parent
d66db6a772
commit
afd90f88c1
|
@ -42,6 +42,7 @@ IMPROVEMENTS
|
||||||
JSON ABCI log.
|
JSON ABCI log.
|
||||||
* [\#3620](https://github.com/cosmos/cosmos-sdk/pull/3620) Version command shows build tags
|
* [\#3620](https://github.com/cosmos/cosmos-sdk/pull/3620) Version command shows build tags
|
||||||
* [\#3638] Add Bcrypt benchmarks & justification of security parameter choice
|
* [\#3638] Add Bcrypt benchmarks & justification of security parameter choice
|
||||||
|
* [\#3648] Add JSON struct tags to vesting accounts.
|
||||||
|
|
||||||
* Tendermint
|
* Tendermint
|
||||||
* [\#3618] Upgrade to Tendermint 0.30.03
|
* [\#3618] Upgrade to Tendermint 0.30.03
|
||||||
|
|
|
@ -183,11 +183,11 @@ func (acc *BaseAccount) SpendableCoins(_ time.Time) sdk.Coins {
|
||||||
type BaseVestingAccount struct {
|
type BaseVestingAccount struct {
|
||||||
*BaseAccount
|
*BaseAccount
|
||||||
|
|
||||||
OriginalVesting sdk.Coins // coins in account upon initialization
|
OriginalVesting sdk.Coins `json:"original_vesting"` // coins in account upon initialization
|
||||||
DelegatedFree sdk.Coins // coins that are vested and delegated
|
DelegatedFree sdk.Coins `json:"delegated_free"` // coins that are vested and delegated
|
||||||
DelegatedVesting sdk.Coins // coins that vesting and delegated
|
DelegatedVesting sdk.Coins `json:"delegated_vesting"` // coins that vesting and delegated
|
||||||
|
|
||||||
EndTime int64 // when the coins become unlocked
|
EndTime int64 `json:"end_time"` // when the coins become unlocked
|
||||||
}
|
}
|
||||||
|
|
||||||
// String implements fmt.Stringer
|
// String implements fmt.Stringer
|
||||||
|
@ -343,7 +343,7 @@ var _ VestingAccount = (*ContinuousVestingAccount)(nil)
|
||||||
type ContinuousVestingAccount struct {
|
type ContinuousVestingAccount struct {
|
||||||
*BaseVestingAccount
|
*BaseVestingAccount
|
||||||
|
|
||||||
StartTime int64 // when the coins start to vest
|
StartTime int64 `json:"start_time"` // when the coins start to vest
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewContinuousVestingAccount returns a new ContinuousVestingAccount
|
// NewContinuousVestingAccount returns a new ContinuousVestingAccount
|
||||||
|
|
Loading…
Reference in New Issue