Skip to content

Commit f72a7c3

Browse files
authored
Merge PR #3651: Add JSON struct tags to vesting accounts
2 parents fb2d902 + afd90f8 commit f72a7c3

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

PENDING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ IMPROVEMENTS
4242
JSON ABCI log.
4343
* [\#3620](https://github.com/cosmos/cosmos-sdk/pull/3620) Version command shows build tags
4444
* [\#3638] Add Bcrypt benchmarks & justification of security parameter choice
45+
* [\#3648] Add JSON struct tags to vesting accounts.
4546

4647
* Tendermint
4748
* [\#3618] Upgrade to Tendermint 0.30.03

x/auth/account.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ func (acc *BaseAccount) SpendableCoins(_ time.Time) sdk.Coins {
183183
type BaseVestingAccount struct {
184184
*BaseAccount
185185

186-
OriginalVesting sdk.Coins // coins in account upon initialization
187-
DelegatedFree sdk.Coins // coins that are vested and delegated
188-
DelegatedVesting sdk.Coins // coins that vesting and delegated
186+
OriginalVesting sdk.Coins `json:"original_vesting"` // coins in account upon initialization
187+
DelegatedFree sdk.Coins `json:"delegated_free"` // coins that are vested and delegated
188+
DelegatedVesting sdk.Coins `json:"delegated_vesting"` // coins that vesting and delegated
189189

190-
EndTime int64 // when the coins become unlocked
190+
EndTime int64 `json:"end_time"` // when the coins become unlocked
191191
}
192192

193193
// String implements fmt.Stringer
@@ -343,7 +343,7 @@ var _ VestingAccount = (*ContinuousVestingAccount)(nil)
343343
type ContinuousVestingAccount struct {
344344
*BaseVestingAccount
345345

346-
StartTime int64 // when the coins start to vest
346+
StartTime int64 `json:"start_time"` // when the coins start to vest
347347
}
348348

349349
// NewContinuousVestingAccount returns a new ContinuousVestingAccount

0 commit comments

Comments
 (0)