Comment on page
NodeOperatorRegistry
Registration and management of Node Operator
After successfully creating a reward and controller address, an operator must register it to the NodeDAO Smart contract.
Description: You can register your operator through the NodeDAO web app or via a transaction directly to the smart contract While registering your operator you will need to provide the following parameters:
Returns (uint256 value)
Parameter | Type | Description |
_name | string | represents the name of the operator being registered. |
_controllerAddress | address | represents the controller address of the operator. |
_owner | address | represents the owner address of the operator. |
_rewardAddresses | address[] | array of addresses that represents the reward addresses for the operator. |
_ratios | uint256[] | array of uint256 values that represents the ratios for each reward address. |
Description: Withdraws pledged funds available for a specific node operator.
Parameter | Type | Description |
_operatorId | uint256 | represents the ID of the node operator whose funds are being withdrawn. |
_withdrawAmount | uint256 | value that represents the amount of funds being withdrawn. |
_to | address | represents the recipient address of the withdrawn funds. |
Description: Exit the operator. When there are no validators running, the owner of the operator has the right to opt out.
Parameter | Type | Description |
operatorId | uint256 | operator's id |
_to | address | address to transfer pledge amount to |
Description: Set an operator as trusted
Parameter | Type | Description |
_id | uint256 | operator id to be trusted |
external removeTrustedOperator()
Description: Remove trusted operator
Parameter | Type | Description |
_id | uint256 | trusted operator id to be untrusted |
external setBlacklistOperator()
Description: Set an operator as blacklist
Parameter | Type | Description |
_id | uint256 | operator id to be blacklisted |
external removeBlacklistOperator()
Description: Removes blacklisted operator
Parameter | Type | Description |
_id | uint256 | blacklisted operator id to be remove from list |
external setNodeOperatorName()
Description: Set the name of the operator
Parameter | Type | Description |
_id | uint256 | target operator id |
_name | string | new name |
external setNodeOperatorRewardAddress()
Description: Set the rewardAddress of the operator
Parameter | Type | Description |
_id | uint256 | target operator id |
_rewardAddresses | address[] | reward addresses of operator |
_ratios | uint256[] | reward ratios for the addresses |
external setNodeOperatorControllerAddress()
Description: Set the controllerAddress of the operator
Parameter | Type | Description |
_id | uint256 | target operator id |
_controllerAddress | address | address for the operator's management authority |
external setNodeOperatorOwnerAddress()
Description: Change the owner of the operator
Parameter | Type | Description |
_id | uint256 | target operator id |
_owner | address | address for the operator's owner authority |
external getNodeOperator()
Description: Get information about an operator
Returns (bool trusted, string name, address owner, address controllerAddress, address vaultContractAddress)
Parameter | Type | Description |
_id | uint256 | target operator id |
_fullInfo | bool | Get all information |
external getNodeOperatorVaultContract()
Description: Get information about an operator vault contract address
Returns (address vaultContractAddress)
Parameter | Type | Description |
_id | uint256 | target operator id |
external getNodeOperatorOwner()
Description: Get operator owner address
Returns (address ownerAddress)
Parameter | Type | Description |
_id | uint256 | target operator id |
external getNodeOperatorRewardSetting()
Description: Get operator rewardSetting
Returns (address[] rewardAddresses, uint256[] ratios)
Parameter | Type | Description |
_id | uint256 | target operator id |
external getNodeOperatorsCount()
Description: Returns total number of node operators
Returns (uint256 count)
external getTrustedOperatorsCount()
Description: Returns total number of trusted node operators
Returns (uint256 count)
external getBlacklistOperatorsCount()
Description: Returns total number of blacklisted node operators
Returns (uint256 count)
external isTrustedOperator()
Description: Returns trusted node operator boolean
Returns (bool trusted)
Parameter | Type | Description |
_id | uint256 | target operator id |
external isQuitOperator()
Description: Returns operator quit boolean
Returns (bool isQuit)
Parameter | Type | Description |
_id | uint256 | target operator id |
external isTrustedOperatorOfControllerAddress()
Description: Returns if address is a controller address of a trusted operator
Returns (uint256 operatorId)
Parameter | Type | Description |
_controllerAddress | address | address of controller |
external deposit()
Description: Deposits pledge for operator
remember to pass the required ETH amount into msg.value
Parameter | Type | Description |
_id | uint256 | target operator id |
Last modified 5mo ago