generated from smartcontractkit/foundry-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.config.js
66 lines (61 loc) · 1.45 KB
/
deployment.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
66
const { dynamicAddress } = require("@dgma/hardhat-sol-bundler");
const { VerifyPlugin } = require("@dgma/hardhat-sol-bundler/plugins/Verify");
const common = {
AutomationEmitter: {},
RequestLib: {},
FeeLib: {},
VerifierLib: {},
};
const oracleArgs = [
// emitter
dynamicAddress("AutomationEmitter"),
// verifier
"0x2ff010DEbC1297f19579B4246cad07bd24F2488A",
// eth/usd data stream id
"0x00027bbaff688c906a3e20a34fe951715d1018d262a5b66e38eda027a674cd1b",
// eth/usd data feed
"0xd30e2101a97dcbAeBCBC04F14C3f624E67A35165",
// link/eth data feed
"0x3ec8593F930EA45ea58c968260e6e9FF53FC934f",
// link token
"0xb1d4538b4571d411f07960ef2838ce337fe1e80e",
// registry
"0x8194399b3f11fca2e8ccefc4c9a658c61b8bf412",
// timeout
3,
];
const oracleOptions = {
libs: {
RequestLib: dynamicAddress("RequestLib"),
FeeLib: dynamicAddress("FeeLib"),
VerifierLib: dynamicAddress("VerifierLib"),
},
};
const demoConfig = {
...common,
FWETH: {},
FUSDC: {},
Oracle: {
args: oracleArgs,
options: oracleOptions,
},
FakedOracle: {
args: oracleArgs,
options: oracleOptions,
},
SwapApp: {
args: [dynamicAddress("FakedOracle")],
},
};
module.exports = {
hardhat: {
config: demoConfig,
},
localhost: { lockFile: "./local.deployment-lock.json", config: demoConfig },
"arbitrum-sepolia": {
lockFile: "./deployment-lock.json",
verify: true,
plugins: [VerifyPlugin],
config: demoConfig,
},
};