Skip to content

Commit

Permalink
fix(operator): make operator mainnet docs (#855)
Browse files Browse the repository at this point in the history
Adds mainnet section to operator docs for registration

task: none
  • Loading branch information
idea404 authored Apr 15, 2024
1 parent 69f9eee commit c266a83
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 5 deletions.
12 changes: 12 additions & 0 deletions docs/site/docs/operate/onboarding/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,21 @@ This feature is not yet enabled. Please do not attempt to run it.

After adding the `halo` binary to your system, you can initialize and run the client with the following command:

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

<Tabs>
<TabItem value="testnet" label="testnet">
```bash
halo init --network testnet
```
</TabItem>
<TabItem value="mainnet" label="mainnet">
```bash
halo init --network mainnet
```
</TabItem>
</Tabs>

:::tip Using EigenLayer-Generated Private Keys

Expand Down
28 changes: 24 additions & 4 deletions docs/site/docs/operate/onboarding/register.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,36 @@ You will need to have an `operator.yml` file to perform this registration. This

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.

**Testnet**

```yaml
operator:
address: 0xfd23f7f705344bce1582fcf9bc6a0dc8e33b3b61 # Your operator address
earnings_receiver_address: 0xfd23f7f705344bce1582fcf9bc6a0dc8e33b3b61 # Your operator payout address, may be the same as above
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
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
```
**Mainnet**
```yaml
operator:
address: 0xfd23f7f705344bce1582fcf9bc6a0dc8e33b3b61 # Your operator address
earnings_receiver_address: 0xfd23f7f705344bce1582fcf9bc6a0dc8e33b3b61 # Your operator payout address, may be the same as above
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 -- 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
el_delegation_manager_address: 0x39053D51B77DC0d36036Fc1fCc8Cb819df8Ef37A # Ethereum mainnet address for the EigenLayer delegation manager
eth_rpc_url: https://ethereum-rpc.publicnode.com # Ethereum mainnet RPC URL
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 -- replace with `1` for mainnet
chain_id: 1 # The chain ID of Ethereum mainnet
```
</details>
Expand All @@ -39,6 +57,8 @@ 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 Mainnet AVS address is [`0xed2f4d90b073128ae6769a9A8D51547B1Df766C8`](https://etherscan.io/address/0xed2f4d90b073128ae6769a9A8D51547B1Df766C8).
The Testnet AVS address (`0xa7b2e7830C51728832D33421670DbBE30299fD92`) is the address of the Omni AVS contract [deployed on Holesky](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).

:::
2 changes: 1 addition & 1 deletion docs/site/src/pages/testnet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function TestnetPage() {
<p>Learn how to build native cross-chain applications</p>
</div>
<div className="start-box">
<a href="/operate/testnet/" className="start-box-link"></a>
<a href="/operate/onboarding/" className="start-box-link"></a>
<div className='dot'></div>
<ThemedIcon />
<h3>Operate</h3>
Expand Down

0 comments on commit c266a83

Please sign in to comment.