-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
57 lines (49 loc) · 2.04 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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import { BigNumber } from 'ethers'
/**
The config uses a relative path up to the parent directory of this project because it's in a lerna monorepo.
If you're not using lerna, you can use the following instead:
[...]
external: {
contracts: [{
artifacts: ["./node_modules/@skaleboarder/safe-tools/artifacts", "./node_modules/@skaleboarder/safe-tools/gnosis-safe-artifacts"],
deploy: "./node_modules/@skaleboarder/safe-tools/hardhat/deploy",
}],
},
[...]
The rest of the config and the "deterministic deploy" section is important.
*/
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
mining: {
auto: false,
interval: [3000, 6000],
}
}
},
solidity: "0.8.17",
external: {
contracts: [{
artifacts: ["../../node_modules/@skaleboarder/safe-tools/artifacts", "../../node_modules/@skaleboarder/safe-tools/gnosis-safe-artifacts"],
deploy: "../../node_modules/@skaleboarder/safe-tools/hardhat/deploy",
}],
},
deterministicDeployment: (_network: string) => {
return {
deployer: "0x1aB62e2DDa7a02923A06904413A007f8e257e0D0",
factory: "0xf461635EbfA16074b07322781fCcaAA43F852a17",
signedTx: "0xf901188085174876e800830192ba8080b8c66080604052348015600f57600080fd5b5060a88061001e6000396000f3fe6080604052348015600f57600080fd5b5060003660606000807f94bfd9af14ef450884c8a7ddb5734e2e1e14e70a1c84f0801cc5a29e34d26428905060203603602060003760003560203603600034f5915081605a57600080fd5b8160005260003560205260008160406000a26014600cf3fea2646970667358221220575a90b3fd3629fb06acbbed667e4e921c5fd5d07bd5ef77421d3165bcfa875164736f6c634300081200331ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222",
funding: BigNumber.from(278361).mul(100000000000).toString(),
}
},
namedAccounts: {
deployer: {
default: 0,
},
}
};
export default config;