@@ -144,7 +144,7 @@ func (s *BeaconKitE2ESuite) TestBeaconValidatorsWithIndices() {
144144 s .Require ().
145145 True (validator .Validator .EffectiveBalance > 0 , "Effective balance should be positive" )
146146 s .Require ().
147- True (validator .Validator .EffectiveBalance <= 32e9 , "Effective balance should not exceed 32 ETH" )
147+ True (validator .Validator .EffectiveBalance <= 250e12 , "Effective balance should not exceed 250_000 ETH" )
148148
149149 s .Require ().
150150 False (validator .Validator .Slashed , "Slashed status should not be true" )
@@ -163,7 +163,7 @@ func (s *BeaconKitE2ESuite) TestBeaconValidatorsWithIndices() {
163163 s .Require ().
164164 True (validator .Balance > 0 , "Validator balance should be positive" )
165165 s .Require ().
166- True (validator .Balance <= 32e9 , "Validator balance should not exceed 32 ETH" )
166+ True (validator .Balance <= 250e12 , "Validator balance should not exceed 250_000 ETH" )
167167}
168168
169169// TestValidatorsEmptyIndicesAndStatuses tests that querying validators with empty indices and empty statuses returns all validators.
@@ -272,8 +272,8 @@ func (s *BeaconKitE2ESuite) TestValidatorBalances() {
272272 balanceMap := balancesResp .Data
273273 for _ , balance := range balanceMap {
274274 s .Require ().True (balance > 0 , "Validator balance should be positive" )
275- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
276- s .Require ().True (balance <= 4e12 , "Validator balance should not exceed 4e12 gwei (4000 BERA) " )
275+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
276+ s .Require ().True (balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
277277 }
278278}
279279
@@ -299,8 +299,8 @@ func (s *BeaconKitE2ESuite) TestValidatorBalancesWithSpecificIndices() {
299299 s .Require ().NotNil (balance )
300300 s .Require ().Contains (indices , index )
301301 s .Require ().True (balance > 0 , "Validator balance should be positive" )
302- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
303- s .Require ().True (balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
302+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
303+ s .Require ().True (balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
304304 }
305305}
306306
@@ -326,8 +326,8 @@ func (s *BeaconKitE2ESuite) TestValidatorBalancesMultipleIndices() {
326326 for index , balance := range balancesResp .Data {
327327 returnedIndices [index ] = struct {}{}
328328 s .Require ().True (balance > 0 )
329- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
330- s .Require ().True (balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
329+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
330+ s .Require ().True (balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
331331 }
332332 for _ , idx := range indices {
333333 _ , exists := returnedIndices [idx ]
@@ -379,8 +379,8 @@ func (s *BeaconKitE2ESuite) TestValidatorBalancesWithPubkey() {
379379 for _ , balance := range balancesResp .Data {
380380 s .Require ().NotNil (balance )
381381 s .Require ().True (balance > 0 , "Validator balance should be positive" )
382- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
383- s .Require ().True (balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
382+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
383+ s .Require ().True (balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
384384 }
385385}
386386
@@ -582,8 +582,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorBalances() {
582582
583583 for _ , balance := range * balancesResp {
584584 s .Require ().True (balance .Balance > 0 , "Validator balance should be positive" )
585- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
586- s .Require ().True (balance .Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
585+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
586+ s .Require ().True (balance .Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
587587 }
588588}
589589
@@ -600,8 +600,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorBalancesWithSpecificID() {
600600
601601 s .Require ().Len (* balancesResp , 1 )
602602 s .Require ().True ((* balancesResp )[0 ].Balance > 0 , "Validator balance should be positive" )
603- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
604- s .Require ().True ((* balancesResp )[0 ].Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
603+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
604+ s .Require ().True ((* balancesResp )[0 ].Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
605605}
606606
607607// TestGetValidatorBalancesWithMultipleIDs tests querying validator balances with multiple IDs.
@@ -621,8 +621,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorBalancesWithMultipleIDs() {
621621
622622 for _ , balance := range * balancesResp {
623623 s .Require ().True (balance .Balance > 0 , "Validator balance should be positive" )
624- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
625- s .Require ().True (balance .Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
624+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
625+ s .Require ().True (balance .Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
626626 }
627627}
628628
@@ -681,8 +681,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorBalancesWithPublicKey() {
681681
682682 s .Require ().Len (* balancesResp , 1 )
683683 s .Require ().True ((* balancesResp )[0 ].Balance > 0 , "Validator balance should be positive" )
684- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
685- s .Require ().True ((* balancesResp )[0 ].Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
684+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
685+ s .Require ().True ((* balancesResp )[0 ].Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
686686}
687687
688688// TestGetValidatorBalancesWithInvalidPublicKey tests querying validator balances with invalid public key.
@@ -717,9 +717,9 @@ func (s *BeaconKitE2ESuite) TestGetValidatorBalancesForGenesis() {
717717
718718 for _ , balance := range * balancesResp {
719719 s .Require ().True (balance .Balance > 0 , "Validator balance should be positive" )
720- // At genesis, the validator balance is 32 BERA.
721- // 32e9 Gwei = 32 * 10^9 Gwei = 32 ,000,000,000 Gwei = 32 BERA
722- s .Require ().True (balance .Balance <= 32e9 , "Validator balance should not exceed 32 BERA" )
720+ // At genesis, the validator balance is 250_000 BERA.
721+ // 250e12 Gwei = 250_000 * 10^9 Gwei = 250 ,000,000,000,000 Gwei = 250_000 BERA
722+ s .Require ().True (balance .Balance <= 250e12 , "Validator balance should not exceed 250_000 BERA" )
723723 }
724724}
725725
@@ -779,8 +779,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorsWithStateHead() {
779779 for _ , validator := range * validators {
780780 s .Require ().True (validator .Status == "active_ongoing" )
781781 s .Require ().True (validator .Balance > 0 , "Validator balance should be positive" )
782- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
783- s .Require ().True (validator .Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
782+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
783+ s .Require ().True (validator .Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
784784 }
785785}
786786
@@ -800,8 +800,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorsWithID() {
800800 s .Require ().Equal (uint64 (0 ), (* validators )[0 ].Index , "Validator index should be 0" )
801801 s .Require ().Equal ("active_ongoing" , (* validators )[0 ].Status , "Validator status should be active_ongoing" )
802802 s .Require ().True ((* validators )[0 ].Balance > 0 , "Validator balance should be positive" )
803- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
804- s .Require ().True ((* validators )[0 ].Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
803+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
804+ s .Require ().True ((* validators )[0 ].Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
805805}
806806
807807// TestGetValidatorsWithStatus tests querying validators with status parameter.
@@ -820,8 +820,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorsWithStatus() {
820820 for _ , validator := range * validators {
821821 s .Require ().Equal ("active_ongoing" , validator .Status , "Validator status should be active_ongoing" )
822822 s .Require ().True (validator .Balance > 0 , "Validator balance should be positive" )
823- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
824- s .Require ().True (validator .Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
823+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
824+ s .Require ().True (validator .Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
825825 }
826826}
827827
@@ -846,8 +846,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorsWithIDAndStatus() {
846846 s .Require ().Equal (uint64 (0 ), (* validators )[0 ].Index , "Validator index should be 0" )
847847 s .Require ().Equal ("active_ongoing" , (* validators )[0 ].Status , "Validator status should be active_ongoing" )
848848 s .Require ().True ((* validators )[0 ].Balance > 0 , "Validator balance should be positive" )
849- // 4e12 Gwei = 4 * 10^12 Gwei = 4 ,000,000,000,000 Gwei = 4000 BERA
850- s .Require ().True ((* validators )[0 ].Balance <= 4e12 , "Validator balance should not exceed 4000 BERA" )
849+ // 10e15 Gwei = 10_000_000 * 10^9 Gwei = 10 ,000,000,000,000,000 Gwei = 10_000_000 BERA
850+ s .Require ().True ((* validators )[0 ].Balance <= 10e15 , "Validator balance should not exceed 10_000_000 BERA" )
851851}
852852
853853// TestGetValidatorsWithStateGenesis tests querying validators with state genesis.
@@ -864,8 +864,8 @@ func (s *BeaconKitE2ESuite) TestGetValidatorsWithStateGenesis() {
864864 for _ , validator := range * validators {
865865 s .Require ().True (validator .Status == "active_ongoing" )
866866 s .Require ().True (validator .Balance > 0 , "Validator balance should be positive" )
867- // 32e9 Gwei = 32 * 10^9 Gwei = 32 ,000,000,000 Gwei = 32 BERA
868- s .Require ().True (validator .Balance <= 32e9 , "Validator balance should not exceed 32 BERA" )
867+ // 250e12 Gwei = 250_000 * 10^9 Gwei = 250 ,000,000,000,000 Gwei = 250_000 BERA
868+ s .Require ().True (validator .Balance <= 250e12 , "Validator balance should not exceed 250_000 BERA" )
869869 }
870870}
871871
0 commit comments