diff --git a/Dockerfile b/Dockerfile index c47c89cc..66ab7bd7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 @@ -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 diff --git a/hardhat.config.barge.js b/hardhat.config.barge.js index 5e68bfd8..29c97466 100644 --- a/hardhat.config.barge.js +++ b/hardhat.config.barge.js @@ -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 @@ -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, } };