Skip to content

Commit

Permalink
Init basic script for testnet deploy (#2064)
Browse files Browse the repository at this point in the history
* init basic script for testnet deploy

* add testnet broadcasts
  • Loading branch information
aureliusbtc authored Feb 20, 2024
1 parent b344693 commit 3d99400
Show file tree
Hide file tree
Showing 9 changed files with 1,945 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions packages/contracts-communication/script/MessagingBase.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;


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

import { InterchainDB } from "../contracts/InterchainDB.sol";

import { InterchainClientV1 } from "../contracts/InterchainClientV1.sol";

import { SynapseModule } from "../contracts/modules/SynapseModule.sol";

import { InterchainApp } from "../contracts/InterchainApp.sol";

import { GasOracleMock } from "../test/mocks/GasOracleMock.sol";



contract MessagingBase is Script {
InterchainDB public icDB;
InterchainClientV1 public icClient;
SynapseModule public synapseModule;
GasOracleMock public gasOracleMock;
InterchainApp public icApp;

function run() external {
vm.startBroadcast();
icDB = new InterchainDB();
// icClient deployment & config
icClient = new InterchainClientV1();
icClient.setInterchainDB(address(icDB));


synapseModule = new SynapseModule(address(icDB), msg.sender);
gasOracleMock = new GasOracleMock();
synapseModule.setGasOracle(address(gasOracleMock));
icApp = new InterchainApp(address(icClient), new address[](0), new address[](0));



vm.stopBroadcast();
}
}

0 comments on commit 3d99400

Please sign in to comment.