aether-hub 1.2.7 → 1.2.8

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.
@@ -19,6 +19,9 @@ const bip39 = require('bip39');
19
19
  const nacl = require('tweetnacl');
20
20
  const bs58 = require('bs58').default;
21
21
 
22
+ // Import SDK for blockchain RPC calls
23
+ const aether = require('../sdk');
24
+
22
25
  // ANSI colours
23
26
  const C = {
24
27
  reset: '\x1b[0m',
package/index.js CHANGED
@@ -36,6 +36,7 @@ const { blockhashCommand } = require('./commands/blockhash');
36
36
  const { sdkTestCommand } = require('./commands/sdk-test');
37
37
  const { balanceCommand } = require('./commands/balance');
38
38
  const { transferCommand } = require('./commands/transfer');
39
+ const { slotCommand } = require('./commands/slot');
39
40
  const readline = require('readline');
40
41
 
41
42
  // CLI version
@@ -429,6 +430,12 @@ const COMMANDS = {
429
430
  tpsCommand();
430
431
  },
431
432
  },
433
+ slot: {
434
+ description: 'Get current slot number — aether slot [--json] [--rpc <url>]',
435
+ handler: () => {
436
+ slotCommand();
437
+ },
438
+ },
432
439
  claim: {
433
440
  description: 'Claim accumulated staking rewards — aether claim --address <addr> [--json] [--dry-run]',
434
441
  handler: () => {
@@ -532,5 +539,7 @@ function main() {
532
539
  }
533
540
  }
534
541
 
535
- // Run CLI
536
- main();
542
+ // Run CLI only if executed directly
543
+ if (require.main === module) {
544
+ main();
545
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aether-hub",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
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": {