// SPDX-License-Identifier: Apache-2.0
import { BaseCommandTest } from './base-command-test.js';
import { ConsensusCommandDefinition } from '../../../../src/commands/command-definitions/consensus-command-definition.js';
import { Flags } from '../../../../src/commands/flags.js';
export class NodeUpdateTest extends BaseCommandTest {
    static soloNodeUpdatePrepareArgv(deployment, outputDirectory, cacheDirectory, options) {
        const { newArgv, optionFromFlag } = NodeUpdateTest;
        const argv = newArgv();
        argv.push(ConsensusCommandDefinition.COMMAND_NAME, ConsensusCommandDefinition.DEV_NODE_UPDATE_SUBCOMMAND_NAME, ConsensusCommandDefinition.DEV_NODE_PREPARE, optionFromFlag(Flags.outputDir), outputDirectory, optionFromFlag(Flags.deployment), deployment, optionFromFlag(Flags.nodeAlias), options.nodeAlias, optionFromFlag(Flags.newAdminKey), options.newAdminKey, optionFromFlag(Flags.newAccountNumber), options.newAccountNumber, optionFromFlag(Flags.tlsPublicKey), options.tlsPublicKey, optionFromFlag(Flags.tlsPrivateKey), options.tlsPrivateKey, optionFromFlag(Flags.gossipPublicKey), options.gossipPublicKey, optionFromFlag(Flags.gossipPrivateKey), options.gossipPrivateKey, optionFromFlag(Flags.cacheDir), cacheDirectory);
        return argv;
    }
    static soloNodeUpdateSubmitArgv(deployment, inputDirectory, cacheDirectory) {
        const { newArgv, optionFromFlag } = NodeUpdateTest;
        const argv = newArgv();
        argv.push(ConsensusCommandDefinition.COMMAND_NAME, ConsensusCommandDefinition.DEV_NODE_UPDATE_SUBCOMMAND_NAME, ConsensusCommandDefinition.DEV_NODE_SUBMIT_TRANSACTION, optionFromFlag(Flags.inputDir), inputDirectory, optionFromFlag(Flags.deployment), deployment, optionFromFlag(Flags.cacheDir), cacheDirectory);
        return argv;
    }
    static soloNodeUpdateExecuteArgv(deployment, inputDirectory, cacheDirectory) {
        const { newArgv, optionFromFlag } = NodeUpdateTest;
        const argv = newArgv();
        argv.push(ConsensusCommandDefinition.COMMAND_NAME, ConsensusCommandDefinition.DEV_NODE_UPDATE_SUBCOMMAND_NAME, ConsensusCommandDefinition.DEV_NODE_EXECUTE, optionFromFlag(Flags.inputDir), inputDirectory, optionFromFlag(Flags.deployment), deployment, optionFromFlag(Flags.cacheDir), cacheDirectory);
        return argv;
    }
}
//# sourceMappingURL=node-update-test.js.map