forked from ShreyPaharia/dia-oracle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
114 lines (112 loc) · 3.67 KB
/
hardhat.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-gas-reporter"
require('dotenv').config()
const config: HardhatUserConfig = {
networks: {
hardhat: {
// blockGasLimit: 0x1fffffffffff,
gasPrice: 0,
initialBaseFeePerGas: 0
// allowUnlimitedContractSize: true,
},
sepolia: {
url: 'https://rpc.ankr.com/eth_sepolia',
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
polygonMumbai: {
url: 'https://rpc-mumbai.maticvigil.com ',
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
ethereum: {
url: `https://rpc.ankr.com/eth`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
goerli: {
url: `https://rpc.ankr.com/eth_goerli`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
polygon: {
url: `https://small-wandering-wind.matic.quiknode.pro/bb38e15408558eee6752dfdd34ae6f841de6ca9e/`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
moonbeam: {
url: `https://moonbeam.blastapi.io/2684cf1a-d03c-4b60-af0b-502ae3ddd4a5`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
arbitrumOne: {
url: `https://arb-mainnet.g.alchemy.com/v2/Uj3YchsgHwVzV2yharqzm3YcMFZkA87O`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
optimisticEthereum: {
url: `https://opt-mainnet.g.alchemy.com/v2/49esfg0dvfumqS4DxU_S_0xO30m3yvmT`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
oldTangibleTestnet: {
url: `https://rpc.unreal.gelato.digital`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
tangibleTestnet: {
url: `https://rpc.unreal-orbit.gelato.digital`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
gelatoArbitrumBlueberry: {
url: `https://rpc.arb-blueberry.gelato.digital`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
gelatoCelestiaRaspberry: {
url: `https://rpc.opcelestia-raspberry.gelato.digital`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
gelatoPolygonBlackberry: {
url: `https://rpc.polygon-blackberry.gelato.digital`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
hydradxTestnet: {
url: `https://rpc.nice.hydration.cloud`,
accounts: [process.env.DEPLOYER_PRIVATE_KEY?process.env.DEPLOYER_PRIVATE_KEY:'']
},
},
solidity: {
compilers: [
{
version: "0.8.9",
},
],
},
gasReporter: {
enabled: (process.env.REPORT_GAS) ? true : false,
currency: 'USD',
gasPrice: 90
},
etherscan: {
apiKey: {
arbitrumOne: "TCYIZKPC9BRHWS4XQ6Q6BZFZY2QEWQ1Y6F",
optimisticEthereum: "ZTQUP2HRIY9DGPPYTMMP1B67VSTSURADFM",
polygon: "7SJFUSBZPSR2XHCWHVRN9T4XPBDA51M476",
unreal: 'XXXX',
hydradxTestnet: 'XXXX',
moonbeam: 'HPHT29JUP5J7HBPKKFDNJJXRWKHP65B88A',
mainnet: 'ZIFTJ34KCVC2FPYMZZQ6GKFFZR8YK7KZ7Q',
},
customChains: [
{
network: "unreal",
chainId: 18233,
urls: {
apiURL: "https://unreal.blockscout.com/api",
browserURL: "https://unreal.blockscout.com"
}
},
{
network: "hydradxTestnet",
chainId: 222222,
urls: {
apiURL: "https://blockscout.nice.hydration.cloud/api",
browserURL: "https://blockscout.nice.hydration.cloud"
}
}
],
},
};
export default config;