Skip to content

Commit

Permalink
import/export improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
vadiminc committed Dec 5, 2023
1 parent 17d473f commit b52e6fd
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 47 deletions.
27 changes: 8 additions & 19 deletions src/commands/actions/arguments/index.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
import keystoreArgument from './keystore';
import keystorePathArgument from './keystore-path';
import ownerNonceArgument from './owner-nonce';
import operatorIdsArgument from './operator-ids';
import ownerAddressArgument from './owner-address';
import keystorePasswordArgument from './password';
import outputFolderArgument from './output-folder';
import operatorPublicKeysArgument from './operator-public-keys';

export {
keystoreArgument,
keystorePathArgument,
ownerNonceArgument,
operatorIdsArgument,
ownerAddressArgument,
keystorePasswordArgument,
outputFolderArgument,
operatorPublicKeysArgument
};
export { default as keystoreArgument } from './keystore';
export { default as keystorePathArgument } from './keystore-path';
export { default as ownerNonceArgument } from './owner-nonce';
export { default as operatorIdsArgument } from './operator-ids';
export { default as ownerAddressArgument } from './owner-address';
export { default as keystorePasswordArgument } from './password';
export { default as outputFolderArgument } from './output-folder';
export { default as operatorPublicKeysArgument } from './operator-public-keys';
17 changes: 4 additions & 13 deletions src/commands/actions/validators/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
import { sanitizePath, fileExistsValidator, jsonFileValidator } from './file';
import { keystorePasswordValidator } from './keystore-password';
import { isOperatorsLengthValid } from "./operator-ids";
import { operatorPublicKeyValidator } from './operator';

export {
sanitizePath,
jsonFileValidator,
fileExistsValidator,
isOperatorsLengthValid,
keystorePasswordValidator,
operatorPublicKeyValidator,
}
export { sanitizePath, fileExistsValidator, jsonFileValidator } from './file';
export { keystorePasswordValidator } from './keystore-password';
export { isOperatorsLengthValid } from "./operator-ids";
export { operatorPublicKeyValidator } from './operator';
21 changes: 6 additions & 15 deletions src/lib/KeyShares/KeySharesData/validators/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import { OpeatorsListValidator } from './operator-unique';
import { PublicKeyValidator } from './public-key';
import { OwnerAddressValidator } from './owner-address';
import { OwnerNonceValidator } from './owner-nonce';
import { MatchLengthValidator } from './match';
import { OpeatorPublicKeyValidator } from './operator-public-key';

export {
OpeatorsListValidator,
PublicKeyValidator,
OwnerAddressValidator,
OwnerNonceValidator,
MatchLengthValidator,
OpeatorPublicKeyValidator,
}
export { OpeatorsListValidator } from './operator-unique';
export { PublicKeyValidator } from './public-key';
export { OwnerAddressValidator } from './owner-address';
export { OwnerNonceValidator } from './owner-nonce';
export { MatchLengthValidator } from './match';
export { OpeatorPublicKeyValidator } from './operator-public-key';

0 comments on commit b52e6fd

Please sign in to comment.