-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
77 lines (77 loc) · 2.37 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
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/portalnetwork/ecns-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ECNSRegistry
network: mainnet
source:
address: '0xb59EE3AEB0d31976cF8887194154f6034632de40'
abi: ECNSRegistry
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/ecnsRegistry.ts
entities:
- Domain
- Account
- Resolver
abis:
- name: ECNSRegistry
file: ./abis/ECNSRegistry.json
eventHandlers:
- event: 'Transfer(indexed bytes32,address)'
handler: handleTransfer
- event: 'NewOwner(indexed bytes32,indexed bytes32,address)'
handler: handleNewOwner
- event: 'NewResolver(indexed bytes32,address)'
handler: handleNewResolver
- event: 'NewTTL(indexed bytes32,uint64)'
handler: handleNewTTL
- kind: ethereum/contract
name: BaseRegistrar
network: mainnet
source:
address: '0x052a4665a4adf84655419Bc6e9B33f7D6be2DD4B'
abi: BaseRegistrar
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/etcRegistrar.ts
entities:
- Registration
- NameRegistered
- NameMigrated
- NameRenewed
- NameTransferred
abis:
- name: BaseRegistrar
file: ./abis/BaseRegistrar.json
eventHandlers:
- event: 'Transfer(indexed address,indexed address,indexed uint256)'
handler: handleNameTransferred
- kind: ethereum/contract
name: ETCRegistrarController
network: mainnet
source:
address: '0xad65a57fADC5838315f9ADa09537A6631d03851c'
abi: ETCRegistrarController
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/etcRegistrar.ts
entities:
- Registration
abis:
- name: ETCRegistrarController
file: ./abis/ETCRegistrarController.json
eventHandlers:
- event: 'NameRegistered(string,indexed bytes32,indexed address,uint256,uint256)'
handler: handleNameRegisteredByController