-
Notifications
You must be signed in to change notification settings - Fork 123
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
0xIryna
committed
Feb 27, 2023
1 parent
00b1bc7
commit 2752f46
Showing
12 changed files
with
2,239 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"arbitrum": "0xE592427A0AEce92De3Edee1F18E0157C05861564", | ||
"optimism": "0xE592427A0AEce92De3Edee1F18E0157C05861564" | ||
} |
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,4 +1,6 @@ | ||
{ | ||
"ethereum": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", | ||
"arbitrum": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1", | ||
"optimism": "0x4200000000000000000000000000000000000006", | ||
"goerli-mainnet": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6" | ||
} |
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 @@ | ||
const ROUTERS = require("../constants/swapRouters.json") | ||
const WETHS = require("../constants/weths.json") | ||
|
||
module.exports = async function ({ deployments, getNamedAccounts }) { | ||
const { deploy } = deployments | ||
const { deployer } = await getNamedAccounts() | ||
console.log(`Deployer Address: ${deployer}`) | ||
|
||
const routerAddress = ROUTERS[hre.network.name] | ||
console.log(`[${hre.network.name}] Uniswap V3 SwapRouter Address: ${routerAddress}`) | ||
|
||
const wethAddress = WETHS[hre.network.name] | ||
console.log(`[${hre.network.name}] WETH Address: ${wethAddress}`) | ||
|
||
const oft = await ethers.getContract("OFT") | ||
console.log(`[${hre.network.name}] OFT Address: ${oft.address}`) | ||
|
||
await deploy("SwappableBridgeUniswapV3", { | ||
from: deployer, | ||
args: [wethAddress, oft.address, routerAddress], | ||
log: true, | ||
waitConfirmations: 1, | ||
}) | ||
} | ||
|
||
module.exports.tags = ["SwappableBridgeUniswapV3"] |
Large diffs are not rendered by default.
Oops, something went wrong.
107 changes: 107 additions & 0 deletions
107
deployments/arbitrum/solcInputs/2cb2c9d2cdb45228195135f1d0cea8a4.json
Large diffs are not rendered by default.
Oops, something went wrong.
95 changes: 95 additions & 0 deletions
95
deployments/goerli-mainnet/solcInputs/4592810775f570dc6785250cab206380.json
Large diffs are not rendered by default.
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 @@ | ||
10 |
Oops, something went wrong.