Skip to content

Commit

Permalink
fix: hardhat lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Sep 18, 2023
1 parent a420282 commit c5516d2
Showing 1 changed file with 95 additions and 88 deletions.
183 changes: 95 additions & 88 deletions packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,102 +1,109 @@
import "@nomicfoundation/hardhat-toolbox";
import * as dotenv from "dotenv";
import "hardhat-abi-exporter";
import "hardhat-contract-sizer";
import "@openzeppelin/hardhat-upgrades";
import "hardhat-deploy";
import { HardhatUserConfig } from "hardhat/config";
import '@nomicfoundation/hardhat-toolbox';
import * as dotenv from 'dotenv';
import 'hardhat-abi-exporter';
import 'hardhat-contract-sizer';
import '@openzeppelin/hardhat-upgrades';
import 'hardhat-deploy';
import 'hardhat-celo';
import { HardhatUserConfig } from 'hardhat/config';

dotenv.config();

const mnemonic = process.env.MNEMONIC || "";
const mnemonic = process.env.MNEMONIC || '';
const config: HardhatUserConfig = {
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
},
gasReporter: {
enabled: true,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
currency: 'USD',
},
abiExporter: {
path: './abi',
runOnCompile: false,
clear: true,
spacing: 2,
only: [
/**
* List of specific contract names for exporting ABI
*/
// ":ERC20",
],
format: 'minimal',
},
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
gasReporter: {
enabled: true,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
currency: "USD"
},
networks: {
localhost: {
chainId: 31337,
},
abiExporter: {
path: "./abi",
runOnCompile: false,
clear: true,
spacing: 2,
only: [
/**
* List of specific contract names for exporting ABI
*/
// ":ERC20",
],
format: "minimal"
mainnet: {
chainId: 1,
url: 'https://cloudflare-eth.com',
},
namedAccounts: {
deployer: {
default: 0 // here this will by default take the first account as deployer
}
},
networks: {
localhost: {
chainId: 31337
},
mainnet: {
chainId: 1,
url: "https://cloudflare-eth.com"
},
alfajores: {
chainId: 44787,
url: `https://alfajores-forno.celo-testnet.org`,
gasPrice: 5000000000,
accounts: {
mnemonic: "kale"
},
verify: {
etherscan: {
apiKey: process.env.CELOSCAN_KEY,
apiUrl: "https://api-alfajores.celoscan.io/"
}
}
alfajores: {
chainId: 44787,
url: `https://alfajores-forno.celo-testnet.org`,
gasPrice: 5000000000,
accounts: {
mnemonic: mnemonic,
},
verify: {
etherscan: {
apiKey: process.env.CELOSCAN_KEY,
apiUrl: 'https://api-alfajores.celoscan.io/',
},
celo: {
chainId: 42220,
url: `https://forno.celo.org`,
gasPrice: 5000000000,
accounts: {
mnemonic: "kale"
}
}
},
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_KEY || "",
celo: process.env.CELOSCAN_KEY || "",
alfajores: process.env.CELOSCAN_KEY || ""
celo: {
chainId: 42220,
url: `https://forno.celo.org`,
gasPrice: 5000000000,
accounts: {
mnemonic: mnemonic,
},
verify: {
etherscan: {
apiKey: process.env.CELOSCAN_KEY,
apiUrl: 'https://api.celoscan.io/',
},
customChains: [
{
network: "alfajores",
chainId: 44787,
urls: { browserURL: "https://alfajores.celoscan.io/", apiURL: "https://api-alfajores.celoscan.io/" }
}
]
},
},
solidity: {
compilers: [
{
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 0
}
}
}
]
}
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_KEY || '',
celo: process.env.CELOSCAN_KEY || '',
alfajores: process.env.CELOSCAN_KEY || '',
},
customChains: [
{
network: 'alfajores',
chainId: 44787,
urls: { browserURL: 'https://alfajores.celoscan.io/', apiURL: 'https://api-alfajores.celoscan.io/' },
},
],
},
solidity: {
compilers: [
{
version: '0.8.19',
settings: {
optimizer: {
enabled: true,
runs: 0,
},
},
},
],
},
};

export default config;

0 comments on commit c5516d2

Please sign in to comment.