-
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.
- Loading branch information
1 parent
981f5cd
commit 2431e97
Showing
15 changed files
with
135 additions
and
212 deletions.
There are no files selected for viewing
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
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,7 @@ | ||
deploy-testnet: | ||
op run --env-file="./.env" -- \ | ||
forge script DeployAggregateRouterTestnet -f ronin-testnet | ||
|
||
deploy-testnet-broadcast: | ||
op run --env-file="./.env" -- \ | ||
forge script DeployAggregateRouterTestnet -f ronin-testnet --verify --verifier sourcify --verifier-url https://sourcify.roninchain.com/server/ --legacy --broadcast |
34 changes: 34 additions & 0 deletions
34
broadcast/DeployAggregateRouterTestnet.s.sol/2021/run-1721730294.json
Large diffs are not rendered by default.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
broadcast/DeployAggregateRouterTestnet.s.sol/2021/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
Submodule foundry-deployment-kit
deleted from
2f48f7
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,8 +1,5 @@ | ||
@fdk/=lib/foundry-deployment-kit/script/ | ||
@contract-libs/=lib/foundry-deployment-kit/lib/contract-libs/src/ | ||
forge-std/=lib/foundry-deployment-kit/lib/forge-std/src/ | ||
@solady/=lib/foundry-deployment-kit/lib/solady/src/ | ||
@openzeppelin/contracts/=lib/openzeppelin-contracts/contracts/ | ||
solmate/=lib/solmate/ | ||
permit2/=lib/permit2/ | ||
@katana/v3-contracts/=lib/katana-v3-contracts/src/ | ||
@katana/v3-contracts/=lib/katana-v3-contracts/src/ | ||
@katana/operation-contracts/=src/ |
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,36 @@ | ||
// 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"; | ||
|
||
abstract contract DeployAggregateRouter is Script { | ||
RouterParameters internal params; | ||
|
||
function setUp() public virtual { | ||
assert(params.permit2 != address(0)); | ||
assert(params.weth9 != address(0)); | ||
assert(params.v2Factory != address(0)); | ||
assert(params.v3Factory != address(0)); | ||
assert(params.pairInitCodeHash != bytes32(0)); | ||
assert(params.poolInitCodeHash != bytes32(0)); | ||
} | ||
|
||
function run() external returns (AggregateRouter router) { | ||
logParams(); | ||
|
||
vm.broadcast(); | ||
router = new AggregateRouter(params); | ||
console.log("Aggregate Router deployed:", address(router)); | ||
} | ||
|
||
function logParams() internal view { | ||
console.log("permit2:", params.permit2); | ||
console.log("weth9:", params.weth9); | ||
console.log("v2Factory:", params.v2Factory); | ||
console.log("v3Factory:", params.v3Factory); | ||
console.log("pairInitCodeHash:", vm.toString(params.pairInitCodeHash)); | ||
console.log("poolInitCodeHash:", vm.toString(params.poolInitCodeHash)); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.17; | ||
|
||
import { RouterParameters } from "@katana/operation-contracts/aggregate-router/base/RouterImmutables.sol"; | ||
import { DeployAggregateRouter } from "../DeployAggregateRouter.s.sol"; | ||
|
||
contract DeployAggregateRouterTestnet is DeployAggregateRouter { | ||
function setUp() public override { | ||
params = RouterParameters({ | ||
permit2: 0x000000000022D473030F116dDEE9F6B43aC78BA3, | ||
weth9: 0xA959726154953bAe111746E265E6d754F48570E6, | ||
v2Factory: 0x86587380C4c815Ba0066c90aDB2B45CC9C15E72c, | ||
v3Factory: 0x3d9C3A1845dE1EbBc223140D310dddF1416A65Df, | ||
pairInitCodeHash: 0x1cc97ead4d6949b7a6ecb28652b21159b9fd5608ae51a1960224099caab07dca, | ||
poolInitCodeHash: 0x801ac0e2a3a980742d194a336c7ef74c24d984b04a6151ac56b147a256051912 | ||
}); | ||
|
||
vm.rememberKey(vm.envUint("TESTNET_PK")); | ||
|
||
super.setUp(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.