remove some junk

This commit is contained in:
rigelrozanski 2018-07-02 21:16:32 -04:00
parent e94c05e42c
commit 271fbb2db3
1 changed files with 0 additions and 27 deletions

View File

@ -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)