forked from polywrap/wrap-integrations
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
48 lines (43 loc) · 864 Bytes
/
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
""" Suppported Network """
enum Network {
mainnet
hangzhounet
ithacanet
}
""" State of domain acquisition """
enum AcquisitionState {
Unobtainable
Taken
CanBeBought
CanBeAuctioned
AuctionInProgress
CanBeSettled
}
""" Domain acquisition information """
type AcquisitionInfo {
""" Cost to acquire domain """
cost: UInt32
""" Duration of domain acquisition """
duration: UInt32
""" AcquisitionState """
state: AcquisitionState!
}
type Query {
""" Get Acquisition information """
getAcquisitionInfo(
""" Network """
network: Network
""" Domain name to enquire """
domain: String!
""" Duration to enquire """
duration: UInt32
): AcquisitionInfo
""" Convert bytes to hex """
bytesToHex(
bytes: String!
): String!
""" Convert characters to hex """
char2Bytes(
text: String!
): String!
}