UNPKG

@flipflop-sdk/cli

Version:

FlipFlop CLI tool for common operations

39 lines β€’ 2.95 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.systemConfigCommand = systemConfigCommand; const node_1 = require("@flipflop-sdk/node"); // Display mint command handler async function systemConfigCommand(options) { try { const systemConfigAccountInfo = await (0, node_1.getSystemConfig)({ rpc: options.rpc }); if (!systemConfigAccountInfo.success || !systemConfigAccountInfo.data) { console.log(systemConfigAccountInfo.message); return; } // Display formatted token information console.log('\nπŸ“Š Flipflop system configs:'); console.log('━'.repeat(50)); console.log(`πŸ‘€ System Admin: ${systemConfigAccountInfo.data.admin.toBase58()}`); console.log(`πŸ”‘ System Config Account: ${systemConfigAccountInfo.data.systemConfigAccount.toBase58()}`); console.log(`πŸ”‘ Launch Rule Account: ${systemConfigAccountInfo.data.launchRuleAccount.toBase58()}`); console.log(`🏦 Protocol Fee Account: ${systemConfigAccountInfo.data.protocolFeeAccount.toBase58()}`); console.log(`πŸ”’ Token Count: ${systemConfigAccountInfo.data.count.toString()}`); console.log(`🎯 Referral Usage Max Count: ${systemConfigAccountInfo.data.referralUsageMaxCount}`); // console.log(`πŸ’° Protocol Fee Rate: ${(systemConfigAccountInfo.data.protocolFeeRate * 100).toFixed(2)}%`); console.log(`πŸ’Έ Refund Fee Rate: ${(systemConfigAccountInfo.data.refundFeeRate * 100).toFixed(2)}%`); console.log(`⏰ Referrer Reset Interval: ${systemConfigAccountInfo.data.referrerResetIntervalSeconds.toString()} seconds`); console.log(`🏷️ Update Metadata Fee: ${(systemConfigAccountInfo.data.updateMetadataFee).toFixed(2)} SOL`); console.log(`πŸš€ Customized Deploy Fee: ${(systemConfigAccountInfo.data.customizedDeployFee).toFixed(2)} SOL`); console.log(`πŸ’§ Init Pool WSOL Percent: ${(systemConfigAccountInfo.data.initPoolWsolAmount * 100).toFixed(2)}%`); console.log(`πŸŽ“ Graduate Fee Rate: ${(systemConfigAccountInfo.data.graduateFeeRate).toFixed(2)}%`); console.log(`πŸ’Ž Min Graduate Fee: ${(systemConfigAccountInfo.data.minGraduateFee).toFixed(2)} SOL`); console.log(`🌊 Raydium CPMM Create Fee: ${(systemConfigAccountInfo.data.raydiumCpmmCreateFee).toFixed(2)} SOL`); // console.log(`πŸ“Š Transfer Fee Basis Points: ${systemConfigAccountInfo.transferFeeBasisPoints}`); console.log(`⏸️ Is Paused: ${systemConfigAccountInfo.data.isPause ? 'βœ… Yes' : '❌ No'}`); console.log('━'.repeat(50)); } catch (error) { console.error('❌ Error displaying system config information:', error instanceof Error ? error.message : 'Unknown error'); } } //# sourceMappingURL=system-config.js.map