aether-hub 1.1.8 → 1.2.0
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/doctor.js +2 -1
- package/commands/ping.js +320 -0
- package/commands/price.js +253 -0
- package/commands/validators.js +665 -326
- package/index.js +16 -0
- package/package.json +3 -1
package/index.js
CHANGED
|
@@ -21,6 +21,7 @@ const { delegationsCommand } = require('./commands/delegations');
|
|
|
21
21
|
const { rewardsCommand } = require('./commands/rewards');
|
|
22
22
|
const { accountCommand } = require('./commands/account');
|
|
23
23
|
const { emergencyCommand } = require('./commands/emergency');
|
|
24
|
+
const { priceCommand } = require('./commands/price');
|
|
24
25
|
const readline = require('readline');
|
|
25
26
|
|
|
26
27
|
// CLI version
|
|
@@ -324,6 +325,20 @@ const COMMANDS = {
|
|
|
324
325
|
validatorsListCommand();
|
|
325
326
|
},
|
|
326
327
|
},
|
|
328
|
+
price: {
|
|
329
|
+
description: 'AETH/USD price — aether price [--pair AETH/USD] [--json] [--source coingecko]',
|
|
330
|
+
handler: () => {
|
|
331
|
+
const { priceCommand } = require('./commands/price');
|
|
332
|
+
priceCommand();
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
ping: {
|
|
336
|
+
description: 'Ping RPC endpoint — measure latency, check node health — aether ping [--rpc <url>] [--count <n>] [--json]',
|
|
337
|
+
handler: () => {
|
|
338
|
+
const { pingCommand } = require('./commands/ping');
|
|
339
|
+
pingCommand();
|
|
340
|
+
},
|
|
341
|
+
},
|
|
327
342
|
emergency: {
|
|
328
343
|
description: 'Emergency response & network alerts — status, monitor, check, alert, failover, history',
|
|
329
344
|
handler: () => {
|
|
@@ -372,6 +387,7 @@ Validator CLI v${VERSION}
|
|
|
372
387
|
console.log(' aether-cli network # Network status, peers, slot info');
|
|
373
388
|
console.log(' aether-cli network --peers # Detailed peer list');
|
|
374
389
|
console.log(' aether-cli tx history # Show transaction history');
|
|
390
|
+
console.log(' aether-cli price # AETH/USD price check');
|
|
375
391
|
console.log(' aether-cli --version # Show version');
|
|
376
392
|
console.log('\nDocumentation: https://github.com/jelly-legs-ai/Jelly-legs-unsteady-workshop');
|
|
377
393
|
console.log('Spec: docs/MINING_VALIDATOR_TOOLS.md\n');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aether-hub",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
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": {
|
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"test": "node test/doctor.test.js",
|
|
19
19
|
"start": "node index.js",
|
|
20
20
|
"doctor": "node index.js doctor",
|
|
21
|
+
"price": "node index.js price",
|
|
22
|
+
"build": "node -e \"require('./commands/price'); require('./commands/account'); require('./commands/emergency')\" && echo \"Build OK\"",
|
|
21
23
|
"postinstall": "node -e \"console.log('\\n\\n [Aether] aether-hub installed!\\n\\n Run: aether start\\n Docs: https://github.com/jelly-legs-ai/Jelly-legs-unsteady-workshop\\n')\""
|
|
22
24
|
},
|
|
23
25
|
"keywords": [
|