add recommended solidity version

This commit is contained in:
Edward Mulraney 2021-06-02 11:19:05 +01:00
parent a1203c66ae
commit ec8fd393a1
5 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
pragma solidity ^0.7.0; pragma solidity ^0.7.6;
contract Events { contract Events {
@ -39,4 +39,4 @@ contract Events {
event LogStake(address indexed borrower, uint amount, uint getId); event LogStake(address indexed borrower, uint amount, uint getId);
event LogUnstake(address indexed borrower, uint amount, uint setId); event LogUnstake(address indexed borrower, uint amount, uint setId);
event LogClaimGains(address indexed borrower); event LogClaimGains(address indexed borrower);
} }

View File

@ -1,6 +1,6 @@
pragma solidity ^0.7.0; pragma solidity ^0.7.6;
import { DSMath } from "../../common/math.sol"; import { DSMath } from "../../common/math.sol";
import { Basic } from "../../common/basic.sol"; import { Basic } from "../../common/basic.sol";
abstract contract Helpers is DSMath, Basic {} abstract contract Helpers is DSMath, Basic {}

View File

@ -1,4 +1,4 @@
pragma solidity ^0.7.0; pragma solidity ^0.7.6;
interface BorrowerOperationsLike { interface BorrowerOperationsLike {
function openTrove( function openTrove(

View File

@ -1,4 +1,4 @@
pragma solidity ^0.7.0; pragma solidity ^0.7.6;
/** /**
* @title Liquity. * @title Liquity.

View File

@ -2,7 +2,7 @@ require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers"); require("@nomiclabs/hardhat-ethers");
require("@tenderly/hardhat-tenderly"); require("@tenderly/hardhat-tenderly");
require("@nomiclabs/hardhat-etherscan"); require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-web3"); require("@nomiclabs/hardhat-web3")
require("hardhat-deploy"); require("hardhat-deploy");
require("hardhat-deploy-ethers"); require("hardhat-deploy-ethers");
require("dotenv").config(); require("dotenv").config();
@ -19,16 +19,16 @@ module.exports = {
solidity: { solidity: {
compilers: [ compilers: [
{ {
version: "0.7.6", version: "0.7.6"
}, },
{ {
version: "0.6.0", version: "0.6.0"
}, },
{ {
version: "0.6.2", version: "0.6.2"
}, },
{ {
version: "0.6.5", version: "0.6.5"
}, },
], ],
}, },
@ -42,27 +42,27 @@ module.exports = {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
accounts: [`0x${PRIVATE_KEY}`], accounts: [`0x${PRIVATE_KEY}`],
timeout: 150000, timeout: 150000,
gasPrice: parseInt(utils.parseUnits("132", "gwei")), gasPrice: parseInt(utils.parseUnits("132", "gwei"))
}, },
hardhat: { hardhat: {
forking: { forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`,
blockNumber: 12433781, blockNumber: 12433781,
}, },
blockGasLimit: 12000000, blockGasLimit: 12000000
}, },
matic: { matic: {
url: "https://rpc-mainnet.maticvigil.com/", url: "https://rpc-mainnet.maticvigil.com/",
accounts: [`0x${PRIVATE_KEY}`], accounts: [`0x${PRIVATE_KEY}`],
timeout: 150000, timeout: 150000,
gasPrice: parseInt(utils.parseUnits("1", "gwei")), gasPrice: parseInt(utils.parseUnits("1", "gwei"))
}, },
}, },
etherscan: { etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY, apiKey: process.env.ETHERSCAN_API_KEY
}, },
tenderly: { tenderly: {
project: process.env.TENDERLY_PROJECT, project: process.env.TENDERLY_PROJECT,
username: process.env.TENDERLY_USERNAME, username: process.env.TENDERLY_USERNAME
}, },
}; };