@decaf-ts/fabric-weaver
Version:
template for ts projects
84 lines (83 loc) • 3.68 kB
TypeScript
import { Logger } from "@decaf-ts/logging";
export declare class ConfigtxgenCommandBuilder {
private log;
private binName;
private args;
constructor(logger?: Logger);
/**
* @description Sets the organization for config generation.
* @param {string} org - The organization name.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setAsOrg(org?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the base profile for channel creation tx generation.
* @param {string} profile - The profile name.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setChannelCreateTxBaseProfile(profile?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the channel ID for the configtx.
* @param {string} channelID - The channel ID.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setChannelID(channelID?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the configuration path.
* @param {string} path - The configuration path.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setConfigPath(path?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the path for block inspection.
* @param {string} path - The path to the block.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setInspectBlock(path?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the path for channel create tx inspection.
* @param {string} path - The path to the channel create tx.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setInspectChannelCreateTx(path?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the output path for anchor peers update.
* @param {string} path - The output path.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setOutputAnchorPeersUpdate(path?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the output path for the genesis block.
* @param {string} path - The output path.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setOutputBlock(path?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the output path for channel creation configtx.
* @param {string} path - The output path.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setOutputCreateChannelTx(path?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the organization to print.
* @param {string} org - The organization name.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setPrintOrg(org?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets the profile to use for generation.
* @param {string} profile - The profile name.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setProfile(profile?: string): ConfigtxgenCommandBuilder;
/**
* @description Sets whether to show version information.
* @param {boolean} show - Whether to show version information.
* @returns {ConfigtxgenCommandBuilder} The current instance for method chaining.
*/
setVersion(show?: boolean): ConfigtxgenCommandBuilder;
build(): string;
getBinary(): string;
getArgs(): string[];
execute(): Promise<void>;
}