-
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 branch 'master' into test-9-upgrade-pragma
- Loading branch information
Showing
5 changed files
with
84 additions
and
15 deletions.
There are no files selected for viewing
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,26 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import "forge-std/Script.sol"; | ||
import "src/FoldCaptiveStaking.sol"; | ||
|
||
contract FoldCaptiveStakingScript is Script { | ||
INonfungiblePositionManager public positionManager = | ||
INonfungiblePositionManager(0xC36442b4a4522E871399CD717aBDD847Ab11FE88); | ||
IUniswapV3Pool public pool = IUniswapV3Pool(0x5eCEf3b72Cb00DBD8396EBAEC66E0f87E9596e97); | ||
WETH public weth = WETH(payable(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2)); | ||
ERC20 public fold = ERC20(0xd084944d3c05CD115C09d072B9F44bA3E0E45921); | ||
|
||
|
||
function run() public { | ||
vm.startBroadcast(); | ||
FoldCaptiveStaking foldCaptiveStaking = | ||
new FoldCaptiveStaking(address(positionManager), address(pool), address(weth), address(fold)); | ||
|
||
fold.transfer(address(foldCaptiveStaking), 1_000_000); | ||
weth.transfer(address(foldCaptiveStaking), 1_000_000); | ||
|
||
foldCaptiveStaking.initialize(); | ||
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .env | ||
|
||
forge script script/FoldCaptiveStaking.s.sol:FoldCaptiveStakingScript \ | ||
--chain-id 1 \ | ||
--fork-url $RPC_MAINNET \ | ||
--broadcast \ | ||
--private-key $PRIVATE_KEY \ | ||
-vvv |
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,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .env | ||
|
||
forge script script/FoldCaptiveStaking.s.sol:FoldCaptiveStakingScript \ | ||
--chain-id 1 \ | ||
--rpc-url $RPC_MAINNET \ | ||
--broadcast \ | ||
--private-key $PRIVATE_KEY \ | ||
--verify \ | ||
--etherscan-api-key $ETHERSCAN_API_KEY \ | ||
-vvv |
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
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