Skip to content

Commit

Permalink
feat: add initial script
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-manuel committed Oct 2, 2024
1 parent 1ae7a6e commit 875bc77
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.0;

import { Script } from 'forge-std/Test.sol';
import { Ethereum } from "lib/spark-address-registry/src/Ethereum.sol";

import { Script } from 'forge-std/Script.sol';

import { Deploy } from "../deploy/Deploy.sol";

contract DeployBaseExecutor is Script {

function run() public override {
function run() public {
address executor = Deploy.deployExecutor(100, 1000);

address receiver = Deploy.deployOptimismReceiver(address(this), executor);
address receiver = Deploy.deployOptimismReceiver(Ethereum.SPARK_PROXY, executor);

// TODO: What is guardian here?
Deploy.setUpExecutorPermissions(executor, receiver, address(1));
}
}

0 comments on commit 875bc77

Please sign in to comment.