This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
generated from streamingfast/substreams-template
-
Notifications
You must be signed in to change notification settings - Fork 5
/
substreams.yaml
147 lines (128 loc) · 3.03 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
specVersion: v0.1.0
package:
name: "compoundv2_substreams"
version: v0.1.0
imports:
eth: https://github.com/streamingfast/sf-ethereum/releases/download/v0.10.2/ethereum-v0.10.4.spkg
protobuf:
files:
- compound.proto
importPaths:
- ./proto
binaries:
default:
type: wasm/rust-v1
file: ./target/wasm32-unknown-unknown/release/compoundv2_substreams.wasm
modules:
- name: map_accrue_interest
kind: map
initialBlock: 7710671
inputs:
- source: sf.ethereum.type.v1.Block
output:
type: proto:compound.v1.AccrueInterestList
- name: map_mint
kind: map
initialBlock: 7710671
inputs:
- source: sf.ethereum.type.v1.Block
- store: store_token
- store: store_price
output:
type: proto:compound.v1.MintList
- name: map_market_listed
kind: map
initialBlock: 7710671
inputs:
- source: sf.ethereum.type.v1.Block
output:
type: proto:compound.v1.MarketListedList
- name: map_market_totals
kind: map
inputs:
- map: map_accrue_interest
- store: store_token
- store: store_price
output:
type: proto:compound.v1.MarketTotalsList
- name: map_market_revenue_delta
kind: map
inputs:
- map: map_accrue_interest
- store: store_market_reserve_factor
- store: store_price
- store: store_token
output:
type: proto:compound.v1.MarketRevenueDeltaList
- name: store_token
kind: store
updatePolicy: set
valueType: proto:compound.v1.Token
inputs:
- map: map_market_listed
- name: store_market_reserve_factor
kind: store
initialBlock: 7710671
updatePolicy: set
valueType: string
inputs:
- source: sf.ethereum.type.v1.Block
- name: store_market_count
kind: store
updatePolicy: add
valueType: int64
inputs:
- map: map_market_listed
- name: store_mint_count
kind: store
updatePolicy: add
valueType: int64
inputs:
- map: map_mint
- name: store_oracle
kind: store
initialBlock: 7710671
updatePolicy: set
valueType: bytes
inputs:
- source: sf.ethereum.type.v1.Block
- name: store_price
kind: store
updatePolicy: set
valueType: string
inputs:
- map: map_accrue_interest
- store: store_oracle
- store: store_token
- name: store_market_listed
kind: store
updatePolicy: append
valueType: string
inputs:
- map: map_market_listed
- name: store_mint
kind: store
updatePolicy: set
valueType: proto:compound.v1.Mint
inputs:
- map: map_mint
- name: store_market_totals
kind: store
updatePolicy: set
valueType: string
inputs:
- map: map_market_totals
- name: store_protocol_totals
kind: store
updatePolicy: set
valueType: string
inputs:
- map: map_market_totals
- store: store_market_listed
- store: store_market_totals
- name: store_revenue
kind: store
updatePolicy: add
valueType: bigfloat
inputs:
- map: map_market_revenue_delta