-
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.
Init basic script for testnet deploy (#2064)
* init basic script for testnet deploy * add testnet broadcasts
- Loading branch information
1 parent
b344693
commit 3d99400
Showing
9 changed files
with
1,945 additions
and
0 deletions.
There are no files selected for viewing
151 changes: 151 additions & 0 deletions
151
...ontracts-communication/broadcast/MessagingBase.s.sol/11155111/dry-run/run-1708379237.json
Large diffs are not rendered by default.
Oops, something went wrong.
151 changes: 151 additions & 0 deletions
151
...es/contracts-communication/broadcast/MessagingBase.s.sol/11155111/dry-run/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
166 changes: 166 additions & 0 deletions
166
packages/contracts-communication/broadcast/MessagingBase.s.sol/11155111/run-1708379427.json
Large diffs are not rendered by default.
Oops, something went wrong.
317 changes: 317 additions & 0 deletions
317
packages/contracts-communication/broadcast/MessagingBase.s.sol/11155111/run-1708379439.json
Large diffs are not rendered by default.
Oops, something went wrong.
317 changes: 317 additions & 0 deletions
317
packages/contracts-communication/broadcast/MessagingBase.s.sol/11155111/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
166 changes: 166 additions & 0 deletions
166
packages/contracts-communication/broadcast/MessagingBase.s.sol/11155420/run-1708381080.json
Large diffs are not rendered by default.
Oops, something went wrong.
317 changes: 317 additions & 0 deletions
317
packages/contracts-communication/broadcast/MessagingBase.s.sol/11155420/run-1708381086.json
Large diffs are not rendered by default.
Oops, something went wrong.
317 changes: 317 additions & 0 deletions
317
packages/contracts-communication/broadcast/MessagingBase.s.sol/11155420/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
packages/contracts-communication/script/MessagingBase.s.sol
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,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(); | ||
} | ||
} |