-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEA-1064] deploy pre-staking contracts to mainnet
- Loading branch information
Showing
3 changed files
with
55 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.25; | ||
|
||
import { IERC20 } from "@openzeppelin/contracts/interfaces/IERC20.sol"; | ||
import { Script } from "forge-std/Script.sol"; | ||
import { console2 } from "forge-std/console2.sol"; | ||
|
||
import { RWAStaking } from "../src/RWAStaking.sol"; | ||
import { ReserveStaking } from "../src/ReserveStaking.sol"; | ||
import { SBTC } from "../src/SBTC.sol"; | ||
import { STONE } from "../src/STONE.sol"; | ||
import { PlumePreReserveFund } from "../src/proxy/PlumePreReserveFund.sol"; | ||
import { PlumePreStaking } from "../src/proxy/PlumePreStaking.sol"; | ||
|
||
contract DeployTestStakingContracts is Script { | ||
|
||
address private constant NEST_ADMIN_ADDRESS = 0xb015762405De8fD24d29A6e0799c12e0Ea81c1Ff; | ||
address private constant PUSD_ADDRESS = 0xe644F07B1316f28a7F134998e021eA9f7135F351; | ||
address private constant USDT_ADDRESS = 0x2413b8C79Ce60045882559f63d308aE3DFE0903d; | ||
|
||
function test() public { } | ||
|
||
function run() external { | ||
vm.startBroadcast(NEST_ADMIN_ADDRESS); | ||
|
||
RWAStaking rwaStaking = new RWAStaking(); | ||
PlumePreStaking plumePreStaking = | ||
new PlumePreStaking(address(rwaStaking), abi.encodeCall(RWAStaking.initialize, (NEST_ADMIN_ADDRESS))); | ||
RWAStaking(address(plumePreStaking)).allowStablecoin(IERC20(PUSD_ADDRESS)); | ||
RWAStaking(address(plumePreStaking)).allowStablecoin(IERC20(USDT_ADDRESS)); | ||
console2.log("Plume Pre-Staking Proxy deployed to:", address(plumePreStaking)); | ||
|
||
SBTC sbtc = new SBTC(NEST_ADMIN_ADDRESS); | ||
STONE stone = new STONE(NEST_ADMIN_ADDRESS); | ||
ReserveStaking sbtcStaking = new ReserveStaking(); | ||
PlumePreReserveFund plumePreReserveFund = new PlumePreReserveFund( | ||
address(sbtcStaking), abi.encodeCall(ReserveStaking.initialize, (NEST_ADMIN_ADDRESS, sbtc, stone)) | ||
); | ||
console2.log("Plume Pre-Reserve Fund Proxy deployed to:", address(plumePreReserveFund)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
|
||
} |