TC-106 fix config variables

This commit is contained in:
Drygin 2022-07-21 19:18:41 +03:00
parent d6a1df502f
commit 2ad99530f3
4 changed files with 35 additions and 13 deletions

View File

@ -1,9 +1,9 @@
PRIVATE_KEY=
ETH_RPC=https://
ALCHEMY_KEY=
INFURA_KEY=
XDAI_RPC=https://
BSC_RPC=https://
MINIMUM_WITHDRAWAL_AMOUNT=0.05
MAXIMUM_DEPOSIT_AMOUNT=1
ALCHEMY_KEY=
INFURA_API_KEY=
ETHERSCAN_KEY=
BSCSCAN_KEY=

View File

@ -64,7 +64,7 @@ const config = {
blockGasLimit: 50000000,
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_API_KEY}`,
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: {
@ -72,7 +72,7 @@ const config = {
},
},
xdai: {
url: process.env.ETH_RPC || 'https://rpc.xdaichain.com/',
url: process.env.XDAI_RPC || 'https://rpc.xdaichain.com/',
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: {
@ -81,7 +81,7 @@ const config = {
gasPrice: 25000000000,
},
bsc: {
url: process.env.ETH_RPC || 'https://bsc-dataseed.binance.org/',
url: process.env.BSC_RPC || 'https://bsc-dataseed.binance.org/',
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: {
@ -98,7 +98,10 @@ const config = {
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
apiKey: {
mainnet: process.env.ETHERSCAN_KEY,
bsc: process.env.BSCSCAN_KEY,
},
},
mocha: {
timeout: 600000000,

View File

@ -52,7 +52,7 @@
"typechain": "^5.1.2"
},
"devDependencies": {
"@nomiclabs/hardhat-etherscan": "^2.1.8",
"@nomiclabs/hardhat-etherscan": "3.1.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",

View File

@ -923,18 +923,21 @@
resolved "https://registry.yarnpkg.com/@nomiclabs/hardhat-ethers/-/hardhat-ethers-2.0.2.tgz#c472abcba0c5185aaa4ad4070146e95213c68511"
integrity sha512-6quxWe8wwS4X5v3Au8q1jOvXYEPkS1Fh+cME5u6AwNdnI4uERvPlVjlgRWzpnb+Rrt1l/cEqiNRH9GlsBMSDQg==
"@nomiclabs/hardhat-etherscan@^2.1.8":
version "2.1.8"
resolved "https://registry.yarnpkg.com/@nomiclabs/hardhat-etherscan/-/hardhat-etherscan-2.1.8.tgz#e206275e96962cd15e5ba9148b44388bc922d8c2"
integrity sha512-0+rj0SsZotVOcTLyDOxnOc3Gulo8upo0rsw/h+gBPcmtj91YqYJNhdARHoBxOhhE8z+5IUQPx+Dii04lXT14PA==
"@nomiclabs/hardhat-etherscan@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@nomiclabs/hardhat-etherscan/-/hardhat-etherscan-3.1.0.tgz#7137554862b3b1c914f1b1bf110f0529fd2dec53"
integrity sha512-JroYgfN1AlYFkQTQ3nRwFi4o8NtZF7K/qFR2dxDUgHbCtIagkUseca9L4E/D2ScUm4XT40+8PbCdqZi+XmHyQA==
dependencies:
"@ethersproject/abi" "^5.1.2"
"@ethersproject/address" "^5.0.2"
cbor "^5.0.2"
chalk "^2.4.2"
debug "^4.1.1"
fs-extra "^7.0.1"
node-fetch "^2.6.0"
lodash "^4.17.11"
semver "^6.3.0"
table "^6.8.0"
undici "^5.4.0"
"@nomiclabs/hardhat-waffle@^2.0.1":
version "2.0.1"
@ -9330,6 +9333,17 @@ table@^6.0.9:
string-width "^4.2.3"
strip-ansi "^6.0.1"
table@^6.8.0:
version "6.8.0"
resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca"
integrity sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==
dependencies:
ajv "^8.0.1"
lodash.truncate "^4.4.2"
slice-ansi "^4.0.0"
string-width "^4.2.3"
strip-ansi "^6.0.1"
tape@^4.6.3:
version "4.14.0"
resolved "https://registry.yarnpkg.com/tape/-/tape-4.14.0.tgz#e4d46097e129817175b90925f2385f6b1bcfa826"
@ -9712,6 +9726,11 @@ underscore@1.9.1:
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961"
integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg==
undici@^5.4.0:
version "5.8.0"
resolved "https://registry.yarnpkg.com/undici/-/undici-5.8.0.tgz#dec9a8ccd90e5a1d81d43c0eab6503146d649a4f"
integrity sha512-1F7Vtcez5w/LwH2G2tGnFIihuWUlc58YidwLiCv+jR2Z50x0tNXpRRw7eOIJ+GvqCqIkg9SB7NWAJ/T9TLfv8Q==
union-value@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847"