-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
53 lines (53 loc) · 1.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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: nft20factory
network: mainnet
source:
address: "0xf39b0F846f967895DB4c31B6b62d2BE3F5Af8454"
abi: nft20factory
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- OwnershipTransferred
- pairCreated
abis:
- name: nft20factory
file: ./abis/nft20factory.json
eventHandlers:
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: pairCreated(indexed address,address,uint256)
handler: handlepairCreated
file: ./src/nft20factory.ts
- kind: ethereum/contract
name: NFT20Pair
network: mainnet
source:
address: "0x7824948612d5F6d3dBC54d1c1173715B997403a1"
abi: NFT20Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Approval
- Transfer
- Withdraw
- User
- Pool
abis:
- name: NFT20Pair
file: ./abis/NFT20Pair.json
eventHandlers:
- event: Approval(indexed address,indexed address,uint256)
handler: handleApproval
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: Withdraw(indexed uint256[],indexed uint256[])
handler: handleWithdraw
file: ./src/nft20pair.ts