Merge PR #1168: Governance MVP
This commit is contained in:
committed by
Christopher Goes
parent
d08b916f01
commit
dc2c8f900b
+3
-1
@@ -37,6 +37,7 @@ type Validator interface {
|
||||
GetOwner() Address // owner address to receive/return validators coins
|
||||
GetPubKey() crypto.PubKey // validation pubkey
|
||||
GetPower() Rat // validation power
|
||||
GetDelegatorShares() Rat // Total out standing delegator shares
|
||||
GetBondHeight() int64 // height in which the validator became active
|
||||
}
|
||||
|
||||
@@ -76,9 +77,10 @@ type Delegation interface {
|
||||
|
||||
// properties for the set of all delegations for a particular
|
||||
type DelegationSet interface {
|
||||
GetValidatorSet() ValidatorSet // validator set for which delegation set is based upon
|
||||
|
||||
// iterate through all delegations from one delegator by validator-address,
|
||||
// execute func for each validator
|
||||
IterateDelegators(Context, delegator Address,
|
||||
IterateDelegations(ctx Context, delegator Address,
|
||||
fn func(index int64, delegation Delegation) (stop bool))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user