-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
56 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,56 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import { Script } from "forge-std/Script.sol"; | ||
import { AutoSavings } from "../src/AutoSavings/AutoSavings.sol"; | ||
import { AutoSend } from "../src/AutoSend/AutoSend.sol"; | ||
import { FlashloanCallback } from "../src/ColdStorage/FlashloanCallback.sol"; | ||
import { FlashloanLender } from "../src/ColdStorage/FlashloanLender.sol"; | ||
import { ColdStorageHook } from "../src/ColdStorage/ColdStorageHook.sol"; | ||
import { ColdStorageExecutor } from "../src/ColdStorage/ColdStorageExecutor.sol"; | ||
import { DeadmanSwitch } from "../src/DeadmanSwitch/DeadmanSwitch.sol"; | ||
import { DollarCostAverage } from "../src/DollarCostAverage/DollarCostAverage.sol"; | ||
import { MultiFactor } from "../src/MultiFactor/MultiFactor.sol"; | ||
import { OwnableValidator } from "../src/OwnableValidator/OwnableValidator.sol"; | ||
import { ScheduledOrders } from "../src/ScheduledTransactions/ScheduledOrders.sol"; | ||
import { ScheduledTransfers } from "../src/ScheduledTransactions/ScheduledTransfers.sol"; | ||
import { WebAuthnValidator } from "../src/WebAuthnValidator/WebAuthnValidator.sol"; | ||
|
||
/** | ||
* @title Deploy | ||
* @author @kopy-kat | ||
*/ | ||
contract DeployScript is Script { | ||
function run() public { | ||
bytes32 salt = bytes32(uint256(0)); | ||
|
||
vm.startBroadcast(vm.envUint("PK")); | ||
|
||
// Deploy Modules | ||
AutoSavings autoSavings = new AutoSavings{ salt: salt }(); | ||
|
||
AutoSend autoSend = new AutoSend{ salt: salt }(); | ||
|
||
FlashloanCallback flashloanCallback = | ||
new FlashloanCallback{ salt: salt }(address(fallbackHandler)); | ||
FlashloanLender flashloanLender = | ||
new FlashloanLender{ salt: salt }(address(fallbackHandler)); | ||
ColdStorageHook coldStorageHook = new ColdStorageHook{ salt: salt }(); | ||
ColdStorageExecutor coldStorageExecutor = new ColdStorageExecutor{ salt: salt }(); | ||
|
||
DeadmanSwitch deadmanSwitch = new DeadmanSwitch{ salt: salt }(); | ||
|
||
DollarCostAverage dollarCostAverage = new DollarCostAverage{ salt: salt }(); | ||
|
||
MultiFactor multiFactor = new MultiFactor{ salt: salt }(); | ||
|
||
OwnableValidator ownableValidator = new OwnableValidator{ salt: salt }(); | ||
|
||
ScheduledOrders scheduledOrders = new ScheduledOrders{ salt: salt }(); | ||
ScheduledTransfers scheduledTransfers = new ScheduledTransfers{ salt: salt }(); | ||
|
||
WebAuthnValidator webAuthnValidator = new WebAuthnValidator{ salt: salt }(); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |