-
Notifications
You must be signed in to change notification settings - Fork 4
/
subgraph.yaml
131 lines (131 loc) · 4.37 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
specVersion: 0.0.6
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: BufferBinaryOptions
network: arbitrum-one
source:
abi: BufferBinaryOptions
startBlock: 56585555
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- UserOptionData
- OptionContract
abis:
- name: BufferBinaryOptions
file: ./abis/BufferBinaryOptions.json
- name: BinaryPool
file: ./abis/BinaryPool.json
- name: BufferRouter
file: ./abis/BufferRouter.json
eventHandlers:
- event: Create(indexed address,indexed uint256,uint256,uint256)
handler: handleCreate
- event: Expire(indexed uint256,uint256,uint256)
handler: handleExpire
- event: Exercise(indexed address,indexed uint256,uint256,uint256)
handler: handleExercise
- event: UpdateReferral(address,address,bool,uint256,uint256,uint256,string)
handler: handleUpdateReferral
- event: Pause(bool)
handler: handlePause
file: ./src/mapping.ts
- kind: ethereum/contract
name: BufferRouter
network: arbitrum-one
source:
address: "0x0e0A1241C9cE6649d5D30134a194BA3E24130305"
abi: BufferRouter
startBlock: 56585555
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- UserOptionData
abis:
- name: BufferBinaryOptions
file: ./abis/BufferBinaryOptions.json
- name: BufferRouter
file: ./abis/BufferRouter.json
eventHandlers:
- event: InitiateTrade(indexed address,uint256,uint256)
handler: handleInitiateTrade
- event: CancelTrade(indexed address,uint256,string)
handler: handleCancelTrade
- event: OpenTrade(indexed address,uint256,uint256)
handler: handleOpenTrade
file: ./src/mapping.ts
- kind: ethereum/contract
name: BinaryPool
network: arbitrum-one
source:
address: "0x6Ec7B10bF7331794adAaf235cb47a2A292cD9c7e"
abi: BinaryPool
startBlock: 48022251
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- UserOptionData
abis:
- name: BinaryPool
file: ./abis/BinaryPool.json
- name: USDC
file: ./abis/USDC.json
eventHandlers:
- event: Provide(indexed address,uint256,uint256)
handler: handleProvide
- event: Withdraw(indexed address,uint256,uint256)
handler: handleWithdraw
- event: Profit(indexed uint256,uint256)
handler: handleProvide
- event: Loss(indexed uint256,uint256)
handler: handleWithdraw
file: ./src/mapping.ts
- kind: ethereum/contract
name: USDC
network: arbitrum-one
source:
address: "0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8"
abi: USDC
startBlock: 48022251
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
abis:
- name: USDC
file: ./abis/USDC.json
entities:
- UserOptionData
eventHandlers:
- event: Unpause()
handler: handleProvide
file: ./src/mapping.ts
- kind: ethereum/contract
name: ERC20
network: arbitrum-one
source:
address: "0x1A5B0aaF478bf1FDA7b934c76E7692D722982a6D"
abi: ERC20
startBlock: 25921235
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- BFRHolder
- BFRHolderBalance
abis:
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/BFRmapping.ts