Skip to content

Commit

Permalink
feat: deploy router on gnosis (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogipec authored Oct 13, 2023
1 parent c2ed861 commit 0cccd23
Show file tree
Hide file tree
Showing 12 changed files with 1,553 additions and 9 deletions.
15 changes: 15 additions & 0 deletions contracts/implementations/gnosis/AngleRouterGnosis.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// SPDX-License-Identifier: GPL-3.0

pragma solidity ^0.8.17;

import "../../BaseAngleRouterSidechain.sol";

/// @title AngleRouterGnosis
/// @author Angle Core Team
/// @notice Router contract built specifially for Angle use cases on Gnosis
contract AngleRouterGnosis is BaseAngleRouterSidechain {
/// @inheritdoc BaseRouter
function _getNativeWrapper() internal pure override returns (IWETH9) {
return IWETH9(0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d);
}
}
4 changes: 4 additions & 0 deletions deploy/networks/gnosis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"oneInchRouter": "0x1111111254eeb25477b68fb85ed929f73a960582",
"uniswapV3Router": "0x0000000000000000000000000000000000000000"
}
6 changes: 3 additions & 3 deletions deploy/routerSidechain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const func: DeployFunction = async ({ ethers, deployments, network }) => {
chainId = ChainId.POLYGON;
chainName = 'Polygon';
} else {
chainId = ChainId.AVALANCHE;
chainId = ChainId.GNOSIS;
chainName = network.name.charAt(0).toUpperCase() + network.name.substring(1);
}

Expand All @@ -35,9 +35,9 @@ const func: DeployFunction = async ({ ethers, deployments, network }) => {
const routerImplementation = (await ethers.getContract(`${contractName}V2_1_Implementation`)).address;
console.log(`Successfully deployed the implementation for the router at ${routerImplementation}`);

// const proxyAdmin = registry(chainId)?.ProxyAdminGuardian;
const proxyAdmin = '0xb1F2A25fFB2b095E99f430cAF507cC31F9A3EaAB';
const proxyAdmin = registry(chainId)?.ProxyAdminGuardian;
const coreBorrow = registry(chainId)?.CoreBorrow;
console.log(proxyAdmin, coreBorrow);
console.log('Now deploying the proxy contract');
const dataRouter = new ethers.Contract(
routerImplementation,
Expand Down
1 change: 1 addition & 0 deletions deployments/gnosis/.chainId
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
100
247 changes: 247 additions & 0 deletions deployments/gnosis/AngleRouterGnosisV2.json

Large diffs are not rendered by default.

Loading

0 comments on commit 0cccd23

Please sign in to comment.