caravan-x
Version:
A terminal-based utility for managing Caravan multisig wallets in regtest mode. This tool simplifies development and testing with Caravan by providing an easy-to-use interface
69 lines (68 loc) • 1.99 kB
TypeScript
import { ScriptEngine } from "../scripting/ScriptEngine";
import { ConfigManager } from "../core/config";
import { BitcoinRpcClient } from "../core/rpc";
import { BitcoinService } from "../core/bitcoin";
import { CaravanService } from "../core/caravan";
import { MultisigCommands } from "./multisig";
import { TransactionService } from "../core/transaction";
/**
* Commands for managing blockchain scripting scenarios
*/
export declare class ScriptCommands {
private readonly scriptEngine;
private readonly configManager;
private readonly bitcoinService;
private readonly caravanService;
private readonly transactionService;
private readonly rpcClient;
private readonly multisigCommands;
constructor(configManager: ConfigManager, bitcoinService: BitcoinService, caravanService: CaravanService, transactionService: TransactionService, rpcClient: BitcoinRpcClient, multisigCommands: MultisigCommands);
/**
* Get the script engine instance
*/
getScriptEngine(): ScriptEngine;
/**
* Add a back option to selection choices
*/
private addBackOption;
/**
* Check if a value is the back option
*/
private isBackOption;
/**
* List available script templates
*/
listScriptTemplates(): Promise<void>;
/**
* View details of a specific template
*/
private viewTemplateDetails;
/**
* Run a script template
*/
private runScriptTemplate;
/**
* Execute a script with validation and confirmation
*/
private executeScript;
/**
* Create a new script
*/
createNewScript(): Promise<void>;
/**
* Create a JavaScript template
*/
private createJavaScriptTemplate;
/**
* Create a JSON template
*/
private createJSONTemplate;
/**
* Run a custom script from file
*/
runCustomScript(): Promise<void>;
/**
* Manage saved scripts
*/
manageScripts(): Promise<void>;
}