-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubgraph.yaml
90 lines (90 loc) · 2.64 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
specVersion: 0.0.4
description: Otterspace badges
repository: https://github.com/otterspace-xyz/badges-subgraphs
schema:
file: ./schema.graphql
features:
- ipfsOnEthereumContracts
dataSources:
- kind: ethereum/contract
name: Raft
network: goerli
source:
abi: Raft
address: "0xBb8997048e5F0bFe6C9D6BEe63Ede53BD0236Bb2"
startBlock: 7456732
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Transfer
abis:
- name: Raft
file: ./abis/Raft.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleRaftTransfer
- event: MetadataUpdate(indexed uint256)
handler: handleRaftMetadataUpdate
- event: AdminUpdate(indexed uint256,indexed address,bool)
handler: handleAdminUpdate
file: ./src/mapping.ts
- kind: ethereum/contract
name: Badges
network: goerli
source:
abi: Badges
address: "0xa6773847d3D2c8012C9cF62818b320eE278Ff722"
startBlock: 7456664
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- BadgeSpec
- Badge
abis:
- name: Badges
file: ./abis/Badges.json
eventHandlers:
- event: SpecCreated(indexed address,string,indexed uint256,indexed address)
handler: handleSpecCreated
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleBadgeTransfer
- event: BadgeRevoked(indexed uint256,indexed address,indexed uint8)
handler: handleBadgeRevoked
- event: BadgeReinstated(indexed uint256,indexed address)
handler: handleBadgeReinstated
- event: RefreshMetadata(string[],address)
handler: handleRefreshSpecMetadata
- event: MetadataUpdate(indexed uint256,indexed string,indexed address)
handler: handleBadgeMetadataUpdated
file: ./src/mapping.ts
templates:
- name: RaftMetadata
kind: file/ipfs
mapping:
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/fileMapping.ts
handler: handleRaftMetadata
entities:
- RaftMetadata
abis:
- name: Raft
file: ./abis/Raft.json
network: goerli
- name: SpecMetadata
kind: file/ipfs
mapping:
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/fileMapping.ts
handler: handleSpecMetadata
entities:
- SpecMetadata
abis:
- name: Badges
file: ./abis/Badges.json
network: goerli