-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.homestead.yaml
executable file
·81 lines (81 loc) · 3.04 KB
/
subgraph.homestead.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
specVersion: 0.0.2
description: Symmetric is a non-custodial portfolio manager, liquidity provider, and price sensor.
repository: https://github.com/centfinance/Symmetric.Subgraph.git
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: homestead
source:
address: "0x8f7F78080219d4066A8036ccD30D588B416a40DB"
abi: Factory
startBlock: 16337546
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/factory.ts
entities:
- Symmetric
abis:
- name: Factory
file: ./abis/BFactory.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
templates:
- kind: ethereum/contract
name: Pool
network: homestead
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
- Symmetric
- Swap
abis:
- name: Pool
file: ./abis/BPool.json
- name: CToken
file: ./abis/CToken.json
- name: CTokenBytes
file: ./abis/CTokenBytes32.json
eventHandlers:
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x34e1990700000000000000000000000000000000000000000000000000000000"
handler: handleSetSwapFee
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x92eefe9b00000000000000000000000000000000000000000000000000000000"
handler: handleSetController
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x49b5955200000000000000000000000000000000000000000000000000000000"
handler: handleSetPublicSwap
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x4bb278f300000000000000000000000000000000000000000000000000000000"
handler: handleFinalize
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0x3fdddaa200000000000000000000000000000000000000000000000000000000"
handler: handleRebind
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0xe4e1e53800000000000000000000000000000000000000000000000000000000"
handler: handleRebind
- event: LOG_CALL(indexed bytes4,indexed address,bytes)
topic0: "0xcf5e7bd300000000000000000000000000000000000000000000000000000000"
handler: handleUnbind
- event: LOG_JOIN(indexed address,indexed address,uint256)
handler: handleJoinPool
- event: LOG_EXIT(indexed address,indexed address,uint256)
handler: handleExitPool
- event: LOG_SWAP(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleSwap
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
callHandlers:
- function: gulp(address)
handler: handleGulp