Skip to content

Commit

Permalink
chore: script to deploy fixed router & deployment artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
thaixuandang committed Nov 18, 2024
1 parent d4e99e1 commit 1e6c8cc
Show file tree
Hide file tree
Showing 5 changed files with 124 additions and 2 deletions.

Large diffs are not rendered by default.

48 changes: 48 additions & 0 deletions broadcast/20241118_DeployFixedRouter.s.sol/2021/run-latest.json

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions script/ronin-testnet/20241118_DeployFixedRouter.s.sol
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);
}
}
2 changes: 1 addition & 1 deletion soldeer.lock
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"

0 comments on commit 1e6c8cc

Please sign in to comment.