Skip to content

Commit

Permalink
remove fileImport, use npm contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive committed Jun 21, 2024
1 parent b6a2c62 commit 36f6e69
Show file tree
Hide file tree
Showing 7 changed files with 10,657 additions and 11,122 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ jobs:
if: steps.restore-cache.outputs.cache-hit != 'true'
run: npm i hardhat

- name: File Import
run: npx hardhat run ./scripts/fileImport.ts

- name: compile contracts
run: npx hardhat compile

Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ gas-report.txt
typechain-types
coverage
coverage.json
contracts
.env
.env
gasReport.md
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ npm run menu

## Truffle dashboard deployment

```console
npx hardhat run ./scripts/fileImport.ts
```

```console
truffle dashboard
```
Expand Down
Empty file added contracts/.gitkeep
Empty file.
38 changes: 29 additions & 9 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import "@nomicfoundation/hardhat-toolbox"
import "@truffle/dashboard-hardhat-plugin"
import "hardhat-gas-reporter"
import { HardhatUserConfig } from "hardhat/config"
import "solidity-coverage"
import "hardhat-dependency-compiler"
import '@typechain/hardhat';
import '@nomicfoundation/hardhat-network-helpers';
import '@nomicfoundation/hardhat-chai-matchers';

const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
version: "0.8.19",
version: "0.8.24",
settings: {
evmVersion: "byzantium",
optimizer: {
Expand All @@ -18,6 +21,7 @@ const config: HardhatUserConfig = {
},
networks: {
hardhat: {
allowUnlimitedContractSize: true,
blockGasLimit: 130_000_000,
},
ropsten: {
Expand Down Expand Up @@ -64,16 +68,32 @@ const config: HardhatUserConfig = {
},
gasReporter: {
enabled: true,
showTimeSpent: true,
showMethodSig: true,
currency: "USD",
token: "BNB",
gasPriceApi:
"https://api.bscscan.com/api?module=proxy&action=eth_gasPrice&apikey=" + process.env.BSCSCAN_API_KEY,
coinmarketcap: process.env.CMC_API_KEY || "",
currency: 'USD',
token: 'ETH',
gasPriceApi: 'https://api.etherscan.io/api?module=proxy&action=eth_gasPrice&apikey=' + process.env.ETHERSCAN_API_KEY,
coinmarketcap: process.env.CMC_API_KEY || '',
noColors: true,
outputFile: "gas-report.txt",
reportFormat: "markdown",
outputFile: "gasReport.md",
forceTerminalOutput: true,
L1: "ethereum",
forceTerminalOutputFormat: "terminal"
},
dependencyCompiler: {
paths: [
'@poolzfinance/collateral-provider/contracts/CollateralProvider.sol',
'@poolzfinance/refund-provider/contracts/RefundProvider.sol',
'@poolzfinance/lockdeal-nft/contracts/LockDealNFT/LockDealNFT.sol',
'@poolzfinance/lockdeal-nft/contracts/SimpleProviders/DealProvider/DealProvider.sol',
'@poolzfinance/lockdeal-nft/contracts/SimpleProviders/LockProvider/LockDealProvider.sol',
'@poolzfinance/lockdeal-nft/contracts/SimpleProviders/TimedDealProvider/TimedDealProvider.sol',
'@poolzfinance/builders/contracts/SimpleBuilder/SimpleBuilder.sol',
'@poolzfinance/builders/contracts/SimpleRefundBuilder/SimpleRefundBuilder.sol',
'@poolzfinance/vault-manager/contracts/VaultManager/VaultManager.sol',
'@poolzfinance/vault-manager/contracts/test/ERC20Token.sol'
],
}
}

export default config
Loading

0 comments on commit 36f6e69

Please sign in to comment.