-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
46 lines (45 loc) · 1.26 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
specVersion: 0.0.2
schema:
file: ./generated/schema.graphql
dataSources:
- kind: ethereum/contract
name: Factory
network: arbitrum-one
source:
address: "0x9f5b097AD23e2CF4F34e502A3E41D941678877Dc"
abi: Factory
startBlock: 88698956
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ERC20Contract
abis:
- name: IERC20
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC20Metadata.json
- name: Factory
file: ./abis/Factory.json
eventHandlers:
- event: VaultCreated(address,address,string,indexed uint256,address)
handler: handleVaultCreated
file: ./mappings/factory.ts
templates:
- kind: ethereum/contract
name: ERC20
network: arbitrum-one
source:
abi: IERC20
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ERC20Contract
abis:
- name: IERC20
file: ./node_modules/@openzeppelin/contracts/build/contracts/IERC20Metadata.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./mappings/erc20.ts