< Summary

Class:TheGraphQueries
Assembly:TheGraph
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ServiceProviders/TheGraph/TheGraphQueries.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:88
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
TheGraphQueries()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/ServiceProviders/TheGraph/TheGraphQueries.cs

#LineLine coverage
 1public static class TheGraphQueries
 2{
 13    public static readonly string getLandQuery = @"
 4  query Land($address: Bytes) {
 5    ownerParcels: parcels(first: 1000, where: { estate: null, owner: $address }) {
 6      ...parcelFields
 7    }
 8    ownerEstates: estates(first: 1000, where: { owner: $address }) {
 9      ...estateFields
 10    }
 11    updateOperatorParcels: parcels(first: 1000, where: { updateOperator: $address }) {
 12      ...parcelFields
 13    }
 14    updateOperatorEstates: estates(first: 1000, where: { updateOperator: $address }) {
 15      ...estateFields
 16    }
 17    ownerAuthorizations: authorizations(first: 1000, where: { owner: $address, type: \""UpdateManager\"" }) {
 18      operator
 19      isApproved
 20      tokenAddress
 21    }
 22    operatorAuthorizations: authorizations(first: 1000, where: { operator: $address, type: \""UpdateManager\"" }) {
 23      owner {
 24        address
 25        parcels(where: { estate: null }) {
 26          ...parcelFields
 27        }
 28        estates {
 29          ...estateFields
 30        }
 31      }
 32      isApproved
 33      tokenAddress
 34    }
 35  }
 36  fragment parcelFields on Parcel {
 37    x
 38    y
 39    tokenId
 40    owner {
 41      address
 42    }
 43    updateOperator
 44    data {
 45      name
 46      description
 47    }
 48  }
 49  fragment estateFields on Estate {
 50    id
 51    owner {
 52      address
 53    }
 54    updateOperator
 55    size
 56    parcels(first: 1000) {
 57      x
 58      y
 59      tokenId
 60    }
 61    data {
 62      name
 63      description
 64    }
 65  }
 66";
 67
 168    public static readonly string getPolygonManaQuery = @"
 69    query MANA($address: ID){
 70        accounts(where: {id:$address}){
 71            id,
 72            mana
 73        }
 74    }
 75";
 76
 177    public static readonly string getNftCollectionsQuery = @"
 78    query WearablesCollections($address: ID){
 79        nfts(where: { owner: $address }) {
 80            urn,
 81            collection {
 82                id
 83            }
 84            tokenId
 85        }
 86    }
 87";
 88}

Methods/Properties

TheGraphQueries()