-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.js
65 lines (62 loc) · 1.98 KB
/
hardhat.config.js
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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
const INFURA_PROJECT_ID = "719d739434254b88ac95d53e2b6ac997";
// eth_address: 0x0c1efcca2bcb65a532274f3ef24c044ef4ab6d73
const PRIVATE_KEY = "dd50cac37ec6dd12539a968c1a2cbedda75bd8724f7bcad486548eaabb87fc8b";
// eth_address: 0x6DaF63D8411D6E23552658E3cFb48416A6A2CA78
const PRIVATE_KEY2 = "6cd5e7be2f6504aa5ae7c0c04178d8f47b7cfc63b71d95d9e6282f5b090431bf"
/**
* @type import('hardhat/config').HardhatUserConfig
*
* */
module.exports = {
networks: {
gw_devnet_v1: {
url: `http://127.0.0.1:8024`,
accounts: [`0xdd50cac37ec6dd12539a968c1a2cbedda75bd8724f7bcad486548eaabb87fc8b`, `0x6cd5e7be2f6504aa5ae7c0c04178d8f47b7cfc63b71d95d9e6282f5b090431bf`],
},
gw_testnet_v1: {
url: `https://godwoken-testnet-web3-v1-rpc.ckbapp.dev`,
accounts: [`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`],
},
gw_testnet_v0:{
url :`https://godwoken-testnet-web3-rpc.ckbapp.dev`,
chainId:71393,
accounts:[`0x${PRIVATE_KEY}`, `0x${PRIVATE_KEY2}`],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`],
// gas: 1_000_000_000_000_001, // Infura seems to cap it at 19981536.
// gasPrice: 1
},
mainnet: {
url: `https://mainnet.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
},
kovan: {
url: `https://kovan.infura.io/v3/${INFURA_PROJECT_ID}`,
accounts: [`0x${PRIVATE_KEY}`]
},
bsc_test:{
url:`https://data-seed-prebsc-1-s1.binance.org:8545/`,
accounts: [`0x${PRIVATE_KEY}`]
}
// hardhat: {
// gas: 1000000000000, // Infura seems to cap it at 19981536.
// gasPrice: 1
// }
},
solidity: {
compilers: [
{ // for polyjuice contracts
version: "0.6.6",
settings: {}
},
{ version: "0.6.12" },
{ version: "0.7.5" },
{ version: "0.8.4" },
{ version: "0.8.6" }
], overrides: {}
},
};