-
Notifications
You must be signed in to change notification settings - Fork 2
/
subgraph.yaml
100 lines (98 loc) · 3.42 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Registry
network: mainnet
source:
address: "0x94106cA9c7E567109A1D39413052887d1F412183"
abi: Registry
startBlock: 15598432
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Registry
- AuthorityUser
- RoleUser
- Role
- RoleCapability
- Capability
abis:
- name: Registry
file: ./abis/Registry.json
eventHandlers:
# Passlisted addresses
- event: FactoryApprovalSet(indexed address,bool)
handler: handleFactoryApprovalSet
- event: SwapWrapperStatusSet(indexed address,bool)
handler: handleSwapWrapperStatusSet
- event: PortfolioStatusSet(indexed address,bool)
handler: handlePortfolioStatusSet
# Authority and role management
- event: OwnershipChanged(indexed address,indexed address)
handler: handleOwnershipChanged
- event: UserRoleUpdated(indexed address,indexed uint8,bool)
handler: handleUserRoleUpdated
- event: PublicCapabilityUpdated(indexed address,indexed bytes4,bool)
handler: handlePublicCapabilityUpdated
- event: RoleCapabilityUpdated(indexed uint8,indexed address,indexed bytes4,bool)
handler: handleRoleCapabilityUpdated
file: ./src/mappings/registry.ts
- kind: ethereum
name: OrgFundFactory
network: mainnet
source:
address: "0x10fD9348136dCea154F752fe0B6dB45Fc298A589"
abi: OrgFundFactory
startBlock: 15598432
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NdaoEntity
abis:
- name: OrgFundFactory
file: ./abis/OrgFundFactory.json
- name: Org
file: ./abis/Org.json
eventHandlers:
- event: EntityDeployed(indexed address,indexed uint8,indexed address)
handler: handleEntityDeployed
file: ./src/mappings/org-fund-factory.ts
templates:
- kind: ethereum/contract
name: NdaoEntity
network: mainnet
source:
abi: NdaoEntity
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NdaoEntity
abis:
- name: NdaoEntity
file: ./abis/NdaoEntity.json
eventHandlers:
- event: EntityDonationReceived(indexed address,indexed address,indexed address,uint256,uint256,uint256)
handler: handleEntityDonationReceived
- event: EntityValueTransferred(indexed address,indexed address,uint256,uint256)
handler: handleEntityValueTransferred
- event: EntityBalanceReconciled(indexed address,uint256,uint256)
handler: handleEntityBalanceReconciled
- event: EntityBalanceCorrected(indexed address,uint256)
handler: handleEntityBalanceCorrected
- event: EntityValuePaidOut(indexed address,indexed address,uint256,uint256)
handler: handleEntityValuePaidOut
- event: EntityDeposit(indexed address,uint256,uint256)
handler: handleEntityDeposit
- event: EntityRedeem(indexed address,uint256,uint256)
handler: handleEntityRedeem
- event: EntityEthReceived(indexed address,uint256)
handler: handleEntityEthReceived
file: ./src/mappings/ndao-entity.ts