@flarenetwork/flare-stake-tool
Version:
Utilities for staking on the Flare network
50 lines • 2.21 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.derivationModeConstants = exports.walletConstants = exports.networkConstants = exports.taskConstants = void 0;
const chalk_1 = __importDefault(require("chalk"));
/**
* @description Object that contains list of tasks user can perform as its keys and their corresponding CLI commands as values.
*/
exports.taskConstants = {
'addresses': 'View chain addresses',
'balance': 'Check on-chain balance',
'network': 'Get network info',
'validators': 'Get validator info',
'CP': 'Move assets from C-chain to P-chain',
'PC': 'Move assets from P-chain to C-chain',
'stake': 'Add a validator node',
'delegate': 'Delegate to a validator node',
'mirror': 'Get Mirror fund details',
'import': 'Import Funds (in case export fails for either P chain or C chain)',
'transfer': 'Transfer funds to another P-chain address',
'claim': 'Claim staking rewards',
'quit': 'Quit',
};
/**
* @description Constant object which contains the supported networks and their corresponding formatted output names as key-value pairs.
*/
exports.networkConstants = {
"flare": "Flare " + chalk_1.default.green("(mainnet)"),
"songbird": "Songbird " + chalk_1.default.green("(canary)"),
"costwo": "Coston2 " + chalk_1.default.yellow("(testnet)"),
"coston": "Coston " + chalk_1.default.yellow("(testnet)"),
"localflare": "LocalHost " + chalk_1.default.red("(devnet)"),
};
/**
* @description Constant object which contains the supported wallets and their corresponding formatted output names as key-value pairs.
*/
exports.walletConstants = {
"ledger": 'Ledger',
"privateKey": "Private Key " + chalk_1.default.red("(not recommended!)")
};
/**
* @description Constant object which contains the supported wallet derivation path modes and their corresponding formatted output names as key-value pairs.
*/
exports.derivationModeConstants = {
"bip44": 'BIP44 (Default)',
"ledger_live": 'Ledger Live',
};
//# sourceMappingURL=screen.js.map