-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubstreams.yaml
82 lines (72 loc) · 1.92 KB
/
substreams.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
specVersion: v0.1.0
package:
name: inscriptions
version: v0.1.0
url: https://github.com/pinax-network/substreams-inscriptions
doc: Inscriptions
imports:
database_change: https://github.com/streamingfast/substreams-database-change/releases/download/v1.3.1/substreams-database-change-v1.3.1.spkg
sql: https://github.com/streamingfast/substreams-sink-sql/releases/download/protodefs-v1.0.3/substreams-sink-sql-protodefs-v1.0.3.spkg
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/inscriptions.wasm
protobuf:
files:
- inscriptions.proto
importPaths:
- ./proto/v1
networks:
mainnet:
initialBlock:
balance_changes:db_out: 17502296
eosevm:
initialBlock:
balance_changes:db_out: 21385639
avalanche:
initialBlock:
balance_changes:db_out: 31918263
modules:
- name: index_transactions
kind: blockIndex
inputs:
- map: map_transactions
output:
type: proto:sf.substreams.index.v1.Keys
- name: map_transactions
kind: map
doc: Extracts Inscription transactions from the block
inputs:
- source: sf.ethereum.type.v2.Block
output:
type: proto:inscriptions.types.v1.Transactions
- name: map_operations
kind: map
doc: Extracts Inscription operation events from the block
inputs:
- map: map_transactions
blockFilter:
module: index_transactions
query:
string: inscriptions
params: false
output:
type: proto:inscriptions.types.v1.Operations
- name: db_out
kind: map
inputs:
- source: sf.substreams.v1.Clock
- map: map_operations
output:
type: proto:sf.substreams.sink.database.v1.DatabaseChanges
sink:
module: db_out
type: sf.substreams.sink.sql.v1.Service
config:
schema: "./schema.sql"
engine: clickhouse
postgraphile_frontend:
enabled: false
pgweb_frontend:
enabled: false
network: avalanche