mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
59fc2e13e7
Former-commit-id: 5f673dffed4267c1aca8ebfb4fe182798b9b2d2a [formerly 3fd494231ba5a350ab59a86fcf60ae9f56f1da00] Former-commit-id: 1506dd418121884a8c7a727f8cf03c12e4c93cc3
53 lines
1.9 KiB
Markdown
53 lines
1.9 KiB
Markdown
## Utility to Deploy Validator Registraction Contract
|
|
|
|
This is a utility to help users deploy validator registration contract for running their own beacon chain node in a local containerized set up. To run the utility, it assumes there is a running geth node as a separate process attached to proof-of-work main chain. The utility will deploy the validator registration contract and print out the contract address. Users will pass the contract address to the beacon chain node to monitor when they have been conducted to become an active validator.
|
|
|
|
### Usage
|
|
|
|
*Name:*
|
|
**deployVRC** - this is a util to deploy validator registration contract
|
|
|
|
*Usage:*
|
|
deployVRC [global options] command [command options] [arguments...]
|
|
|
|
*Flags:*
|
|
**--keystoreUTCPath** Keystore UTC file to unlock account (default: "./datadir/keystore/UTC...")
|
|
**--ipcPath** Filename for IPC socket/pipe within the datadir (default: "./geth.ipc")
|
|
**--httpPath** HTTP-RPC server listening interface (default: "http://localhost:8545/")
|
|
**--passwordFile** Password file for unlock account (default: "./password.txt")
|
|
**--privKey** Private key to unlock account
|
|
**--help, -h** show help
|
|
**--version, -v** print the version
|
|
|
|
### Example
|
|
To use private key with default RPC:
|
|
```
|
|
bazel run //deployVRC --privKey yourPrivateKey
|
|
```
|
|
|
|
To use UTC JSON with IPC:
|
|
```
|
|
bazel run //deployVRC --\
|
|
--ipcPath /path/to/your/geth.ipc \
|
|
--UTCPath /path/to/your/keystore/UTCJSON \
|
|
--passwordFile /path/to/your/password.txt
|
|
```
|
|
To use UTC JSON with RPC:
|
|
```
|
|
bazel run //deployVRC --\
|
|
--httpPath http://localhost:8545/ \
|
|
--UTCPath /path/to/your/keystore/UTCJSON \
|
|
--passwordFile /path/to/your/password.txt
|
|
```
|
|
or
|
|
```
|
|
bazel run //deployVRC --\
|
|
--UTCPath /path/to/your/keystore/UTCJSON \
|
|
--passwordFile /path/to/your/password.txt
|
|
```
|
|
|
|
### Output
|
|
```
|
|
INFO[0001] New contract deployed at 0x5275C2220C574330E230bFB7e4a0b96f60a18f02
|
|
```
|