-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.sample.js
67 lines (62 loc) · 1.47 KB
/
config.sample.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
67
/**
* Types of configuration present here:
* - Configuration common for all commands
* - Configuration too verbose for CLI
* - Sensitive information
*
* neume will read values from .env. Therefore, you can do
* env.RPC_API_KEYS
*
*/
import { env } from "process";
const rpcHosts = [
{ url: "https://rpc.ankr.com/eth" },
{ url: "https://cloudflare-eth.com/" },
];
/**
* A list of strategies to enable. Remove entries from the list to run
* selected strategies.
*
* Note:
* - The name should match the class name of the strategy.
* - The name is case-sensitive.
* */
export const strategies = ["Sound", "SoundProtocol", "MintSongsV2", "CatalogV2", "Zora"];
/**
* Configuration for neume
*
* TypeScipt type for configuration can be found at:
* https://github.com/neume-network/crawler/blob/main/types.ts#L25
*/
export const config = {
rpc: rpcHosts,
arweave: {
httpsGateway: "https://arweave.net",
},
crawlStep: 5000,
getLogsBlockSpanSize: 799,
getLogsAddressSize: 100,
breatheTimeMS: 900_000, // 15 mins
worker: {
queue: {
options: {
concurrent: 200,
},
},
endpoints: {
...rpcHosts.reduce((prevValue, host) => {
prevValue[host.url] = {
timeout: 120_000,
requestsPerUnit: 300,
unit: "second",
};
return prevValue;
}, {}),
"https://arweave.net": {
timeout: 120_000,
requestsPerUnit: 1000,
unit: "second",
},
},
},
};