-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
50 lines (50 loc) · 1.6 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: BaoMasterFarmer
network: xdai
source:
address: "0xf712a82DD8e2Ac923299193e9d6dAEda2d5a32fd"
abi: BaoMasterFarmer
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- BaoMasterFarmer
- History
- Pool
- PoolHistory
- User
abis:
- name: BaoMasterFarmer
file: ./abis/BaoMasterFarmer.json
eventHandlers:
- event: Deposit(indexed address,indexed uint256,uint256)
handler: handleDeposit
- event: EmergencyWithdraw(indexed address,indexed uint256,uint256)
handler: handleEmergencyWithdraw
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: SendBaoReward(indexed address,indexed uint256,uint256,uint256)
handler: handleSendBaoReward
- event: Withdraw(indexed address,indexed uint256,uint256)
handler: handleWithdraw
callHandlers:
- function: add(uint256,address,bool)
handler: add
- function: set(uint256,uint256,bool)
handler: set
- function: massUpdatePools()
handler: massUpdatePools
- function: updatePool(uint256)
handler: updatePool
- function: setMigrator(address)
handler: setMigrator
- function: migrate(uint256)
handler: migrate
- function: dev(address)
handler: dev
file: ./src/BaoMasterFarmer.ts