You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What we need out of a validator set preferences module is:
A proto definition of validator set preference
messageValidatorPreference {
stringval_oper_address=1 [ (gogoproto.moretags) = "yaml:\"address\"" ];
// weight as a decimal between 0 and 1stringweight=2 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec",
(gogoproto.moretags) = "yaml:\"autostake_rate\"",
(gogoproto.nullable) = false
];
}
messageValidatorSetPreference {
repeatedValidatorPreferencepreferences=1 [ (gogoproto.nullable) = false ];
}
A state entry indexed by delegator address to specify a ValidatorSetPreference object
A message where a delegator can specify ValidatorSetPreference, and it writes to above state entry
A query, where you can query a delegators ValidatorSetPreferences.
If the delegator has no validator set preference object, see if they have staked any tokens. If so, construct a validator set preference object by looking at all of their existing delegations on the fly as a query
If there is no validator set preference + no staked tokens, make the response clearly indicate this.
A proto message to delegate according to your validator set preferences
For auto-staking, we will need to build a validator preference module where a user can configure multiple preferred validators.
In progress in #381
The text was updated successfully, but these errors were encountered: