OperatorUtils
Last updated
Last updated
/ / OperatorUtils
new OperatorUtils():
Returns
static
getLeader(chainId
,address
):Promise
<>
This function returns the leader data for the given address.
Parameters
chainId
Network in which the leader is deployed
address
string
Leader address.
Returns
Returns the leader details.
Code example
Defined in
This function returns all the leader details of the protocol.
Parameters
filter
Filter for the leaders.
Returns
Returns an array with all the leader details.
Code example
Defined in
Retrieves the reputation network operators of the specified address.
Parameters
chainId
Network in which the reputation network is deployed
address
string
Address of the reputation oracle.
role?
string
(Optional) Role of the operator.
Returns
Returns an array of operator details.
Code example
Defined in
This function returns information about the rewards for a given slasher address.
Parameters
chainId
Network in which the rewards are deployed
slasherAddress
string
Slasher address.
Returns
Returns an array of Reward objects that contain the rewards earned by the user through slashing other users.
Code example
Defined in
Promise
<>
static
getLeaders(filter
): Promise
<[]>
Promise
<[]>
static
getReputationNetworkOperators(chainId
, address
, role
?): Promise
<[]>
Promise
<[]>
static
getRewards(chainId
, slasherAddress
): Promise
<[]>
Promise
<[]>