-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: script to deploy fixed router & deployment artifacts
- Loading branch information
1 parent
d4e99e1
commit 1e6c8cc
Showing
5 changed files
with
124 additions
and
2 deletions.
There are no files selected for viewing
48 changes: 48 additions & 0 deletions
48
broadcast/20241118_DeployFixedRouter.s.sol/2021/run-1731916689.json
Large diffs are not rendered by default.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
broadcast/20241118_DeployFixedRouter.s.sol/2021/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
Submodule katana-v3-contracts
updated
8 files
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,26 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.17; | ||
|
||
import { Script, console } from "forge-std/Script.sol"; | ||
import { RouterParameters } from "@katana/operation-contracts/aggregate-router/base/RouterImmutables.sol"; | ||
import { AggregateRouter } from "@katana/operation-contracts/aggregate-router/AggregateRouter.sol"; | ||
|
||
contract Migration__20241118_DeployFixedRouter is Script { | ||
function run() public { | ||
RouterParameters memory params = RouterParameters({ | ||
permit2: 0xCcf4a457E775f317e0Cf306EFDda14Cc8084F82C, | ||
weth9: 0xA959726154953bAe111746E265E6d754F48570E6, | ||
governance: 0x247F12836A421CDC5e22B93Bf5A9AAa0f521f986, | ||
v2Factory: 0x86587380C4c815Ba0066c90aDB2B45CC9C15E72c, | ||
v3Factory: 0x4E7236ff45d69395DDEFE1445040A8f3C7CD8819, | ||
pairInitCodeHash: 0x1cc97ead4d6949b7a6ecb28652b21159b9fd5608ae51a1960224099caab07dca, | ||
poolInitCodeHash: 0xb381dabeb6037396a764deb39e57a4a3f75b641ce3e9944b1e4b18d036e322e1 | ||
}); | ||
|
||
vm.rememberKey(vm.envUint("TESTNET_PK")); | ||
vm.broadcast(); | ||
|
||
address router = address(new AggregateRouter(params)); | ||
console.log("Aggregate Router deployed:", router); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[[dependencies]] | ||
name = "@openzeppelin-contracts" | ||
version = "4.7.0" | ||
source = "https://github.com/OpenZeppelin/openzeppelin-contracts/archive/refs/tags/v4.7.0.zip" | ||
url = "https://github.com/OpenZeppelin/openzeppelin-contracts/archive/refs/tags/v4.7.0.zip" | ||
checksum = "7a88a52b70872f3e428e595a03aed77c3323b118338d7256ce57dfc99eeab9e9" | ||
integrity = "e47aca6d7bf9d4e13aba827a315bac2ab10708d1a2d219bff645a20e5d78ff85" |