...
This commit is contained in:
parent
b3d6a59c61
commit
2355e5ae6e
|
@ -13,6 +13,11 @@ import (
|
|||
type Delegation struct {
|
||||
DelegatorAddr sdk.Address `json:"delegator_addr"`
|
||||
ValidatorAddr sdk.Address `json:"validator_addr"`
|
||||
DelegationValue
|
||||
}
|
||||
|
||||
// delegation store value
|
||||
type DelegationValue struct {
|
||||
Shares sdk.Rat `json:"shares"`
|
||||
Height int64 `json:"height"` // Last height bond updated
|
||||
}
|
||||
|
@ -59,6 +64,11 @@ func (d Delegation) HumanReadableString() (string, error) {
|
|||
type UnbondingDelegation struct {
|
||||
DelegatorAddr sdk.Address `json:"delegator_addr"` // delegator
|
||||
ValidatorAddr sdk.Address `json:"validator_addr"` // validator unbonding from owner addr
|
||||
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
|
||||
|
@ -100,6 +110,11 @@ type Redelegation struct {
|
|||
DelegatorAddr sdk.Address `json:"delegator_addr"` // delegator
|
||||
ValidatorSrcAddr sdk.Address `json:"validator_src_addr"` // validator redelegation source owner addr
|
||||
ValidatorDstAddr sdk.Address `json:"validator_dst_addr"` // validator redelegation destination owner addr
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue