prysm-pulse/contracts/deposit-contract/deployContract
2019-02-03 08:55:02 -05:00
..
BUILD.bazel Restore deployVRC docker image (#1413) 2019-01-28 06:37:24 -05:00
deployContract.go Add configuration for deploying the deposit contract (#1467) 2019-02-03 08:55:02 -05:00
README.md Replace Solidity Contract With Vyper (#1343) 2019-01-28 16:45:28 +08:00

Utility to Deploy Deposit Contract

This is a utility to help users deploy deposit 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 deposit 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 \
  --keystoreUTCPath /path/to/your/keystore/UTCJSON \
  --passwordFile /path/to/your/password.txt

To use UTC JSON with RPC:

bazel run //deployVRC --\
  --httpPath http://localhost:8545/  \
  --keystoreUTCPath /path/to/your/keystore/UTCJSON \
  --passwordFile /path/to/your/password.txt

or

bazel run //deployVRC --\
  --keystoreUTCPath /path/to/your/keystore/UTCJSON \
  --passwordFile /path/to/your/password.txt

Output

INFO[0001] New contract deployed at 0x5275C2220C574330E230bFB7e4a0b96f60a18f02