From 271fbb2db3a5946f20ba34891bdedc77a9b15e15 Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Mon, 2 Jul 2018 21:16:32 -0400 Subject: [PATCH] remove some junk --- x/stake/types/delegation.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/x/stake/types/delegation.go b/x/stake/types/delegation.go index daaeecef1..eb38a50a7 100644 --- a/x/stake/types/delegation.go +++ b/x/stake/types/delegation.go @@ -15,15 +15,8 @@ type Delegation struct { ValidatorAddr sdk.Address `json:"validator_addr"` Shares sdk.Rat `json:"shares"` Height int64 `json:"height"` // Last height bond updated - //DelegationValue } -// delegation store value -//type DelegationValue struct { -//Shares sdk.Rat `json:"shares"` -//Height int64 `json:"height"` // Last height bond updated -//} - // two are equal func (d Delegation) Equal(d2 Delegation) bool { return bytes.Equal(d.DelegatorAddr, d2.DelegatorAddr) && @@ -70,17 +63,8 @@ type UnbondingDelegation struct { MinTime int64 `json:"min_time"` // unix time for unbonding completion InitialBalance sdk.Coin `json:"initial_balance"` // atoms initially scheduled to receive at completion Balance sdk.Coin `json:"balance"` // atoms to receive at completion - //UBDValue } -// UBD store value -//type UBDValue struct { -//CreationHeight int64 `json:"creation_height"` // height which the unbonding took place -//MinTime int64 `json:"min_time"` // unix time for unbonding completion -//InitialBalance sdk.Coin `json:"initial_balance"` // atoms initially scheduled to receive at completion -//Balance sdk.Coin `json:"balance"` // atoms to receive at completion -//} - // nolint func (d UnbondingDelegation) Equal(d2 UnbondingDelegation) bool { bz1 := MsgCdc.MustMarshalBinary(&d) @@ -122,19 +106,8 @@ type Redelegation struct { Balance sdk.Coin `json:"balance"` // current balance SharesSrc sdk.Rat `json:"shares_src"` // amount of source shares redelegating SharesDst sdk.Rat `json:"shares_dst"` // amount of destination shares redelegating - //REDValue } -// Redelegation store value -//type REDValue struct { -//CreationHeight int64 `json:"creation_height"` // height which the redelegation took place -//MinTime int64 `json:"min_time"` // unix time for redelegation completion -//InitialBalance sdk.Coin `json:"initial_balance"` // initial balance when redelegation started -//Balance sdk.Coin `json:"balance"` // current balance -//SharesSrc sdk.Rat `json:"shares_src"` // amount of source shares redelegating -//SharesDst sdk.Rat `json:"shares_dst"` // amount of destination shares redelegating -//} - // nolint func (d Redelegation) Equal(d2 Redelegation) bool { bz1 := MsgCdc.MustMarshalBinary(&d)