-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
51 lines (51 loc) · 1.36 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Game
network: mumbai
source:
address: '0xa1b862d262a827a865143945cB9601Bf5c388fA0'
abi: Game
startBlock: 37582695
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- BasketId
- RebalanceBasket
- Transfer
abis:
- name: Game
file: ./abis/Game.json
eventHandlers:
- event: BasketId(address,uint256,uint256,string)
handler: handleBasketId
- event: RebalanceBasket(uint256,uint256,int256,int256)
handler: handleRebalanceBasket
file: ./src/game.ts
- kind: ethereum
name: Controller
network: mumbai
source:
address: '0xa9112CbbD88e7fa56AA27c0F11257e4484c36a82'
abi: Controller
startBlock: 37330777
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- AddProtocol
- AddVault
abis:
- name: Controller
file: ./abis/Controller.json
eventHandlers:
- event: AddProtocol(string,uint256,address,address,address,address,uint256)
handler: handleAddProtocol
- event: AddVault(uint256,string)
handler: handleAddVault
file: ./src/controller.ts