-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.rinkeby.yaml
100 lines (100 loc) · 3.62 KB
/
subgraph.rinkeby.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
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: rinkeby
source:
address: "0x9C84391B443ea3a48788079a5f98e2EaD55c9309"
abi: Factory
startBlock: 6881181
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
- name: CRPFactory
file: ./abis/CRPFactory.json
- name: ConfigurableRightsPool
file: ./abis/ConfigurableRightsPool.json
eventHandlers:
- event: LOG_NEW_POOL(indexed address,indexed address)
handler: handleNewPool
templates:
- kind: ethereum/contract
name: Pool
network: rinkeby
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
- kind: ethereum/contract
name: CrpController
network: rinkeby
source:
abi: ConfigurableRightsPool
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
abis:
- name: ConfigurableRightsPool
file: ./abis/ConfigurableRightsPool.json
eventHandlers:
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleSetCrpController