-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
35 lines (35 loc) · 990 Bytes
/
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: CryptoPunks
network: mainnet
source:
address: "0xb47e3cd837dDF8e4c57F05d70Ab865de6e193BBB"
abi: CryptoPunks
startBlock: 3914495
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Assign
- Transfer
- PunkTransfer
- PunkOffered
- PunkBidEntered
- PunkBidWithdrawn
- PunkBought
- PunkNoLongerForSale
abis:
- name: CryptoPunks
file: ./abis/CryptoPunks.json
eventHandlers:
- event: Assign(indexed address,uint256)
handler: handleAssign
- event: PunkTransfer(indexed address,indexed address,uint256)
handler: handlePunkTransfer
- event: PunkBought(indexed uint256,uint256,indexed address,indexed address)
handler: handlePunkBought
file: ./src/mapping.ts