-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.mjs
66 lines (65 loc) · 1.49 KB
/
config.mjs
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
import * as blockLogs from "@attestate/crawler-call-block-logs";
export default {
path: [
{
name: "call-block-logs",
coordinator: {
archive: false,
module: blockLogs.state,
interval: 5000,
},
extractor: {
module: blockLogs.extractor,
args: {
start: 16579759,
address: "0x0bC2A24ce568DAd89691116d5B34DEB6C203F342",
topics: [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
],
blockspan: 1000,
},
output: {
name: "call-block-logs-extraction",
},
},
transformer: {
module: blockLogs.transformer,
args: {},
input: {
name: "call-block-logs-extraction",
},
output: {
name: "call-block-logs-transformation",
},
},
loader: {
module: blockLogs.loader,
input: {
name: "call-block-logs-transformation",
},
output: {
name: "call-block-logs-load",
},
},
end: () => console.log("crawl ended"),
},
],
queue: {
options: {
concurrent: 100,
},
},
endpoints: {
//[env.RPC_HTTP_HOST]: {
// timeout: 10_000,
// requestsPerUnit: 25,
// unit: "second",
//},
"https://ipfs.io": {
timeout: 6000,
requestsPerUnit: 50,
unit: "second",
},
},
};