-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
70 lines (70 loc) · 2.71 KB
/
subgraph.template.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RegistryDiamond
network: "{{network}}"
source:
address: "{{registryDiamond}}"
abi: RegistryDiamond
startBlock: {{ startBlock }}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- GeoWebParcel
abis:
- name: RegistryDiamond
file: ./node_modules/@geo-web/contracts/dist/abi/contracts/registry/interfaces/IRegistryDiamond.sol/IRegistryDiamond.json
- name: PCOLicenseDiamond
file: ./node_modules/@geo-web/contracts/dist/abi/contracts/pco-license/interfaces/IPCOLicenseDiamond.sol/IPCOLicenseDiamond.json
eventHandlers:
- event: ParcelClaimed(indexed uint256,indexed address)
handler: handleParcelClaimed
- event: ParcelClaimedV2(indexed uint256,indexed address)
handler: handleParcelClaimedV2
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleLicenseTransfer
- event: TokenURIUpdated(indexed uint256,string)
handler: handleTokenURIUpdated
file: ./src/mapping.ts
templates:
- kind: ethereum/contract
name: PCOLicenseDiamond
network: "{{network}}"
source:
abi: PCOLicenseDiamond
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Bid
- Bidder
abis:
- name: PCOLicenseDiamond
file: ./node_modules/@geo-web/contracts/dist/abi/contracts/pco-license/interfaces/IPCOLicenseDiamond.sol/IPCOLicenseDiamond.json
- name: ICFABasePCOV1
file: ./abi/ICFABasePCOV1.json
- name: ICFAPenaltyBidV1
file: ./abi/ICFAPenaltyBidV1.json
eventHandlers:
- event: BidAccepted(indexed address,indexed address,uint256)
handler: handleBidAccepted
- event: BidPlaced(indexed address,int96,uint256)
handler: handleBidEvent
- event: BidRejected(indexed address,indexed address,uint256)
handler: handleBidEvent
- event: PayerContributionRateUpdated(indexed address,int96)
handler: handlePayerContributionUpdate
- event: PayerForSalePriceUpdated(indexed address,uint256)
handler: handlePayerForSalePriceUpdate
- event: PayerContentHashUpdated(indexed address,bytes)
handler: handlePayerContentHashUpdate
- event: TransferTriggered(indexed address,indexed address,indexed address,uint256)
handler: handleTransferTriggered
- event: LicenseReclaimed(indexed address,uint256)
handler: handleLicenseReclaimed
file: ./src/mapping.ts