-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubgraph.yaml
89 lines (89 loc) · 2.64 KB
/
subgraph.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
specVersion: 0.0.4
schema:
file: ./schema.graphql
features:
- grafting
graft:
base: QmWRzcHZRwgJGCtSiW1pGLs6aVYnYKeEeVBcke2jQ7qp2Q
block: 39122402
dataSources:
- kind: ethereum
name: Compoundor
network: bsc
source:
abi: Compoundor
address: "0x98eC492942090364AC0736Ef1A741AE6C92ec790"
startBlock: 26493597
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- AccountBalance
- Token
- Compound
- CompoundSession
abis:
- name: Compoundor
file: ./abis/Compoundor.json
eventHandlers:
- event: AutoCompounded(address,uint256,uint256,uint256,uint256,uint256,address,address)
handler: handleAutoCompounded
- event: BalanceAdded(address,address,uint256)
handler: handleBalanceAdded
- event: BalanceRemoved(address,address,uint256)
handler: handleBalanceRemoved
- event: TokenDeposited(address,uint256)
handler: handleTokenDeposited
- event: TokenWithdrawn(address,address,uint256)
handler: handleTokenWithdrawn
file: ./src/compoundor.ts
- kind: ethereum
name: AutoCompound3
network: bsc
source:
abi: AutoCompound3
address: "0x843fe45972f638a2e7065b8d8b54efcfed09b72b"
startBlock: 39122402
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- AccountBalance
- Token
- Compound
- CompoundSession
abis:
- name: AutoCompound3
file: ./abis/AutoCompound3.json
eventHandlers:
- event: AutoCompounded(address,uint256,uint256,uint256,uint256,uint256,address,address)
handler: handleAutoCompounded3
- event: BalanceAdded(uint256,address,uint256)
handler: handleBalanceAdded3
- event: BalanceRemoved(uint256,address,uint256)
handler: handleBalanceRemoved3
file: ./src/compoundor.ts
- kind: ethereum
name: NonfungiblePositionManager
network: bsc
source:
abi: NonfungiblePositionManager
address: "0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613"
startBlock: 39122402
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Operation
- Token
- Account
abis:
- name: NonfungiblePositionManager
file: ./abis/NonfungiblePositionManager.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
file: ./src/compoundor.ts