Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Aug 12, 2024
1 parent a1d6069 commit 9e66a03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 31 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

FROM ubuntu:20.04 as base
FROM ubuntu:22.04 as base
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install curl bash
# nvm env vars
Expand All @@ -20,7 +20,7 @@ RUN apt-get update && apt-get -y install wget build-essential
COPY . /ocean-contracts
WORKDIR /ocean-contracts
RUN npm i
RUN wget https://gobinaries.com/tj/node-prune --output-document - | /bin/sh && node-prune
#RUN wget https://gobinaries.com/tj/node-prune --output-document - | /bin/sh && node-prune



Expand All @@ -31,7 +31,7 @@ RUN mkdir -p /ocean-contracts/test/
COPY ./addresses /ocean-contracts/addresses/
COPY ./contracts /ocean-contracts/contracts/
COPY ./hardhat.config* /ocean-contracts/
COPY ./package* /ocean-contracts/
COPY ./package.json /ocean-contracts/
COPY ./scripts /ocean-contracts/scripts/
COPY ./test /ocean-contracts/test/
WORKDIR /ocean-contracts
Expand Down
29 changes: 1 addition & 28 deletions hardhat.config.barge.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,10 @@
require("@nomiclabs/hardhat-waffle");
require("hardhat-contract-sizer");
require("hardhat-gas-reporter");
require('solidity-coverage');
//require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-verify");
//require("@nomicfoundation/hardhat-verify");
require("@nomiclabs/hardhat-vyper");
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async () => {
const accounts = await ethers.getSigners();

for (const account of accounts) {
console.log(account.address);
}
});

// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
Expand Down Expand Up @@ -62,23 +53,5 @@ module.exports = {
gasPrice: 8000000,
gas: 2100000
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
sourcify: {
// Disabled by default
// Doesn't need an API key
enabled: true
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
gasReporter: {
currency: 'USD',
gasPrice: 80,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
}
};

0 comments on commit 9e66a03

Please sign in to comment.