Skip to content

Commit f64f45c

Browse files
authored
Merge pull request ethereum#215 from ethereum/eth2_rename
"Eth2" Removal Both python script and macOS binary tested manually against deposits on [prater.launchpad.ethereum.org](prater.launchpad.ethereum.org)
2 parents 1378131 + e3d9664 commit f64f45c

File tree

128 files changed

+178
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+178
-178
lines changed

.circleci/config.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
command: |
120120
export PYTHONHASHSEED=42
121121
export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7)
122-
export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64;
122+
export BUILD_FILE_NAME=staking_deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64;
123123
mkdir ${BUILD_FILE_NAME};
124124
pyenv global 3.7.5;
125125
pyinstaller --distpath ./${BUILD_FILE_NAME} ./build_configs/linux/build.spec;
@@ -128,7 +128,7 @@ jobs:
128128
command: |
129129
export PYTHONHASHSEED=42
130130
export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7)
131-
export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64;
131+
export BUILD_FILE_NAME=staking_deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64;
132132
export TEST_FOLDER_NAME=TMP_TEST_FOLDER
133133
mkdir ${TEST_FOLDER_NAME}
134134
cp -r ${BUILD_FILE_NAME} ${TEST_FOLDER_NAME}
@@ -140,7 +140,7 @@ jobs:
140140
command: |
141141
export PYTHONHASHSEED=42
142142
export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7)
143-
export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64;
143+
export BUILD_FILE_NAME=staking_deposit-cli-${CIRCLE_SHORT_SHA1}-linux-amd64;
144144
tar -zcvf ${BUILD_FILE_NAME}.tar.gz ./${BUILD_FILE_NAME};
145145
mkdir /tmp/artifacts;
146146
cp ${BUILD_FILE_NAME}.tar.gz /tmp/artifacts;
@@ -161,7 +161,7 @@ jobs:
161161
command: |
162162
$PYTHONHASHSEED = 42
163163
$CIRCLE_SHORT_SHA1 = $env:CIRCLE_SHA1.substring(0,7)
164-
$BUILD_FILE_NAME = "eth2deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64"
164+
$BUILD_FILE_NAME = "staking_deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64"
165165
mkdir $BUILD_FILE_NAME
166166
$BUILD_FILE_NAME_PATH = ".\" + $BUILD_FILE_NAME
167167
pyinstaller --distpath $BUILD_FILE_NAME_PATH .\build_configs\windows\build.spec
@@ -170,7 +170,7 @@ jobs:
170170
command: |
171171
$PYTHONHASHSEED = 42
172172
$CIRCLE_SHORT_SHA1 = $env:CIRCLE_SHA1.substring(0,7)
173-
$BUILD_FILE_NAME = "eth2deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64"
173+
$BUILD_FILE_NAME = "staking_deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64"
174174
$TEST_FOLDER_NAME = "TMP_TEST_FOLDER"
175175
mkdir ${TEST_FOLDER_NAME}
176176
Copy-item ${BUILD_FILE_NAME} -destination ${TEST_FOLDER_NAME} -recurse
@@ -182,7 +182,7 @@ jobs:
182182
command: |
183183
$PYTHONHASHSEED = 42
184184
$CIRCLE_SHORT_SHA1 = $env:CIRCLE_SHA1.substring(0,7)
185-
$BUILD_FILE_NAME = "eth2deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64"
185+
$BUILD_FILE_NAME = "staking_deposit-cli-" + $CIRCLE_SHORT_SHA1 + "-windows-amd64"
186186
$BUILD_FILE_NAME_PATH = ".\" + $BUILD_FILE_NAME
187187
$ZIP_FILE_NAME = $BUILD_FILE_NAME + ".zip"
188188
Compress-Archive -Path $BUILD_FILE_NAME_PATH -DestinationPath $ZIP_FILE_NAME
@@ -208,15 +208,15 @@ jobs:
208208
command: |
209209
export PYTHONHASHSEED=42
210210
export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7)
211-
export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64;
211+
export BUILD_FILE_NAME=staking_deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64;
212212
mkdir ${BUILD_FILE_NAME};
213213
pyinstaller --distpath ./${BUILD_FILE_NAME} ./build_configs/macos/build.spec;
214214
- run:
215215
name: Test executable binaries
216216
command: |
217217
export PYTHONHASHSEED=42
218218
export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7)
219-
export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64;
219+
export BUILD_FILE_NAME=staking_deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64;
220220
export TEST_FOLDER_NAME=TMP_TEST_FOLDER
221221
mkdir ${TEST_FOLDER_NAME}
222222
cp -r ${BUILD_FILE_NAME} ${TEST_FOLDER_NAME}
@@ -228,7 +228,7 @@ jobs:
228228
command: |
229229
export PYTHONHASHSEED=42
230230
export CIRCLE_SHORT_SHA1=$(eval echo $CIRCLE_SHA1 | cut -c -7)
231-
export BUILD_FILE_NAME=eth2deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64;
231+
export BUILD_FILE_NAME=staking_deposit-cli-${CIRCLE_SHORT_SHA1}-darwin-amd64;
232232
tar -zcvf ${BUILD_FILE_NAME}.tar.gz ./${BUILD_FILE_NAME};
233233
mkdir /tmp/artifacts;
234234
cp ${BUILD_FILE_NAME}.tar.gz /tmp/artifacts;

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ WORKDIR /app
44

55
COPY requirements.txt setup.py ./
66

7-
COPY eth2deposit ./eth2deposit
7+
COPY staking_deposit ./staking_deposit
88

99
RUN apk add --update gcc libc-dev linux-headers
1010

@@ -14,6 +14,6 @@ RUN python3 setup.py install
1414

1515
ARG cli_command
1616

17-
ENTRYPOINT [ "python3", "./eth2deposit/deposit.py" ]
17+
ENTRYPOINT [ "python3", "./staking_deposit/deposit.py" ]
1818

1919
CMD [ $cli_command ]

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
VENV_NAME?=venv
22
VENV_ACTIVATE=. $(VENV_NAME)/bin/activate
33
PYTHON=${VENV_NAME}/bin/python3.8
4-
DOCKER_IMAGE="ethereum/eth2.0-deposit-cli:latest"
4+
DOCKER_IMAGE="ethereum/staking-deposit-cli:latest"
55

66
help:
77
@echo "clean - remove build and Python file artifacts"
@@ -38,10 +38,10 @@ venv_test: venv_build_test
3838
$(VENV_ACTIVATE) && python -m pytest ./tests
3939

4040
venv_lint: venv_build_test
41-
$(VENV_ACTIVATE) && flake8 --config=flake8.ini ./eth2deposit ./tests && mypy --config-file mypy.ini -p eth2deposit
41+
$(VENV_ACTIVATE) && flake8 --config=flake8.ini ./staking_deposit ./tests && mypy --config-file mypy.ini -p staking_deposit
4242

4343
venv_deposit: venv_build
44-
$(VENV_ACTIVATE) && python ./eth2deposit/deposit.py $(filter-out $@,$(MAKECMDGOALS))
44+
$(VENV_ACTIVATE) && python ./staking_deposit/deposit.py $(filter-out $@,$(MAKECMDGOALS))
4545

4646
build_macos: venv_build
4747
${VENV_NAME}/bin/python -m pip install -r ./build_configs/macos/requirements.txt

README.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# eth2.0-deposit-cli
1+
# staking-deposit-cli
22

33
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
44
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
@@ -66,7 +66,7 @@
6666

6767
## Introduction
6868

69-
`deposit-cli` is a tool for creating [EIP-2335 format](https://eips.ethereum.org/EIPS/eip-2335) BLS12-381 keystores and a corresponding `deposit_data*.json` file for [Ethereum 2.0 Launchpad](https://github.com/ethereum/eth2.0-deposit).
69+
`deposit-cli` is a tool for creating [EIP-2335 format](https://eips.ethereum.org/EIPS/eip-2335) BLS12-381 keystores and a corresponding `deposit_data*.json` file for [Ethereum 2.0 Launchpad](https://github.com/ethereum/staking-launchpad).
7070

7171
- **Warning: Please generate your keystores on your own safe, completely offline device.**
7272
- **Warning: Please backup your mnemonic, keystores, and password securely.**
@@ -92,7 +92,7 @@ On Unix-based systems, keystores and the `deposit_data*.json` have `440`/`-r--r-
9292

9393
##### Step 1. Installation
9494

95-
See [releases page](https://github.com/ethereum/eth2.0-deposit-cli/releases) to download and decompress the corresponding binary files.
95+
See [releases page](https://github.com/ethereum/staking-deposit-cli/releases) to download and decompress the corresponding binary files.
9696

9797
##### Step 2. Create keys and `deposit_data-*.json`
9898

@@ -260,23 +260,23 @@ pip3 install -r requirements.txt
260260
Run one of the following command to enter the interactive CLI:
261261

262262
```sh
263-
python3 ./eth2deposit/deposit.py new-mnemonic
263+
python3 ./staking_deposit/deposit.py new-mnemonic
264264
```
265265

266266
or
267267

268268
```sh
269-
python3 ./eth2deposit/deposit.py existing-mnemonic
269+
python3 ./staking_deposit/deposit.py existing-mnemonic
270270
```
271271

272272
You can also run the tool with optional arguments:
273273

274274
```sh
275-
python3 ./eth2deposit/deposit.py new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
275+
python3 ./staking_deposit/deposit.py new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
276276
```
277277

278278
```sh
279-
python3 ./eth2deposit/deposit.py existing-mnemonic --num_validators=<NUM_VALIDATORS> --validator_start_index=<START_INDEX> --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
279+
python3 ./staking_deposit/deposit.py existing-mnemonic --num_validators=<NUM_VALIDATORS> --validator_start_index=<START_INDEX> --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
280280
```
281281

282282
###### Language Argument
@@ -307,19 +307,19 @@ make build_docker
307307
Run the following command to enter the interactive CLI:
308308

309309
```sh
310-
docker run -it --rm -v $(pwd)/validator_keys:/app/validator_keys ethereum/eth2.0-deposit-cli
310+
docker run -it --rm -v $(pwd)/validator_keys:/app/validator_keys ethereum/staking-deposit-cli
311311
```
312312

313313
You can also run the tool with optional arguments:
314314

315315
```sh
316-
docker run -it --rm -v $(pwd)/validator_keys:/app/validator_keys ethereum/eth2.0-deposit-cli new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --folder=<YOUR_FOLDER_PATH>
316+
docker run -it --rm -v $(pwd)/validator_keys:/app/validator_keys ethereum/staking-deposit-cli new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --folder=<YOUR_FOLDER_PATH>
317317
```
318318

319319
Example for 1 validator on the [Prater testnet](https://prater.launchpad.ethereum.org/) using english:
320320

321321
```sh
322-
docker run -it --rm -v $(pwd)/validator_keys:/app/validator_keys ethereum/eth2.0-deposit-cli new-mnemonic --num_validators=1 --mnemonic_language=english --chain=prater
322+
docker run -it --rm -v $(pwd)/validator_keys:/app/validator_keys ethereum/staking-deposit-cli new-mnemonic --num_validators=1 --mnemonic_language=english --chain=prater
323323
```
324324

325325
###### Arguments
@@ -336,7 +336,7 @@ See [here](#successful-message)
336336

337337
##### Step 1. Installation
338338

339-
See [releases page](https://github.com/ethereum/eth2.0-deposit-cli/releases) to download and decompress the corresponding binary files.
339+
See [releases page](https://github.com/ethereum/staking-deposit-cli/releases) to download and decompress the corresponding binary files.
340340

341341
##### Step 2. Create keys and `deposit_data-*.json`
342342

@@ -469,23 +469,23 @@ pip3 install -r requirements.txt
469469
Run one of the following command to enter the interactive CLI:
470470

471471
```cmd
472-
python .\eth2deposit\deposit.py new-mnemonic
472+
python .\staking_deposit\deposit.py new-mnemonic
473473
```
474474

475475
or
476476

477477
```cmd
478-
python .\eth2deposit\deposit.py existing-mnemonic
478+
python .\staking_deposit\deposit.py existing-mnemonic
479479
```
480480

481481
You can also run the tool with optional arguments:
482482

483483
```cmd
484-
python .\eth2deposit\deposit.py new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
484+
python .\staking_deposit\deposit.py new-mnemonic --num_validators=<NUM_VALIDATORS> --mnemonic_language=english --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
485485
```
486486

487487
```cmd
488-
python .\eth2deposit\deposit.pyexisting-mnemonic --num_validators=<NUM_VALIDATORS> --validator_start_index=<START_INDEX> --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
488+
python .\staking_deposit\deposit.pyexisting-mnemonic --num_validators=<NUM_VALIDATORS> --validator_start_index=<START_INDEX> --chain=<CHAIN_NAME> --folder=<YOUR_FOLDER_PATH>
489489
```
490490

491491
###### Language Argument

build_configs/linux/build.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
block_cipher = None
44

55

6-
a = Analysis(['../../eth2deposit/deposit.py'],
6+
a = Analysis(['../../staking_deposit/deposit.py'],
77
binaries=[],
88
datas=[
9-
('../../eth2deposit/key_handling/key_derivation/word_lists/*.txt', './eth2deposit/key_handling/key_derivation/word_lists/'),
10-
('../../eth2deposit/intl', './eth2deposit/intl',)
9+
('../../staking_deposit/key_handling/key_derivation/word_lists/*.txt', './staking_deposit/key_handling/key_derivation/word_lists/'),
10+
('../../staking_deposit/intl', './staking_deposit/intl',)
1111
],
1212
hiddenimports=[],
1313
hookspath=[],

build_configs/macos/build.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
block_cipher = None
44

55

6-
a = Analysis(['../../eth2deposit/deposit.py'],
6+
a = Analysis(['../../staking_deposit/deposit.py'],
77
binaries=None,
88
datas=[
9-
('../../eth2deposit/key_handling/key_derivation/word_lists/*.txt', './eth2deposit/key_handling/key_derivation/word_lists/'),
10-
('../../eth2deposit/intl', './eth2deposit/intl'),
9+
('../../staking_deposit/key_handling/key_derivation/word_lists/*.txt', './staking_deposit/key_handling/key_derivation/word_lists/'),
10+
('../../staking_deposit/intl', './staking_deposit/intl'),
1111
],
1212
hiddenimports=[],
1313
hookspath=[],

build_configs/windows/build.spec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
block_cipher = None
44

55

6-
a = Analysis(['..\\..\\eth2deposit\\deposit.py'],
6+
a = Analysis(['..\\..\\staking_deposit\\deposit.py'],
77
binaries=[],
88
datas=[
9-
('..\\..\\eth2deposit\\key_handling\\key_derivation\\word_lists\\*.txt', '.\\eth2deposit\\key_handling\\key_derivation\\word_lists'),
10-
('..\\..\\eth2deposit\\intl', '.\\eth2deposit\\intl'),
9+
('..\\..\\staking_deposit\\key_handling\\key_derivation\\word_lists\\*.txt', '.\\staking_deposit\\key_handling\\key_derivation\\word_lists'),
10+
('..\\..\\staking_deposit\\intl', '.\\staking_deposit\\intl'),
1111
],
1212
hiddenimports=[],
1313
hookspath=[],

deposit.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [[ "$OSTYPE" == "linux"* ]] || [[ "$OSTYPE" == "linux-android"* ]] || [[ "$OS
99
exit 1
1010
fi
1111
echo "Running deposit-cli..."
12-
python3 ./eth2deposit/deposit.py "$@"
12+
python3 ./staking_deposit/deposit.py "$@"
1313

1414
elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
1515
echo $OSTYPE
@@ -20,10 +20,10 @@ elif [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "cygwin" ]]; then
2020
exit 1
2121
fi
2222
echo "Running deposit-cli..."
23-
python ./eth2deposit/deposit.py "$@"
23+
python ./staking_deposit/deposit.py "$@"
2424

2525
else
26-
echo "Sorry, to run deposit-cli on" $(uname -s)", please see the trouble-shooting on https://github.com/ethereum/eth2.0-deposit-cli"
26+
echo "Sorry, to run deposit-cli on" $(uname -s)", please see the trouble-shooting on https://github.com/ethereum/staking-deposit-cli"
2727
exit 1
2828

2929
fi

eth2deposit/settings.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"""
66

77
setup(
8-
name="eth2deposit",
8+
name="staking_deposit",
99
version='1.2.0',
10-
py_modules=["eth2deposit"],
10+
py_modules=["staking_deposit"],
1111
packages=find_packages(exclude=('tests', 'docs')),
1212
python_requires=">=3.7,<4",
1313
)

0 commit comments

Comments
 (0)