From 598fc86a8b58051204fd32873a21963cf2b0d175 Mon Sep 17 00:00:00 2001 From: Jesus Lanchas Date: Mon, 20 Nov 2023 10:31:37 +0100 Subject: [PATCH] chore: fix generation of deployment files --- .env.example | 5 ++-- hardhat.config.ts | 2 +- package.json | 2 +- yarn.lock | 68 ++++++++++++++++++++++++++++++++++++++++++++++- 4 files changed, 72 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index b6dee3e..aadc404 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ #FORK_TESTNET=true -#BSC_ARCHIVE_NODE=https://bsc-testnet.nodereal.io/v1/ +#BSC_ARCHIVE_NODE_URL=https://bsc-testnet.nodereal.io/v1/ #FORK_MAINNET=true -#BSC_ARCHIVE_NODE=https://bsc-mainnet.nodereal.io/v1/ +#BSC_ARCHIVE_NODE_URL=https://bsc-mainnet.nodereal.io/v1/ +#BSC_ARCHIVE_NODE_URL=http://127.0.0.1:1248 \ No newline at end of file diff --git a/hardhat.config.ts b/hardhat.config.ts index 6973eab..abc3577 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -68,7 +68,7 @@ const config: HardhatUserConfig = { timeout: 12000000, }, bscmainnet: { - url: "http://127.0.0.1:1248", + url: process.env.BSC_ARCHIVE_NODE_URL || "https://bsc-dataseed.binance.org/", chainId: 56, live: true, timeout: 1200000, // 20 minutes diff --git a/package.json b/package.json index 359fdfa..78f4411 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "3.4.1", "eslint-plugin-promise": "^5.2.0", - "hardhat": "^2.16.1", + "hardhat": "^2.19.1", "hardhat-deploy": "^0.11.26", "hardhat-deploy-ethers": "^0.3.0-beta.13", "hardhat-gas-reporter": "^1.0.8", diff --git a/yarn.lock b/yarn.lock index 6c4a66d..b0d9195 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3123,7 +3123,7 @@ __metadata: eslint-plugin-prettier: 3.4.1 eslint-plugin-promise: ^5.2.0 ethers: ^5.7.0 - hardhat: ^2.16.1 + hardhat: ^2.19.1 hardhat-deploy: ^0.11.26 hardhat-deploy-ethers: ^0.3.0-beta.13 hardhat-gas-reporter: ^1.0.8 @@ -6883,6 +6883,72 @@ __metadata: languageName: node linkType: hard +"hardhat@npm:^2.19.1": + version: 2.19.1 + resolution: "hardhat@npm:2.19.1" + dependencies: + "@ethersproject/abi": ^5.1.2 + "@metamask/eth-sig-util": ^4.0.0 + "@nomicfoundation/ethereumjs-block": 5.0.2 + "@nomicfoundation/ethereumjs-blockchain": 7.0.2 + "@nomicfoundation/ethereumjs-common": 4.0.2 + "@nomicfoundation/ethereumjs-evm": 2.0.2 + "@nomicfoundation/ethereumjs-rlp": 5.0.2 + "@nomicfoundation/ethereumjs-statemanager": 2.0.2 + "@nomicfoundation/ethereumjs-trie": 6.0.2 + "@nomicfoundation/ethereumjs-tx": 5.0.2 + "@nomicfoundation/ethereumjs-util": 9.0.2 + "@nomicfoundation/ethereumjs-vm": 7.0.2 + "@nomicfoundation/solidity-analyzer": ^0.1.0 + "@sentry/node": ^5.18.1 + "@types/bn.js": ^5.1.0 + "@types/lru-cache": ^5.1.0 + adm-zip: ^0.4.16 + aggregate-error: ^3.0.0 + ansi-escapes: ^4.3.0 + chalk: ^2.4.2 + chokidar: ^3.4.0 + ci-info: ^2.0.0 + debug: ^4.1.1 + enquirer: ^2.3.0 + env-paths: ^2.2.0 + ethereum-cryptography: ^1.0.3 + ethereumjs-abi: ^0.6.8 + find-up: ^2.1.0 + fp-ts: 1.19.3 + fs-extra: ^7.0.1 + glob: 7.2.0 + immutable: ^4.0.0-rc.12 + io-ts: 1.10.4 + keccak: ^3.0.2 + lodash: ^4.17.11 + mnemonist: ^0.38.0 + mocha: ^10.0.0 + p-map: ^4.0.0 + raw-body: ^2.4.1 + resolve: 1.17.0 + semver: ^6.3.0 + solc: 0.7.3 + source-map-support: ^0.5.13 + stacktrace-parser: ^0.1.10 + tsort: 0.0.1 + undici: ^5.14.0 + uuid: ^8.3.2 + ws: ^7.4.6 + peerDependencies: + ts-node: "*" + typescript: "*" + peerDependenciesMeta: + ts-node: + optional: true + typescript: + optional: true + bin: + hardhat: internal/cli/bootstrap.js + checksum: 0c12069e8eae47419d595e38d22716049136cf74390f9e89121ae73fdc716ffcb6cd3283e3ca8676ce00e3ff90804dfa95473830d96340ec01860dfa6237d8d3 + languageName: node + linkType: hard + "hardhat@npm:^2.8.0": version: 2.19.0 resolution: "hardhat@npm:2.19.0"