-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
95 lines (95 loc) · 2.92 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Bridges
network: mainnet
source:
abi: BridgeFacet
address: "0x8898B472C54c31894e3B9bb83cEA802a5d0e63C6"
startBlock: 16233067
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- BridgeTransaction
- ArbitaryMessageTransaction
- Token
- Remote
- Sequencer
abis:
- name: BridgeFacet
file: ./abis/BridgeFacet.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
callHandlers:
- function: xcall(uint32,address,address,address,uint256,uint256,bytes)
handler: handleXCallTransaction
- function: xcallIntoLocal(uint32,address,address,address,uint256,uint256,bytes)
handler: handleXCallTransaction
- function: addSequencer(address)
handler: handleAddSequencer
- function: removeSequencer(address)
handler: handleRemoveSequencer
eventHandlers:
- event: RemoteAdded(uint32,address,address)
handler: handleRemoteAdded
file: ./src/bridge.ts
- kind: ethereum
name: Relayers
network: mainnet
source:
abi: RelayerFacet
address: "0x8898B472C54c31894e3B9bb83cEA802a5d0e63C6"
startBlock: 16233067
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Relayer
abis:
- name: RelayerFacet
file: ./abis/RelayerFacet.json
callHandlers:
- function: addRelayer(address)
handler: handleAddRelayer
- function: removeRelayer(address)
handler: handleRemoveRelayer
file: ./src/relayer.ts
- kind: ethereum
name: Routers
network: mainnet
source:
abi: RouterFacet
address: "0x8898B472C54c31894e3B9bb83cEA802a5d0e63C6"
startBlock: 16233067
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Router
- Token
- AddLiquidityTransaction
- RemoveLiquidityTransaction
abis:
- name: RouterFacet
file: ./abis/RouterFacet.json
- name: ERC20Contract
file: ./abis/ERC20Contract.json
eventHandlers:
- event: RouterLiquidityAdded(indexed address,address,bytes32,uint256,address)
handler: handleRouterLiquidityAdded
- event: RouterLiquidityRemoved(indexed
address,address,address,bytes32,uint256,address)
handler: handleRouterLiquidityRemoved
- event: RouterAdded(indexed address,address)
handler: handleRouterAdded
- event: RouterRemoved(indexed address,address)
handler: handleRouterRemoved
- event: RouterInitialized(indexed address)
handler: handleRouterInitialized
file: ./src/routers.ts