Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quorum operator stake report cli #1162

Merged
merged 3 commits into from
Jan 27, 2025
Merged

Quorum operator stake report cli #1162

merged 3 commits into from
Jan 27, 2025

Conversation

pschork
Copy link
Contributor

@pschork pschork commented Jan 26, 2025

Allows you to easily query quorum based operator stake % at specified blocknumber

Example usage (testnet)

> ./bin/quorumscan --quorum-ids "0,1,2" --block-number 21690944 --top 10
image

Why are these changes needed?

Checks

  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • I've checked the new test coverage and the coverage percentage didn't drop.
  • Testing Strategy
    • Manual Integration tests
    • This PR is not tested :(

Allows you to easily query quorum based operator state at specified blocknumber

```
> ./bin/quorumscan --quorum-ids "0,1" --block-number 21690944
Jan 25 18:56:46.227 INF cmd/main.go:78 Using block number block=21690944
Jan 25 18:56:46.785 INF cmd/main.go:89 Queried operator state count=83
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+-----------------------+
| QUORUM | OPERATOR                                                         | ADDRESS                                    | STAKE              |             STAKE PCT |
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+-----------------------+
|      0 | 0ddf97e5daffe5063354586ec5116fd57f9809411c2266b7f2d11940967a4fc9 | 0xa4e245c3a1cb2f0512a71b9cd908dca2f1641781 | 210058.24900698403 |     38.69752096803504 |
|        | ad47d21cdef2987782d4f9513d90eb4e72ee7168307e9c0bc45dc27157a6c22f | 0xce637eac04570dbb24582383e4c64757b0b59a1f | 26858.89004887497  |     4.948020207527912 |
|        | 811b003894d402dd23ae9ecd5e807aedc08e505ccbfb5f7f37c6c19f3fb3acb2 | 0x0a3e3d83c99b27ca7540720b54105c79cd58dbdd | 26579.66115050468  |      4.89657987514084 |
|        | 7a6a8667a6e790ddf177a94113f345d38d4cebb65be3c267452471c6b85113e8 | 0xa337f1f29b0886fc4a5aa9c57abb0f73affa59f1 | 17280.099971362382 |     3.183388579752013 |
|        | 45511e592e63f31ee9d590d400a88fea67d774959e8311c60e80c5dd8007821b | 0xdda538c29b6d569252e127c266a8a4cd77ea0bd8 | 13665.067939374148 |    2.5174172193350657 |
|        | 6be95b2b4819d540b9a5b5f2461e4e8f4914d1345e73a9dfd18895ef7a571f91 | 0x9d56343e24cd60fd60b55b75b20f992cfefa2e2e | 13589.708786427616 |     2.503534344394102 |
|        | f46f58b8c0fd2ba5d3975cbd33c125a881090bce0f7902f203514febab23514b | 0x0b0e3d82d20ad9814dd0b24fea2b7664cd948cd1 | 12603.62661766543  |    2.3218755160344906 |
|        | 5fe8954d57a4f229e5ebbaf15e6815d89c570e38d046c7acff32f0c467f362dc | 0x64a5b396029162628f22764dffd0ef905839a256 | 11228.179895674066 |    2.0684868554306113 |
|        | 49b0e6f0fdb9289cb27ff4e71ba008c8752f826a51b150a12af69b74c68e9772 | 0x06fb6c463cc68100355624b6006471a960704126 | 10557.970704026851 |    1.9450190346268894 |
|        | b141a7cc71246834ca6dcd286b47b6a868151801ad0c7f6f2ce85d03b9d83275 | 0x33503f021b5f1c00ba842ced26b44ca2fab157bd | 10136.465202287969 |    1.8673681065210372 |
|        | d7434f20f68c9a302ce164649ed212ca46083469697a380e6c846babe6fec70e | 0x9139733dc30a2228240a1a19a9b5bd723c0fef4f | 9962.300905460505  |    1.8352830702978713 |
|        | 3944d3035bcc914866777523827256cfb8cea660e432016cfc5f31c71d3edff1 | 0xd216ccb2d95809957a3128824dddb136d90dfde7 | 9886.988439275787  |    1.8214087961233745 |
|        | 9c577f655e93c26f65f71c0109420dc889648a031c2ed5f23559b7a1e154b073 | 0x3e82e2988a83fa2c0a174d0863268086307ac91d | 9412.512155307768  |    1.7339994416491435 |
|        | 6d889a880ad1c44308073fea1b9f5252bb07d29411b0f1ca75d602156600d819 | 0xc1fa8425c66453a5d52e5ec3120336f412413191 | 8820.296435113562  |      1.62489979734499 |
|        | aa5b04ccce2002fa09c22ce3d1b0f1e4c441d984651d2d318f0bbd8bbb9ab729 | 0x7e26f2102e455b5755526dc5c421898470a23924 | 8173.210647553294  |    1.5056918350268884 |
|        | 4f91a3a7a6b8959353ba112f04beb71349d9f5e82d48a942d8f930c9212ba953 | 0xe82dcfb896e32927f058352f3e34734342e88fd0 | 7746.029496584423  |    1.4269953228693604 |
|        | 94eb2c8d20da7f410c88899ed14675fccfec54e114c9330c08fd127b078f2e71 | 0x08b9c489b6b0bebf21e350e6067829b881854a24 | 7547.435359948152  |     1.390409752900359 |
|        | 2236554ad1078b077c174bcef454808b30e03f1aa77d82a70da38a7688287819 | 0x721df9d3778c4a990cb800f1b574dc2414c6b8a5 | 7516.430581890274  |    1.3846979655524403 |
|        | ca72227e939b5752b421c972bb153cbf7ff843c1b28eaf4dec8adc55c7932300 | 0xb618776e9395773a744bdebfbe7339d74e7e1f05 | 7503.668831908081  |    1.3823469601058116 |
|        | 96a8253ec47844b652a612aa4150bb92275490d6263c2175a585de95d6eaecbd | 0x1c96a1430559e7db6800b46be9dab079b6bb5ef6 | 7244.008373616307  |    1.3345115807440544 |
|        | aab0438e22600e72aaefa06ff7369a971eee9d467701b50a19ee8f90c1cd6091 | 0x4a3d6e0ff640f2f0c1091878e6ed3be7ed3f6665 | 7178.460243286452  |    1.3224361199618848 |
|        | c8b26a972195c043984122d47182a5bea186c4fff95d552469ed15bef2a13ea9 | 0x234649b2d3c67e74f073f9c95fa8b10846c93a6b | 6573.701409318944  |    1.2110257479879474 |
|        | 5b3161756e695fdf42ce828b6cd513ae5ef47c8168c45a265a426e06c5ce8d2a | 0x64a5bf9df6ceaeb7ce9d7f6016f6058f8218ec4c | 6268.0952594057235 |    1.1547261241924827 |
|        | 24393d46b7f1d01aba17becba9f87030b6977c23137e7af317d986cf2533f457 | 0x4dbfa8bcccb1740d8044e1a093f9a078a88e45fe | 4811.066724108379  |    0.8863082326684046 |
|        | fe3e5cf7ce2d1ea6af990b68e589c941fe7ee5dd438cd1c845549a23edc2088c | 0xb25430a1ba8f2033834ba30aab8279cb1cb6c9a6 | 4519.1920257268    |    0.8325382554642029 |
|        | 9f018fa5c580cce497c54832c0e955baae268cd2b279c40fc155f37cadcf3df6 | 0x78fdde7a5006cc64e109aed99ca7b0ad3d8687bb | 3861.9494114704667 |    0.7114591739879739 |
|        | 3db2916a5add46816fc6d800ffce0917859e50ec9f7aa3fab2cc1d326890efb8 | 0x71eb14662f913320faf0258fe8f3acef3aa01e48 | 3689.706708835785  |    0.6797281392473433 |
|        | fd28e58d0923a425b7e9b3411c760521589070a5c3f0c8824767c95d357b601f | 0x2599512f47ee6c19eb9589e06d0ffe49fcd0ffb5 | 3377.581446192419  |    0.6222275461837807 |
|        | e173f1579ba68996e4e7adfcd5ee5589b6978d35e7422f28c976527408486584 | 0x4ba17b86aa6d6988592165c422cbb927a3be2398 | 3295.016964109694  |     0.607017285259893 |
|        | 0c9bece7a17d999eed6f91f2d70be50efdcf93107af3dc7ce7a2ad5ba3487c1f | 0xcb53656135441e561f9ffc11c650ed3f417322be | 3291.972442093197  |    0.6064564148578593 |
|        | 6947b23754ac054f5407e7259967a540508d459ffdaab271b2d3a4452a0072d1 | 0x90a550f3ec87bc2ef784666aa3929816c12a028a | 3233.038472317679  |     0.595599433321077 |
|        | cffbe594450f504166351b566f219f6f04720479e380652dbbc5cb43fe812b35 | 0x30eafe8869a1528660a97b7a7e8e2d0037dcb922 | 3203.523990991377  |    0.5901621926252961 |
|        | b4c900cbdaf49ad2a9949e072d4caf17e0652dda004baab449fcb80b322bbaa6 | 0x4022199916bdb09df09a1475d6d373701dc27fb6 | 3176.7657788042056 |    0.5852327195763906 |
|        | 475ca3b08b5861bb0f8e49ebc14775847cf531c6c16a1473d4610d6f609f179c | 0x5accc90436492f24e6af278569691e2c942a676d | 3056.12195523844   |    0.5630073753484431 |
|        | fcdc4573abcdf99c960ccf8f760973f35aa30c34f54b6c99699c7bbe839d50e0 | 0x1cdf9e809f0795761db4158e3ebb21cdf310c3a1 | 2987.528145800791  |    0.5503708310016292 |
|        | f8241b8c65bace535bf69f06cc991706fa30ddcbe673e62595fa0590eaf3c2df | 0x73bf91bb1327415ec7b9d436bfced67c3ee843fa | 2921.965171213104  |    0.5382926355685643 |
|        | 0a3fa504ab5b286b342b578367c57870efa2af30406a17d8c499c33e4be5bfaa | 0xe5147ae7c3dc7ae7ae02b3bec1aec180ec69ed9e | 2890.1822169891107 |    0.5324374904203812 |
|        | e104453c13da7208ec07361905a746ca0d24409511debcfa45004b78d57b4d53 | 0xb8feb0c0c8e767d402f411d9f56c1efa618db1a4 | 2734.411235670943  |    0.5037409224718844 |
|        | 4a2e98e2323f0667679ef60029ada8a34501f4bada0954cdf146b924a3f50ca3 | 0x3e31908e30b3051dfe056b1d0902b164d78cd8b8 | 2501.585140735818  |   0.46084904494148493 |
|        | ef87bbda7f6cf1dd63beb6546e1c3180436b3a54543b0c725cc63c3996d0cf7b | 0x82da30e2ab471c8d2e6af2c7c6e25f19d80436b2 | 2171.4836571503965 |    0.4000368219366097 |
|        | 79a2e4087ea63411c3ef1730700a24979a896a41840225649ba4513ccef80823 | 0xb1fbb188b533a4788ef989f189abdec5cbbc2404 | 2151.7407535683687 |   0.39639972875437524 |
|        | 2d0a6e3ea461ae78174eecf00343a01d1fa217166eebd347a6872e9b05726d0d | 0xb42cce7682ce9bc9a013ed0c54533545879c5087 | 2113.244569762062  |   0.38930785358605297 |
|        | 2e0ca11c309cb7a167542fd5bde77d2a45ea2af1dcdf924564745bfa9fa0fdcb | 0xfac1605884a5a584fe9df22ae1cb7525a811866b | 2080.004000070666  |    0.3831841824200638 |
|        | 579f7ab1902a30bae5542c835c00d78db52b153f466741fe04c8953e957a18a8 | 0xe3b520f525b57be060f2c7b9ca0ea98a2dc4500b | 1779.3093641284008 |    0.3277893715313727 |
|        | 77b5b132aa0b6e6b528c3cef2ba13efd9ccad1e4de4bee833cc037a2486ef1a4 | 0xb9b1ad6d07b4a5768a4c18bc440dd6a710e44af7 | 1747.485462046975  |    0.3219266828538158 |
|        | 7900e07188f3ecf6582dd2340905709644d174ead3490f9b712565d9b529922c | 0xa33bb755aaaaf106cdf2cb317ba893dfffb298bf | 1729.835170818693  |   0.31867509660034926 |
|        | ad61768cf8a0557916323486213d15f56351e89c1cc91030a0b18b45e650f73a | 0x63a27fd29a5385561991108e0cefb288c627cc03 | 1722.8865892537797 |   0.31739500937655546 |
|        | 228275bb077d0b961e851b7e6688ee9c7f196ba5230f0c401c3669073fb514de | 0xb1d24e87b33f7d83d02040cec9af4cdec1399cbf | 1720.8379422011703 |   0.31701760185912053 |
|        | b31102e4cf235efcb84545cb656b039782755994835365d1cd11764ccb4f2fdd | 0x1d79000206baffae662ffcdba1c2a6176d14df48 | 1688.7821681098162 |   0.31111219706825455 |
|        | 362421bb412ed86c199294dc375ee7ea9a5ad51a2a623e6296e76f1be207f67c | 0x848cf2a50c2d1f58a70af6483accfee95f1d3545 | 1663.0996277049112 |   0.30638088729808605 |
|        | c2f7ce8225ee33ca0b2cd76b81aa6b4b0767d5fc255ffae162f26b091a89305e | 0xb43c8307eef217d7882153c4f35661f91fde745f | 1602.8792882461555 |    0.2952869271231162 |
|        | d4f7bde01c78968691ad5db6297d570fb63dcbc485f1c4c7ce4d28e31cd1c65e | 0xfee8f29af67cb48286b83715b6365bfaa3f95dc7 | 1570.793112713524  |    0.2893759216932995 |
|        | 0b621128114e39c7e3b6530b75bdfe14071892f7f204a1b8d7bdf4609cfb19cb | 0x5f8499ed8ea44d8c97735fd18fbe950895aa8ad8 | 1536.4328766209435 |    0.2830459824362363 |
|        | 34da4965a668d21d36c31b0f6e695835ec33c324173ebffc16df24a06fca8fd4 | 0x5e29b3107937b4675fddf113edc5530498b3fb70 | 1275.504854056491  |   0.23497708882187462 |
|        | 9668bbb105fe80f34992812e4b9dbcf06cb4a571ac19a3167e385a2934567b00 | 0x7636800e599dfbc58041bf53b36deae2659edc8c | 1247.6231049860012 |   0.22984063465079893 |
|        | b7f5593effc91c14ed2634c76fe9ed06570b50a81e5602bc8f5d014dd9e17c32 | 0x5f8c207382426d3f7f248e6321cf93b34e66d6b9 | 998.4332212165092  |    0.1839341739534544 |
|        | 5f4fe63fc9a764937c1fbd448cb9bc30cd760b0df5eed63e3e0c67a117b866e0 | 0xc511461589b3295f492fa594f55f7dc26ef4e113 | 698.6100024386755  |   0.12869989798377696 |
|        | a388bd8c09b8992fd5900744fa3bd41099336fb3728edd2487772c3d8c6d531d | 0xfe6ad5bd4083044102d9438ad99af8d290230f8d | 682.945293089606   |    0.1258141012042673 |
|        | 9b5f0928733acff9b05529575e6eacb413acdbceb743904416e8c4de641acfe6 | 0x670fa1250c13f82945162d967e432815cd5d4895 | 668.8075016466454  |   0.12320959753258581 |
|        | fc4e7343f3f1672169b5563f7276c085f48b99033ec228c0578df7fa18d5a48c | 0x0905a5e6dab3efb6554eefcd7cff76c65a4d41a7 | 352.50030659773944 |   0.06493859712860536 |
|        | f6d7facf969197c03313d0fcc718184b35e713dccd131f01516d93182e1d61c0 | 0xc421e1216f99c838b0a426b1cd10c8e40030ca5c | 306.42744183014213 |  0.056450924500513235 |
|        | 4a48aa6f995d6a0a69d79f45f1f2f94f9c9fcee9cd4b0d07ac4f48647cf17aa5 | 0xb807666748a24648ff06d319ae27ce9680ff0ccf | 187.26030912135238 |    0.0344976204122473 |
|        | a7699a803dbe8a50209a4d860192e89b54c672d3a971d77013c0e883fd3223b6 | 0xe20589f95bf0f75e4b5d12db47d0dbb2da888d4c | 151                |   0.02781764436196463 |
|        | 7bd336765cdc384369e43414051660d91105aa871aab923272ef5fe71780fa93 | 0xc3ba9dd24129fa0688adf866fc3db054ebb78dd7 | 138.9893957851075  |     0.025605017099566 |
|        | 9bdde6f82077712c6e1c9aa8e7fca47529effb948faafa1fa21aebd343fc7fec | 0xa824b68b8981ca262a8c245afe42440df3cfb192 | 133.50774672903177 |  0.024595172305135447 |
|        | 82962186fda7a3d3ffb002dec916810c7d45db87e391c631c0f9dc148921af7d | 0x758e016468e5e90cdb42e743881c2e921d8e7bf8 | 123.8266335698178  |  0.022811690431685447 |
|        | 0c936f2c0e9599c38ac24ffed7ba7072f1880b580a41ff3f773024ec73d1a3ef | 0x28f892382092b77059543274fd952e8329319b09 | 99.9995814412697   |  0.018422203926348073 |
|        | c368eb42a2a273aed9854561d2b27dbc70f22606d3a2df1bce12d38b38a44348 | 0x50b8c23bdf964bda4062fda15716f1e2b38f5015 | 94.96446269185289  |  0.017494620199914056 |
|        | f98dd687694d1a2646878dd4ec09a3a3943d02c37e2f75251c40e1e6065e81ee | 0xd38d980188604c7051dbce2980a0c6e38423fda4 | 92.5774023366323   |  0.017054869232814244 |
|        | 1097b519f43993ca0c96e93aa98d1f7d0d1437208f2606346bd11eb8e1446321 | 0x8f64aca489a2d2fa6bf67219b8c401e3b94b0b07 | 65                 |  0.011974482672368881 |
|        | 7dc0044d3381fec94046de6092ce60729a82e95bdfdf004ba62cab8880325c68 | 0xc27313a17317bb9b08917c25ad4ba01dd2b657b7 | 49.403195128480604 |  0.009101195446548456 |
|        | 773463312f4da03c5caa137d072a88f3401ce494c6e060ea498aba0e1ba10072 | 0x79b8841ed99e32d269146654e315d4353733aea5 | 35                 | 0.0064477983620447816 |
|        | cae042dbaf857250897872808eb9d3bb9a2212e4b3e6d30756c577f6d92e42ea | 0x914ed74f61347cde06640fb23ea2d7b939b7974f | 33.72227722993816  |  0.006212412682503294 |
|        | af4be6d6ae51a74b90673f93d0e1ee942abf98dca8814e4cb562350170fab950 | 0x956d050c5b883b4140b80cf1fd93793dc717d482 | 33.6588540762767   | 0.0062007286908948925 |
|        | 8b332753e1bbb68307f40f89e785a537e128b1c03d7faec0c46759f4dc2856da | 0x0d84f2cfff72db8b927c27d01ae90e73bf453be3 | 33.27552160838417  |  0.006130110106363577 |
|        | 1b0b9f30d97b432a992d8c22f088eac9976fbc10641524ee61d461f0287fedfa | 0x4425457e84e256f4168c05b39970e58428a13480 | 32.27801140646706  |   0.00594634597361946 |
|        | 3d371962232511ac21a76125e77a6841a2b69a3f44ceed40e48caf9e9d9b9f9d | 0x1970474fc9a6ab726672ffed7e76bbc509f7edb9 | 32.1               |  0.005913552212046785 |
|        | 1e99bdcb5911d4334a5c24971ecaad2e057bdb5805276f2bffeea0be42d5a304 | 0xb53bb1fe77189849b42ba97a807f3f2eebcdd201 | 32.05              |  0.005904341071529579 |
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+-----------------------+
|  TOTAL | 78                                                               | 78                                         | 542820.9449915319  |    100.00000000000001 |
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+-----------------------+
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+---------------------+
| QUORUM | OPERATOR                                                         | ADDRESS                                    | STAKE              |           STAKE PCT |
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+---------------------+
|      1 | 0ddf97e5daffe5063354586ec5116fd57f9809411c2266b7f2d11940967a4fc9 | 0xa4e245c3a1cb2f0512a71b9cd908dca2f1641781 | 10678.98712031836  |  56.563098163888334 |
|        | 5fe8954d57a4f229e5ebbaf15e6815d89c570e38d046c7acff32f0c467f362dc | 0x64a5b396029162628f22764dffd0ef905839a256 | 3698.7000000000003 |  19.590802837538853 |
|        | 96a8253ec47844b652a612aa4150bb92275490d6263c2175a585de95d6eaecbd | 0x1c96a1430559e7db6800b46be9dab079b6bb5ef6 | 1766               |   9.353923759995029 |
|        | 475ca3b08b5861bb0f8e49ebc14775847cf531c6c16a1473d4610d6f609f179c | 0x5accc90436492f24e6af278569691e2c942a676d | 540.03589876       |  2.8603933321978676 |
|        | f8241b8c65bace535bf69f06cc991706fa30ddcbe673e62595fa0590eaf3c2df | 0x73bf91bb1327415ec7b9d436bfced67c3ee843fa | 305.9838662724268  |  1.6206963515859536 |
|        | b4c900cbdaf49ad2a9949e072d4caf17e0652dda004baab449fcb80b322bbaa6 | 0x4022199916bdb09df09a1475d6d373701dc27fb6 | 236.5              |  1.2526630629891418 |
|        | 9bdde6f82077712c6e1c9aa8e7fca47529effb948faafa1fa21aebd343fc7fec | 0xa824b68b8981ca262a8c245afe42440df3cfb192 | 232.82199999999    |   1.233181901273765 |
|        | 3db2916a5add46816fc6d800ffce0917859e50ec9f7aa3fab2cc1d326890efb8 | 0x71eb14662f913320faf0258fe8f3acef3aa01e48 | 200                |  1.0593345141557224 |
|        | 87ffe4abe5f30323a954661c521edcca030c1458c4820245b8c8b4b6a686933f | 0xc78b2bc952e491eed3e6c14f0c00c009fb29a281 | 181.111            |  0.9592856659662852 |
|        | a388bd8c09b8992fd5900744fa3bd41099336fb3728edd2487772c3d8c6d531d | 0xfe6ad5bd4083044102d9438ad99af8d290230f8d | 172.5              |  0.9136760184593106 |
|        | aab0438e22600e72aaefa06ff7369a971eee9d467701b50a19ee8f90c1cd6091 | 0x4a3d6e0ff640f2f0c1091878e6ed3be7ed3f6665 | 167.1615851362702  |  0.8854001828791559 |
|        | 6947b23754ac054f5407e7259967a540508d459ffdaab271b2d3a4452a0072d1 | 0x90a550f3ec87bc2ef784666aa3929816c12a028a | 164.4              |  0.8707729706360038 |
|        | 0c936f2c0e9599c38ac24ffed7ba7072f1880b580a41ff3f773024ec73d1a3ef | 0x28f892382092b77059543274fd952e8329319b09 | 150                |  0.7945008856167918 |
|        | 49b0e6f0fdb9289cb27ff4e71ba008c8752f826a51b150a12af69b74c68e9772 | 0x06fb6c463cc68100355624b6006471a960704126 | 66.49              |  0.3521757592310699 |
|        | 9b5f0928733acff9b05529575e6eacb413acdbceb743904416e8c4de641acfe6 | 0x670fa1250c13f82945162d967e432815cd5d4895 | 66                 |  0.3495803896713884 |
|        | ad61768cf8a0557916323486213d15f56351e89c1cc91030a0b18b45e650f73a | 0x63a27fd29a5385561991108e0cefb288c627cc03 | 58.7335            |  0.3110921184358256 |
|        | b5d819332755faf78b4535a6df36223183b19f4367d9346ad7f2043a2b3f8995 | 0xc24ce71ab128ad50df6ab0055519f7ecc4ac1dd4 | 51                 |  0.2701303011097092 |
|        | 94eb2c8d20da7f410c88899ed14675fccfec54e114c9330c08fd127b078f2e71 | 0x08b9c489b6b0bebf21e350e6067829b881854a24 | 41.825             | 0.22153333027281544 |
|        | d4f7bde01c78968691ad5db6297d570fb63dcbc485f1c4c7ce4d28e31cd1c65e | 0xfee8f29af67cb48286b83715b6365bfaa3f95dc7 | 34.5               |  0.1827352036918621 |
|        | 24393d46b7f1d01aba17becba9f87030b6977c23137e7af317d986cf2533f457 | 0x4dbfa8bcccb1740d8044e1a093f9a078a88e45fe | 34.0276            |  0.1802330555694263 |
|        | d7afdb3f54ef0512c37e47a3485bc407b10de8ca1fa80c2dacf785059519d28d | 0x4b729ee53f0c4655a90644642374ce93f0b6590d | 33                 |  0.1747901948356942 |
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+---------------------+
|  TOTAL | 21                                                               | 21                                         | 18879.777570487047 |  100.00000000000001 |
+--------+------------------------------------------------------------------+--------------------------------------------+--------------------+---------------------+
```
Add --top N flag
@pschork pschork requested review from dmanc and ian-shim January 27, 2025 18:31
Copy link
Contributor

@dmanc dmanc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{"time":"2025-01-27T14:25:38.591333-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":198},"msg":"Failed to fetch IEigenDARelayRegistry contract","component":"Reader","err":"execution reverted"}
{"time":"2025-01-27T14:25:38.912766-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":210},"msg":"Failed to fetch EigenDAThresholdRegistry contract","component":"Reader","err":"execution reverted"}
{"time":"2025-01-27T14:25:39.09486-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":222},"msg":"Failed to fetch PaymentVault address","component":"Reader","err":"execution reverted"}
{"time":"2025-01-27T14:25:39.274631-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":236},"msg":"Failed to fetch EigenDADisperserRegistry address","component":"Reader","err":"execution reverted"}

Get these error logs when I run quorum scan.


tx, err := eth.NewReader(logger, gethClient, config.BLSOperatorStateRetrieverAddr, config.EigenDAServiceManagerAddr)
if err != nil {
log.Fatalln("could not start tcp listener", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "could not start eth.NewReader"

if topN > 0 {
operatorHeader = "TOP " + strconv.Itoa(int(topN)) + " OPERATORS"
}
tw.AppendHeader(table.Row{"QUORUM", operatorHeader, "ADDRESS", "STAKE", "STAKE"}, rowAutoMerge)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe "STAKE (ETH)" so its clear what the value is

Copy link
Contributor Author

@pschork pschork Jan 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, but that kinda breaks when the quorum isn't holding ETH

@pschork
Copy link
Contributor Author

pschork commented Jan 27, 2025

{"time":"2025-01-27T14:25:38.591333-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":198},"msg":"Failed to fetch IEigenDARelayRegistry contract","component":"Reader","err":"execution reverted"}
{"time":"2025-01-27T14:25:38.912766-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":210},"msg":"Failed to fetch EigenDAThresholdRegistry contract","component":"Reader","err":"execution reverted"}
{"time":"2025-01-27T14:25:39.09486-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":222},"msg":"Failed to fetch PaymentVault address","component":"Reader","err":"execution reverted"}
{"time":"2025-01-27T14:25:39.274631-08:00","level":"ERROR","source":{"function":"github.com/Layr-Labs/eigenda/core/eth.(*Reader).updateContractBindings","file":"/Users/dmanc/github/layr-labs/eigenda/core/eth/reader.go","line":236},"msg":"Failed to fetch EigenDADisperserRegistry address","component":"Reader","err":"execution reverted"}

Get these error logs when I run quorum scan.

Those contract are not yet deployed to testnet/mainnet

@pschork pschork merged commit 3bc722b into master Jan 27, 2025
7 checks passed
@pschork pschork deleted the pschork/quorum_report branch January 27, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants