This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsubgraph.yaml
77 lines (77 loc) · 2.51 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
specVersion: 0.0.1
description: Gitcoin subgraph
repository: https://github.com/santteegt/gitcoin-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: mainnet
source:
address: "0x2af47a65da8cd66729b4209c22017d6a5c2d2400"
abi: Contract
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
# - BountyIssued
# - BountyActivated
# - BountyFulfilled
# - FulfillmentUpdated
- FulfillmentAccepted
# - BountyKilled
# - ContributionAdded
# - DeadlineExtended
# - BountyChanged
# - IssuerTransferred
# - PayoutIncreased
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
# - event: BountyIssued(uint256)
# handler: handleBountyIssued
# - event: BountyActivated(uint256,address)
# handler: handleBountyActivated
# - event: BountyFulfilled(uint256,address,uint256)
# handler: handleBountyFulfilled
# - event: FulfillmentUpdated(uint256,uint256)
# handler: handleFulfillmentUpdated
- event: FulfillmentAccepted(uint256,indexed address,indexed uint256)
handler: handleFulfillmentAccepted
# - event: BountyKilled(uint256,address)
# handler: handleBountyKilled
# - event: ContributionAdded(uint256,address,uint256)
# handler: handleContributionAdded
# - event: DeadlineExtended(uint256,uint256)
# handler: handleDeadlineExtended
# - event: BountyChanged(uint256)
# handler: handleBountyChanged
# - event: IssuerTransferred(uint256,address)
# handler: handleIssuerTransferred
# - event: PayoutIncreased(uint256,uint256)
# handler: handlePayoutIncreased
file: ./src/mapping.ts
- kind: ethereum/contract
name: Kudos
network: mainnet
source:
address: "0x2aea4add166ebf38b63d09a75de1a7b94aa24163"
abi: Kudos
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Kudo
abis:
- name: Kudos
file: ./abis/Kudos.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleKudosTransfer
callHandlers:
- function: mint(address,uint256,uint256,string)
handler: handleMint
file: ./src/mappingKudos.ts