Skip to content

Commit

Permalink
Bump oz, use networks from solidity-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Dec 18, 2023
1 parent 4ddde9c commit c791cb6
Show file tree
Hide file tree
Showing 6 changed files with 461 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"solidity.compileUsingRemoteVersion": "0.8.19"
"solidity.compileUsingRemoteVersion": "0.8.23"
}
2 changes: 1 addition & 1 deletion contracts/mocks/DecompressorExtensionMock.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;
pragma solidity 0.8.23;

import { TokenMock } from "@1inch/solidity-utils/contracts/mocks/TokenMock.sol";
import { DecompressorExtension } from "../DecompressorExtension.sol";
Expand Down
7 changes: 5 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,24 @@ require('hardhat-deploy');
require('hardhat-gas-reporter');
require('hardhat-tracer');
require('dotenv').config();
const { Networks, getNetwork } = require('@1inch/solidity-utils/hardhat-setup');

const { networks } = require('./hardhat.networks');
const { networks, etherscan } = (new Networks()).registerAll();

module.exports = {
solidity: {
version: '0.8.19',
version: '0.8.23',
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
evmVersion: networks[getNetwork()]?.hardfork || 'shanghai',
viaIR: true,
},
},
networks,
etherscan,
gasReporter: {
enabled: true,
currency: 'USD',
Expand Down
31 changes: 0 additions & 31 deletions hardhat.networks.js

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
},
"license": "MIT",
"dependencies": {
"@openzeppelin/contracts": "4.9.2"
"@openzeppelin/contracts": "5.0.1"
},
"devDependencies": {
"@1inch/solidity-utils": "3.0.1",
"@1inch/solidity-utils": "3.5.5",
"@nomicfoundation/hardhat-chai-matchers": "2.0.1",
"@nomicfoundation/hardhat-ethers": "3.0.4",
"@nomicfoundation/hardhat-network-helpers": "1.0.8",
Expand Down
Loading

0 comments on commit c791cb6

Please sign in to comment.