-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsubgraph.yaml
75 lines (75 loc) · 3.22 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
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: FleekNFA
network: mainnet # Works with the Anvil QA network also
source:
address: "0x1CfD8455F189c56a4FBd81EB7D4118DB04616BA8" # <- Proxy Contract
abi: FleekNFA
# startBlock: 8671990
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Approval
- ApprovalForAll
- MetadataUpdate
- NewMint
- Transfer
- Token
- TokenOwner
- TokenController
- CollectionOwner
- Collection
- GithubRepository
- AccessPoint
- ChangeAccessPointCreationStatus
- ChangeAccessPointScore
- ChangeAccessPointNameVerify
- ChangeAccessPointContentVerify
- ChangeAccessPointAutoApproval
abis:
- name: FleekNFA
file: ../contracts/deployments/qanet/FleekERC721.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
# Token Events
- event: MetadataUpdate(indexed uint256,string,string,indexed address)
handler: handleMetadataUpdateWithStringValue
- event: MetadataUpdate(indexed uint256,string,string[4],indexed address)
handler: handleMetadataUpdateWithMultipleStringValues
- event: MetadataUpdate(indexed uint256,string,uint24,indexed address)
handler: handleMetadataUpdateWithIntValue
- event: MetadataUpdate(indexed uint256,string,bool,indexed address)
handler: handleMetadataUpdateWithBooleanValue
- event: NewMint(indexed uint256,string,string,string,string,string,string,string,string,uint24,bool,indexed address,indexed address,address)
handler: handleNewMint
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
# Access Control Events
- event: TokenRoleChanged(indexed uint256,indexed uint8,indexed address,bool,address)
handler: handleTokenRoleChanged
- event: TokenRolesCleared(indexed uint256,address)
handler: handleTokenRolesCleared
- event: CollectionRoleChanged(indexed uint8,indexed address,bool,address)
handler: handleCollectionRoleChanged
- event: Initialized(uint8)
handler: handleInitialized
# Access Point Events
- event: ChangeAccessPointContentVerify(string,uint256,indexed bool,indexed address)
handler: handleChangeAccessPointContentVerify
- event: ChangeAccessPointNameVerify(string,uint256,indexed bool,indexed address)
handler: handleChangeAccessPointNameVerify
- event: ChangeAccessPointScore(string,indexed uint256,uint256,indexed address)
handler: handleChangeAccessPointScore
- event: ChangeAccessPointCreationStatus(string,uint256,uint8,indexed address)
handler: handleChangeAccessPointCreationStatus
- event: NewAccessPoint(string,indexed uint256,indexed address)
handler: handleNewAccessPoint
file: ./src/fleek-nfa.ts
specVersion: 0.0.5