prysm-pulse/contracts/deposit-contract/deployContract
Raul Jordan 5dc5f1d1c8 Update Contract to Use Little Endian And Encoding Across Entire Repo (#1536)
* using little endian and tests for encoding dep inputs

* use decode value and timestamp method in state

* updated comments to match serialization format

* latest compiled contract, abi, bytecode, and bindings

* to little endian everywhere

* fix all tests except for contract tests

* include contract changes

* address broken build

* compile with vyper v8

* update readme

* fix pkg name

* add skip chainstart delay

* skip chainstart delay tests pass

* to little endian timestamp
2019-02-12 09:27:00 +05:30
..
BUILD.bazel Restore deployVRC docker image (#1413) 2019-01-28 06:37:24 -05:00
deployContract.go Update Contract to Use Little Endian And Encoding Across Entire Repo (#1536) 2019-02-12 09:27:00 +05:30
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