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.
- package/commands/account.js +280 -280
- package/commands/apy.js +480 -480
- package/commands/balance.js +276 -276
- package/commands/claim.js +292 -292
- package/commands/delegations.js +45 -95
- package/commands/emergency.js +14 -4
- package/commands/epoch.js +275 -275
- package/commands/fees.js +276 -276
- package/commands/info.js +495 -495
- package/commands/monitor.js +431 -431
- package/commands/multisig.js +726 -726
- package/commands/network.js +429 -429
- package/commands/ping.js +266 -266
- package/commands/sdk-test.js +477 -477
- package/commands/sdk.js +537 -537
- package/commands/slot.js +155 -0
- package/commands/snapshot.js +509 -509
- package/commands/stake-positions.js +31 -46
- package/commands/stats.js +418 -418
- package/commands/status.js +326 -326
- package/commands/supply.js +3 -1
- package/commands/tps.js +238 -238
- package/commands/tx-history.js +346 -462
- package/commands/wallet.js +3 -0
- package/index.js +11 -2
- package/package.json +1 -1
package/commands/wallet.js
CHANGED
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
|
+
}
|