-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
161 lines (161 loc) · 4.75 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
specVersion: 0.0.8
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: CardFactory
network: mainnet
source:
address: "0x37aab22019448859fc255e6e353a1baf2c05e6bb"
startBlock: 3678409
abi: CardFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CardHolder
- CardBalance
- CardType
abis:
- name: CardFactory
file: ./abis/CardFactory.json
callHandlers:
- function: CreateCard(uint256,string,string,string,string)
handler: handleCreateCard
file: ./src/mapping.ts
- kind: ethereum/contract
name: SeventeenB
network: mainnet
source:
address: "0xE0B5E6F32d657e0e18d4B3E801EBC76a5959e123"
startBlock: 3902087
abi: ERC20
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CardHolder
- CardBalance
- CardType
abis:
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
callHandlers:
- function: transfer(address,uint256)
handler: handleDirectTransfer
file: ./src/seventeenb-mapping.ts
- kind: ethereum/contract
name: ERC1155
network: mainnet
source:
address: "0x73da73ef3a6982109c4d5bdb0db9dd3e3783f313"
startBlock: 12129110
abi: ERC1155
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CardHolder
- CardBalance
- CardType
abis:
- name: ERC1155
file: ./abis/ERC1155.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
callHandlers:
- function: wrap(uint256,uint256)
handler: handleOfficialWrap
- function: unwrap(uint256,uint256)
handler: handleOfficialUnwrap
- function: wrapBatch(uint256[],uint256[])
handler: handleOfficialWrapBatch
- function: unwrapBatch(uint256[],uint256[])
handler: handleOfficialUnwrapBatch
file: ./src/erc1155Official-mapping.ts
- kind: ethereum/contract
name: ERC1155Unofficial
network: mainnet
source:
address: "0x3c2754c0CDc5499df1a50D608D8985070Bf87b30"
startBlock: 12078319
abi: ERC1155Unofficial
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CardHolder
- CardBalance
- CardType
abis:
- name: ERC1155Unofficial
file: ./abis/ERC1155Unofficial.json
- name: ERC1155
file: ./abis/ERC1155.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingleUnofficial
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatchUnofficial
callHandlers:
- function: wrap(uint256,uint256)
handler: handleUnofficialWrap
- function: unwrap(uint256,uint256)
handler: handleUnofficialUnwrap
file: ./src/erc1155Unofficial-mapping.ts
- kind: ethereum/contract
name: 17BWrapper
network: mainnet
source:
address: "0x04afa589e2b933f9463c5639f412b183ec062505"
startBlock: 15826329
abi: ERC1155
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CardHolder
- CardBalance
- CardType
abis:
- name: ERC1155
file: ./abis/ERC1155.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
file: ./src/17bWrapper-mapping.ts
templates:
- kind: ethereum/contract
name: ERC20
network: mainnet
source:
abi: ERC20
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CardHolder
- CardBalance
- CardType
abis:
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
callHandlers:
- function: transfer(address,uint256)
handler: handleDirectTransfer
file: ./src/erc20-mapping.ts