Skip to content

Commit 029cb82

Browse files
committed
chore: format
1 parent add0a34 commit 029cb82

23 files changed

+80
-89
lines changed

src/BLSSignatureCheckerStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {IStakeRegistry, IDelegationManager} from "./interfaces/IStakeRegistry.so
88

99
abstract contract BLSSignatureCheckerStorage is IBLSSignatureChecker {
1010
/// @dev Returns the assumed gas cost of multiplying 2 pairings.
11-
uint256 internal constant PAIRING_EQUALITY_CHECK_GAS = 120_000;
11+
uint256 internal constant PAIRING_EQUALITY_CHECK_GAS = 120000;
1212

1313
/// @inheritdoc IBLSSignatureChecker
1414
ISlashingRegistryCoordinator public immutable registryCoordinator;

src/EjectionManagerStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {IEjectionManager} from "./interfaces/IEjectionManager.sol";
77

88
abstract contract EjectionManagerStorage is IEjectionManager {
99
/// @notice The basis point denominator for the ejectable stake percent
10-
uint16 internal constant BIPS_DENOMINATOR = 10_000;
10+
uint16 internal constant BIPS_DENOMINATOR = 10000;
1111
/// @notice The max number of quorums
1212
uint8 internal constant MAX_QUORUM_COUNT = 192;
1313

src/SlashingRegistryCoordinatorStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ abstract contract SlashingRegistryCoordinatorStorage is ISlashingRegistryCoordin
3030
/// @notice The maximum value of a quorum bitmap
3131
uint256 internal constant MAX_QUORUM_BITMAP = type(uint192).max;
3232
/// @notice The basis point denominator
33-
uint16 internal constant BIPS_DENOMINATOR = 10_000;
33+
uint16 internal constant BIPS_DENOMINATOR = 10000;
3434
/// @notice Index for flag that pauses operator registration
3535
uint8 internal constant PAUSED_REGISTER_OPERATOR = 0;
3636
/// @notice Index for flag that pauses operator deregistration

src/StakeRegistryStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ abstract contract StakeRegistryStorage is IStakeRegistry {
2525
/// @notice Maximum length of dynamic arrays in the `strategyParams` mapping.
2626
uint8 public constant MAX_WEIGHING_FUNCTION_LENGTH = 32;
2727
/// @notice Constant used as a divisor in dealing with BIPS amounts.
28-
uint256 internal constant MAX_BIPS = 10_000;
28+
uint256 internal constant MAX_BIPS = 10000;
2929

3030
/// @notice The address of the Delegation contract for EigenLayer.
3131
IDelegationManager public immutable delegation;

src/libraries/BN254.sol

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ pragma solidity ^0.8.27;
3030
library BN254 {
3131
// modulus for the underlying field F_p of the elliptic curve
3232
uint256 internal constant FP_MODULUS =
33-
21_888_242_871_839_275_222_246_405_745_257_275_088_696_311_157_297_823_662_689_037_894_645_226_208_583;
33+
21888242871839275222246405745257275088696311157297823662689037894645226208583;
3434
// modulus for the underlying field F_r of the elliptic curve
3535
uint256 internal constant FR_MODULUS =
36-
21_888_242_871_839_275_222_246_405_745_257_275_088_548_364_400_416_034_343_698_204_186_575_808_495_617;
36+
21888242871839275222246405745257275088548364400416034343698204186575808495617;
3737

3838
struct G1Point {
3939
uint256 X;
@@ -64,13 +64,13 @@ library BN254 {
6464
// generator of group G2
6565
/// @dev Generator point in F_q2 is of the form: (x0 + ix1, y0 + iy1).
6666
uint256 internal constant G2x1 =
67-
11_559_732_032_986_387_107_991_004_021_392_285_783_925_812_861_821_192_530_917_403_151_452_391_805_634;
67+
11559732032986387107991004021392285783925812861821192530917403151452391805634;
6868
uint256 internal constant G2x0 =
69-
10_857_046_999_023_057_135_944_570_762_232_829_481_370_756_359_578_518_086_990_519_993_285_655_852_781;
69+
10857046999023057135944570762232829481370756359578518086990519993285655852781;
7070
uint256 internal constant G2y1 =
71-
4_082_367_875_863_433_681_332_203_403_145_435_568_316_851_327_593_401_208_105_741_076_214_120_093_531;
71+
4082367875863433681332203403145435568316851327593401208105741076214120093531;
7272
uint256 internal constant G2y0 =
73-
8_495_653_923_123_431_417_604_973_247_489_272_438_418_190_587_263_600_148_770_280_649_306_958_101_930;
73+
8495653923123431417604973247489272438418190587263600148770280649306958101930;
7474

7575
/// @notice returns the G2 generator
7676
/// @dev mind the ordering of the 1s and 0s!
@@ -84,13 +84,13 @@ library BN254 {
8484
// negation of the generator of group G2
8585
/// @dev Generator point in F_q2 is of the form: (x0 + ix1, y0 + iy1).
8686
uint256 internal constant nG2x1 =
87-
11_559_732_032_986_387_107_991_004_021_392_285_783_925_812_861_821_192_530_917_403_151_452_391_805_634;
87+
11559732032986387107991004021392285783925812861821192530917403151452391805634;
8888
uint256 internal constant nG2x0 =
89-
10_857_046_999_023_057_135_944_570_762_232_829_481_370_756_359_578_518_086_990_519_993_285_655_852_781;
89+
10857046999023057135944570762232829481370756359578518086990519993285655852781;
9090
uint256 internal constant nG2y1 =
91-
17_805_874_995_975_841_540_914_202_342_111_839_520_379_459_829_704_422_454_583_296_818_431_106_115_052;
91+
17805874995975841540914202342111839520379459829704422454583296818431106115052;
9292
uint256 internal constant nG2y0 =
93-
13_392_588_948_715_843_804_641_432_497_768_002_650_278_120_570_034_223_513_918_757_245_338_268_106_653;
93+
13392588948715843804641432497768002650278120570034223513918757245338268106653;
9494

9595
function negGeneratorG2() internal pure returns (G2Point memory) {
9696
return G2Point([nG2x1, nG2x0], [nG2y1, nG2y0]);

src/unaudited/ECDSAStakeRegistryStorage.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ abstract contract ECDSAStakeRegistryStorage is IECDSAStakeRegistry {
1414
IDelegationManager internal immutable DELEGATION_MANAGER;
1515

1616
/// @dev The total amount of multipliers to weigh stakes
17-
uint256 internal constant BPS = 10_000;
17+
uint256 internal constant BPS = 10000;
1818

1919
/// @notice The size of the current operator set
2020
uint256 internal _totalOperators;

test/integration/CoreRegistration.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ contract Test_CoreRegistration is MockAVSDeployer {
5757
address(this),
5858
pauserRegistry,
5959
0, // 0 is initialPausedStatus
60-
50_400, // Initial withdrawal delay blocks
60+
50400, // Initial withdrawal delay blocks
6161
initializeStrategiesToSetDelayBlocks,
6262
initializeWithdrawalDelayBlocks
6363
)

test/integration/IntegrationBase.t.sol

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ abstract contract IntegrationBase is IntegrationConfig {
3232
ISlashingRegistryCoordinatorTypes.OperatorInfo memory info = _getOperatorInfo(user);
3333

3434
assertEq(info.operatorId, bytes32(0), err);
35-
assertTrue(info.status == ISlashingRegistryCoordinatorTypes.OperatorStatus.NEVER_REGISTERED, err);
35+
assertTrue(
36+
info.status == ISlashingRegistryCoordinatorTypes.OperatorStatus.NEVER_REGISTERED, err
37+
);
3638
}
3739

3840
function assert_HasRegisteredStatus(User user, string memory err) internal {

test/integration/IntegrationConfig.t.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ contract Constants {
1717
/// This is a low number because each operator receives its own BLS keypair, which
1818
/// is very slow to generate.
1919
uint32 constant MAX_OPERATOR_COUNT = 5;
20-
uint16 constant KICK_BIPS_OPERATOR_STAKE = 15_000;
20+
uint16 constant KICK_BIPS_OPERATOR_STAKE = 15000;
2121
uint16 constant KICK_BIPS_TOTAL_STAKE = 150;
2222

2323
/// Other:
@@ -28,7 +28,7 @@ contract Constants {
2828

2929
uint256 constant MAX_QUORUM_COUNT = 192; // From RegistryCoordinator.MAX_QUORUM_COUNT
3030

31-
uint16 internal constant BIPS_DENOMINATOR = 10_000;
31+
uint16 internal constant BIPS_DENOMINATOR = 10000;
3232
}
3333

3434
contract IntegrationConfig is IntegrationDeployer, G2Operations, Constants {
@@ -160,8 +160,8 @@ contract IntegrationConfig is IntegrationDeployer, G2Operations, Constants {
160160
emit log_named_uint("_configRand: number of quorums being initialized", quorumCount);
161161

162162
// Default OperatorSetParams for all quorums
163-
ISlashingRegistryCoordinatorTypes.OperatorSetParam memory operatorSet = ISlashingRegistryCoordinatorTypes
164-
.OperatorSetParam({
163+
ISlashingRegistryCoordinatorTypes.OperatorSetParam memory operatorSet =
164+
ISlashingRegistryCoordinatorTypes.OperatorSetParam({
165165
maxOperatorCount: MAX_OPERATOR_COUNT,
166166
kickBIPsOfOperatorStake: KICK_BIPS_OPERATOR_STAKE,
167167
kickBIPsOfTotalStake: KICK_BIPS_TOTAL_STAKE

test/integration/IntegrationDeployer.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ abstract contract IntegrationDeployer is Test, IUserDeployer {
107107
/// @notice Upper bound start range is ~1 month into the future, multiple of CALCULATION_INTERVAL_SECONDS
108108
uint32 MAX_FUTURE_LENGTH = 28 days;
109109
/// @notice absolute min timestamp that a rewards can start at
110-
uint32 GENESIS_REWARDS_TIMESTAMP = 1_712_188_800;
110+
uint32 GENESIS_REWARDS_TIMESTAMP = 1712188800;
111111
/// @notice Equivalent to 100%, but in basis points.
112-
uint16 internal constant ONE_HUNDRED_IN_BIPS = 10_000;
112+
uint16 internal constant ONE_HUNDRED_IN_BIPS = 10000;
113113

114114
uint32 defaultOperatorSplitBips = 1000;
115115
/// @notice Delay in timestamp before a posted root can be claimed against

0 commit comments

Comments
 (0)