-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yaml
86 lines (79 loc) · 2.07 KB
/
config.yaml
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
# Project name and description
project_name: "cherry_event_indexer"
description: "Cherry event indexing and data processing pipeline"
# Data source configuration
data_source:
- kind: hypersync
url: "https://eth.hypersync.xyz"
token: ${HYPERSYNC_API_TOKEN}
# Streams configuration
streams:
- kind: block
include_transactions: true
include_logs: false
column_cast:
transaction:
value: "String"
block_number: "Int64"
hex_encode:
transaction: "Prefixed"
block: null
log: "HexEncode"
hash: [] # process all blocks regardless of hash
mapping: "polars"
state:
path: "state/block_stream.json"
resume: true
- kind: event
name: "Approval"
signature: "Approval(address indexed _owner, address indexed _spender, uint256 _value)"
from_block: 21653123
to_block: null
batch_size: 500000
topics: []
address: []
include_blocks: true
include_transactions: false
include_traces: false
column_cast:
value: "float64" # Simple string value for single field
mapping: "polars"
state:
path: "state/approval_stream.json"
resume: true
- kind: event
name: "Transfer"
signature: "Transfer(address indexed from, address indexed to, uint256 amount)"
from_block: 21653123
to_block: null
batch_size: 1000000
topics: []
address: []
include_blocks: true
include_transactions: false
include_traces: false
column_cast:
amount: "float64"
mapping: "polars"
state:
path: "state/transfer_stream.json"
resume: true
# Output configuration
output:
- kind: s3
endpoint: "localhost:9000"
access_key: "minioadmin"
secret_key: "minioadmin"
bucket: "blockchain-data"
secure: false
region: null
batch_size: 1000000
- kind: local_parquet
path: "data"
compression: "snappy"
batch_size: 500000
# Contracts configuration
contracts:
identifier_signatures:
- name: "ERC20_Approval"
signature: "Approval(address indexed _owner, address indexed _spender, uint256 _value)"