-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
38 lines (38 loc) · 1.41 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: ropsten
source:
address: "0x8D1eD3DaB2dE4622b7eD38baB4A9918256CF7B30"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Creation
- Order
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: Created(indexed address,string,string,indexed uint256,uint256)
handler: handleCreated
- event: NewOrder(indexed address,indexed address,string,string,indexed uint256,uint256,string,uint256)
handler: handleNewOrder
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Payment(indexed address,uint256,uint256)
handler: handlePayment
- event: PaymentContractChanged(indexed address)
handler: handlePaymentContractChanged
- event: Purchased(indexed address,indexed address,string,string,indexed uint256,uint256,uint256)
handler: handlePurchased
- event: RoleGranted(indexed bytes32,indexed address,indexed address)
handler: handleRoleGranted
- event: RoleRevoked(indexed bytes32,indexed address,indexed address)
handler: handleRoleRevoked
file: ./src/mapping.ts