-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from symbioticfi/scripts
Add scripts
- Loading branch information
Showing
15 changed files
with
164 additions
and
7 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
out/NetworkRestakeDecreaseHook.sol/NetworkRestakeDecreaseHook.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
out/NetworkRestakeRedistributeHook.sol/NetworkRestakeRedistributeHook.json
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
out/OperatorSpecificDecreaseHook.sol/OperatorSpecificDecreaseHook.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
out/OperatorSpecificResetHook.sol/OperatorSpecificResetHook.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {FullRestakeDecreaseHook} from "../../src/contracts/fullRestakeDelegator/FullRestakeDecreaseHook.sol"; | ||
|
||
contract FullRestakeDecreaseHookScript is Script { | ||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
address fullRestakeDecreaseHook = address(new FullRestakeDecreaseHook()); | ||
|
||
console2.log("FullRestakeDecreaseHook: ", fullRestakeDecreaseHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {FullRestakeResetHook} from "../../src/contracts/fullRestakeDelegator/FullRestakeResetHook.sol"; | ||
|
||
contract FullRestakeResetHookScript is Script { | ||
function run(uint48 period, uint256 slashCount) public { | ||
vm.startBroadcast(); | ||
|
||
address fullRestakeResetHook = address(new FullRestakeResetHook(period, slashCount)); | ||
|
||
console2.log("FullRestakeResetHook: ", fullRestakeResetHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {FullRestakeDecreaseHook} from "../../src/contracts/fullRestakeDelegator/FullRestakeDecreaseHook.sol"; | ||
import {NetworkRestakeDecreaseHook} from "../../src/contracts/networkRestakeDelegator/NetworkRestakeDecreaseHook.sol"; | ||
import {NetworkRestakeRedistributeHook} from | ||
"../../src/contracts/networkRestakeDelegator/NetworkRestakeRedistributeHook.sol"; | ||
import {OperatorSpecificDecreaseHook} from | ||
"../../src/contracts/operatorSpecificDelegator/OperatorSpecificDecreaseHook.sol"; | ||
|
||
contract HooksScript is Script { | ||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
address fullRestakeDecreaseHook = address(new FullRestakeDecreaseHook()); | ||
address networkRestakeDecreaseHook = address(new NetworkRestakeDecreaseHook()); | ||
address networkRestakeRedistributeHook = address(new NetworkRestakeRedistributeHook()); | ||
address operatorSpecificDecreaseHook = address(new OperatorSpecificDecreaseHook()); | ||
|
||
console2.log("FullRestakeDecreaseHook: ", fullRestakeDecreaseHook); | ||
console2.log("NetworkRestakeDecreaseHook: ", networkRestakeDecreaseHook); | ||
console2.log("NetworkRestakeRedistributeHook: ", networkRestakeRedistributeHook); | ||
console2.log("OperatorSpecificDecreaseHook: ", operatorSpecificDecreaseHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {NetworkRestakeDecreaseHook} from "../../src/contracts/networkRestakeDelegator/NetworkRestakeDecreaseHook.sol"; | ||
|
||
contract NetworkRestakeDecreaseHookScript is Script { | ||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
address networkRestakeDecreaseHook = address(new NetworkRestakeDecreaseHook()); | ||
|
||
console2.log("NetworkRestakeDecreaseHook: ", networkRestakeDecreaseHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {NetworkRestakeRedistributeHook} from | ||
"../../src/contracts/networkRestakeDelegator/NetworkRestakeRedistributeHook.sol"; | ||
|
||
contract NetworkRestakeRedistributeHookScript is Script { | ||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
address networkRestakeRedistributeHook = address(new NetworkRestakeRedistributeHook()); | ||
|
||
console2.log("NetworkRestakeRedistributeHook: ", networkRestakeRedistributeHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {NetworkRestakeResetHook} from "../../src/contracts/networkRestakeDelegator/NetworkRestakeResetHook.sol"; | ||
|
||
contract NetworkRestakeResetHookScript is Script { | ||
function run(uint48 period, uint256 slashCount) public { | ||
vm.startBroadcast(); | ||
|
||
address networkRestakeResetHook = address(new NetworkRestakeResetHook(period, slashCount)); | ||
|
||
console2.log("NetworkRestakeResetHook: ", networkRestakeResetHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {OperatorSpecificDecreaseHook} from | ||
"../../src/contracts/operatorSpecificDelegator/OperatorSpecificDecreaseHook.sol"; | ||
|
||
contract OperatorSpecificDecreaseHookScript is Script { | ||
function run() public { | ||
vm.startBroadcast(); | ||
|
||
address operatorSpecificDecreaseHook = address(new OperatorSpecificDecreaseHook()); | ||
|
||
console2.log("OperatorSpecificDecreaseHook: ", operatorSpecificDecreaseHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.25; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
|
||
import {OperatorSpecificResetHook} from "../../src/contracts/operatorSpecificDelegator/OperatorSpecificResetHook.sol"; | ||
|
||
contract OperatorSpecificResetHookScript is Script { | ||
function run(uint48 period, uint256 slashCount) public { | ||
vm.startBroadcast(); | ||
|
||
address operatorSpecificResetHook = address(new OperatorSpecificResetHook(period, slashCount)); | ||
|
||
console2.log("OperatorSpecificResetHook: ", operatorSpecificResetHook); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |