aether-hub 1.2.2 → 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/commands/broadcast.js +323 -0
- package/commands/status.js +371 -0
- package/commands/supply.js +437 -437
- package/index.js +16 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -25,6 +25,8 @@ 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');
|
|
28
30
|
const readline = require('readline');
|
|
29
31
|
|
|
30
32
|
// CLI version
|
|
@@ -340,6 +342,13 @@ const COMMANDS = {
|
|
|
340
342
|
supplyCommand();
|
|
341
343
|
},
|
|
342
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
|
+
},
|
|
343
352
|
validators: {
|
|
344
353
|
description: 'List active validators — aether validators list [--tier full|lite|observer] [--json]',
|
|
345
354
|
handler: () => {
|
|
@@ -353,6 +362,13 @@ const COMMANDS = {
|
|
|
353
362
|
priceCommand();
|
|
354
363
|
},
|
|
355
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
|
+
},
|
|
356
372
|
ping: {
|
|
357
373
|
description: 'Ping RPC endpoint — measure latency, check node health — aether ping [--rpc <url>] [--count <n>] [--json]',
|
|
358
374
|
handler: () => {
|