Skip to content

Commit

Permalink
Merge pull request #28 from youfoundron/fix-readme-example-snippets-2
Browse files Browse the repository at this point in the history
Update Generate Withdrawal Proof snippet
  • Loading branch information
Sidu28 authored Feb 2, 2024
2 parents fe0cf07 + 62c7bff commit 8605318
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ This package allows you to generate withdrawal credential proofs, withdrawal pro

## Build the Executable

```
$cd generation
$go build
$cd ..
```bash
$ cd generation
$ go build
$ cd ..
```

### Generate Validator Withdrawal Credential Proof
Here is the command:
```
```bash
$ ./generation/generation \
-command ValidatorFieldsProof \
-oracleBlockHeaderFile [ORACLE_BLOCK_HEADER_FILE_PATH] \
Expand All @@ -47,7 +47,7 @@ $ ./generation/generation \
-chainID [CHAIN_ID]
```
Here is an example of running this command with the sample state/block files in the `/data` folder
```
```bash
./generation/generation \
-command ValidatorFieldsProof \
-oracleBlockHeaderFile "./data/deneb_goerli_block_header_7431952.json" \
Expand All @@ -58,7 +58,7 @@ Here is an example of running this command with the sample state/block files in
```
### Generate Withdrawal Proof
Here is the command:
```
```bash
$ ./generation/generation \
-command WithdrawalFieldsProof \
-oracleBlockHeaderFile [ORACLE_BLOCK_HEADER_FILE_PATH] \
Expand All @@ -74,28 +74,26 @@ $ ./generation/generation \
-withdrawalIndex [WITHDRAWAL_INDEX]
```
Here is an example of running this command with the sample state/block files in the `/data` folder

```
```bash
./generation/generation \
-command WithdrawalFieldsProof \
-oracleBlockHeaderFile "./data/deneb_goerli_block_header_7431952.json" \
-stateFile "./data/deneb_goerli_slot_7431952.json" \
-validatorIndex 200240 \
-outputFile "withdrawal_proof_200240.json" \
-oracleBlockHeaderFile ./data/deneb_goerli_block_header_7431952.json \
-stateFile ./data/deneb_goerli_slot_7431952.json \
-validatorIndex 627559 \
-outputFile "full_withdrawal_proof_627559.json \
-chainID 5 \
-historicalSummariesIndex 271 \
-blockHeaderIndex 8191 \
-historicalSummaryStateFile "./data/goerli_slot_6397852.json" \
-blockHeaderFile "./data/goerli_block_header_6397852.json" \
-blockBodyFile "./data/goerli_block_6397852.json" \
-historicalSummaryStateFile ./data/deneb_goerli_slot_7421952.json \
-blockHeaderFile data/deneb_goerli_block_header_7421951.json \
-blockBodyFile data/deneb_goerli_block_7421951.json \
-withdrawalIndex 0
```
### Generate a Balance Update Proof.
```
```bash
$ ./generation/generation \
- command BalanceUpdateProof \
-oracleBlockHeaderFile [ORACLE_BLOCK_HEADER_FILE_PATH] \
Expand All @@ -105,7 +103,7 @@ $ ./generation/generation \
-chainID [CHAIN_ID]
```
Here is an example of running this command with the sample state/block files in the `/data` folder:
```
```bash
./generation/generation \
-command BalanceUpdateProof \
-oracleBlockHeaderFile "./data/deneb_goerli_block_header_7431952.json" \
Expand Down

0 comments on commit 8605318

Please sign in to comment.