Skip to content

Commit

Permalink
Merge pull request #37 from aave/feat/add-sepolia
Browse files Browse the repository at this point in the history
Feat/add sepolia
  • Loading branch information
foodaka authored Apr 5, 2023
2 parents fda1945 + fc61ce9 commit f032945
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ export default {
eEthereumNetwork.goerli,
5
),
[eEthereumNetwork.sepolia]: getCommonNetworkConfig(
eEthereumNetwork.sepolia,
11155111
),
[eArbitrumNetwork.goerliNitro]: getCommonNetworkConfig(
eArbitrumNetwork.goerliNitro,
421613
Expand Down
2 changes: 2 additions & 0 deletions helpers/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const chainlinkAggregatorProxy: Record<string, string> = {
ropsten: "0x12BAaa24D85A4A180F0d5ae67b6aCbDDD58968EA",
goerli: "0x60E4B131f0F219c72b0346675283E73888e4AB24",
[eArbitrumNetwork.goerliNitro]: "0xC09e69E79106861dF5d289dA88349f10e2dc6b5C",
[eEthereumNetwork.sepolia]: "0x6c60d915c7a646860dba836ffcb7f112b6cfdc76",
};

export const chainlinkEthUsdAggregatorProxy: Record<string, string> = {
Expand All @@ -119,6 +120,7 @@ export const chainlinkEthUsdAggregatorProxy: Record<string, string> = {
ropsten: "0x12BAaa24D85A4A180F0d5ae67b6aCbDDD58968EA",
goerli: "0x60E4B131f0F219c72b0346675283E73888e4AB24",
[eArbitrumNetwork.goerliNitro]: "0xC09e69E79106861dF5d289dA88349f10e2dc6b5C",
[eEthereumNetwork.sepolia]: "0x6c60d915c7a646860dba836ffcb7f112b6cfdc76",
};

export const ETHEREUM_SHORT_EXECUTOR =
Expand Down
5 changes: 5 additions & 0 deletions helpers/hardhat-config-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ export const getAlchemyKey = (net: eNetwork) => {
return process.env.POLYGON_ALCHEMY_KEY || ALCHEMY_KEY;
case eEthereumNetwork.goerli:
return process.env.GOERLI_ALCHEMY_KEY || ALCHEMY_KEY;
case eEthereumNetwork.sepolia:
return process.env.SEPOLIA_ALCHEMY_KEY || ALCHEMY_KEY;
default:
return ALCHEMY_KEY;
}
Expand Down Expand Up @@ -85,6 +87,9 @@ export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
[eEthereumNetwork.goerli]: `https://eth-goerli.alchemyapi.io/v2/${getAlchemyKey(
eEthereumNetwork.goerli
)}`,
[eEthereumNetwork.sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${getAlchemyKey(
eEthereumNetwork.sepolia
)}`,
[eArbitrumNetwork.goerliNitro]: `https://goerli-rollup.arbitrum.io/rpc`,
};

Expand Down
1 change: 1 addition & 0 deletions helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export enum eEthereumNetwork {
tenderly = "tenderly",
rinkeby = "rinkeby",
goerli = "goerli",
sepolia = "sepolia",
}

export enum ePolygonNetwork {
Expand Down

0 comments on commit f032945

Please sign in to comment.