prysm-pulse/contracts/deposit-contract/deployContract
Preston Van Loon 5eb5f6afa9
Faucet enhancements + cluster private key management system (#1679)
* second pass at faucet, no rate limiting yet

* Add authentication support, step 1. This stuff needs to be refactored and tested

* move deposit input to keystore pkg, add proof of possession and withdrawal addr

* checkpoint on progress with cluster private key manager

* checkpoint w/ bootnode config

* checkpoint

* resolve todo

* encrypt the secrets

* add note about querying testnet

* workspace

* checkpoitn

* remove limits

* update

* checkpoint

* checkpoint

* remove jwt stuff

* fix build

* lint

* lint

* remove init

* remove jwt

* update

* checkpoint
2019-03-07 11:14:57 -05:00
..
BUILD.bazel add missing dep to the docker image (#1695) 2019-02-24 11:34:36 -05:00
deployContract.go Faucet enhancements + cluster private key management system (#1679) 2019-03-07 11:14:57 -05:00
README.md Update References to Deposit Contract, Update Flags (#1576) 2019-02-13 13:08:28 -06: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:

  • --skipChainstartDelay Whether to skip ChainStart log being fired a day later
  • --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
  • --chainStart value Number of validators required for chain start (default: 16384)
  • --minDeposit value Minimum deposit value allowed in contract (default: 1000000000)
  • --maxDeposit value Maximum deposit value allowed in contract (default: 32000000000)
  • --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) --chainStart=8 --minDeposit=100 --maxDeposit=3200

Output

INFO[0001] New contract deployed at 0x5275C2220C574330E230bFB7e4a0b96f60a18f02