This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
substreams.yaml
78 lines (67 loc) · 1.65 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
specVersion: v0.1.0
package:
name: solana_spl_transfers
version: v0.5.4
url: https://github.com/streamingfast/substreams-playground
doc: |
Solana SPL Token Transfers stream
This streams out SPL token transfers to the nearest human being.
imports:
sol: https://github.com/streamingfast/sf-solana/releases/download/v0.1.0/solana-v0.1.0.spkg
binaries:
default:
type: wasm/rust-v1
file: ../../target/wasm32-unknown-unknown/release/sol_spl_tokens.wasm
protobuf:
files:
- solana_spl.proto
importPaths:
- ./proto
modules:
- name: map_mints
kind: map
initialBlock: 31313760
inputs:
- source: sf.solana.type.v1.Block
output:
type: proto:solana.spl.v1.Mints
- name: store_mints
kind: store
updatePolicy: set
valueType: proto:solana.spl.v1.Mint
inputs:
- map: map_mints
- name: map_accounts
kind: map
initialBlock: 31313760
inputs:
- source: sf.solana.type.v1.Block
output:
type: proto:sf.solana.type.v1.Accounts
- name: store_accounts
kind: store
updatePolicy: set
valueType: proto:sf.solana.type.v1.Account
inputs:
- map: map_accounts
- name: map_transfers
kind: map
initialBlock: 31313760
inputs:
- source: sf.solana.type.v1.Block
- store: store_mints
- store: store_accounts
output:
type: proto:solana.spl.v1.TokenTransfers
- name: store_mint_native_volumes
kind: store
updatePolicy: add
valueType: bigint
inputs:
- map: map_transfers
- name: store_mint_decimal_volumes
kind: store
updatePolicy: add
valueType: bigfloat
inputs:
- map: map_transfers