Skip to content

Commit 850f8f3

Browse files
committed
feat: modified hardhat.config.ts
1 parent 289a860 commit 850f8f3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

contracts/UpsideProtocol.sol

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ contract UpsideProtocol is Ownable {
144144
msg.sender, false, INITIAL_LIQUIDITY_RESERVES, META_COIN_DEFAULT_TOTAL_SUPPLY, block.timestamp
145145
);
146146

147-
148147
IUpsideStaking(stakingContractAddress).whitelistStakingToken(metaCoinAddress);
149148

150149
emit UrlTokenized(metaCoinAddress, _url);

hardhat.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { vars } from "hardhat/config";
55
import type { NetworkUserConfig } from "hardhat/types";
66

77
import "./tasks/accounts";
8+
import "./deploy/deploy";
89

910
// Run 'npx hardhat vars setup' to see the list of variables that need to be set
1011

@@ -22,6 +23,7 @@ const chainIds = {
2223
"polygon-mainnet": 137,
2324
"polygon-mumbai": 80001,
2425
sepolia: 11155111,
26+
base: 8453,
2527
};
2628

2729
function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
@@ -33,6 +35,9 @@ function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
3335
case "bsc":
3436
jsonRpcUrl = "https://bsc-dataseed1.binance.org";
3537
break;
38+
case "base":
39+
jsonRpcUrl = vars.get("BASE_FORK_URL")
40+
break;
3641
default:
3742
jsonRpcUrl = "https://" + chain + ".infura.io/v3/" + infuraApiKey;
3843
}
@@ -62,6 +67,7 @@ const config: HardhatUserConfig = {
6267
polygon: vars.get("POLYGONSCAN_API_KEY", ""),
6368
polygonMumbai: vars.get("POLYGONSCAN_API_KEY", ""),
6469
sepolia: vars.get("ETHERSCAN_API_KEY", ""),
70+
base: vars.get("BASESCAN_API_KEY", ""),
6571
},
6672
},
6773
gasReporter: {
@@ -92,6 +98,7 @@ const config: HardhatUserConfig = {
9298
"polygon-mainnet": getChainConfig("polygon-mainnet"),
9399
"polygon-mumbai": getChainConfig("polygon-mumbai"),
94100
sepolia: getChainConfig("sepolia"),
101+
base: getChainConfig("base"),
95102
},
96103
paths: {
97104
artifacts: "./artifacts",

0 commit comments

Comments
 (0)