9ac88d11da
Former-commit-id: d22d05529bb0050b8a03053a28d876e3e458bbff [formerly 284a04699110aa285a42f5b0ad244ca9bd77d2df] Former-commit-id: 83cd9c8a48fb5ce9c57ff8ef6c2b1741a4d05130 |
||
---|---|---|
.. | ||
BUILD.bazel | ||
deployVRC.go | ||
README.md |
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