Skip to content

Commit

Permalink
docs: update readme with latest updates (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrimalmadhur authored Oct 15, 2024
1 parent 48fa4b3 commit 5ff7845
Showing 1 changed file with 38 additions and 22 deletions.
60 changes: 38 additions & 22 deletions pkg/rewards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,23 @@ OPTIONS:
--proof-store-base-url value, --psbu value Specify the base URL of the proof store. If not provided, the value based on network will be used [$PROOF_STORE_BASE_URL]
--recipient-address value, --ra value Specify the address of the recipient. If this is not provided, the earner address will be used [$RECIPIENT_ADDRESS]
--rewards-coordinator-address value, --rc value Specify the address of the rewards coordinator. If not provided, the address will be used based on provided network [$REWARDS_COORDINATOR_ADDRESS]
--token-addresses value, -t value Specify the addresses of the tokens to claim. Comma separated list of addresses [$TOKEN_ADDRESSES]
--silent, -s Suppress unnecessary output (default: false) [$SILENT]
--token-addresses value, -t value Specify the addresses of the tokens to claim. Comma separated list of addresses. Omit to claim all rewards. [$TOKEN_ADDRESSES]
--verbose, -v Enable verbose logging (default: false) [$VERBOSE]
--web3signer-url value, -w value URL of the Web3Signer [$WEB3SIGNER_URL]
--help, -h show help
```
#### Example
##### Mainnet
```bash
eigenlayer rewards claim \
--network mainnet \
--eth-rpc-url https://rpc.ankr.com/eth/<> \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--path-to-key-store /path/to/key \
--broadcast
```
##### Testnet
```bash
eigenlayer rewards claim \
Expand All @@ -46,21 +56,6 @@ eigenlayer rewards claim \
--earner-address 0x111116fe4f8c2f83e3eb2318f090557b7cd0bf76 \
--recipient-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--path-to-key-store /path/to/key/store \
--token-addresses 0xdeeeeE2b48C121e6728ed95c860e296177849932 --broadcast
```
##### Preprod
```bash
eigenlayer rewards claim \
--network holesky \
--env preprod \
--eth-rpc-url https://rpc.ankr.com/eth_holesky/<> \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--path-to-key-store /path/to/key \
--token-addresses 0x554c393923c753d146aa34608523ad7946b61662 \
--rewards-coordinator-address 0xb22Ef643e1E067c994019A4C19e403253C05c2B0 \
--proof-store-base-url https://eigenlabs-rewards-preprod-holesky.s3.amazonaws.com
--broadcast
```
### Set Claimer Command
Expand Down Expand Up @@ -101,18 +96,26 @@ OPTIONS:
```
#### Example
##### Preprod
##### Mainnet
```bash
eigenlayer rewards set-claimer \
--network mainnet \
--eth-rpc-url https://rpc.ankr.com/eth/<> \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--claimer-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--path-to-key-store /path/to/key/store \
--broadcast
```
##### Testnet
```bash
eigenlayer rewards set-claimer \
--network holesky \
--eth-rpc-url https://rpc.ankr.com/eth_holesky/<> \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--claimer-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--path-to-key-store /path/to/key/store \
--rewards-coordinator-address 0xb22Ef643e1E067c994019A4C19e403253C05c2B0
--broadcast
```
For testnet, remove the `--rewards-coordinator-address` flag and binary will automatically use the testnet rewards coordinator address.
### Show Rewards
```bash
Expand Down Expand Up @@ -142,18 +145,31 @@ OPTIONS:
--verbose, -v Enable verbose logging (default: false) [$VERBOSE]
--help, -h show help
```
### Testnet
#### Example
Show all Rewards
```bash
./bin/eigenlayer rewards show \
--network holesky \
--network mainnet \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--eth-rpc-url https://rpc.ankr.com/eth/<> \
--claim-type all --verbose
```
Show claimed Rewards
```bash
./bin/eigenlayer rewards show \
--network mainnet \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--eth-rpc-url https://rpc.ankr.com/eth/<> \
--claim-type claomed --verbose
```
Show unclaimed Rewards
```bash
./bin/eigenlayer rewards show \
--network holesky \
--network mainnet \
--earner-address 0x2222AAC0C980Cc029624b7ff55B88Bc6F63C538f \
--eth-rpc-url https://rpc.ankr.com/eth/<> \
--claim-type unclaimed --verbose
```

0 comments on commit 5ff7845

Please sign in to comment.