From 5bb8e8c8575c53b6c687aa6994740443c874e97d Mon Sep 17 00:00:00 2001 From: ponderingdemocritus Date: Sat, 28 Dec 2024 09:26:29 +1100 Subject: [PATCH] limit --- landing/src/hooks/gql/gql.ts | 8 ++++---- landing/src/hooks/gql/graphql.ts | 4 ++-- landing/src/hooks/query/entities.tsx | 2 +- landing/src/hooks/query/position.tsx | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/landing/src/hooks/gql/gql.ts b/landing/src/hooks/gql/gql.ts index 1449cfc49..c5e6f510a 100644 --- a/landing/src/hooks/gql/gql.ts +++ b/landing/src/hooks/gql/gql.ts @@ -16,7 +16,7 @@ import * as types from './graphql'; */ const documents = { "\n query getCapacitySpeedConfig($category: Enum!, $entityType: u32!) {\n s0EternumCapacityConfigModels(where: {category: $category }) {\n edges{\n node {\n weight_gram\n }\n }\n }\n s0EternumSpeedConfigModels(where: {entity_type: $entityType }) {\n edges{\n node {\n sec_per_km\n }\n }\n }\n }\n": types.GetCapacitySpeedConfigDocument, - "\n query getEternumOwnerRealmIds($accountAddress: ContractAddress!) {\n s0EternumOwnerModels(where: { address: $accountAddress }, limit: 1000) {\n edges {\n node {\n address\n entity_id\n entity {\n models {\n __typename\n ... on s0_eternum_Realm {\n realm_id\n }\n }\n }\n }\n }\n }\n }\n": types.GetEternumOwnerRealmIdsDocument, + "\n query getEternumOwnerRealmIds($accountAddress: ContractAddress!) {\n s0EternumOwnerModels(where: { address: $accountAddress }, limit: 8000) {\n edges {\n node {\n address\n entity_id\n entity {\n models {\n __typename\n ... on s0_eternum_Realm {\n realm_id\n }\n }\n }\n }\n }\n }\n }\n": types.GetEternumOwnerRealmIdsDocument, "\n query getEternumEntityOwner($entityOwnerIds: [u32!]!) {\n s0EternumEntityOwnerModels(where: { entity_owner_idIN: $entityOwnerIds}, limit: 200) {\n edges {\n node {\n entity_id\n entity_owner_id\n entity {\n models {\n __typename\n ... on s0_eternum_OwnedResourcesTracker {\n resource_types\n }\n ... on s0_eternum_Position {\n x\n y\n }\n ... on s0_eternum_ArrivalTime {\n arrives_at\n }\n ... on s0_eternum_Weight {\n value\n }\n }\n }\n }\n }\n }\n }\n": types.GetEternumEntityOwnerDocument, "\n query getAccountTokens($accountAddress: String!) {\n tokenBalances(accountAddress: $accountAddress, limit: 8000) {\n edges {\n node {\n tokenMetadata {\n __typename\n ... on ERC721__Token {\n tokenId\n metadataDescription\n imagePath\n contractAddress\n metadata\n }\n }\n }\n }\n }\n }\n": types.GetAccountTokensDocument, "\n query getERC721Mints {\n tokenTransfers(accountAddress: \"0x0\", limit: 8000) {\n edges {\n node {\n tokenMetadata {\n __typename\n ... on ERC721__Token {\n tokenId\n metadataDescription\n imagePath\n contractAddress\n metadata\n }\n }\n }\n }\n }\n }\n": types.GetErc721MintsDocument, @@ -28,7 +28,7 @@ const documents = { "\n query getLeaderboard {\n s0EternumLeaderboardModels {\n edges {\n node {\n total_points\n registration_end_timestamp\n total_price_pool {\n Some\n option\n }\n distribution_started\n }\n }\n }\n }\n": types.GetLeaderboardDocument, "\n query getHyperstructureContributions($accountAddress: ContractAddress!) {\n s0EternumContributionModels(where: { player_address: $accountAddress }, limit: 1000) {\n edges {\n node {\n hyperstructure_entity_id\n amount\n }\n }\n }\n }\n": types.GetHyperstructureContributionsDocument, "\n query getEpochs {\n s0EternumEpochModels(limit: 1000) {\n edges {\n node {\n owners {\n _0\n _1\n }\n start_timestamp\n hyperstructure_entity_id\n index\n }\n }\n }\n }\n": types.GetEpochsDocument, - "\n query getEntityPosition($entityIds: [u32!]!) {\n s0EternumPositionModels(where: { entity_idIN: $entityIds }) {\n edges {\n node {\n x\n y\n entity_id\n entity {\n __typename\n }\n }\n }\n }\n }\n": types.GetEntityPositionDocument, + "\n query getEntityPosition($entityIds: [u32!]!) {\n s0EternumPositionModels(where: { entity_idIN: $entityIds }, limit: 8000) {\n edges {\n node {\n x\n y\n entity_id\n entity {\n __typename\n }\n }\n }\n }\n }\n": types.GetEntityPositionDocument, "\n query getEntitiesResources($entityIds: [u32!]!) {\n s0EternumResourceModels(where: { entity_idIN: $entityIds }, limit: 8000) {\n edges {\n node {\n entity_id\n resource_type\n balance\n entity {\n __typename\n }\n }\n }\n }\n }\n": types.GetEntitiesResourcesDocument, }; @@ -39,7 +39,7 @@ export function graphql(source: "\n query getCapacitySpeedConfig($category: Enu /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n query getEternumOwnerRealmIds($accountAddress: ContractAddress!) {\n s0EternumOwnerModels(where: { address: $accountAddress }, limit: 1000) {\n edges {\n node {\n address\n entity_id\n entity {\n models {\n __typename\n ... on s0_eternum_Realm {\n realm_id\n }\n }\n }\n }\n }\n }\n }\n"): typeof import('./graphql').GetEternumOwnerRealmIdsDocument; +export function graphql(source: "\n query getEternumOwnerRealmIds($accountAddress: ContractAddress!) {\n s0EternumOwnerModels(where: { address: $accountAddress }, limit: 8000) {\n edges {\n node {\n address\n entity_id\n entity {\n models {\n __typename\n ... on s0_eternum_Realm {\n realm_id\n }\n }\n }\n }\n }\n }\n }\n"): typeof import('./graphql').GetEternumOwnerRealmIdsDocument; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -87,7 +87,7 @@ export function graphql(source: "\n query getEpochs {\n s0EternumEpochModels /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n query getEntityPosition($entityIds: [u32!]!) {\n s0EternumPositionModels(where: { entity_idIN: $entityIds }) {\n edges {\n node {\n x\n y\n entity_id\n entity {\n __typename\n }\n }\n }\n }\n }\n"): typeof import('./graphql').GetEntityPositionDocument; +export function graphql(source: "\n query getEntityPosition($entityIds: [u32!]!) {\n s0EternumPositionModels(where: { entity_idIN: $entityIds }, limit: 8000) {\n edges {\n node {\n x\n y\n entity_id\n entity {\n __typename\n }\n }\n }\n }\n }\n"): typeof import('./graphql').GetEntityPositionDocument; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/landing/src/hooks/gql/graphql.ts b/landing/src/hooks/gql/graphql.ts index 68d1b815a..eaf9eef59 100644 --- a/landing/src/hooks/gql/graphql.ts +++ b/landing/src/hooks/gql/graphql.ts @@ -7395,7 +7395,7 @@ export const GetCapacitySpeedConfigDocument = new TypedDocumentString(` `) as unknown as TypedDocumentString; export const GetEternumOwnerRealmIdsDocument = new TypedDocumentString(` query getEternumOwnerRealmIds($accountAddress: ContractAddress!) { - s0EternumOwnerModels(where: {address: $accountAddress}, limit: 1000) { + s0EternumOwnerModels(where: {address: $accountAddress}, limit: 8000) { edges { node { address @@ -7590,7 +7590,7 @@ export const GetEpochsDocument = new TypedDocumentString(` `) as unknown as TypedDocumentString; export const GetEntityPositionDocument = new TypedDocumentString(` query getEntityPosition($entityIds: [u32!]!) { - s0EternumPositionModels(where: {entity_idIN: $entityIds}) { + s0EternumPositionModels(where: {entity_idIN: $entityIds}, limit: 8000) { edges { node { x diff --git a/landing/src/hooks/query/entities.tsx b/landing/src/hooks/query/entities.tsx index 0abfb41db..777aa346a 100644 --- a/landing/src/hooks/query/entities.tsx +++ b/landing/src/hooks/query/entities.tsx @@ -2,7 +2,7 @@ import { graphql } from "../gql"; export const GET_ETERNUM_OWNER_REALM_IDS = graphql(` query getEternumOwnerRealmIds($accountAddress: ContractAddress!) { - s0EternumOwnerModels(where: { address: $accountAddress }, limit: 1000) { + s0EternumOwnerModels(where: { address: $accountAddress }, limit: 8000) { edges { node { address diff --git a/landing/src/hooks/query/position.tsx b/landing/src/hooks/query/position.tsx index 9f150b050..d972ac48a 100644 --- a/landing/src/hooks/query/position.tsx +++ b/landing/src/hooks/query/position.tsx @@ -2,7 +2,7 @@ import { graphql } from "../gql"; export const GET_ENTITY_DISTANCE = graphql(` query getEntityPosition($entityIds: [u32!]!) { - s0EternumPositionModels(where: { entity_idIN: $entityIds }) { + s0EternumPositionModels(where: { entity_idIN: $entityIds }, limit: 8000) { edges { node { x