prysm-pulse/contracts/deposit-contract/deployContract/README.md
Nishant Das 1e862511aa
Replace Solidity Contract With Vyper (#1343)
* adding deposit contract

* Adding bindings

* remove unused info

* shifting deploy function over

* new changes

* fixing tests and moving log utils to contract package

* new changes,helpers, fixing tests

* fix failing test

* readme

* contract change

* changes to contract

* new changes,helpers, fixing tests

* missing files

* adding constructor to contract

* lint

* updating with spec

* finally got it fixed

* add in deposit arguments

* new changes

* all tests pass

* addresing raul's and terence's comments

* remove vrc
2019-01-28 16:45:28 +08:00

1.9 KiB

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