From d1067a1795bab7f407d19be4caaaeaf0baf1534f Mon Sep 17 00:00:00 2001 From: Vadim Date: Mon, 21 Aug 2023 14:23:59 +0300 Subject: [PATCH] update readme --- README.md | 8 ++++---- dist/tsc/src/commands/actions/arguments/multi-shares.js | 2 +- .../src/commands/actions/arguments/multi-shares.js.map | 2 +- dist/tsc/src/commands/actions/arguments/operator-ids.js | 4 ++-- .../src/commands/actions/arguments/operator-ids.js.map | 2 +- .../commands/actions/arguments/operator-public-keys.js | 2 +- .../actions/arguments/operator-public-keys.js.map | 2 +- dist/tsc/src/commands/actions/arguments/owner-nonce.js | 4 ++-- .../tsc/src/commands/actions/arguments/owner-nonce.js.map | 2 +- src/commands/actions/arguments/multi-shares.ts | 2 +- src/commands/actions/arguments/operator-ids.ts | 4 ++-- src/commands/actions/arguments/operator-public-keys.ts | 2 +- src/commands/actions/arguments/owner-nonce.ts | 4 ++-- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 71f5c9b..0a0dac6 100644 --- a/README.md +++ b/README.md @@ -94,12 +94,12 @@ To run you will use the "shares" command - keystore-path (kp) = The validator keystore file/folder path, if a folder is provided all keystore files within the provided folder will be split according to the provided arguments - password (ps) = The keystore file encryption password, if a folder was provided the password will be used for all keystore files in the folder -- operator-ids (oids) = Comma-separated list of operator IDs. The amount must be 3f+1 compatible. -- operator-keys (oks) = Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible. +- operator-ids (oids) = Comma-separated list of operator IDs. The amount must be 3f+1 compatible +- operator-keys (oks) = Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible - output-folder (of) = Target folder path to output the key shares file - owner-address (oa) = The cluster owner address (in the SSV contract) -- owner-nonce (on) = The validator registration nonce of the account (owner address) within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool. -- multi-shares (ms) = Keystore path will accept multiple keystores from a folder path, all files must have the same password. +- owner-nonce (on) = The validator registration nonce of the account (owner address) within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool +- multi-shares (ms) = Keystore path will accept multiple keystores from a folder path, all files must have the same password ```bash # single file yarn cli shares --keystore=keystore.json --password=test --operator-ids=1,2,3,4 --operator-keys=LS..,LS..,LS..,LS.. --output-folder=./ --owner-address=... --owner-nonce=.. diff --git a/dist/tsc/src/commands/actions/arguments/multi-shares.js b/dist/tsc/src/commands/actions/arguments/multi-shares.js index 02a7d6d..be4f408 100644 --- a/dist/tsc/src/commands/actions/arguments/multi-shares.js +++ b/dist/tsc/src/commands/actions/arguments/multi-shares.js @@ -14,7 +14,7 @@ exports.default = { action: 'store_true', default: false, required: false, - help: 'Keystore path will accept multiple keystores from a folder path, all files must have the same password.' + help: 'Keystore path will accept multiple keystores from a folder path, all files must have the same password' } }; //# sourceMappingURL=multi-shares.js.map \ No newline at end of file diff --git a/dist/tsc/src/commands/actions/arguments/multi-shares.js.map b/dist/tsc/src/commands/actions/arguments/multi-shares.js.map index b4ed20f..351f6fe 100644 --- a/dist/tsc/src/commands/actions/arguments/multi-shares.js.map +++ b/dist/tsc/src/commands/actions/arguments/multi-shares.js.map @@ -1 +1 @@ -{"version":3,"file":"multi-shares.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/multi-shares.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAQ,EAAE,CAAC;AAE1B,MAAM,sBAAsB,GAAG,CAAC,QAAiB,EAAE,UAAkB,EAAE,EAAE;IAC9E,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACrC,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3C,CAAC,CAAC;AAHW,QAAA,sBAAsB,0BAGjC;AAEF,kBAAe;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,yGAAyG;KAChH;CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"multi-shares.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/multi-shares.ts"],"names":[],"mappings":";;;AAAA,MAAM,gBAAgB,GAAQ,EAAE,CAAC;AAE1B,MAAM,sBAAsB,GAAG,CAAC,QAAiB,EAAE,UAAkB,EAAE,EAAE;IAC9E,gBAAgB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACrC,gBAAgB,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3C,CAAC,CAAC;AAHW,QAAA,sBAAsB,0BAGjC;AAEF,kBAAe;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE;QACP,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,wGAAwG;KAC/G;CACF,CAAC"} \ No newline at end of file diff --git a/dist/tsc/src/commands/actions/arguments/operator-ids.js b/dist/tsc/src/commands/actions/arguments/operator-ids.js index ef79841..a2e47ee 100644 --- a/dist/tsc/src/commands/actions/arguments/operator-ids.js +++ b/dist/tsc/src/commands/actions/arguments/operator-ids.js @@ -8,7 +8,7 @@ exports.default = { options: { type: String, required: true, - help: 'Comma-separated list of operator IDs. The amount must be 3f+1 compatible.' + help: 'Comma-separated list of operator IDs. The amount must be 3f+1 compatible' }, interactive: { repeat: 'Input another operator?', @@ -31,7 +31,7 @@ exports.default = { }, validateList: (items) => { if (!(0, operator_ids_1.isOperatorsLengthValid)(items.length)) { - throw new Error('Invalid operators amount. Enter an 3f+1 compatible amount of operator ids.'); + throw new Error('Invalid operators amount. Enter an 3f+1 compatible amount of operator ids'); } } } diff --git a/dist/tsc/src/commands/actions/arguments/operator-ids.js.map b/dist/tsc/src/commands/actions/arguments/operator-ids.js.map index 49cd068..712d763 100644 --- a/dist/tsc/src/commands/actions/arguments/operator-ids.js.map +++ b/dist/tsc/src/commands/actions/arguments/operator-ids.js.map @@ -1 +1 @@ -{"version":3,"file":"operator-ids.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/operator-ids.ts"],"names":[],"mappings":";;AAAA,6DAAoE;AAEpE,MAAM,iBAAiB,GAAQ,EAAE,CAAC;AAElC,kBAAe;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,2EAA2E;KAClF;IACD,WAAW,EAAE;QACX,MAAM,EAAE,yBAAyB;QACjC,UAAU,EAAE;YACV,iBAAiB;SAClB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,0CAA0C;YACnD,QAAQ,EAAE,CAAC,UAAkB,EAAoB,EAAE;gBACjD,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE;oBACjC,OAAO,kCAAkC,CAAC;iBAC3C;gBACD,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC5G,IAAI,WAAW,KAAK,IAAI,EAAE;oBACxB,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;iBACtC;gBACD,OAAO,WAAW,CAAC;YACrB,CAAC;SACF;QACD,YAAY,EAAE,CAAC,KAAS,EAAE,EAAE;YAC1B,IAAI,CAAC,IAAA,qCAAsB,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,4EAA4E,CAAC,CAAC;aAC/F;QACH,CAAC;KACF;CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"operator-ids.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/operator-ids.ts"],"names":[],"mappings":";;AAAA,6DAAoE;AAEpE,MAAM,iBAAiB,GAAQ,EAAE,CAAC;AAElC,kBAAe;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,gBAAgB;IACtB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,0EAA0E;KACjF;IACD,WAAW,EAAE;QACX,MAAM,EAAE,yBAAyB;QACjC,UAAU,EAAE;YACV,iBAAiB;SAClB;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,0CAA0C;YACnD,QAAQ,EAAE,CAAC,UAAkB,EAAoB,EAAE;gBACjD,IAAI,iBAAiB,CAAC,UAAU,CAAC,EAAE;oBACjC,OAAO,kCAAkC,CAAC;iBAC3C;gBACD,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,IAAI,CAAC;gBAC5G,IAAI,WAAW,KAAK,IAAI,EAAE;oBACxB,iBAAiB,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC;iBACtC;gBACD,OAAO,WAAW,CAAC;YACrB,CAAC;SACF;QACD,YAAY,EAAE,CAAC,KAAS,EAAE,EAAE;YAC1B,IAAI,CAAC,IAAA,qCAAsB,EAAC,KAAK,CAAC,MAAM,CAAC,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;aAC9F;QACH,CAAC;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/dist/tsc/src/commands/actions/arguments/operator-public-keys.js b/dist/tsc/src/commands/actions/arguments/operator-public-keys.js index f749e1d..6e8bfb5 100644 --- a/dist/tsc/src/commands/actions/arguments/operator-public-keys.js +++ b/dist/tsc/src/commands/actions/arguments/operator-public-keys.js @@ -8,7 +8,7 @@ exports.default = { options: { type: String, required: true, - help: 'Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible.' + help: 'Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible' }, interactive: { options: { diff --git a/dist/tsc/src/commands/actions/arguments/operator-public-keys.js.map b/dist/tsc/src/commands/actions/arguments/operator-public-keys.js.map index 2e42e00..b884b32 100644 --- a/dist/tsc/src/commands/actions/arguments/operator-public-keys.js.map +++ b/dist/tsc/src/commands/actions/arguments/operator-public-keys.js.map @@ -1 +1 @@ -{"version":3,"file":"operator-public-keys.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/operator-public-keys.ts"],"names":[],"mappings":";;AAAA,qDAAoE;AAEpE,MAAM,eAAe,GAAQ,EAAE,CAAC;AAEhC,kBAAe;IACb,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,4GAA4G;KACnH;IACD,WAAW,EAAE;QACX,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,kDAAkD;YAC3D,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;gBAC1B,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;oBAC1B,OAAO,4BAA4B,CAAC;iBACrC;gBACD,MAAM,WAAW,GAAG,IAAA,qCAA0B,EAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,WAAW,KAAK,IAAI,EAAE;oBACxB,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;iBAC/B;gBACD,OAAO,WAAW,CAAC;YACrB,CAAC;SACF;KACF;CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"operator-public-keys.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/operator-public-keys.ts"],"names":[],"mappings":";;AAAA,qDAAoE;AAEpE,MAAM,eAAe,GAAQ,EAAE,CAAC;AAEhC,kBAAe;IACb,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,2GAA2G;KAClH;IACD,WAAW,EAAE;QACX,OAAO,EAAE;YACP,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,kDAAkD;YAC3D,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE;gBAC1B,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;oBAC1B,OAAO,4BAA4B,CAAC;iBACrC;gBACD,MAAM,WAAW,GAAG,IAAA,qCAA0B,EAAC,KAAK,CAAC,CAAC;gBACtD,IAAI,WAAW,KAAK,IAAI,EAAE;oBACxB,eAAe,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;iBAC/B;gBACD,OAAO,WAAW,CAAC;YACrB,CAAC;SACF;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/dist/tsc/src/commands/actions/arguments/owner-nonce.js b/dist/tsc/src/commands/actions/arguments/owner-nonce.js index 381bfbd..15cd893 100644 --- a/dist/tsc/src/commands/actions/arguments/owner-nonce.js +++ b/dist/tsc/src/commands/actions/arguments/owner-nonce.js @@ -6,12 +6,12 @@ exports.default = { options: { type: Number, required: true, - help: 'The validator registration nonce of the account (owner address) within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool.' + help: 'The validator registration nonce of the account (owner address) within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool' }, interactive: { options: { type: 'number', - message: 'Please provide a valid owner nonce of the account (owner address) obtained using the ssv-scanner tool.', + message: 'Please provide a valid owner nonce of the account (owner address) obtained using the ssv-scanner tool', } } }; diff --git a/dist/tsc/src/commands/actions/arguments/owner-nonce.js.map b/dist/tsc/src/commands/actions/arguments/owner-nonce.js.map index fa46aad..c65765a 100644 --- a/dist/tsc/src/commands/actions/arguments/owner-nonce.js.map +++ b/dist/tsc/src/commands/actions/arguments/owner-nonce.js.map @@ -1 +1 @@ -{"version":3,"file":"owner-nonce.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/owner-nonce.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,8KAA8K;KACrL;IACD,WAAW,EAAE;QACX,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,wGAAwG;SAClH;KACF;CACF,CAAC"} \ No newline at end of file +{"version":3,"file":"owner-nonce.js","sourceRoot":"","sources":["../../../../../../src/commands/actions/arguments/owner-nonce.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,eAAe;IACrB,OAAO,EAAE;QACP,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,6KAA6K;KACpL;IACD,WAAW,EAAE;QACX,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,uGAAuG;SACjH;KACF;CACF,CAAC"} \ No newline at end of file diff --git a/src/commands/actions/arguments/multi-shares.ts b/src/commands/actions/arguments/multi-shares.ts index 19b8af8..aac8c8f 100644 --- a/src/commands/actions/arguments/multi-shares.ts +++ b/src/commands/actions/arguments/multi-shares.ts @@ -12,6 +12,6 @@ export default { action: 'store_true', default: false, required: false, - help: 'Keystore path will accept multiple keystores from a folder path, all files must have the same password.' + help: 'Keystore path will accept multiple keystores from a folder path, all files must have the same password' } }; diff --git a/src/commands/actions/arguments/operator-ids.ts b/src/commands/actions/arguments/operator-ids.ts index 0fb43f7..15da7ff 100644 --- a/src/commands/actions/arguments/operator-ids.ts +++ b/src/commands/actions/arguments/operator-ids.ts @@ -8,7 +8,7 @@ export default { options: { type: String, required: true, - help: 'Comma-separated list of operator IDs. The amount must be 3f+1 compatible.' + help: 'Comma-separated list of operator IDs. The amount must be 3f+1 compatible' }, interactive: { repeat: 'Input another operator?', @@ -31,7 +31,7 @@ export default { }, validateList: (items: []) => { if (!isOperatorsLengthValid(items.length)) { - throw new Error('Invalid operators amount. Enter an 3f+1 compatible amount of operator ids.'); + throw new Error('Invalid operators amount. Enter an 3f+1 compatible amount of operator ids'); } } } diff --git a/src/commands/actions/arguments/operator-public-keys.ts b/src/commands/actions/arguments/operator-public-keys.ts index 1b66e53..772fe64 100644 --- a/src/commands/actions/arguments/operator-public-keys.ts +++ b/src/commands/actions/arguments/operator-public-keys.ts @@ -8,7 +8,7 @@ export default { options: { type: String, required: true, - help: 'Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible.' + help: 'Comma-separated list of operator keys (same sequence as operator ids). The amount must be 3f+1 compatible' }, interactive: { options: { diff --git a/src/commands/actions/arguments/owner-nonce.ts b/src/commands/actions/arguments/owner-nonce.ts index f5c6981..dfdcdef 100644 --- a/src/commands/actions/arguments/owner-nonce.ts +++ b/src/commands/actions/arguments/owner-nonce.ts @@ -4,12 +4,12 @@ export default { options: { type: Number, required: true, - help: 'The validator registration nonce of the account (owner address) within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool.' + help: 'The validator registration nonce of the account (owner address) within the SSV contract (increments after each validator registration), obtained using the ssv-scanner tool' }, interactive: { options: { type: 'number', - message: 'Please provide a valid owner nonce of the account (owner address) obtained using the ssv-scanner tool.', + message: 'Please provide a valid owner nonce of the account (owner address) obtained using the ssv-scanner tool', } } };