Skip to content

Commit

Permalink
deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
0xIryna committed Feb 27, 2023
1 parent 00b1bc7 commit 2752f46
Show file tree
Hide file tree
Showing 12 changed files with 2,239 additions and 2 deletions.
4 changes: 4 additions & 0 deletions constants/swapRouters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"arbitrum": "0xE592427A0AEce92De3Edee1F18E0157C05861564",
"optimism": "0xE592427A0AEce92De3Edee1F18E0157C05861564"
}
2 changes: 2 additions & 0 deletions constants/weths.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"ethereum": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"arbitrum": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
"optimism": "0x4200000000000000000000000000000000000006",
"goerli-mainnet": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6"
}
26 changes: 26 additions & 0 deletions deploy/SwappableBridgeUniswapV3.js
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"]
161 changes: 161 additions & 0 deletions deployments/arbitrum/SwappableBridgeUniswapV3.json

Large diffs are not rendered by default.

107 changes: 107 additions & 0 deletions deployments/arbitrum/solcInputs/2cb2c9d2cdb45228195135f1d0cea8a4.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions deployments/optimism/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
Loading

0 comments on commit 2752f46

Please sign in to comment.