mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-02 09:46:26 +00:00
Unix-style command-line params for the 'deposit_contract' binary
This commit is contained in:
parent
6ceb75c6b3
commit
734ab64da8
@ -18,7 +18,6 @@ import
|
|||||||
const
|
const
|
||||||
dataDirValidators = "validators"
|
dataDirValidators = "validators"
|
||||||
genesisFile = "genesis.json"
|
genesisFile = "genesis.json"
|
||||||
testnetsBaseUrl = "https://raw.githubusercontent.com/status-im/nim-eth2-testnet-data/master/www"
|
|
||||||
hasPrompt = not defined(withoutPrompt)
|
hasPrompt = not defined(withoutPrompt)
|
||||||
|
|
||||||
# https://github.com/ethereum/eth2.0-metrics/blob/master/metrics.md#interop-metrics
|
# https://github.com/ethereum/eth2.0-metrics/blob/master/metrics.md#interop-metrics
|
||||||
|
@ -14,10 +14,13 @@ type
|
|||||||
|
|
||||||
CliConfig = object
|
CliConfig = object
|
||||||
depositWeb3Url* {.
|
depositWeb3Url* {.
|
||||||
desc: "URL of the Web3 server to observe Eth1"}: string
|
desc: "URL of the Web3 server to observe Eth1"
|
||||||
|
longform: "web3-url" }: string
|
||||||
|
|
||||||
privateKey* {.
|
privateKey* {.
|
||||||
desc: "Private key of the controlling account",
|
desc: "Private key of the controlling account",
|
||||||
defaultValue: ""}: string
|
defaultValue: ""
|
||||||
|
longform: "private-key" }: string
|
||||||
|
|
||||||
case cmd* {.command.}: StartUpCommand
|
case cmd* {.command.}: StartUpCommand
|
||||||
of deploy:
|
of deploy:
|
||||||
@ -26,11 +29,12 @@ type
|
|||||||
of drain:
|
of drain:
|
||||||
contractAddress* {.
|
contractAddress* {.
|
||||||
desc: "Address of the contract to drain",
|
desc: "Address of the contract to drain",
|
||||||
defaultValue: ""}: string
|
defaultValue: ""
|
||||||
|
longform: "deposit-contract" }: string
|
||||||
|
|
||||||
of sendEth:
|
of sendEth:
|
||||||
toAddress: string
|
toAddress {.longform: "to".}: string
|
||||||
valueEth: string
|
valueEth {.longform: "eth".}: string
|
||||||
|
|
||||||
contract(Deposit):
|
contract(Deposit):
|
||||||
proc drain()
|
proc drain()
|
||||||
|
@ -50,8 +50,8 @@ DOCKER_BEACON_NODE="docker run -v $NETWORK_DIR_ABS:/network_dir -v $DATA_DIR_ABS
|
|||||||
make deposit_contract
|
make deposit_contract
|
||||||
|
|
||||||
if [ "$ETH1_PRIVATE_KEY" != "" ]; then
|
if [ "$ETH1_PRIVATE_KEY" != "" ]; then
|
||||||
DEPOSIT_CONTRACT_ADDRESS=$(./build/deposit_contract deploy $WEB3_URL_ARG --privateKey=$ETH1_PRIVATE_KEY)
|
DEPOSIT_CONTRACT_ADDRESS=$(./build/deposit_contract deploy $WEB3_URL_ARG --private-key=$ETH1_PRIVATE_KEY)
|
||||||
DEPOSIT_CONTRACT_ADDRESS_ARG="--deposit_contract=$DEPOSIT_CONTRACT_ADDRESS"
|
DEPOSIT_CONTRACT_ADDRESS_ARG="--deposit-contract=$DEPOSIT_CONTRACT_ADDRESS"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd docker
|
cd docker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user