-
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.
* feat: Add stSyrup to migrator deployment (SC-17424) (#2) * chore: add stSyrup to migrator deployment * fix: import paths and ci script * fix: rename script and fix CI * chore: add TODO * chore: remove space --------- Co-authored-by: 0xfarhaan <59924029+0xfarhaan@users.noreply.github.com> * chore: Updates to be ready to simulate (SC-17680) (#3) * wip: update mplv2 * fix: failing tests * feat: adjust migration deployment * chore: update formatting --------- Co-authored-by: 0xfarhaan <59924029+0xfarhaan@users.noreply.github.com> * feat: update scripts for deployment (SC-17681) (#4) * feat: update scripts for deployment * feat: update validation scripts * chore: remove unused import * chore: update failing test * feat: update safe jsons * feat: update safe jsons * feat: update safe jsons * chore: fix formatting * chore: fix formatting * chore: fix formatting * feat: add stSyrup validation * feat: cleanup comments * feat: fix to redeploy * feat: fix to redeploy * chore: add comment --------- Co-authored-by: Joao Gabriel Carvalho <jg@jgcarv.com>
- Loading branch information
Showing
26 changed files
with
208 additions
and
460 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
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
Submodule migrator
updated
10 files
+3 −3 | .gitmodules | |
+37 −11 | contracts/Migrator.sol | |
+33 −7 | contracts/interfaces/IMigrator.sol | |
+8 −0 | contracts/interfaces/Interfaces.sol | |
+0 −244 | contracts/test/Migrator.t.sol | |
+10 −0 | foundry.toml | |
+0 −1 | modules/contract-test-utils | |
+1 −0 | modules/forge-std | |
+436 −0 | tests/Migrator.t.sol | |
+17 −0 | tests/mocks/Mocks.sol |
This file was deleted.
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,31 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.7; | ||
|
||
import { console2 as console, Script } from "../modules/forge-std/src/Script.sol"; | ||
|
||
import { Migrator } from "../modules/migrator/contracts/Migrator.sol"; | ||
import { xMPL } from "../modules/xmpl/contracts/xMPL.sol"; | ||
|
||
contract DeployMigratorAndStsyrup is Script { | ||
|
||
function run() external { | ||
address ETH_SENDER = vm.envAddress("ETH_SENDER"); | ||
|
||
address governor = 0xd6d4Bcde6c816F17889f1Dd3000aF0261B03a196; | ||
address mplv1 = 0x33349B282065b0284d756F0577FB39c158F935e6; | ||
address globals = 0x804a6F5F667170F545Bf14e5DDB48C70B788390C; | ||
address syrup = computeCreateAddress(ETH_SENDER, 2); // 0x643C4E15d7d62Ad0aBeC4a9BD4b001aA3Ef52d66 | ||
|
||
vm.startBroadcast(ETH_SENDER); | ||
address migrator = address(new Migrator(globals, mplv1, syrup, 100)); | ||
console.log("Migrator: %s", migrator); | ||
|
||
address stSyrup = address(new xMPL("Staked Syrup", "stSYRUP", governor, syrup, 18)); | ||
console.log("stSYRUP: %s", stSyrup); | ||
|
||
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
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,20 @@ | ||
#!/bin/bash | ||
# Needed to forward time to pass the timelock on a fork | ||
source ./.env | ||
|
||
curl -H "Content-Type: application/json" -X POST --data '{"jsonrpc":"2.0","method":"evm_increaseTime","params":[604900]}' $ETH_RPC_URL | ||
|
||
curl -X POST $ETH_RPC_URL \ | ||
-H "Content-Type: application/json" \ | ||
-d '{ | ||
"jsonrpc": "2.0", | ||
"method": "eth_sendTransaction", | ||
"params": [{ | ||
"from": "0x763aC43aFEE020c2670dF03800541B76c8D87882", | ||
"to": "0x0000000000000000000000000000000000000000", | ||
"value": "0x1BC16D674EC80000", | ||
"gas": "0x5208", | ||
"gasPrice": "0x3B9ACA00" | ||
}], | ||
"id": 1 | ||
}' |
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
Oops, something went wrong.