-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.template.yaml
136 lines (126 loc) · 3.98 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
specVersion: 0.0.2
description: Transfer events generated from the root contracts on ethereum
repository: https://github.com/GraphicalDot/rootChainTransfers
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: RootChainManager
network: {{network}}
source:
address: "{{contracts.rootChainManager.address}}"
abi: RootChainManager
startBlock: {{contracts.rootChainManager.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping/rootchainmanager.ts
entities:
- Rootexit
abis:
- name: RootChainManager
file: ./abis/RootChainManager.json
callHandlers:
- function: exit(bytes)
handler: handleRootChainManagerExits
- kind: ethereum/contract
name: ERC20Predicate
network: {{network}}
source:
address: "{{contracts.erc20Predicate.address}}"
abi: ERC20Predicate
startBlock: {{contracts.erc20Predicate.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping/erc20-predicate.ts
entities:
- Withdrawal
abis:
- name: ERC20Predicate
file: ./abis/ERC20Predicate.json
callHandlers:
- function: exitTokens(address,address,bytes)
handler: handleNewERC20PredicateTransfer
- kind: ethereum/contract
name: ERC721Predicate
network: {{network}}
source:
address: "{{contracts.erc721Predicate.address}}"
abi: ERC721Predicate
startBlock: {{contracts.erc721Predicate.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping/erc721-predicate.ts
entities:
- Withdrawal
abis:
- name: ERC721Predicate
file: ./abis/ERC721Predicate.json
callHandlers:
- function: exitTokens(address,address,bytes)
handler: handleNewERC721PredicateTransfer
- kind: ethereum/contract
name: ERC1155Predicate
network: {{network}}
source:
address: "{{contracts.erc1155Predicate.address}}"
abi: ERC1155Predicate
startBlock: {{contracts.erc1155Predicate.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping/erc1155-predicate.ts
entities:
- Withdrawal
abis:
- name: ERC1155Predicate
file: ./abis/ERC1155Predicate.json
callHandlers:
- function: exitTokens(address,address,bytes)
handler: handleNewERC1155PredicateTransfer
- kind: ethereum/contract
name: EtherPredicate
network: {{network}}
source:
address: "{{contracts.etherPredicate.address}}"
abi: EtherPredicate
startBlock: {{contracts.etherPredicate.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping/eth-predicate.ts
entities:
- Withdrawal
abis:
- name: EtherPredicate
file: ./abis/EtherPredicate.json
callHandlers:
- function: exitTokens(address,address,bytes)
handler: handleNewEtherPredicateTransfer
- kind: ethereum/contract
name: MintableERC721Predicate
network: {{network}}
source:
address: "{{contracts.erc721MintablePredicate.address}}"
abi: MintableERC721Predicate
startBlock: {{contracts.erc721MintablePredicate.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mapping/erc721-mintable-predicate.ts
entities:
- Withdrawal
abis:
- name: MintableERC721Predicate
file: ./abis/MintableERC721Predicate.json
callHandlers:
- function: exitTokens(address,address,bytes)
handler: handleNewMintableERC721PredicateTransfer