-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.template.yaml
68 lines (68 loc) · 2.69 KB
/
subgraph.template.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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: ValoremOptionsClearinghouse
network: {{network}}
source:
address: "{{ValoremOptionsClearinghouseAddress}}"
abi: ValoremOptionsClearinghouse
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ApprovalForAll
- ClaimRedeemed
- ExerciseAssigned
- FeeAccrued
- FeeSwept
- NewChain
- OptionsExercised
- OptionsWritten
- TransferBatch
- TransferSingle
- URI
abis:
- name: ValoremOptionsClearinghouse
file: ./abis/ValoremOptionsClearinghouse.json
- name: IERC1155MetadataURI
file: ./abis/IERC1155MetadataURI.json
- name: UniswapV3Factory
file: ./abis/UniswapV3Factory.json
- name: UniswapV3Pool
file: ./abis/UniswapV3Pool.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: BucketAssignedExercise(indexed uint256,indexed uint96,uint112)
handler: handleBucketAssignedExercise
- event: BucketWrittenInto(indexed uint256,indexed uint256,indexed uint96,uint112)
handler: handleBucketWrittenInto
- event: ClaimRedeemed(indexed uint256,indexed uint256,indexed address,uint256,uint256)
handler: handleClaimRedeemed
- event: FeeAccrued(indexed uint256,indexed address,indexed address,uint256)
handler: handleFeeAccrued
- event: FeeSwept(indexed address,indexed address,uint256)
handler: handleFeeSwept
- event: FeeSwitchUpdated(address,bool)
handler: handleFeeSwitchUpdated
- event: FeeToUpdated(indexed address)
handler: handleFeeToUpdated
- event: NewOptionType(uint256,indexed address,indexed address,uint96,uint96,uint40,indexed uint40)
handler: handleNewOptionType
- event: OptionsExercised(indexed uint256,indexed address,uint112)
handler: handleOptionsExercised
- event: OptionsWritten(indexed uint256,indexed address,indexed uint256,uint112)
handler: handleOptionsWritten
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: URI(string,indexed uint256)
handler: handleURI
file: ./src/mapping.ts