Skip to content

Commit f1bd03c

Browse files
committed
Update config
1 parent 824a4a3 commit f1bd03c

File tree

3 files changed

+85
-49
lines changed

3 files changed

+85
-49
lines changed

hardhat.config.ts

+62-47
Original file line numberDiff line numberDiff line change
@@ -8,57 +8,72 @@ export const env = dotenv.config().parsed;
88
const defaultKey = "0x00000000000000000000000000000000000000000000000000000000cafebabe";
99

1010
const config: HardhatUserConfig = {
11-
solidity: {
12-
compilers: [
13-
{
14-
version: "0.4.24",
15-
settings: { optimizer: { enabled: true, runs: 200 } },
16-
},
17-
{
18-
version: "0.8.19",
19-
settings: { optimizer: { enabled: true, runs: 200 } },
20-
},
21-
{
22-
version: "0.8.25",
23-
settings: { optimizer: { enabled: true, runs: 200 } },
24-
},
25-
],
26-
},
11+
solidity: {
12+
compilers: [
13+
{
14+
version: "0.4.24",
15+
settings: { optimizer: { enabled: true, runs: 200 } },
16+
},
17+
{
18+
version: "0.8.19",
19+
settings: { optimizer: { enabled: true, runs: 200 } },
20+
},
21+
{
22+
version: "0.8.25",
23+
settings: { optimizer: { enabled: true, runs: 200 } },
24+
},
25+
],
26+
},
2727

28-
networks: {
29-
hardhat: {
30-
accounts: {
31-
accountsBalance: 1_000_000_000n.toString() + "0".repeat(18),
32-
},
33-
},
34-
homi: {
35-
url: "http://127.0.0.1:8551",
36-
accounts: [env?.["PRIVATE_KEY"] || defaultKey || defaultKey],
37-
live: false,
38-
saveDeployments: false,
39-
},
40-
localhost: {
41-
url: "http://127.0.0.1:8545",
42-
accounts: {
43-
mnemonic: "test test test test test test test test test test test junk",
44-
path: "m/44'/60'/0'/0",
45-
initialIndex: 0,
46-
count: 30,
47-
passphrase: "",
48-
},
49-
live: false,
50-
saveDeployments: true,
51-
},
28+
networks: {
29+
hardhat: {
30+
accounts: {
31+
accountsBalance: 1_000_000_000n.toString() + "0".repeat(18),
32+
},
33+
},
34+
baobab: {
35+
url: env?.["BAOBAB_URL"] || "https://archive-en-kairos.node.kaia.io/",
36+
chainId: 1001,
37+
// Sample private keys for testing
38+
accounts: [env?.["PRIVATE_KEY"] || defaultKey],
39+
live: true,
40+
saveDeployments: true,
41+
},
42+
cypress: {
43+
url: env?.["CYPRESS_URL"] || "https://archive-en.node.kaia.io",
44+
chainId: 8217,
45+
accounts: [env?.["PRIVATE_KEY"] || defaultKey, env?.["PRIVATE_KEY2"] || defaultKey],
46+
live: true,
47+
saveDeployments: true,
48+
},
49+
homi: {
50+
url: "http://127.0.0.1:8551",
51+
accounts: [env?.["PRIVATE_KEY"] || defaultKey || defaultKey],
52+
live: false,
53+
saveDeployments: false,
5254
},
53-
namedAccounts: {
54-
deployer: {
55-
default: 0, // here this will by default take the first account as deployer
56-
},
55+
localhost: {
56+
url: "http://127.0.0.1:8545",
57+
accounts: {
58+
mnemonic: "test test test test test test test test test test test junk",
59+
path: "m/44'/60'/0'/0",
60+
initialIndex: 0,
61+
count: 30,
62+
passphrase: "",
63+
},
64+
live: false,
65+
saveDeployments: true,
5766
},
58-
paths: {
59-
sources: "./src/",
60-
deployments: "deployments",
67+
},
68+
namedAccounts: {
69+
deployer: {
70+
default: 0, // here this will by default take the first account as deployer
6171
},
72+
},
73+
paths: {
74+
sources: "./src/",
75+
deployments: "deployments",
76+
},
6277
};
6378

6479
export default config;

package-lock.json

+21-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"bls-signatures": "^2.0.2",
2727
"caver-js": "^1.11.0",
2828
"dotenv": "^16.3.2",
29-
"ethers": "^5.7.0"
29+
"ethers": "^5.7.0",
30+
"plotly": "^1.0.6"
3031
}
3132
}

0 commit comments

Comments
 (0)