Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit 0befc5c

Browse files
committed
Fixed linting problems with indentation
Solium complains about indentation problems but indentation is fine. Indentation is verified and fixed by prettier so we can ignore indentation cheks from oslium.
1 parent ad40931 commit 0befc5c

11 files changed

+298
-296
lines changed

solidity/.soliumrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"timestamp"
1111
]
1212
],
13+
"indentation": "off",
1314
"security/no-call-value": "off",
1415
"security/no-inline-assembly": "off"
1516
}

solidity/contracts/AbstractBonding.sol

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import "@keep-network/sortition-pools/contracts/api/IBonding.sol";
1919

2020
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
2121

22-
2322
/// @title Keep Bonding
2423
/// @notice Contract holding deposits from keeps' operators.
2524
contract AbstractBonding is IBonding {
@@ -175,11 +174,11 @@ contract AbstractBonding is IBonding {
175174
/// @param holder Address of the holder of the bond.
176175
/// @param referenceID Reference ID of the bond.
177176
/// @return Amount of wei in the selected bond.
178-
function bondAmount(address operator, address holder, uint256 referenceID)
179-
public
180-
view
181-
returns (uint256)
182-
{
177+
function bondAmount(
178+
address operator,
179+
address holder,
180+
uint256 referenceID
181+
) public view returns (uint256) {
183182
bytes32 bondID = keccak256(
184183
abi.encodePacked(operator, holder, referenceID)
185184
);

solidity/contracts/BondedECDSAKeep.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import "openzeppelin-solidity/contracts/math/SafeMath.sol";
2525
import "openzeppelin-solidity/contracts/token/ERC20/IERC20.sol";
2626
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
2727

28-
2928
/// @title Bonded ECDSA Keep
3029
/// @notice ECDSA keep with additional signer bond requirement.
3130
/// @dev This contract is used as a master contract for clone factory in
@@ -251,10 +250,11 @@ contract BondedECDSAKeep is IBondedECDSAKeep {
251250
/// @param _r Calculated signature's R value.
252251
/// @param _s Calculated signature's S value.
253252
/// @param _recoveryID Calculated signature's recovery ID (one of {0, 1, 2, 3}).
254-
function submitSignature(bytes32 _r, bytes32 _s, uint8 _recoveryID)
255-
external
256-
onlyMember
257-
{
253+
function submitSignature(
254+
bytes32 _r,
255+
bytes32 _s,
256+
uint8 _recoveryID
257+
) external onlyMember {
258258
require(isSigningInProgress(), "Not awaiting a signature");
259259
require(_recoveryID < 4, "Recovery ID must be one of {0, 1, 2, 3}");
260260

solidity/contracts/BondedECDSAKeepFactory.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ import "@keep-network/keep-core/contracts/utils/AddressArrayUtils.sol";
3333

3434
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
3535

36-
3736
/// @title Bonded ECDSA Keep Factory
3837
/// @notice Contract creating bonded ECDSA keeps.
3938
/// @dev We avoid redeployment of bonded ECDSA keep contract by using the clone factory.

solidity/contracts/BondedECDSAKeepVendor.sol

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,36 +17,40 @@ pragma solidity 0.5.17;
1717
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
1818
import "@openzeppelin/upgrades/contracts/upgradeability/Proxy.sol";
1919

20-
2120
/// @title Proxy contract for Bonded ECDSA Keep vendor.
2221
contract BondedECDSAKeepVendor is Proxy {
2322
using SafeMath for uint256;
2423

2524
/// @dev Storage slot with the admin of the contract.
2625
/// This is the keccak-256 hash of "eip1967.proxy.admin" subtracted by 1, and is
2726
/// validated in the constructor.
28-
bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
27+
bytes32
28+
internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;
2929

3030
/// @dev Storage slot with the address of the current implementation.
3131
/// This is the keccak-256 hash of "eip1967.proxy.implementation" subtracted by 1, and is
3232
/// validated in the constructor.
33-
bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
33+
bytes32
34+
internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
3435

3536
/// @dev Storage slot with the upgrade time delay. Upgrade time delay defines a
3637
/// period for implementation upgrade.
3738
/// This is the keccak-256 hash of "network.keep.bondedecdsavendor.proxy.upgradeTimeDelay"
3839
/// subtracted by 1, and is validated in the constructor.
39-
bytes32 internal constant UPGRADE_TIME_DELAY_SLOT = 0x3ca583dafde9ce8bdb41fe825f85984a83b08ecf90ffaccbc4b049e8d8703563;
40+
bytes32
41+
internal constant UPGRADE_TIME_DELAY_SLOT = 0x3ca583dafde9ce8bdb41fe825f85984a83b08ecf90ffaccbc4b049e8d8703563;
4042

4143
/// @dev Storage slot with the new implementation address.
4244
/// This is the keccak-256 hash of "network.keep.bondedecdsavendor.proxy.upgradeImplementation"
4345
/// subtracted by 1, and is validated in the constructor.
44-
bytes32 internal constant UPGRADE_IMPLEMENTATION_SLOT = 0x4e06287250f0fdd90b4a096f346c06d4e706d470a14747ab56a0156d48a6883f;
46+
bytes32
47+
internal constant UPGRADE_IMPLEMENTATION_SLOT = 0x4e06287250f0fdd90b4a096f346c06d4e706d470a14747ab56a0156d48a6883f;
4548

4649
/// @dev Storage slot with the implementation address upgrade initiation.
4750
/// This is the keccak-256 hash of "network.keep.bondedecdsavendor.proxy.upgradeInitiatedTimestamp"
4851
/// subtracted by 1, and is validated in the constructor.
49-
bytes32 internal constant UPGRADE_INIT_TIMESTAMP_SLOT = 0x0816e8d9eeb2554df0d0b7edc58e2d957e6ce18adf92c138b50dd78a420bebaf;
52+
bytes32
53+
internal constant UPGRADE_INIT_TIMESTAMP_SLOT = 0x0816e8d9eeb2554df0d0b7edc58e2d957e6ce18adf92c138b50dd78a420bebaf;
5054

5155
/// @notice Details of initialization data to be called on the second step
5256
/// of upgrade.

solidity/contracts/BondedECDSAKeepVendorImplV1.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "@keep-network/keep-core/contracts/KeepRegistry.sol";
2020

2121
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
2222

23-
2423
/// @title Bonded ECDSA Keep Vendor
2524
/// @notice The contract is used to obtain a new Bonded ECDSA keep factory.
2625
contract BondedECDSAKeepVendorImplV1 is IBondedECDSAKeepVendor {

solidity/contracts/CloneFactory.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pragma solidity 0.5.17;
22

3-
43
/*
54
The MIT License (MIT)
65
Copyright (c) 2018 Murray Software, LLC.

solidity/contracts/KeepBonding.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import "./AbstractBonding.sol";
1919
import "@keep-network/keep-core/contracts/TokenGrant.sol";
2020
import "@keep-network/keep-core/contracts/libraries/RolesLookup.sol";
2121

22-
2322
/// @title Keep Bonding
2423
/// @notice Contract holding deposits from keeps' operators.
2524
contract KeepBonding is AbstractBonding {

solidity/contracts/Migrations.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pragma solidity >=0.4.21 <0.6.0;
22

3-
43
contract Migrations {
54
address public owner;
65
uint256 public last_completed_migration;

0 commit comments

Comments
 (0)