Skip to content

Commit 9a573ab

Browse files
authored
Merge pull request #19 from bloxapp/vc/IO1-2368-ssv_keys_updates
update ssv keys
2 parents 74cf9fd + ae54ddc commit 9a573ab

Some content is hidden

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

62 files changed

+1147
-390
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Important dependencies:
2424

2525
---
2626

27-
Library and CLI to work with the ETH keystore file:
27+
Library and CLI to work with the ETH keystore file and extract latest validator cluster snapshot to build the payload:
2828
1. Parse the private key using the keystore password
2929
2. Use the private key to get shares for operators
3030
3. Build the payload for the transaction
@@ -95,13 +95,16 @@ To run you will use the "ksh" command
9595
- key-shares-version (ksv) = Payload version [2 or 3]
9696
- keystore (ks) = Path to keystore json file
9797
- password (ps) = Keystore password
98-
- operator-ids (oid) = Comma-separated list of the operator ids
98+
- operator-ids (oid) = Comma-separated list of the operator ids
9999
- operators-keys (ok) = Comma-separated list of the operator public keys (same sequence as operator ids)
100100
- ssv-token-amount (ssv) = SSV Token amount fee required for this transaction in Wei
101+
- owner-address = Validator owner address
102+
- contract-address = SSV contract address
103+
- node-url = Eth1 node url
101104
- output-folder (of) = Path of where to put the output file
102105

103106
```bash
104-
yarn cli ksh --ksv=3 --keystore=keystore.json --password=test --operator-ids=1,2,3,4 --operator-keys=LS..,LS..,LS..,LS.. --ssv-token-amount=500000 --output-folder=./
107+
yarn cli ksh --ksv=3 --keystore=keystore.json --password=test --operator-ids=1,2,3,4 --operator-keys=LS..,LS..,LS..,LS.. --ssv-token-amount=500000 --owner-address=0x... --contract-address=0x... --node-url=http://... --output-folder=./
105108
```
106109

107110
**Output:** Name will start with keyshares-timestamp.json

dist/esbuild/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esbuild/main.js.map

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tsc/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
"bls-signatures": "^0.2.5",
7777
"btoa": "^1.2.1",
7878
"class-validator": "^0.13.2",
79+
"cluster-scanner": "https://github.com/bloxapp/cluster-scanner.git",
7980
"colors": "^1.4.0",
8081
"crypto": "^1.0.1",
8182
"eth2-keystore-js": "^1.0.8",

dist/tsc/src/commands/actions/KeySharesAction.js

Lines changed: 20 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tsc/src/commands/actions/KeySharesAction.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
declare const _default: {
2+
arg1: string;
3+
arg2: string;
4+
options: {
5+
type: StringConstructor;
6+
required: boolean;
7+
help: string;
8+
};
9+
interactive: {
10+
options: {
11+
type: string;
12+
validate: (value: string) => string | boolean;
13+
};
14+
};
15+
};
16+
export default _default;

dist/tsc/src/commands/actions/arguments/contract-address.js

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tsc/src/commands/actions/arguments/contract-address.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
declare const _default: {
2+
arg1: string;
3+
arg2: string;
4+
options: {
5+
type: StringConstructor;
6+
required: boolean;
7+
help: string;
8+
};
9+
interactive: {
10+
options: {
11+
type: string;
12+
};
13+
};
14+
};
15+
export default _default;

0 commit comments

Comments
 (0)