-
Notifications
You must be signed in to change notification settings - Fork 10
/
ganache.toml
99 lines (86 loc) · 2.67 KB
/
ganache.toml
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
89
90
91
92
93
94
95
96
97
98
creators_whitelist = [
# CREATOR
'0xaCBaDA2d5830d1875ae3D2de207A1363B316Df2F',
# ADVERTISER
'0xDd589B43793934EF6Ad266067A0d1D4896b0dff0',
# PUBLISHER
'0xE882ebF439207a70dDcCb39E13CA8506c9F45fD9',
# ADVERTISER_2
'0x541b401362Ea1D489D322579552B099e801F3632',
]
validators_whitelist = [
# LEADER
'0x80690751969B234697e9059e04ed72195c3507fa',
# FOLLOWER
'0xf3f583AEC5f7C030722Fe992A5688557e1B86ef7',
# LEADER_2
'0x6B83e7D6B72c098d48968441e0d05658dc17Adb9'
]
[limits]
channels_find = 200
campaigns_find = 200
spendable_find = 200
msgs_find = 10
analytics_find = 5000
ip_rate_limit = { type = 'ip', timeframe = 1200000 }
[limits.units_for_slot]
# The maximum number of campaigns a publisher can earn from
# This will limit the returned Campaigns to the set number
max_campaigns_earning_from = 25
# 0.0000001 (UnifiedNum) per 1 impression
# 10 / 10^8 = 0.0000001
global_min_impression_price = '10'
[sentry]
# in milliseconds
analytics_maxtime = 20000
admins = [
# LEADER
'0x80690751969B234697e9059e04ed72195c3507fa'
]
[sentry.platform]
# This should be changed for tests and use the wiremock url
url = "https://platform.adex.network"
# 20 minutes in milliseconds
keep_alive_interval = 1200000
[worker]
# Maximum number of channels to return per request
max_channels = 512
wait_time = 500
heartbeat_time = 30000
health_threshold_promilles = 950
health_unsignable_promilles = 750
[worker.timeouts]
# 2 seconds
# TODO: Check the POST /validator-message route performance, more than 1 second for timeout is a lot!
propagation = 2000
fetch = 5000
all_campaigns = 5000
# for test_harness make it larger
# Default: 5000
channel_tick = 8000
[chain."Ganache #1"]
chain_id = 1
rpc = 'http://localhost:8545'
# Ganache Snapshot address
outpace = '0x26CBc2eAAe377f6Ac4b73a982CD1125eF4CEC96f'
[chain."Ganache #1".token."Mocked TOKEN 1"]
address = '0x12a28f2bfBFfDf5842657235cC058242f40fDEa6' # checked
precision = 18
# 1 * 10^18 = 1.0000 TOKEN
min_campaign_budget = '1000000000000000000'
# multiplier = 10^12 - 10^18 (token precision) = 10^-6
# min_validator_fee = 1 * 10^-6 = 0.000_001
min_validator_fee = '1000000000000'
[chain."Ganache #1337"]
chain_id = 1337
rpc = 'http://localhost:1337'
# Ganache Snapshot address
outpace = '0xAbc27d46a458E2e49DaBfEf45ca74dEDBAc3DD06'
[chain."Ganache #1337".token."Mocked TOKEN 1337"]
address = '0x2bcaf6968aec8a3b5126fbfab5fd419da6e8ad8e' # checked
precision = 18
# 1 * 10^18 = 1.0000 TOKEN
min_campaign_budget = '1000000000000000000'
# multiplier = 10^12 - 10^18 (token precision) = 10^-6
# min_validator_fee = 1 * 10^-6 = 0.000_001
min_validator_fee = '1000000000000'