Skip to content

Commit

Permalink
Foundry deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaIsaak committed Jul 16, 2024
1 parent 4583803 commit 05f7665
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 58 deletions.
6 changes: 0 additions & 6 deletions foundry.toml

This file was deleted.

86 changes: 42 additions & 44 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,63 +2,61 @@ import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@openzeppelin/hardhat-upgrades";
import "@nomicfoundation/hardhat-chai-matchers";
import "@nomicfoundation/hardhat-foundry";


import * as dotenv from "dotenv";

dotenv.config();

const RPC_URL = process.env.RPC_URL;
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY;

const config: HardhatUserConfig = {
solidity: {
version: '0.8.24',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
solidity: {
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
defaultNetwork: "testnet",
networks: {
mainnet: {
chainId: 295, // hedera mainnet chainId
url: RPC_URL,
accounts: [PRIVATE_KEY || ""],
defaultNetwork: "testnet",
networks: {
mainnet: {
chainId: 295, // hedera mainnet chainId
url: RPC_URL,
accounts: [PRIVATE_KEY || ""],
},
testnet: {
chainId: 296, // hedera testnet chainId
url: RPC_URL,
accounts: [PRIVATE_KEY || ""],
timeout: 200000000,
allowUnlimitedContractSize: true,
},
previewnet: {
chainId: 297, // hedera previewnet chainId
url: RPC_URL,
accounts: [PRIVATE_KEY || ""],
},
hardhat: {
gas: 30000000,
allowUnlimitedContractSize: true,
// forking: {
// url: process.env.RPC_URL || "",
// },
},
},
testnet: {
chainId: 296, // hedera testnet chainId
url: RPC_URL,
accounts: [PRIVATE_KEY || ""],
timeout: 200000000,
allowUnlimitedContractSize: true,
},
previewnet: {
chainId: 297, // hedera previewnet chainId
url: RPC_URL,
accounts: [PRIVATE_KEY || ""],
gasReporter: {
enabled: true,
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY,
token: "HBAR",
},
hardhat: {
gas: 30000000,
allowUnlimitedContractSize: true,
// forking: {
// url: process.env.RPC_URL || "",
// },
mocha: {
timeout: 100000000,
},
},
gasReporter: {
enabled: true,
currency: "USD",
coinmarketcap: COINMARKETCAP_API_KEY,
token: 'HBAR'
},
mocha: {
timeout: 100000000,
},
};

export default config;
1 change: 0 additions & 1 deletion lib/forge-std
Submodule forge-std deleted from 07263d
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"devDependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.0",
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-foundry": "^1.1.2",
"@nomicfoundation/hardhat-network-helpers": "^1.0.0",
"@nomicfoundation/hardhat-toolbox": "^4.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.0",
Expand Down
6 changes: 0 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -762,12 +762,6 @@
debug "^4.1.1"
lodash.isequal "^4.5.0"

"@nomicfoundation/hardhat-foundry@^1.1.2":
version "1.1.2"
resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-foundry/-/hardhat-foundry-1.1.2.tgz#4f5aaa1803b8f5d974dcbc361beb72d49c815562"
integrity sha512-f5Vhj3m2qvKGpr6NAINYwNgILDsai8dVCsFb1rAVLkJxOmD2pAtfCmOH5SBVr9yUI5B1z9rbTwPBJVrqnb+PXQ==
dependencies:
chalk "^2.4.2"

"@nomicfoundation/hardhat-network-helpers@^1.0.0":
version "1.0.10"
Expand Down

0 comments on commit 05f7665

Please sign in to comment.