2 Star 12 Fork 0

ProjectOpenSea/seaport

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
hardhat-reference.config.ts 1.42 KB
一键复制 编辑 原始数据 按行查看 历史
0age 提交于 2022-12-08 07:46 +08:00 . use 0.8.13 for reference
import { TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS } from "hardhat/builtin-tasks/task-names";
import { subtask } from "hardhat/config";
import type { HardhatUserConfig } from "hardhat/config";
import "dotenv/config";
import "@nomicfoundation/hardhat-chai-matchers";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
// Filter Reference Contracts
subtask(TASK_COMPILE_SOLIDITY_GET_SOURCE_PATHS).setAction(
async (_, __, runSuper) => {
const paths = await runSuper();
return paths.filter(
(p: any) =>
!p.endsWith("/Consideration.sol") && !p.includes("contracts/lib/")
);
}
);
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.13",
settings: {
viaIR: false,
optimizer: {
enabled: false,
},
},
},
],
},
networks: {
hardhat: {
blockGasLimit: 30_000_000,
allowUnlimitedContractSize: true,
throwOnCallFailures: false,
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
currency: "USD",
},
// specify separate cache for hardhat, since it could possibly conflict with foundry's
paths: {
sources: "./reference",
cache: "hh-cache-ref",
artifacts: "./artifacts-ref",
},
};
export default config;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ProjectOpenSea/seaport.git
git@gitee.com:ProjectOpenSea/seaport.git
ProjectOpenSea
seaport
seaport
main

搜索帮助