Skip to content

Commit

Permalink
update libraries to work with node versiona above 18
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Mar 4, 2024
1 parent cf1ee2e commit d4105d3
Show file tree
Hide file tree
Showing 6 changed files with 2,465 additions and 5,555 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ node_modules/
# hardhat-deploy
deployments/hardhat
deployments/localhost
deployedContracts.sh

# Misc
contractsInfo.json
Expand Down
2 changes: 1 addition & 1 deletion deploy/local/000_deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = async ({ getNamedAccounts, deployments }) => {

log("Token deployed at address " + token.address);

const arguments = [token];
const arguments = [token.address];
const factory = await deploy("SimpleSwapFactory", {
from: deployer,
args: arguments,
Expand Down
2 changes: 1 addition & 1 deletion deploy/local/001_deploy_env_variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const func = async function({ deployments }) {
content += `echo "----- USE THE COMMANDS BELOW TO SETUP YOUR TERMINALS -----" >&2\n\n`;
content += `export BEE_SWAP_FACTORY_ADDRESS=${SimpleSwapFactory.address}\n`;
content += `export BEE_SWAP_LEGACY_FACTORY_ADDRESSES=${SimpleSwapFactory.address}\n`;
content += `export BEE_SWAP_ENDPOINT=${networks.localhost.url}\n`;
content += `export BEE_SWAP_ENDPOINT=${config.networks.localhost.url}\n`;

const envFilePath = path.join(__dirname, "../../deployedContracts.sh");

Expand Down
11 changes: 6 additions & 5 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
require("@nomiclabs/hardhat-truffle5");
require("solidity-coverage");
require("dotenv/config");
require("hardhat-deploy");
require("@nomicfoundation/hardhat-verify");
require('dotenv/config');
require('solidity-coverage');
require('hardhat-deploy');
require('hardhat-deploy-ethers');
require('@nomiclabs/hardhat-etherscan');
require('hardhat-gas-reporter');

const PRIVATE_RPC_MAINNET = !process.env.PRIVATE_RPC_MAINNET
? undefined
Expand Down
47 changes: 34 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,44 @@
"url": "https://github.com/ethersphere/swap-swear-and-swindle.git"
},
"dependencies": {
"@nomicfoundation/hardhat-verify": "^1.0.0",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@openzeppelin/contracts": "^3.4.1-solc-0.7-2",
"dotenv": "^16.0.3"
"@openzeppelin/contracts": "^3.4.1-solc-0.7-2"
},
"devDependencies": {
"@nomiclabs/hardhat-truffle5": "^2.0.2",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/test-helpers": "^0.5.15",
"bn-chai": "^1.0.1",
"@ethereum-waffle/chai": "^4.0.10",
"@ethersproject/wallet": "^5.0.7",
"@fairdatasociety/bmt-js": "^2.1.0",
"@nomiclabs/hardhat-ethers": "^2.2.1",
"@nomiclabs/hardhat-etherscan": "^3.1.3",
"@openzeppelin/contracts": "4.8.2",
"@tenderly/hardhat-tenderly": "^1.7.7",
"@types/chai": "^4.2.14",
"@types/mocha": "^10.0.1",
"@types/node": "^18.14.6",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"axios": "^1.6.1",
"chai": "^4.2.0",
"chai-ethers": "^0.0.1",
"cross-env": "^7.0.2",
"dotenv": "^16.0.3",
"eslint": "^8.35.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-prettier": "^4.2.1",
"ethereum-waffle": "^4.0.10",
"ethereumjs-abi": "^0.6.8",
"hardhat": "^2.6.8",
"hardhat-deploy": "^0.11.29",
"solhint": "^3.3.6",
"solidity-coverage": "^0.7.17",
"web3": "^1.6.1"
"ethers": "^5.7.0",
"ganache-cli": "^6.12.2",
"hardhat": "^2.11.2",
"hardhat-deploy": "^0.11.25",
"hardhat-deploy-ethers": "^0.3.0-beta.5",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-tracer": "^2.1.2",
"mocha": "^10.2.0",
"prettier": "^2.1.2",
"prettier-plugin-solidity": "^1.0.0-alpha.59",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.8.1",
"typescript": "^4.0.5"
},
"scripts": {
"compile": "hardhat compile",
Expand Down
Loading

0 comments on commit d4105d3

Please # to comment.