This repository was archived by the owner on Feb 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
88 lines (79 loc) · 1.47 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
type ExistingTokenId @entity {
id: ID!
tokenId: BigInt!
mintTimestamp: BigInt
buyer: Bytes
sizeInCC: BigInt!
price: BigInt
donor: Bytes
bioBank: Bytes
hlaHashes: HlaHaplotypesHashed
}
type PendingSale @entity {
id: ID!
tokenId: BigInt!
escrowedPayment: BigInt!
status: String!
buyer: Bytes!
completed: Boolean!
}
type NewListing @entity {
id: ID!
tokenId: BigInt!
sizeInCC: BigInt!
price: BigInt!
donor: Bytes!
bioBank: Bytes!
}
type SaleInitiated @entity {
id: ID!
timestamp: BigInt!
transactionHash: Bytes!
buyer: Bytes!
tokenId: BigInt!
sizeInCC: BigInt!
donor: Bytes!
escrowedPayment: BigInt!
}
type ListingCanceled @entity {
id: ID!
tokenId: BigInt!
}
type DeliveryStatusChanged @entity {
id: ID!
tokenId: BigInt!
status: String!
}
type SaleCompleted @entity {
id: ID!
tokenId: BigInt!
sizeInCC: BigInt!
timestamp: BigInt!
transactionHash: Bytes!
buyer: Bytes!
donor: Bytes!
salePrice: BigInt!
donorIncentive: BigInt!
protocolFee: BigInt!
}
type SaleRefunded @entity {
id: ID!
tokenId: BigInt!
refundTotal: BigInt!
}
type HlaHaplotypesHashed @entity {
id: ID!
hlaHashed_A: Bytes! # bytes32
hlaHashed_B: Bytes! # bytes32
hlaHashed_C: Bytes! # bytes32
hlaHashed_DPB: Bytes! # bytes32
hlaHashed_DRB: Bytes! # bytes32
}
type StemCellDonationTokenized @entity {
id: ID!
timestamp: BigInt!
donor: Bytes!
hlaHashes: HlaHaplotypesHashed!
tokenIds: [BigInt!]!
amounts: [BigInt!]!
}