Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
refactor(GetAxieDetailQuery): update graphql query
Browse files Browse the repository at this point in the history
  • Loading branch information
smethz committed Aug 4, 2023
1 parent 8f8e356 commit 02688e2
Showing 1 changed file with 306 additions and 5 deletions.
311 changes: 306 additions & 5 deletions src/constants/queries/GetAxieDetailQuery.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
export const GetAxieDetailQuery = `query GetAxieDetail($axieId: ID!) {
axie(axieId: $axieId) {
...AxieDetail
ownerProfile {
...ProfileAvatarBrief
__typename
}
__typename
}
}
Expand All @@ -24,7 +28,14 @@ fragment AxieDetail on Axie {
stage
title
breedCount
level
axpInfo {
...AxpInfo
__typename
}
axpStatDay {
...AxpStat
__typename
}
figure {
atlas
model
Expand All @@ -43,10 +54,7 @@ fragment AxieDetail on Axie {
...OrderInfo
__typename
}
ownerProfile {
name
__typename
}
...TokenAssetOffers
battleInfo {
...AxieBattleInfo
__typename
Expand All @@ -72,6 +80,10 @@ fragment AxieDetail on Axie {
dusk
__typename
}
equipmentInstances {
...EquipmentInstance
__typename
}
__typename
}
Expand Down Expand Up @@ -151,4 +163,293 @@ fragment AssetInfo on Asset {
orderId
__typename
}
fragment EquipmentInstance on EquipmentInstance {
id: tokenId
tokenId
owner
equipmentId
alias
equipmentType
slot
name
rarity
collections
equippedBy
__typename
}
fragment TokenAssetOffers on TokenAsset {
... on Axie {
yourOffer {
...OfferInfo
__typename
}
highestOffer {
...OfferInfo
__typename
}
offers(from: 0, size: 10) {
total
data {
...OfferInfo
__typename
}
__typename
}
numActiveOffers
__typename
}
... on LandPlot {
yourOffer {
...OfferInfo
__typename
}
highestOffer {
...OfferInfo
__typename
}
offers(from: 0, size: 10) {
total
data {
...OfferInfo
__typename
}
__typename
}
numActiveOffers
__typename
}
... on LandItem {
yourOffer {
...OfferInfo
__typename
}
highestOffer {
...OfferInfo
__typename
}
offers(from: 0, size: 10) {
total
data {
...OfferInfo
__typename
}
__typename
}
numActiveOffers
__typename
}
... on EquipmentInstance {
yourOffer {
...OfferInfo
__typename
}
highestOffer {
...OfferInfo
__typename
}
offers(from: 0, size: 10) {
total
data {
...OfferInfo
__typename
}
__typename
}
numActiveOffers
__typename
}
__typename
}
fragment OfferInfo on Order {
...ExcludedAssetsOffer
status
assets {
...ExcludedTokenAsset
token {
...TokenAsset
__typename
}
__typename
}
__typename
}
fragment ExcludedAssetsOffer on Order {
id
maker
makerProfile {
...Profile
__typename
}
kind
expiredAt
paymentToken
startedAt
basePrice
endedAt
endedPrice
expectedState
nonce
marketFeePercentage
signature
hash
duration
timeLeft
currentPrice
suggestedPrice
currentPriceUsd
__typename
}
fragment Profile on PublicProfile {
accountId
name
addresses {
...Addresses
__typename
}
__typename
}
fragment Addresses on NetAddresses {
ethereum
tomo
loom
ronin
__typename
}
fragment ExcludedTokenAsset on Asset {
erc
address
id
quantity
orderId
__typename
}
fragment TokenAsset on TokenAsset {
... on Axie {
id
name
class
image
stage
owner
newGenes
title
parts {
id
name
class
type
specialGenes
stage
__typename
}
ownerProfile {
...Profile
__typename
}
assetType: __typename
}
... on LandPlot {
landType
row
col
owner
ownerProfile {
...Profile
__typename
}
assetType: __typename
}
... on LandItem {
itemId
name
itemAlias
tokenId
landType
itemId
figureURL
rarity
owner
tokenType
ownerProfile {
...Profile
__typename
}
assetType: __typename
}
... on EquipmentInstance {
equipmentId
name
rarity
alias
collections
slot
ownerProfile {
...Profile
__typename
}
assetType: __typename
}
__typename
}
fragment AxpStat on AxpStat {
axieId
axpAxieCapDay
totalGainedAxpDay
maxLevel
__typename
}
fragment AxpInfo on AxpInfo {
level
nextOnchainLevel
onchainLevel
shouldAscend
xp
xpToLevelUp
__typename
}
fragment ProfileAvatarBrief on PublicProfile {
accountId
name
settings {
avatar {
...ProfileAvatar
__typename
}
__typename
}
__typename
}
fragment ProfileAvatar on ProfileAvatar {
axie {
...AxieProfileSettings
__typename
}
position
backgroundColor
__typename
}
fragment AxieProfileSettings on Axie {
id
genes
class
newGenes
equipmentInstances {
...EquipmentInstance
__typename
}
__typename
}
`

0 comments on commit 02688e2

Please sign in to comment.