aether-hub 1.2.2 → 1.2.4

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
@@ -25,6 +25,9 @@ const { emergencyCommand } = require('./commands/emergency');
25
25
  const { priceCommand } = require('./commands/price');
26
26
  const { epochCommand } = require('./commands/epoch');
27
27
  const { supplyCommand } = require('./commands/supply');
28
+ const { statusCommand } = require('./commands/status');
29
+ const { broadcastCommand } = require('./commands/broadcast');
30
+ const { apyCommand } = require('./commands/apy');
28
31
  const readline = require('readline');
29
32
 
30
33
  // CLI version
@@ -195,11 +198,8 @@ const COMMANDS = {
195
198
  'stake-positions': {
196
199
  description: 'Show current stake positions/delegations — aether stake-positions --address <addr> [--json]',
197
200
  handler: () => {
198
- const { walletCommand } = require('./commands/wallet');
199
- const originalArgv = process.argv;
200
- process.argv = [...originalArgv.slice(0, 2), 'wallet', 'stake-positions', ...originalArgv.slice(3)];
201
- walletCommand();
202
- process.argv = originalArgv;
201
+ const { stakePositionsCommand } = require('./commands/stake-positions');
202
+ stakePositionsCommand();
203
203
  },
204
204
  },
205
205
  unstake: {
@@ -340,6 +340,13 @@ const COMMANDS = {
340
340
  supplyCommand();
341
341
  },
342
342
  },
343
+ status: {
344
+ description: 'Full dashboard — epoch, network, supply, validator info — aether status [--json] [--compact] [--validator]',
345
+ handler: () => {
346
+ const { statusCommand } = require('./commands/status');
347
+ statusCommand();
348
+ },
349
+ },
343
350
  validators: {
344
351
  description: 'List active validators — aether validators list [--tier full|lite|observer] [--json]',
345
352
  handler: () => {
@@ -353,6 +360,20 @@ const COMMANDS = {
353
360
  priceCommand();
354
361
  },
355
362
  },
363
+ broadcast: {
364
+ description: 'Broadcast a signed transaction — aether broadcast --tx <sig> [--json] [--file <path>]',
365
+ handler: () => {
366
+ const { broadcastCommand } = require('./commands/broadcast');
367
+ broadcastCommand();
368
+ },
369
+ },
370
+ apy: {
371
+ description: 'Validator APY estimator — aether apy [--validator <addr>] [--address <addr>] [--json] [--epochs <n>]',
372
+ handler: () => {
373
+ const { apyCommand } = require('./commands/apy');
374
+ apyCommand();
375
+ },
376
+ },
356
377
  ping: {
357
378
  description: 'Ping RPC endpoint — measure latency, check node health — aether ping [--rpc <url>] [--count <n>] [--json]',
358
379
  handler: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aether-hub",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
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": {