Merge PR #3651: Add JSON struct tags to vesting accounts

This commit is contained in:
Jack Zampolin 2019-02-14 08:40:26 -08:00 committed by GitHub
commit f72a7c3829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -42,6 +42,7 @@ IMPROVEMENTS
JSON ABCI log.
* [\#3620](https://github.com/cosmos/cosmos-sdk/pull/3620) Version command shows build tags
* [\#3638] Add Bcrypt benchmarks & justification of security parameter choice
* [\#3648] Add JSON struct tags to vesting accounts.
* Tendermint
* [\#3618] Upgrade to Tendermint 0.30.03

View File

@ -183,11 +183,11 @@ func (acc *BaseAccount) SpendableCoins(_ time.Time) sdk.Coins {
type BaseVestingAccount struct {
*BaseAccount
OriginalVesting sdk.Coins // coins in account upon initialization
DelegatedFree sdk.Coins // coins that are vested and delegated
DelegatedVesting sdk.Coins // coins that vesting and delegated
OriginalVesting sdk.Coins `json:"original_vesting"` // coins in account upon initialization
DelegatedFree sdk.Coins `json:"delegated_free"` // coins that are vested 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
@ -343,7 +343,7 @@ var _ VestingAccount = (*ContinuousVestingAccount)(nil)
type ContinuousVestingAccount struct {
*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