-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add SPK token deployment script (#31)
- Loading branch information
1 parent
6284a58
commit e6c3a78
Showing
5 changed files
with
57 additions
and
0 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,3 @@ | ||
{ | ||
"admin": "address: the address of MCD_PAUSE_PROXY" | ||
} |
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 @@ | ||
Script inputs for Base. |
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,3 @@ | ||
{ | ||
"admin": "address: the address of the Sky Governance Relay for the network" | ||
} |
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 @@ | ||
Script outputs for Base for `phase-1d`. |
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,49 @@ | ||
// SPDX-FileCopyrightText: © 2023 Dai Foundation <www.daifoundation.org> | ||
// SPDX-License-Identifier: AGPL-3.0-or-later | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
pragma solidity ^0.8.16; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {Reader} from "../helpers/Reader.sol"; | ||
import {SDAODeploy, SDAODeployParams} from "../dependencies/SDAODeploy.sol"; | ||
|
||
contract Phase1d_SpkDeployScript is Script { | ||
ChainlogLike internal constant chainlog = ChainlogLike(0xdA0Ab1e0017DEbCd72Be8599041a2aa3bA7e740F); | ||
string internal constant NAME = "phase-1d/spk-deploy"; | ||
|
||
function run() external { | ||
Reader reader = new Reader(ScriptTools.loadConfig()); | ||
|
||
address admin = reader.envOrReadAddress("FOUNDRY_ADMIN", ".admin"); | ||
|
||
vm.startBroadcast(); | ||
|
||
address spk = SDAODeploy.deploy( | ||
SDAODeployParams({deployer: msg.sender, owner: admin, name: "Spark", symbol: "SPK"}) | ||
); | ||
|
||
vm.stopBroadcast(); | ||
|
||
ScriptTools.exportContract(NAME, "admin", admin); | ||
ScriptTools.exportContract(NAME, "spk", spk); | ||
ScriptTools.exportValue(NAME, "name", "Spark"); | ||
ScriptTools.exportValue(NAME, "symbol", "SPK"); | ||
} | ||
} | ||
|
||
interface ChainlogLike { | ||
function getAddress(bytes32 _key) external view returns (address addr); | ||
} |