forked from asyncart/async-subgraph_v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
60 lines (60 loc) · 2.13 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: ganache
source:
address: "0x13759fA52EBf752aF1bbe4b6Fd6A09B6839d737c"
abi: Contract
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Approval
- ApprovalForAll
- ArtistSecondSalePercentUpdated
- BidProposed
- BidWithdrawn
- BuyPriceSet
- ControlLeverUpdated
- CreatorWhitelisted
- PermissionUpdated
- PlatformAddressUpdated
- PlatformSalePercentageUpdated
- TokenSale
- Transfer
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
- event: ArtistSecondSalePercentUpdated(uint256)
handler: handleArtistSecondSalePercentUpdated
- event: BidProposed(uint256,uint256,address)
handler: handleBidProposed
- event: BidWithdrawn(uint256)
handler: handleBidWithdrawn
- event: BuyPriceSet(uint256,uint256)
handler: handleBuyPriceSet
- event: ControlLeverUpdated(uint256,uint256,int256,uint256[],int256[],int256[])
handler: handleControlLeverUpdated
- event: CreatorWhitelisted(uint256,uint256,address)
handler: handleCreatorWhitelisted
- event: PermissionUpdated(uint256,address,address)
handler: handlePermissionUpdated
- event: PlatformAddressUpdated(address)
handler: handlePlatformAddressUpdated
- event: PlatformSalePercentageUpdated(uint256,uint256,uint256)
handler: handlePlatformSalePercentageUpdated
- event: TokenSale(uint256,uint256,address)
handler: handleTokenSale
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/mapping.ts