-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
109 lines (109 loc) · 3.72 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
specVersion: 0.0.2
description: MVP of a dApp for buyer order aggregation and supplier reverse auctions.
repository: https://github.com/j-mars/doublechain-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ListingFactory
network: mainnet
source:
address: "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"
abi: ListingFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings/listingFactory.ts
entities:
- Listing
abis:
- name: ListingFactory
file: ./src/abi/ListingFactory.json
eventHandlers:
- event: ListingProduced(indexed address,indexed address)
handler: handleListingProduced
- kind: ethereum/contract
name: ListingInteraction
network: mainnet
source:
address: "0x254dffcd3277C0b1660F6d42EFbB754edaBAbC2B"
abi: ListingInteraction
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings/listingInteraction.ts
entities:
- Listing
- Buyer
- Supplier
- User
- Bid
abis:
- name: ListingInteraction
file: ./src/abi/ListingInteraction.json
eventHandlers:
- event: UserAdded(indexed address,string)
handler: handleUserAdded
- event: UserRemoved(indexed address)
handler: handleUserRemoved
- event: NewBuyer(indexed address,indexed address,uint256,uint256)
handler: handleNewBuyer
- event: LeftListing(indexed address,indexed address,uint256)
handler: handleLeftListing
- event: SupplierJoined(indexed address,indexed address,uint256,bytes32)
handler: handleSupplierJoined
- event: DistributionComplete(indexed address,uint256)
handler: handleDistributionComplete
- kind: ethereum/contract
name: TrackingToken
network: mainnet
source:
address: "0xCfEB869F69431e42cdB54A4F4f105C19C080A601"
abi: TrackingToken
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings/trackingToken.ts
entities:
- Token
abis:
- name: TrackingToken
file: ./src/abi/TrackingToken.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
templates:
# These data sources templates exist to support the different flags that a token could specify- kind: ethereum/contract
- kind: ethereum/contract
name: AuctionListing
network: mainnet
source:
abi: AuctionListing
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings/auctionListing.ts
entities:
- Listing
- Supplier
- Bid
abis:
- name: AuctionListing
file: ./src/abi/AuctionListing.json
eventHandlers:
- event: ListingBuilt(indexed address,bool,address,uint64,uint64,uint64,uint64,uint64,uint64,uint256,uint32,string)
handler: handleListingBuilt
- event: RevealMade(indexed address,indexed address,uint256,uint256)
handler: handleRevealMade
- event: RefundMade(indexed address,indexed address,uint256)
handler: handleRefundMade
- event: WinnerUpdated(indexed address,indexed address,uint256)
handler: handleWinnerUpdated
- event: InvalidBid(indexed address,indexed address,uint256)
handler: handleInvalidBid
- event: FullWithdrawal(indexed address,indexed address,uint256)
handler: handleFullWithdrawal