prysm-pulse/tools/deployContract
Raul Jordan 191bce3655
Add True Eth2 Deposit Contract, Bytecode, ABI (#9637)
* solidity contract, abi, and deposit util

* gaz

* gaz

* drain contract remove

* build

* fix up deploy

* add readme

* fix e2e

* revert

* revert flag

* fix

* revert test flag

* fix broken test

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2021-09-22 17:27:13 +00:00
..
BUILD.bazel Add True Eth2 Deposit Contract, Bytecode, ABI (#9637) 2021-09-22 17:27:13 +00:00
deployContract.go Add True Eth2 Deposit Contract, Bytecode, ABI (#9637) 2021-09-22 17:27:13 +00:00
README.md Shift Deposit Contract Tools (#4357) 2019-12-27 00:41:43 +00: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:
deployContract - this is a util to deploy deposit contract

Usage:
deployContract [global options] command [command options] [arguments...]

Flags:

  • --ipcPath value Filename for IPC socket/pipe within the datadir
  • --httpPath value HTTP-RPC server listening interface (default: "http://localhost:8545/")
  • --passwordFile value Password file for unlock account (default: "./password.txt")
  • --privKey value Private key to unlock account
  • --k8sConfig value Name of kubernetes config map to update with the contract address
  • --help, -h show help
  • --version, -v print the version

Example

To use private key with default RPC:

bazel run //contracts/deposit-contract/deployContract -- --httpPath=https://goerli.prylabs.net --privKey=$(echo /path/to/private/key/file)

Output

INFO[0001] New contract deployed at 0x5275C2220C574330E230bFB7e4a0b96f60a18f02