-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
88 lines (84 loc) · 2.29 KB
/
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
import * as pulumi from "@pulumi/pulumi";
export const config = new pulumi.Config();
const empAddress = config.require("empAddress");
const privateKey = config.require("privateKey");
const infuraKey = config.require("infuraKey");
const pageDutyAPI = config.require("pageDutyAPI");
const pageDutyServiceID = config.require("pageDutyServiceID");
const pageDutyFromEmail = config.require("pageDutyFromEmail");
export const liquidatorEnvironment = [
{
name: "EMP_ADDRESS",
value: empAddress
},
{
name: "PRIVATE_KEY",
value: privateKey
},
{
name: "PRICE_FEED_CONFIG",
value: `{"type":"medianizer","apiKey":"Z24VHM7MYDATUQ9Y8IU3","lookback":7200,"invertPrice":true,"minTimeBetweenUpdates":60,"medianizedFeeds":[{"type":"cryptowatch","exchange":"binance","pair":"perlusdt"}]}`
},
{
name: "LIQUIDATOR_CONFIG",
value: `{"crThreshold":0.02}`
},
{
name: "PAGERDUTY_API_KEY",
value: pageDutyAPI
},
{
name: "PAGERDUTY_SERVICE_ID",
value: pageDutyServiceID
},
{
name: "PAGERDUTY_FROM_EMAIL",
value: pageDutyFromEmail
},
{
name: "INFURA_API_KEY",
value: infuraKey
},
{
name: "COMMAND",
value: "yarn truffle exec ./packages/liquidator/index.js --network kovan_privatekey"
}
]
export const disputerEnvironment = [
{
name: "EMP_ADDRESS",
value: empAddress
},
{
name: "PRIVATE_KEY",
value: privateKey
},
{
name: "PRICE_FEED_CONFIG",
value: `{"type":"medianizer","apiKey":"Z24VHM7MYDATUQ9Y8IU3","lookback":7200,"invertPrice":true,"minTimeBetweenUpdates":60,"medianizedFeeds":[{"type":"cryptowatch","exchange":"binance","pair":"perlusdt"}]}`
},
{
name: "DISPUTER_CONFIG",
value: `{"disputeDelay":30}`
},
{
name: "PAGERDUTY_API_KEY",
value: pageDutyAPI
},
{
name: "PAGERDUTY_SERVICE_ID",
value: pageDutyServiceID
},
{
name: "PAGERDUTY_FROM_EMAIL",
value: pageDutyFromEmail
},
{
name: "INFURA_API_KEY",
value: infuraKey
},
{
name: "COMMAND",
value: "yarn truffle exec ./packages/disputer/index.js --network kovan_privatekey"
}
]