Validators Registry
The Validator Registry contract stores an approved validators whitelist.
The main query of the contract - GetValidatorsForDelegation
returns a list of approved validators sorted by total_delegated amount.
The Hub uses this query to equally distribute delegations between validators.
Config
owner
CanonicalAddr
Owner of the contract
hub_contract
CanonicalAddr
InitMsg
registry
Vec<Validator>
List of whitelisted validators
hub_contract
String
address
String
Operator address
ExecuteMsg
AddValidator
Adds a validator to the registry. Can only be executed by the owner.
validator
Validator
validator struct
address
String
Operator address
RemoveValidator
Removes a validator from the registry. Can only be executed by the owner.
address
String
Operator address
UpdateConfig
Updates a registry's configuration. Can only be issued by the owner.
hub_contract*
String
* = optional
Redelegations
Re-delegate the delegation from the validator which removed to other whitelisted validator nodes.
address
String
Operator address
SetOwner
Transfer ownership permissions to a new owner address.
new_owner_addr
String
The address of new owner
AcceptOwnership
The new owner accepts ownership permissions.
QueryMsg
GetValidatorsForDelegation
Returns validators sorted by total_delegated amount.
ValidatorResponse
returns list validatorResponse
total_delegated
Uint128
total INJ delegated to validator
address
String
Operator address
Config
Returns a Config struct.
NewOwner
Query the address of the new owner.
NewOwnerResponse
new_owner
String
The address of new owner
Last updated