-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.graphql
More file actions
178 lines (169 loc) · 3.77 KB
/
schema.graphql
File metadata and controls
178 lines (169 loc) · 3.77 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
"""
Outbound message sent on Ethereum
"""
type OutboundMessageAcceptedOnEthereum @entity {
id: ID!
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
messageId: String! @index
channelId: String @index
nonce: Int! @index
}
"""
Inbound message received on BridgeHub
"""
type InboundMessageReceivedOnBridgeHub @entity {
id: ID!
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
messageId: String! @index
channelId: String @index
nonce: Int! @index
eventId: String
}
"""
Message processed on polkadot chains
"""
type MessageProcessedOnPolkadot @entity {
id: ID!
blockNumber: Int! @index
timestamp: DateTime! @index
messageId: String! @index
paraId: Int
success: Boolean
eventId: String
network: String
}
"""
Outbound message sent on BridgeHub
"""
type OutboundMessageAcceptedOnBridgeHub @entity {
id: ID!
blockNumber: Int! @index
timestamp: DateTime! @index
messageId: String! @index
channelId: String @index
nonce: Int! @index
eventId: String
}
"""
Inbound message dispatched on Ethereum
"""
type InboundMessageDispatchedOnEthereum @entity {
id: ID!
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
messageId: String! @index
channelId: String @index
nonce: Int! @index
success: Boolean @index
rewardAddress: String
}
"""
V2 transfers from Ethereum to Polkadot
"""
type TransferStatusToPolkadotV2 @entity {
id: ID!
messageId: String! @index
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
nonce: Int @index
status: Int @index
tokenAddress: String
tokenID: String
tokenLocation: String
senderAddress: String
sourceNetwork: String
sourceParaId: Int
destinationNetwork: String
destinationParaId: Int
destinationAddress: String
amount: BigInt
amountUSDC: BigInt
txCostDot: BigInt
income: BigInt
channelId: String
toBridgeHubInboundQueue: InboundMessageReceivedOnBridgeHub
toAssetHubMessageQueue: MessageProcessedOnPolkadot
toDestination: MessageProcessedOnPolkadot
claimer: String
fee: BigInt
fromV1: Boolean
l2TokenAddress: String
l2ChainId: Int
depositId: String @index
toEthereumL1: L2TransferFilledRelay
}
"""
V2 transfers from Polkadot to Ethereum
"""
type TransferStatusToEthereumV2 @entity {
id: ID!
messageId: String! @index
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
nonce: Int @index
status: Int @index
tokenAddress: String
tokenLocation: String
senderAddress: String
sourceParaId: Int
destinationAddress: String
sourceNetwork: String
destinationNetwork: String
amount: BigInt
amountUSDC: BigInt
txCostEth: BigInt
income: BigInt
channelId: String
toAssetHubMessageQueue: MessageProcessedOnPolkadot
toBridgeHubMessageQueue: MessageProcessedOnPolkadot
toBridgeHubOutboundQueue: OutboundMessageAcceptedOnBridgeHub
toDestination: InboundMessageDispatchedOnEthereum
claimer: String
fee: BigInt
fromV1: Boolean
l2TokenAddress: String
l2ChainId: Int
depositId: String @index
toEthereumL1: InboundMessageDispatchedOnEthereum
toEthereumL2: L2TransferFilledRelay
}
"""
L2 transfer deposited
"""
type L2TransferFundsDeposited @entity {
id: ID!
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
destinationChainId: Int! @index
depositId: String @index
}
"""
L2 deposit call invoked
"""
type L2DepositCallInvoked @entity {
id: ID!
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
messageId: String @index
depositId: String @index
success: Boolean
}
"""
L2 transfer filled by relay
"""
type L2TransferFilledRelay @entity {
id: ID!
txHash: String! @index
blockNumber: Int! @index
timestamp: DateTime! @index
depositId: String @index
}