-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add initital script * forge install: spark-address-registry * feat: initial setup working * feat: update sub and use usdc
1 parent
6a5a579
commit 3c5a8aa
Showing
6 changed files
with
44 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.PHONY: deploy | ||
deploy :; forge script script/Deploy.s.sol:DeployPSM3 --sender ${ETH_FROM} --broadcast --slow --verify |
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 spark-address-registry
added at
655597
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,32 @@ | ||
// SPDX-License-Identifier: AGPL-3.0 | ||
pragma solidity ^0.8.0; | ||
|
||
import "forge-std/Script.sol"; | ||
|
||
import { Base } from "lib/spark-address-registry/src/Base.sol"; | ||
|
||
import { PSM3Deploy } from "deploy/PSM3Deploy.sol"; | ||
|
||
contract DeployPSM3 is Script { | ||
|
||
function run() external { | ||
vm.createSelectFork(getChain("base").rpcUrl); | ||
|
||
console.log("Deploying PSM..."); | ||
|
||
vm.startBroadcast(); | ||
|
||
address psm = PSM3Deploy.deploy({ | ||
owner : Base.SPARK_EXECUTOR, | ||
usdc : Base.USDC, | ||
usds : Base.USDS, | ||
susds : Base.SUSDS, | ||
rateProvider : Base.SSR_AUTH_ORACLE | ||
}); | ||
|
||
vm.stopBroadcast(); | ||
|
||
console.log("PSM3 deployed at:", psm); | ||
} | ||
|
||
} |
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