Skip to content

Commit

Permalink
contract compilation and deployment done
Browse files Browse the repository at this point in the history
  • Loading branch information
codypharm committed Jan 23, 2024
1 parent 3918556 commit 75a95e3
Show file tree
Hide file tree
Showing 7 changed files with 2,551 additions and 193 deletions.
49 changes: 48 additions & 1 deletion protocol/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,55 @@
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox-viem";
import "hardhat-abi-exporter";
import "hardhat-contract-sizer";

// dotenv.config();

// const PRIVATE_KEY = String(process.env.PRIVATE_KEY)


const config: HardhatUserConfig = {
solidity: "0.8.20",
solidity: {
compilers: [
{
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},

abiExporter: [
{
path: "../src/abi",
pretty: false,
runOnCompile: true,
only: ["Presale", "Dcen", "Token"],
},
],
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
only: ["Presale", "Dcen", "Token"],
},

defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337, // Customize the chain ID here
},
// sepolia: {
// url: "https://sepolia.drpc.org",
// accounts: [ PRIVATE_KEY ]
// },
},

};

export default config;
Loading

0 comments on commit 75a95e3

Please sign in to comment.