genlayer 0.32.4 → 0.32.6
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/CHANGELOG.md +4 -0
- package/README.md +38 -15
- package/dist/index.js +2430 -94
- package/docs/validator-guide.md +22 -13
- package/package.json +3 -2
- package/src/commands/staking/index.ts +128 -46
- package/src/commands/staking/stakingInfo.ts +285 -19
- package/src/commands/staking/validatorHistory.ts +259 -0
- package/src/commands/staking/wizard.ts +2 -2
- package/tests/actions/staking.test.ts +12 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -309,10 +309,14 @@ COMMANDS:
|
|
|
309
309
|
delegator-join [options] Join as a delegator by staking with a validator
|
|
310
310
|
delegator-exit [options] Exit as a delegator by withdrawing shares
|
|
311
311
|
delegator-claim [options] Claim delegator withdrawals after unbonding period
|
|
312
|
-
validator-info [
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
validator-info [validator] Get information about a validator
|
|
313
|
+
validator-history [validator] Show slash and reward history for a validator
|
|
314
|
+
delegation-info [validator] Get delegation info for a delegator with a validator
|
|
315
|
+
epoch-info [options] Get current/previous epoch info (--epoch <n> for specific)
|
|
316
|
+
validators [options] Show validator set with stake, status, and weight
|
|
315
317
|
active-validators [options] List all active validators
|
|
318
|
+
quarantined-validators List all quarantined validators
|
|
319
|
+
banned-validators List all banned validators
|
|
316
320
|
|
|
317
321
|
COMMON OPTIONS (all commands):
|
|
318
322
|
--network <network> Network to use (localnet, testnet-asimov)
|
|
@@ -360,20 +364,24 @@ EXAMPLES:
|
|
|
360
364
|
# banned: 'Not banned'
|
|
361
365
|
# }
|
|
362
366
|
|
|
363
|
-
# Get current epoch info (
|
|
367
|
+
# Get current epoch info (shows current + previous epoch)
|
|
364
368
|
genlayer staking epoch-info
|
|
365
369
|
# Output:
|
|
366
|
-
#
|
|
367
|
-
#
|
|
368
|
-
#
|
|
369
|
-
#
|
|
370
|
-
#
|
|
371
|
-
#
|
|
372
|
-
#
|
|
373
|
-
#
|
|
374
|
-
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
370
|
+
# ✔ Epoch info
|
|
371
|
+
#
|
|
372
|
+
# Current Epoch: 5 (started 9h 30m ago)
|
|
373
|
+
# Next Epoch: in 14h 30m
|
|
374
|
+
# Validators: 33
|
|
375
|
+
# ...
|
|
376
|
+
#
|
|
377
|
+
# Previous Epoch: 4 (finalized)
|
|
378
|
+
# Inflation: 1732904.66 GEN
|
|
379
|
+
# Claimed: 0 GEN
|
|
380
|
+
# Unclaimed: 1732904.66 GEN
|
|
381
|
+
# ...
|
|
382
|
+
|
|
383
|
+
# Query specific epoch data
|
|
384
|
+
genlayer staking epoch-info --epoch 4
|
|
377
385
|
|
|
378
386
|
# List active validators
|
|
379
387
|
genlayer staking active-validators
|
|
@@ -387,6 +395,21 @@ EXAMPLES:
|
|
|
387
395
|
# ]
|
|
388
396
|
# }
|
|
389
397
|
|
|
398
|
+
# Show validator set table with stake, status, weight
|
|
399
|
+
genlayer staking validators
|
|
400
|
+
genlayer staking validators --all # Include banned validators
|
|
401
|
+
|
|
402
|
+
# Show validator slash/reward history (testnet only)
|
|
403
|
+
genlayer staking validator-history 0x...
|
|
404
|
+
genlayer staking validator-history 0x... --limit 20
|
|
405
|
+
# Output:
|
|
406
|
+
# ┌─────────────┬───────┬────────┬────────────────────────┬─────────┐
|
|
407
|
+
# │ Time │ Epoch │ Type │ Details │ Block │
|
|
408
|
+
# ├─────────────┼───────┼────────┼────────────────────────┼─────────┤
|
|
409
|
+
# │ 12-11 14:20 │ 5 │ REWARD │ Val: 0 GEN, Del: 0 GEN │ 4725136 │
|
|
410
|
+
# │ 12-10 18:39 │ 4 │ SLASH │ 1.00% penalty │ 4717431 │
|
|
411
|
+
# └─────────────┴───────┴────────┴────────────────────────┴─────────┘
|
|
412
|
+
|
|
390
413
|
# Exit and claim (requires validator wallet address)
|
|
391
414
|
genlayer staking validator-exit --validator 0x... --shares 100
|
|
392
415
|
genlayer staking validator-claim --validator 0x...
|