Skip to content

Commit

Permalink
chore(docs): update operator docs for mainnet (#846)
Browse files Browse the repository at this point in the history
adds mainnet info.

task: none
  • Loading branch information
ttarsi authored Apr 12, 2024
1 parent 998a2c8 commit c1bf0b7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ You will need to have an `operator.yml` file to perform this registration. This
<details>
<summary>`operator.yml` Reference</summary>

For further information on this reference, please refer to the [EigenLayer reference example](https://github.com/Layr-Labs/eigenlayer-cli/blob/master/pkg/operator/config/operator-config-example.yaml).
For further information on this reference, please refer to the [EigenLayer reference example](https://github.com/Layr-Labs/eigenlayer-cli/blob/master/pkg/operator/config/operator-config-example.yaml). Note that this example was generated for Holesky testnet. You should use your pre-existing `operator.yaml`, configured for the network you're registering on.

```yaml
operator:
Expand All @@ -20,32 +20,25 @@ operator:
delegation_approver_address: "0x0000000000000000000000000000000000000000" # Your delegation approver address, may be left as shown
staker_opt_out_window_blocks: 0 # may be left as shown, and can be updated later using EigenLayer CLI
metadata_url: "https://raw.githubusercontent.com/idea404/resources/main/eigenlayer/metadata.json" # Your metadata URL
el_delegation_manager_address: 0xA44151489861Fe9e3055d95adC98FbD462B948e7 # The address of the EigenLayer delegation manager on Holesky
eth_rpc_url: https://ethereum-holesky-rpc.publicnode.com # Holesky RPC URL
el_delegation_manager_address: 0xA44151489861Fe9e3055d95adC98FbD462B948e7 # The address of the EigenLayer delegation manager on Holesky -- replace with mainnet address for mainnet registration
eth_rpc_url: https://ethereum-holesky-rpc.publicnode.com # Holesky RPC URL -- replace with mainnet RPC URL for mainnet registration
private_key_store_path: /Users/idea404/.eigenlayer/operator_keys/OpKeys1.ecdsa.key.json # Your private key store path generated or imported by EigenLayer CLI
signer_type: local_keystore # Your signer type, may be left as shown
chain_id: 17000 # The chain ID of Holesky
chain_id: 17000 # The chain ID of Holesky -- replace with `1` for mainnet
```
</details>
## Register as an Operator
:::warning
The CLI will be updated to include the Holesky AVS address soon. For now, do not run the command below.
:::
1. Ensure that your node address has been added to the allowed list of operators.
2. Run the following command to register as an operator:
Run the following command to register as an operator:
```bash
omni operator register --config-file ~/path/to/operator.yaml
```

:::info

The AVS address (`0xa7b2e7830C51728832D33421670DbBE30299fD92`) is the address of the Omni AVS contract [deployed on Holesky testnet](https://holesky.etherscan.io/address/0xa7b2e7830C51728832D33421670DbBE30299fD92) that will be called by the `register` command.
The AVS address (`0xa7b2e7830C51728832D33421670DbBE30299fD92`) is the address of the Omni AVS contract [deployed on Holesky testnet](https://holesky.etherscan.io/address/0xa7b2e7830C51728832D33421670DbBE30299fD92) that will be called by the `register` command. The Mainnet AVS address is [`0xed2f4d90b073128ae6769a9A8D51547B1Df766C8`](https://etherscan.io/address/0xed2f4d90b073128ae6769a9A8D51547B1Df766C8).

:::
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ sidebar_position: 1

# EigenLayer Registration

## Registering as an Operator for Testnet
## Registering as an Operator for Testnet & Mainnet

To register with Omni, operators must first register as an operator on the Eigenlayer smart contracts on Holesky testnet.
To register with Omni, operators must first register as an operator on the Eigenlayer smart contracts on Holesky testnet or Mainnet.

This registers your Ethereum public key with the Eigenlayer smart contracts. You can follow Eigenlayer's instructions [here](https://docs.eigenlayer.xyz/eigenlayer/operator-guides/operator-installation).
4 changes: 2 additions & 2 deletions docs/site/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,13 @@ const sidebars: SidebarsConfig = {
},
{
type: "category",
label: "Testnet",
label: "Onboarding",
className: "sidebar-title",
collapsible: false,
items: [
{
type: "autogenerated",
dirName: "operate/testnet",
dirName: "operate/onboarding",
}
]
}
Expand Down

0 comments on commit c1bf0b7

Please sign in to comment.