Skip to content

Commit

Permalink
Merge pull request #19 from bloxapp/vc/IO1-2368-ssv_keys_updates
Browse files Browse the repository at this point in the history
update ssv keys
  • Loading branch information
meshin-dev committed Feb 9, 2023
2 parents 74cf9fd + ae54ddc commit 9a573ab
Show file tree
Hide file tree
Showing 62 changed files with 1,147 additions and 390 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Important dependencies:

---

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

```bash
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=./
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=./
```

**Output:** Name will start with keyshares-timestamp.json
Expand Down
2 changes: 1 addition & 1 deletion dist/esbuild/main.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/esbuild/main.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/tsc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"bls-signatures": "^0.2.5",
"btoa": "^1.2.1",
"class-validator": "^0.13.2",
"cluster-scanner": "https://github.com/bloxapp/cluster-scanner.git",
"colors": "^1.4.0",
"crypto": "^1.0.1",
"eth2-keystore-js": "^1.0.8",
Expand Down
25 changes: 20 additions & 5 deletions dist/tsc/src/commands/actions/KeySharesAction.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/tsc/src/commands/actions/KeySharesAction.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions dist/tsc/src/commands/actions/arguments/contract-address.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare const _default: {
arg1: string;
arg2: string;
options: {
type: StringConstructor;
required: boolean;
help: string;
};
interactive: {
options: {
type: string;
validate: (value: string) => string | boolean;
};
};
};
export default _default;
23 changes: 23 additions & 0 deletions dist/tsc/src/commands/actions/arguments/contract-address.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions dist/tsc/src/commands/actions/arguments/node-url.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
declare const _default: {
arg1: string;
arg2: string;
options: {
type: StringConstructor;
required: boolean;
help: string;
};
interactive: {
options: {
type: string;
};
};
};
export default _default;
17 changes: 17 additions & 0 deletions dist/tsc/src/commands/actions/arguments/node-url.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/tsc/src/commands/actions/arguments/node-url.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions dist/tsc/src/commands/actions/arguments/owner-address.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare const _default: {
arg1: string;
arg2: string;
options: {
type: StringConstructor;
required: boolean;
help: string;
};
interactive: {
options: {
type: string;
validate: (value: string) => string | boolean;
};
};
};
export default _default;
23 changes: 23 additions & 0 deletions dist/tsc/src/commands/actions/arguments/owner-address.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions dist/tsc/src/lib/ClusterScanner/Snapshot.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
export interface IClusterScannerParams {
nodeUrl: string;
contractAddress: string;
ownerAddress: string;
operatorIds: number[];
}
/**
* Extract latest cluster (validator owner + operator ids) snapshot.
*/
export default class ClusterSnapshot {
static get(params: IClusterScannerParams): Promise<string>;
}
18 changes: 18 additions & 0 deletions dist/tsc/src/lib/ClusterScanner/Snapshot.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/tsc/src/lib/ClusterScanner/Snapshot.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions dist/tsc/src/lib/KeyShares/KeySharesData/KeySharesDataV2.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9a573ab

Please sign in to comment.