aether-hub 1.2.0 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -9,6 +9,7 @@
9
9
  const { doctorCommand } = require('./commands/doctor');
10
10
  const { validatorStart } = require('./commands/validator-start');
11
11
  const { validatorStatus } = require('./commands/validator-status');
12
+ const { validatorInfo } = require('./commands/validator-info');
12
13
  const { init } = require('./commands/init');
13
14
  const { monitorLoop } = require('./commands/monitor');
14
15
  const { logsCommand } = require('./commands/logs');
@@ -22,6 +23,10 @@ const { rewardsCommand } = require('./commands/rewards');
22
23
  const { accountCommand } = require('./commands/account');
23
24
  const { emergencyCommand } = require('./commands/emergency');
24
25
  const { priceCommand } = require('./commands/price');
26
+ const { epochCommand } = require('./commands/epoch');
27
+ const { supplyCommand } = require('./commands/supply');
28
+ const { statusCommand } = require('./commands/status');
29
+ const { broadcastCommand } = require('./commands/broadcast');
25
30
  const readline = require('readline');
26
31
 
27
32
  // CLI version
@@ -279,9 +284,12 @@ const COMMANDS = {
279
284
  case 'status':
280
285
  validatorStatus();
281
286
  break;
287
+ case 'info':
288
+ validatorInfo();
289
+ break;
282
290
  default:
283
291
  console.error(`Unknown validator command: ${subcmd}`);
284
- console.error('Valid commands: start, status');
292
+ console.error('Valid commands: start, status, info');
285
293
  process.exit(1);
286
294
  }
287
295
  },
@@ -319,6 +327,28 @@ const COMMANDS = {
319
327
  accountCommand();
320
328
  },
321
329
  },
330
+ epoch: {
331
+ description: 'Aether epoch info — current epoch, slot, time remaining, APY estimate — aether epoch [--json] [--schedule]',
332
+ handler: () => {
333
+ const { epochCommand } = require('./commands/epoch');
334
+ epochCommand();
335
+ },
336
+ },
337
+ supply: {
338
+ description: 'Aether token supply — total, circulating, staked, burned — aether supply [--json] [--verbose]',
339
+ handler: () => {
340
+ const { supplyCommand } = require('./commands/supply');
341
+ // Pass full argv so supply.js can parse its own --help etc.
342
+ supplyCommand();
343
+ },
344
+ },
345
+ status: {
346
+ description: 'Full dashboard — epoch, network, supply, validator info — aether status [--json] [--compact] [--validator]',
347
+ handler: () => {
348
+ const { statusCommand } = require('./commands/status');
349
+ statusCommand();
350
+ },
351
+ },
322
352
  validators: {
323
353
  description: 'List active validators — aether validators list [--tier full|lite|observer] [--json]',
324
354
  handler: () => {
@@ -332,6 +362,13 @@ const COMMANDS = {
332
362
  priceCommand();
333
363
  },
334
364
  },
365
+ broadcast: {
366
+ description: 'Broadcast a signed transaction — aether broadcast --tx <sig> [--json] [--file <path>]',
367
+ handler: () => {
368
+ const { broadcastCommand } = require('./commands/broadcast');
369
+ broadcastCommand();
370
+ },
371
+ },
335
372
  ping: {
336
373
  description: 'Ping RPC endpoint — measure latency, check node health — aether ping [--rpc <url>] [--count <n>] [--json]',
337
374
  handler: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aether-hub",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "AeTHer Validator CLI — tiered validators (Full/Lite/Observer), system checks, onboarding, and node management",
5
5
  "main": "index.js",
6
6
  "bin": {