Skip to content

Commit affd39d

Browse files
authored
feature: Tradable assets data
Fixes #48.
1 parent 94f8627 commit affd39d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

schema.graphqls

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,23 @@ type GlobalLeaderboardEntry {
10281028
rank: Int!
10291029
}
10301030

1031+
"Data relating to assets that can be traded."
1032+
type TradingData {
1033+
"The asset in question."
1034+
asset: Asset!
1035+
1036+
"""
1037+
The number of the asset that is owned.
1038+
1039+
This is the total sum of all this asset that exists in the Infinibags of all players.
1040+
The exact number is only displayed if fewer than 1000 of this asset exist.
1041+
Otherwise, either `1000+` or `10000+` will be returned, indicating the real value is higher than this number.
1042+
"""
1043+
globalNumberOwned: String!
1044+
@spectaql(options: [{ key: "example", value: "1000+" }])
1045+
The number of people who own this cosmetic.
1046+
}
1047+
10311048
"Available queries."
10321049
type Query {
10331050
"Given a UUID, returns a Player if they have logged in to MCC Island."
@@ -1102,6 +1119,14 @@ type Query {
11021119
As all percentages are rounded down, the values may not sum to 100%.
11031120
"""
11041121
factionLeaderboard: [GlobalLeaderboardEntry!]!
1122+
1123+
"""
1124+
Returns a list of tradable assets.
1125+
1126+
An asset is considered tradable if it can be traded using player trading or sold in the Island Exchange.
1127+
Note that this method "flattens" weapon skins into a simple combination of the token and the tier.
1128+
"""
1129+
tradableAssets: [TradingData!]!
11051130
}
11061131

11071132
"Internal directive used to generate some documentation elements."

0 commit comments

Comments
 (0)