-
Notifications
You must be signed in to change notification settings - Fork 6
/
subgraph.yaml
32 lines (32 loc) · 1.01 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
specVersion: 0.0.2
description: CryptopunkRent
repository: https://github.com/re-nft/cryptopunks
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: CryptopunkRent
network: mainnet
source:
address: "0xb47e3cd837ddf8e4c57f05d70ab865de6e193bbb"
abi: Cryptopunks
startBlock: 3000000
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- CryptopunkRent
abis:
- name: Cryptopunks
file: ./contract/Cryptopunks.json
eventHandlers:
- event: PunkOffered(indexed uint256,uint256,indexed address)
handler: handlePunkOffered
- event: PunkBought(indexed uint256,uint256,indexed address,indexed address)
handler: handlePunkBought
- event: PunkTransfer(indexed address,indexed address,uint256)
handler: handlePunkTransfer
- event: Assign(indexed address,uint256)
handler: handleAssign
file: ./mappings/core.ts