-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfig-sample.toml
51 lines (43 loc) · 2 KB
/
config-sample.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
[from]
chain = "polygon"
datasource = "rpc" # big_query or rpc or chifra
dapp_type = "uniswap" # uniswap or aave or squeeth
#http_proxy = "http://localhost:5555" # if network is bad, try use proxy
start = "2022-3-16"
end = "2022-3-17"
[from.uniswap]
pool_address = "0x45dda9cb7c25131df268515131f647d726f50608"
ignore_position_id = false # if set to true, will not download uniswap proxy logs to get position_id. will save a lot of time
is_token0_base = false # true of false, # only necessary for ToType==price, e.g. token0 is usdc, token1 is weth, you want value like weth/usdc=3000, then you should set false
[from.uniswap.token0] # only necessary for ToType==price
name = "usdc"
decimal = 6
[from.uniswap.token1] # only necessary for ToType==price
name = "eth"
decimal = 18
[from.aave]
tokens = [# address of erc20 token which avialable on aave
"0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
"0x2791bca1f2de4661ed88a30c99a7a9449aa84174"
]
[from.big_query] # if you want to download from big query, use this section
auth_file = "./auth/airy-sight-361003-d14b5ce41c48.json" # google bigquery auth file
[from.rpc] # If you want to download from rpc interface, use this section
end_point = "https://localhost:8545"
#auth_string = "Basic Y3J0Yzo3NKY3TjY" # auth string for rpc end point
#batch_size = 500 # default is 500
#keep_tmp_files = false
etherscan_api_key = "some_api_key" #
force_no_proxy = false # if force_no_proxy==true, will query ethereum rpc without proxy.
# height_cache_path = "" # path of height cache file, if leave to none, height cache will be saved in to path
thread=5
[from.chifra]
etherscan_api_key = "" # If this is set, query from etherscan will be faster.
[to] # output config
# for uniswap: raw/minute/tick/position/user_lp/price
# for aave: raw/minute/tick
type = "tick"
#file_type = "csv" # csv or feather or parquet, default is csv
save_path = "./sample-data"
keep_raw = true # Keep original files for each step, default is false
skip_existed = true # Skip if the file has existed. default is false