-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
executable file
·79 lines (79 loc) · 2.52 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: User
network: mumbai
source:
address: "0x287c09dDAA242c6A3ff8a8E4CC0dCc2287403D99"
abi: User
startBlock: 29447348
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- User
- Post
abis:
- name: User
file: ./abis/User.json
eventHandlers:
- event: AddTag(address,string)
handler: handleAddTag
- event: SetBio(address,string)
handler: handleSetBio
- event: SetEmail(address,string)
handler: handleSetEmail
- event: SetEmailVerifiedData(address,string)
handler: handleSetEmailVerifiedData
- event: SetFingerScan(address,string)
handler: handleSetFingerScan
- event: SetFirstName(address,string)
handler: handleSetFirstName
- event: SetGovID(address,string)
handler: handleSetGovID
- event: SetLastName(address,string)
handler: handleSetLastName
- event: SetPictureNFT(address,address,uint256)
handler: handleSetPictureNFT
- event: SetPictureUpload(address,string)
handler: handleSetPictureUpload
- event: SetTelephone(address,string)
handler: handleSetTelephone
- event: SetTelephoneVerifiedData(address,string)
handler: handleSetTelephoneVerifiedData
- event: SetUsername(address,string)
handler: handleSetUsername
- event: Signup(uint256,address,string,string,string,string,string,string,address,uint256,string,string,string)
handler: handleSignup
file: ./src/user.ts
- kind: ethereum
name: Posts
network: mumbai
source:
address: "0x21C25552D5ef6cA92974dC44b021B0ceA8e8E192"
abi: Posts
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CreatePost
- DeletePost
- UpdateBody
- UpdatePost
abis:
- name: Posts
file: ./abis/Posts.json
eventHandlers:
- event: CreatePost(address,string,string,uint256,uint256,uint256)
handler: handleCreatePost
- event: DeletePost(address,uint256)
handler: handleDeletePost
- event: UpdateBody(address,uint256,string)
handler: handleUpdateBody
- event: UpdatePost(address,uint256,string)
handler: handleUpdatePost
file: ./src/posts.ts