OperatorUtils
Last updated
Last updated
/ / OperatorUtils
Defined in:
new OperatorUtils():
Returns
static
getOperator(chainId
,address
):Promise
<>
Defined in:
This function returns the operator data for the given address.
Parameters
chainId
Network in which the operator is deployed
address
string
Operator address.
Returns
Returns the operator details.
Code example
This function returns all the operator details of the protocol.
Parameters
filter
Filter for the operators.
Returns
Returns an array with all the operator details.
Code example
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
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
Promise
<>
static
getOperators(filter
): Promise
<[]>
Defined in:
Promise
<[]>
static
getReputationNetworkOperators(chainId
, address
, role
?): Promise
<[]>
Defined in:
Promise
<[]>
static
getRewards(chainId
, slasherAddress
): Promise
<[]>
Defined in:
Promise
<[]>