This repository has been archived by the owner on Aug 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 187
/
subgraph.yaml
99 lines (99 loc) · 3.19 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
specVersion: 0.0.3
description: A secure & decentralized way to address resources on and off the blockchain using simple, human-readable names. Access domains and transfer history.
repository: https://github.com/ensdomains/ens-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ENSRegistry
network: mainnet
source:
address: '0x314159265dd8dbb310642f98f50c066173c1259b'
abi: EnsRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
file: ./src/ensRegistry.ts
entities:
- Domain
- Account
- Resolver
abis:
- name: EnsRegistry
file: ./abis/Registry.json
eventHandlers:
- event: Transfer(bytes32,address)
handler: handleTransfer
- event: NewOwner(bytes32,bytes32,address)
handler: handleNewOwner
- event: NewResolver(bytes32,address)
handler: handleNewResolver
- event: NewTTL(bytes32,uint64)
handler: handleNewTTL
- kind: ethereum/contract
name: Resolver
network: mainnet
source:
abi: Resolver
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
file: ./src/resolver.ts
entities:
- AddrChanged
- NameChanged
- AbiChanged
- PubkeyChanged
- Textchanged
- ContenthashChanged
- InterfaceChanged
- AuthorisationChanged
abis:
- name: Resolver
file: ./abis/PublicResolver.json
eventHandlers:
- event: ABIChanged(bytes32,uint256)
handler: handleABIChanged
- event: AddrChanged(bytes32,address)
handler: handleAddrChanged
- event: AuthorisationChanged(bytes32,address,address,bool)
handler: handleAuthorisationChanged
- event: ContenthashChanged(bytes32,bytes)
handler: handleContentHashChanged
- event: InterfaceChanged(bytes32,bytes4,address)
handler: handleInterfaceChanged
- event: NameChanged(bytes32,string)
handler: handleNameChanged
- event: PubkeyChanged(bytes32,bytes32,bytes32)
handler: handlePubkeyChanged
# - event: TextChanged(bytes32,string,string)
# handler: handleTextChanged
- kind: ethereum/contract
name: AuctionRegistrar
network: mainnet
source:
address: '0x6090a6e47849629b7245dfa1ca21d94cd15878ef'
abi: AuctionRegistrar
mapping:
kind: ethereum/events
apiVersion: 0.0.2
language: wasm/assemblyscript
file: ./src/auctionRegistrar.ts
entities:
- AuctionedName
abis:
- name: AuctionRegistrar
file: ./abis/AuctionRegistrar.json
eventHandlers:
- event: AuctionStarted(bytes32,uint256)
handler: auctionStarted
- event: BidRevealed(bytes32,address,uint256,uint8)
handler: bidRevealed
- event: HashRegistered(bytes32,address,uint256,uint256)
handler: hashRegistered
- event: HashInvalidated(bytes32,string,uint256,uint256)
handler: hashInvalidated
- event: HashReleased(bytes32,uint256)
handler: hashReleased