Skip to content

Commit 4387c6c

Browse files
authored
test: wip refactor unit tests for staking fns (#1021)
* test: wip refactor unit tests for staking fns Signed-off-by: Tomás Migone <[email protected]> * test: refactor unstake tests passing Signed-off-by: Tomás Migone <[email protected]> * test: refactor withdraw tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor add to provision Signed-off-by: Tomás Migone <[email protected]> * test: wip thaw refactor Signed-off-by: Tomás Migone <[email protected]> * test: refactor thaw tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor deprovision test Signed-off-by: Tomás Migone <[email protected]> * test: refactor reprovision tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor provision parameters functions Signed-off-by: Tomás Migone <[email protected]> * test: refactor provision tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor operator tests Signed-off-by: Tomás Migone <[email protected]> * chore: update some configs Signed-off-by: Tomás Migone <[email protected]> * test: wip refactor of delegation tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor service provider tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor delegation tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor governance tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor ttools tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor slash test Signed-off-by: Tomás Migone <[email protected]> * test: refactor legacy allocation tests wip Signed-off-by: Tomás Migone <[email protected]> * test: refacto allocation close tests Signed-off-by: Tomás Migone <[email protected]> * test: refactor collect allocation tests Signed-off-by: Tomás Migone <[email protected]> * fix: remove comments Signed-off-by: Tomás Migone <[email protected]> * chore: use solidity 0.8.27, remove compilation via ir Signed-off-by: Tomás Migone <[email protected]> * chore: use solidity 0.8.27 Signed-off-by: Tomás Migone <[email protected]> --------- Signed-off-by: Tomás Migone <[email protected]>
1 parent 63d2ba4 commit 4387c6c

File tree

182 files changed

+2877
-1437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+2877
-1437
lines changed

packages/contracts/contracts/arbitrum/ITokenGateway.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
*/
2525

26-
pragma solidity ^0.7.6 || 0.8.26;
26+
pragma solidity ^0.7.6 || 0.8.27;
2727

2828
interface ITokenGateway {
2929
/// @notice event deprecated in favor of DepositInitiated and WithdrawalInitiated

packages/contracts/contracts/curation/ICuration.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
/**
66
* @title Curation Interface

packages/contracts/contracts/epochs/IEpochManager.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
interface IEpochManager {
66
// -- Configuration --

packages/contracts/contracts/gateway/ICallhookReceiver.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* be allowlisted by the governor, but also implement this interface that contains
77
* the function that will actually be called by the L2GraphTokenGateway.
88
*/
9-
pragma solidity ^0.7.6 || 0.8.26;
9+
pragma solidity ^0.7.6 || 0.8.27;
1010

1111
interface ICallhookReceiver {
1212
/**

packages/contracts/contracts/governance/Controller.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
import { IController } from "./IController.sol";
66
import { IManaged } from "./IManaged.sol";

packages/contracts/contracts/governance/Governed.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
/**
66
* @title Graph Governance contract

packages/contracts/contracts/governance/IController.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
interface IController {
66
function getGovernor() external view returns (address);

packages/contracts/contracts/governance/IManaged.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
import { IController } from "./IController.sol";
66

packages/contracts/contracts/governance/Pausable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
abstract contract Pausable {
66
/**

packages/contracts/contracts/l2/staking/IL2StakingBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0-or-later
22

3-
pragma solidity ^0.7.6 || 0.8.26;
3+
pragma solidity ^0.7.6 || 0.8.27;
44

55
import { ICallhookReceiver } from "../../gateway/ICallhookReceiver.sol";
66

0 commit comments

Comments
 (0)