-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathconfig.example.js
17 lines (17 loc) · 1020 Bytes
/
config.example.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const EnumChainId = require("./enum/chain.id");
const { toCheckSum } = require("./utils/addresses");
let scraperConfig = {
[EnumChainId.BSC]: {
"save_price": true, // do you want the scraper to save the price records of the tokens ?
"save_transactions": true, // do you want the scraper to save every swap transaction ?
"calculate_pair_fees": true, // do you want the scraper to save the fees of all the pairs ?
"whitelist_enabled": false,// do you want the scraper to scrape only specific given tokens ?
"whitelist": [ // pass here the tokens to whitelist as the example one
toCheckSum("0xc748673057861a797275CD8A068AbB95A902e8de") // example whitelisted token
],
"use_checkpoint_when_restart": false, // if the scraper crashes, it has to scrape all the block since the latest one scraped?
"http_provider": "<your_http_provider>", // to fill
"ws_provider": "<your_ws_provider>", // to fill
}
}
module.exports = scraperConfig;