-
Notifications
You must be signed in to change notification settings - Fork 1
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 feat/batched-ilk-spells
- Loading branch information
Showing
21 changed files
with
548 additions
and
9 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
Binary file not shown.
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,37 @@ | ||
// 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 {stdJson} from "forge-std/StdJson.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {MultiClipBreakerSpell} from "src/clip-breaker/MultiClipBreakerSpell.sol"; | ||
|
||
contract MultiClipBreakerDeployScript is Script { | ||
using stdJson for string; | ||
using ScriptTools for string; | ||
|
||
string constant NAME = "multi-clip-breaker-deploy"; | ||
|
||
function run() external { | ||
vm.startBroadcast(); | ||
|
||
address spell = address(new MultiClipBreakerSpell()); | ||
ScriptTools.exportContract(NAME, "spell", spell); | ||
|
||
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,37 @@ | ||
// 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 {stdJson} from "forge-std/StdJson.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {MultiLineWipeSpell} from "src/line-wipe/MultiLineWipeSpell.sol"; | ||
|
||
contract MultiLineWipeDeployScript is Script { | ||
using stdJson for string; | ||
using ScriptTools for string; | ||
|
||
string constant NAME = "multi-line-wipe-deploy"; | ||
|
||
function run() external { | ||
vm.startBroadcast(); | ||
|
||
address spell = address(new MultiLineWipeSpell()); | ||
ScriptTools.exportContract(NAME, "spell", spell); | ||
|
||
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,37 @@ | ||
// 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 {stdJson} from "forge-std/StdJson.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {MultiOsmStopSpell} from "src/osm-stop/MultiOsmStopSpell.sol"; | ||
|
||
contract MultiOsmStopDeployScript is Script { | ||
using stdJson for string; | ||
using ScriptTools for string; | ||
|
||
string constant NAME = "multi-osm-stop-deploy"; | ||
|
||
function run() external { | ||
vm.startBroadcast(); | ||
|
||
address spell = address(new MultiOsmStopSpell()); | ||
ScriptTools.exportContract(NAME, "spell", spell); | ||
|
||
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,48 @@ | ||
// 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 {stdJson} from "forge-std/StdJson.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {SingleClipBreakerFactory} from "src/clip-breaker/SingleClipBreakerSpell.sol"; | ||
|
||
contract SingleClipBreakerDeployScript is Script { | ||
using stdJson for string; | ||
using ScriptTools for string; | ||
|
||
string constant NAME = "single-clip-breaker-deploy"; | ||
string config; | ||
|
||
SingleClipBreakerFactory fab; | ||
string[] ilkStrs; | ||
|
||
function run() external { | ||
config = ScriptTools.loadConfig(); | ||
|
||
fab = SingleClipBreakerFactory(config.readAddress(".factory", "FOUNDRY_FACTORY")); | ||
ilkStrs = config.readStringArray(".ilks", "FOUNDRY_ILKS"); | ||
|
||
vm.startBroadcast(); | ||
|
||
for (uint256 i = 0; i < ilkStrs.length; i++) { | ||
bytes32 ilk = ilkStrs[i].stringToBytes32(); | ||
address spell = fab.deploy(ilk); | ||
ScriptTools.exportContract(NAME, ilkStrs[i], spell); | ||
} | ||
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,48 @@ | ||
// 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 {stdJson} from "forge-std/StdJson.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {SingleDdmDisableFactory} from "src/ddm-disable/SingleDdmDisableSpell.sol"; | ||
|
||
contract SingleDdmDisableDeployScript is Script { | ||
using stdJson for string; | ||
using ScriptTools for string; | ||
|
||
string constant NAME = "single-ddm-disable-deploy"; | ||
string config; | ||
|
||
SingleDdmDisableFactory fab; | ||
string[] ilkStrs; | ||
|
||
function run() external { | ||
config = ScriptTools.loadConfig(); | ||
|
||
fab = SingleDdmDisableFactory(config.readAddress(".factory", "FOUNDRY_FACTORY")); | ||
ilkStrs = config.readStringArray(".ilks", "FOUNDRY_ILKS"); | ||
|
||
vm.startBroadcast(); | ||
|
||
for (uint256 i = 0; i < ilkStrs.length; i++) { | ||
bytes32 ilk = ilkStrs[i].stringToBytes32(); | ||
address spell = fab.deploy(ilk); | ||
ScriptTools.exportContract(NAME, ilkStrs[i], spell); | ||
} | ||
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,48 @@ | ||
// 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 {stdJson} from "forge-std/StdJson.sol"; | ||
import {ScriptTools} from "dss-test/ScriptTools.sol"; | ||
import {SingleLineWipeFactory} from "src/line-wipe/SingleLineWipeSpell.sol"; | ||
|
||
contract SingleLineWipeDeployScript is Script { | ||
using stdJson for string; | ||
using ScriptTools for string; | ||
|
||
string constant NAME = "single-line-wipe-deploy"; | ||
string config; | ||
|
||
SingleLineWipeFactory fab; | ||
string[] ilkStrs; | ||
|
||
function run() external { | ||
config = ScriptTools.loadConfig(); | ||
|
||
fab = SingleLineWipeFactory(config.readAddress(".factory", "FOUNDRY_FACTORY")); | ||
ilkStrs = config.readStringArray(".ilks", "FOUNDRY_ILKS"); | ||
|
||
vm.startBroadcast(); | ||
|
||
for (uint256 i = 0; i < ilkStrs.length; i++) { | ||
bytes32 ilk = ilkStrs[i].stringToBytes32(); | ||
address spell = fab.deploy(ilk); | ||
ScriptTools.exportContract(NAME, ilkStrs[i], spell); | ||
} | ||
vm.stopBroadcast(); | ||
} | ||
} |
Oops, something went wrong.