-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
172 lines (154 loc) · 4.68 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
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
type EventsSummary {
id: ID!
editionsMetadataRenderer_EditionInitialized: [EditionsMetadataRenderer_EditionInitialized!]!
@derivedFrom(field: "eventsSummary")
editionsMetadataRenderer_EditionInitializedCount: BigInt!
holographRegistry_HolographableContractEvent: [HolographRegistry_HolographableContractEvent!]!
@derivedFrom(field: "eventsSummary")
holographRegistry_HolographableContractEventCount: BigInt!
holographFactory_BridgeableContractDeployed: [HolographFactory_BridgeableContractDeployed!]!
@derivedFrom(field: "eventsSummary")
holographFactory_BridgeableContractDeployedCount: BigInt!
holographOperator_AvailableOperatorJob: [HolographOperator_AvailableOperatorJob!]!
@derivedFrom(field: "eventsSummary")
holographOperator_AvailableOperatorJobCount: BigInt!
holographOperator_CrossChainMessageSent: [HolographOperator_CrossChainMessageSent!]!
@derivedFrom(field: "eventsSummary")
holographOperator_CrossChainMessageSentCount: BigInt!
holographOperator_FailedOperatorJob: [HolographOperator_FailedOperatorJob!]!
@derivedFrom(field: "eventsSummary")
holographOperator_FailedOperatorJobCount: BigInt!
holographOperator_FinishedOperatorJob: [HolographOperator_FinishedOperatorJob!]!
@derivedFrom(field: "eventsSummary")
holographOperator_FinishedOperatorJobCount: BigInt!
holographableContract_Transfer: [HolographableContract_Transfer!]!
@derivedFrom(field: "eventsSummary")
holographableContract_TransferCount: BigInt!
holographableContract_SecondarySaleFees: [HolographableContract_SecondarySaleFees!]!
@derivedFrom(field: "eventsSummary")
holographableContract_SecondarySaleFeesCount: BigInt!
holographableContract_MintFeePayout: [HolographableContract_MintFeePayout!]!
@derivedFrom(field: "eventsSummary")
holographableContract_MintFeePayoutCount: BigInt!
holographableContract_Sale: [HolographableContract_Sale!]!
@derivedFrom(field: "eventsSummary")
holographableContract_SaleCount: BigInt!
}
## --------- Events tables
type EditionsMetadataRenderer_EditionInitialized {
id: ID!
target: String!
description: String!
imageURI: String!
animationURI: String!
logIndex: Int!
eventsSummary: String!
}
type HolographRegistry_HolographableContractEvent {
id: ID!
_holographableContract: String!
_payload: String!
logIndex: Int!
eventsSummary: String!
}
type HolographFactory_BridgeableContractDeployed {
id: ID!
contractAddress: String!
hash: String!
logIndex: Int!
eventsSummary: String!
}
type HolographOperator_AvailableOperatorJob {
id: ID!
jobHash: String!
payload: String!
logIndex: Int!
eventsSummary: String!
}
type HolographOperator_CrossChainMessageSent {
id: ID!
messageHash: String!
logIndex: Int!
eventsSummary: String!
}
type HolographOperator_FailedOperatorJob {
id: ID!
jobHash: String!
logIndex: Int!
eventsSummary: String!
}
type HolographOperator_FinishedOperatorJob {
id: ID!
jobHash: String!
operator: String!
logIndex: Int!
eventsSummary: String!
}
type HolographableContract_Transfer {
id: ID!
from: String!
to: String!
tokenId: String
value: BigInt
logIndex: Int!
eventsSummary: String!
}
type HolographableContract_SecondarySaleFees {
id: ID!
tokenId: BigInt!
recipients: [String!]!
bps: [BigInt!]!
logIndex: Int!
eventsSummary: String!
}
type HolographableContract_MintFeePayout {
id: ID!
mintFeeAmount: BigInt!
mintFeeRecipient: String!
success: Boolean!
logIndex: Int!
eventsSummary: String!
}
type HolographableContract_Sale {
id: ID!
to: String!
quantity: BigInt!
pricePerToken: BigInt!
firstPurchasedTokenId: BigInt!
logIndex: Int!
eventsSummary: String!
}
## --------- Entity tables
type Transaction {
id: ID!
hash: String! # NOTE: For now, the ID will be the same as the hash until a `where` clause is available for the `load` and `get` functions in the event handler.
chainId: Int!
blockNumber: Int!
blockTimestamp: Int!
from: String
to: String
logIndexes: [Int!]!
}
type User {
id: ID! # NOTE: For now, the ID is going to be the walletAddress
address: String!
}
enum HolographableContractType {
CxipERC721
HolographOpenEditionERC721
ERC20
UNKNOWN
}
type HolographableContract {
id: ID! # NOTE: For now, the ID will be the same as the contractAddress until a `where` clause is available for the `load` and `get` functions in the event handler.
contractAddress: String!
chainIds: [Int!]!
contractType: HolographableContractType!
}
type NFT {
id: ID! # NOTE: For now, the ID will be the contractAddress + tokenId until a `where` clause is available for the `load` and `get` functions in the event handler.
chainId: Int!
contractAddress: String!
tokenId: String!
owner: String!
}