Layr-Labs / eigenlayer-cli

EigenLayer CLI
https://docs.eigenlayer.xyz/
Other
68 stars 100 forks source link

feat: eigenpod status command #178

Closed shrimalmadhur closed 3 months ago

shrimalmadhur commented 3 months ago

Fixes # .

What Changed?

Pretty

EigenPod Address: 0xe78d849E46CF8e616ffab6Dc2B027E8C56BF8498
EigenPod Proof Submitted Address: 0xeCe8FE7aAbF2C9e5b114fA2410db67c8cc82E036

Active Validators. Run `checkpoint` to update these 2 validators' balances
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Validator Index | Public Key                                                                                         | Effective Balance (GWei) | Current Balance (GWei)   | Slashed
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1735483         | 0xa2f2fc025f67317a41eb6c668c81f0cbfc29b67db53dfe042b422acdf8a5ff59cae80ff1ee24109cb93c26f559ff8626 | 32000000000              | 32000489728              | false
1759901         | 0xb2cb01d21a3b959a3db657a47eeddcaed424651528e0933e9ecf1fb1be7d980c331a18407cba64ba130140ad7bef0e86 | 32000000000              | 32000424075              | false
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

!NOTE: There is a checkpoint active! (started at: 2024-07-26 14:08:00 -0700 PDT)
    - If you finish it, you may receive up to 0.000844 shares. (64.203214 -> 64.204059)
    - 2 proof(s) remaining until completion.`

JSON

{
  "Validators": {
    "1735483": {
      "Slashed": false,
      "Index": 1735483,
      "Status": 1,
      "PublicKey": "0xa2f2fc025f67317a41eb6c668c81f0cbfc29b67db53dfe042b422acdf8a5ff59cae80ff1ee24109cb93c26f559ff8626",
      "IsAwaitingWithdrawalCredentialProof": false,
      "EffectiveBalance": 32000000000,
      "CurrentBalance": 32000489728
    },
    "1759901": {
      "Slashed": false,
      "Index": 1759901,
      "Status": 1,
      "PublicKey": "0xb2cb01d21a3b959a3db657a47eeddcaed424651528e0933e9ecf1fb1be7d980c331a18407cba64ba130140ad7bef0e86",
      "IsAwaitingWithdrawalCredentialProof": false,
      "EffectiveBalance": 32000000000,
      "CurrentBalance": 32000424075
    }
  },
  "ActiveCheckpoint": {
    "ProofsRemaining": 2,
    "StartedAt": 1722028080
  },
  "NumberValidatorsToCheckpoint": 2,
  "CurrentTotalSharesETH": "64.203214463",
  "Status": 0,
  "TotalSharesAfterCheckpointGwei": "6.4204058526e+10",
  "TotalSharesAfterCheckpointETH": "64.204058526",
  "PodOwner": "0xd39a1922fbe6c083f7a2d02ca05ea7be2af52ba8",
  "ProofSubmitter": "0xece8fe7aabf2c9e5b114fa2410db67c8cc82e036",
  "MustForceCheckpoint": false
}