-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
146 lines (123 loc) · 2.49 KB
/
schema.graphql
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
type ORMP_HashImported {
id: ID!
blockNumber: BigInt!
transactionHash: String!
blockTimestamp: BigInt!
srcChainId: BigInt!
targetChainId: BigInt!
oracle: String!
channel: String!
msgIndex: BigInt!
hash: String!
}
type ORMP_MessageAccepted {
id: ID!
blockNumber: BigInt!
transactionHash: String!
blockTimestamp: BigInt!
msgHash: String!
channel: String!
index: BigInt!
fromChainId: BigInt!
from: String!
toChainId: BigInt!
to: String!
gasLimit: BigInt!
encoded: String!
# extra
oracle: String
oracleAssigned: Boolean
oracleAssignedFee: BigInt
relayer: String
relayerAssigned: Boolean
relayerAssignedFee: BigInt
}
type ORMP_MessageAssigned {
id: ID!
blockNumber: BigInt!
transactionHash: String!
blockTimestamp: BigInt!
msgHash: String!
oracle: String!
relayer: String!
oracleFee: BigInt!
relayerFee: BigInt!
params: String!
}
type ORMP_MessageDispatched {
id: ID!
blockNumber: BigInt!
blockTimestamp: BigInt!
transactionHash: String!
targetChainId: BigInt!
msgHash: String!
dispatchResult: Boolean!
}
type ORMPUpgradeablePort_MessageRecv {
id: ID!
blockNumber: BigInt!
transactionHash: String!
blockTimestamp: BigInt!
chainId: BigInt!
msgId: String!
result: Boolean!
returnData: String!
}
type ORMPUpgradeablePort_MessageSent {
id: ID!
blockNumber: BigInt!
transactionHash: String!
blockTimestamp: BigInt!
chainId: BigInt!
msgId: String!
fromDapp: String!
toChainId: BigInt!
toDapp: String!
message: String!
params: String!
}
type SignaturePub_SignatureSubmittion {
id: ID!
blockNumber: BigInt!
transactionHash: String!
blockTimestamp: BigInt!
chainId: BigInt!
channel: String!
signer: String!
msgIndex: BigInt!
signature: String!
data: String!
}
## custom
type MessagePort {
id: ID!
protocol: String!
payload: String
params: String
status: Int! # 0: inflight, 1: success, 2: failed
sender: String
# source
sourceChainId: BigInt
sourceBlockNumber: BigInt
sourceBlockTimestamp: BigInt
sourceTransactionHash: String
sourceTransactionIndex: Int
sourceLogIndex: Int
sourceDappAddress: String
sourcePortAddress: String
# target
targetChainId: BigInt
targetBlockNumber: BigInt
targetBlockTimestamp: BigInt
targetTransactionHash: String
targetTransactionIndex: Int
targetLogIndex: Int
targetDappAddress: String
targetPortAddress: String
# relation
ormp: ORMP_MessageAccepted
}
type MessageProgress {
id: ID!
amount: BigInt!
}