From d9047adbb2e52c2dc5bce1cd08975a0b7534f900 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 11:20:44 +0100 Subject: [PATCH 1/7] switch to geo-sdk --- apps/connect/package.json | 2 +- .../src/components/CreateSpaceCard.tsx | 2 +- apps/connect/src/routes/authenticate.tsx | 2 +- apps/connect/src/routes/index.tsx | 2 +- apps/events/package.json | 2 +- apps/events/src/components/create-events.tsx | 2 +- .../create-properties-and-types-event.tsx | 2 +- .../create-properties-and-types-todos.tsx | 2 +- apps/events/src/schema.ts | 2 +- apps/events/test-script.ts | 2 +- apps/next-example/package.json | 2 +- apps/privy-login-example/package.json | 2 +- .../src/components/create-events.tsx | 2 +- .../create-properties-and-types-event.tsx | 2 +- .../create-properties-and-types-todos.tsx | 2 +- package.json | 2 +- packages/hypergraph-react/package.json | 2 +- .../src/HypergraphAppContext.tsx | 2 +- .../use-privy-auth-create-public-space.ts | 2 +- .../src/internal/generate-delete-ops.tsx | 2 +- .../src/internal/use-delete-entity-public.tsx | 2 +- .../hypergraph-react/src/prepare-publish.ts | 2 +- packages/hypergraph-react/src/publish-ops.ts | 4 +- .../test/prepare-publish.test.ts | 2 +- .../test/space-ids-types.test.ts | 2 +- packages/hypergraph/package.json | 2 +- packages/hypergraph/src/config.ts | 2 +- packages/hypergraph/src/index.ts | 2 +- packages/hypergraph/src/mapping/Mapping.ts | 2 +- .../hypergraph/src/space/find-many-public.ts | 2 +- .../test/cli/services/Utils.test.ts | 2 +- .../hypergraph/test/entity/entity.test.ts | 2 +- .../test/entity/find-many-public.test.ts | 2 +- .../test/entity/find-one-public.test.ts | 2 +- .../hypergraph/test/entity/findMany.test.ts | 2 +- .../test/entity/space-ids-types.test.ts | 2 +- .../hypergraph/test/mapping/Mapping.test.ts | 2 +- .../utils/relation-config-overrides.test.ts | 2 +- .../utils/translate-filter-to-graphql.test.ts | 2 +- packages/typesync-studio/graphql.codegen.ts | 2 +- packages/typesync-studio/package.json | 2 +- .../typesync-studio/src/clients/Graphql.ts | 2 +- pnpm-lock.yaml | 218 +++++++++--------- 43 files changed, 152 insertions(+), 152 deletions(-) diff --git a/apps/connect/package.json b/apps/connect/package.json index f5fcff33..9b03da61 100644 --- a/apps/connect/package.json +++ b/apps/connect/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@base-ui-components/react": "1.0.0-beta.2", - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@heroicons/react": "^2.2.0", diff --git a/apps/connect/src/components/CreateSpaceCard.tsx b/apps/connect/src/components/CreateSpaceCard.tsx index e1f7298d..8031bf27 100644 --- a/apps/connect/src/components/CreateSpaceCard.tsx +++ b/apps/connect/src/components/CreateSpaceCard.tsx @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import { Key, type Messages, SpaceEvents, SpaceInfo, StoreConnect, Utils } from '@graphprotocol/hypergraph'; import { useIdentityToken } from '@privy-io/react-auth'; import { useQueryClient } from '@tanstack/react-query'; diff --git a/apps/connect/src/routes/authenticate.tsx b/apps/connect/src/routes/authenticate.tsx index d04e3c10..cbf99fb9 100644 --- a/apps/connect/src/routes/authenticate.tsx +++ b/apps/connect/src/routes/authenticate.tsx @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import { Connect, Identity, Key, type Messages, StoreConnect, Utils } from '@graphprotocol/hypergraph'; import { ExclamationTriangleIcon } from '@heroicons/react/24/solid'; import { useIdentityToken, usePrivy, useWallets } from '@privy-io/react-auth'; diff --git a/apps/connect/src/routes/index.tsx b/apps/connect/src/routes/index.tsx index dde7acf6..7ea1a88c 100644 --- a/apps/connect/src/routes/index.tsx +++ b/apps/connect/src/routes/index.tsx @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import { useIdentityToken } from '@privy-io/react-auth'; import { createFileRoute } from '@tanstack/react-router'; import { CreateSpaceCard } from '@/components/CreateSpaceCard'; diff --git a/apps/events/package.json b/apps/events/package.json index d422e7f4..a15c01a0 100644 --- a/apps/events/package.json +++ b/apps/events/package.json @@ -10,7 +10,7 @@ "test:script": "tsx test-script.ts" }, "dependencies": { - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@noble/hashes": "^1.8.0", diff --git a/apps/events/src/components/create-events.tsx b/apps/events/src/components/create-events.tsx index 0ce18875..43d920e0 100644 --- a/apps/events/src/components/create-events.tsx +++ b/apps/events/src/components/create-events.tsx @@ -1,4 +1,4 @@ -import { Graph, type Op } from '@graphprotocol/grc-20'; +import { Graph, type Op } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react'; import { mapping } from '../mapping'; diff --git a/apps/events/src/components/create-properties-and-types-event.tsx b/apps/events/src/components/create-properties-and-types-event.tsx index 35a4fc3a..df11a51f 100644 --- a/apps/events/src/components/create-properties-and-types-event.tsx +++ b/apps/events/src/components/create-properties-and-types-event.tsx @@ -1,4 +1,4 @@ -import { Graph, type Op } from '@graphprotocol/grc-20'; +import { Graph, type Op } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react'; import { useState } from 'react'; diff --git a/apps/events/src/components/create-properties-and-types-todos.tsx b/apps/events/src/components/create-properties-and-types-todos.tsx index eee58edd..f348421d 100644 --- a/apps/events/src/components/create-properties-and-types-todos.tsx +++ b/apps/events/src/components/create-properties-and-types-todos.tsx @@ -1,4 +1,4 @@ -import { Graph, type Op } from '@graphprotocol/grc-20'; +import { Graph, type Op } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react'; import { useState } from 'react'; diff --git a/apps/events/src/schema.ts b/apps/events/src/schema.ts index 0380f3d7..ed1afdb1 100644 --- a/apps/events/src/schema.ts +++ b/apps/events/src/schema.ts @@ -1,4 +1,4 @@ -import { ContentIds, SystemIds } from '@graphprotocol/grc-20'; +import { ContentIds, SystemIds } from '@geoprotocol/geo-sdk'; import { Entity, Id, Type } from '@graphprotocol/hypergraph'; export const User = Entity.Schema( diff --git a/apps/events/test-script.ts b/apps/events/test-script.ts index 8dfa5845..7cd4dcb4 100644 --- a/apps/events/test-script.ts +++ b/apps/events/test-script.ts @@ -1,4 +1,4 @@ -import { SystemIds } from '@graphprotocol/grc-20'; +import { SystemIds } from '@geoprotocol/geo-sdk'; import { Config, Entity, Id, Type } from '@graphprotocol/hypergraph'; Config.setApiOrigin('https://testnet-api-staging.geobrowser.io'); diff --git a/apps/next-example/package.json b/apps/next-example/package.json index ae07a855..f9fcc1c5 100644 --- a/apps/next-example/package.json +++ b/apps/next-example/package.json @@ -11,7 +11,7 @@ }, "type": "module", "dependencies": { - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "next": "15.5.9", diff --git a/apps/privy-login-example/package.json b/apps/privy-login-example/package.json index bb9d470a..3f6de129 100644 --- a/apps/privy-login-example/package.json +++ b/apps/privy-login-example/package.json @@ -9,7 +9,7 @@ "typesync": "hypergraph typesync" }, "dependencies": { - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@noble/hashes": "^1.8.0", diff --git a/apps/privy-login-example/src/components/create-events.tsx b/apps/privy-login-example/src/components/create-events.tsx index 0ce18875..43d920e0 100644 --- a/apps/privy-login-example/src/components/create-events.tsx +++ b/apps/privy-login-example/src/components/create-events.tsx @@ -1,4 +1,4 @@ -import { Graph, type Op } from '@graphprotocol/grc-20'; +import { Graph, type Op } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react'; import { mapping } from '../mapping'; diff --git a/apps/privy-login-example/src/components/create-properties-and-types-event.tsx b/apps/privy-login-example/src/components/create-properties-and-types-event.tsx index 35a4fc3a..df11a51f 100644 --- a/apps/privy-login-example/src/components/create-properties-and-types-event.tsx +++ b/apps/privy-login-example/src/components/create-properties-and-types-event.tsx @@ -1,4 +1,4 @@ -import { Graph, type Op } from '@graphprotocol/grc-20'; +import { Graph, type Op } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react'; import { useState } from 'react'; diff --git a/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx b/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx index eee58edd..f348421d 100644 --- a/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx +++ b/apps/privy-login-example/src/components/create-properties-and-types-todos.tsx @@ -1,4 +1,4 @@ -import { Graph, type Op } from '@graphprotocol/grc-20'; +import { Graph, type Op } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react'; import { useState } from 'react'; diff --git a/package.json b/package.json index 76445706..4aba3aff 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@changesets/cli": "^2.29.8", "@effect/language-service": "^0.40.0", "@effect/vitest": "^0.25.1", - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "babel-plugin-annotate-pure-calls": "^0.5.0", "glob": "^11.0.3", "pkg-pr-new": "^0.0.56", diff --git a/packages/hypergraph-react/package.json b/packages/hypergraph-react/package.json index 96b09586..c7bde63c 100644 --- a/packages/hypergraph-react/package.json +++ b/packages/hypergraph-react/package.json @@ -47,7 +47,7 @@ "@automerge/automerge": "^3.1.1", "@automerge/automerge-repo": "^2.2.0", "@automerge/automerge-repo-react-hooks": "^2.2.0", - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@noble/hashes": "^1.8.0", "@tanstack/react-query": "^5.85.5", "effect": "^3.17.13", diff --git a/packages/hypergraph-react/src/HypergraphAppContext.tsx b/packages/hypergraph-react/src/HypergraphAppContext.tsx index 72d35692..656b5d02 100644 --- a/packages/hypergraph-react/src/HypergraphAppContext.tsx +++ b/packages/hypergraph-react/src/HypergraphAppContext.tsx @@ -5,7 +5,7 @@ import * as automerge from '@automerge/automerge/slim'; import type { DocHandle } from '@automerge/automerge-repo'; import { Repo } from '@automerge/automerge-repo/slim'; import { RepoContext } from '@automerge/automerge-repo-react-hooks'; -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import { Config, Connect, diff --git a/packages/hypergraph-react/src/hooks/use-privy-auth-create-public-space.ts b/packages/hypergraph-react/src/hooks/use-privy-auth-create-public-space.ts index d3ad92f9..0eb06308 100644 --- a/packages/hypergraph-react/src/hooks/use-privy-auth-create-public-space.ts +++ b/packages/hypergraph-react/src/hooks/use-privy-auth-create-public-space.ts @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import { useQueryClient } from '@tanstack/react-query'; import { useState } from 'react'; import { useHypergraphAuth } from '../HypergraphAppContext.js'; diff --git a/packages/hypergraph-react/src/internal/generate-delete-ops.tsx b/packages/hypergraph-react/src/internal/generate-delete-ops.tsx index 65fcc7eb..adf5adb9 100644 --- a/packages/hypergraph-react/src/internal/generate-delete-ops.tsx +++ b/packages/hypergraph-react/src/internal/generate-delete-ops.tsx @@ -1,4 +1,4 @@ -import type { Op } from '@graphprotocol/grc-20'; +import type { Op } from '@geoprotocol/geo-sdk'; import { Config } from '@graphprotocol/hypergraph'; import { gql, request } from 'graphql-request'; diff --git a/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx b/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx index 69d13a09..aba55e46 100644 --- a/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx +++ b/packages/hypergraph-react/src/internal/use-delete-entity-public.tsx @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import type { Connect } from '@graphprotocol/hypergraph'; import { Constants } from '@graphprotocol/hypergraph'; import { useQueryClient } from '@tanstack/react-query'; diff --git a/packages/hypergraph-react/src/prepare-publish.ts b/packages/hypergraph-react/src/prepare-publish.ts index adff3ed1..dce9ff75 100644 --- a/packages/hypergraph-react/src/prepare-publish.ts +++ b/packages/hypergraph-react/src/prepare-publish.ts @@ -5,7 +5,7 @@ import { type PropertiesParam, type PropertyValueParam, type RelationsParam, -} from '@graphprotocol/grc-20'; +} from '@geoprotocol/geo-sdk'; import { Config, Constants, type Entity, Utils } from '@graphprotocol/hypergraph'; import * as Option from 'effect/Option'; import type * as Schema from 'effect/Schema'; diff --git a/packages/hypergraph-react/src/publish-ops.ts b/packages/hypergraph-react/src/publish-ops.ts index 098fe0db..48b4336d 100644 --- a/packages/hypergraph-react/src/publish-ops.ts +++ b/packages/hypergraph-react/src/publish-ops.ts @@ -1,5 +1,5 @@ -import type { Op } from '@graphprotocol/grc-20'; -import { Ipfs } from '@graphprotocol/grc-20'; +import type { Op } from '@geoprotocol/geo-sdk'; +import { Ipfs } from '@geoprotocol/geo-sdk'; import { Config, Connect } from '@graphprotocol/hypergraph'; import type { Hash } from 'viem'; diff --git a/packages/hypergraph-react/test/prepare-publish.test.ts b/packages/hypergraph-react/test/prepare-publish.test.ts index 39e8a8bf..4f0be903 100644 --- a/packages/hypergraph-react/test/prepare-publish.test.ts +++ b/packages/hypergraph-react/test/prepare-publish.test.ts @@ -1,5 +1,5 @@ import { Repo } from '@automerge/automerge-repo'; -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { Config, Entity, store, Type } from '@graphprotocol/hypergraph'; import '@testing-library/jest-dom/vitest'; import request from 'graphql-request'; diff --git a/packages/hypergraph-react/test/space-ids-types.test.ts b/packages/hypergraph-react/test/space-ids-types.test.ts index 86b33644..90ac0cfd 100644 --- a/packages/hypergraph-react/test/space-ids-types.test.ts +++ b/packages/hypergraph-react/test/space-ids-types.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { Entity, Type } from '@graphprotocol/hypergraph'; import { describe, expectTypeOf, it } from 'vitest'; import type { useEntities } from '../src/hooks/use-entities.js'; diff --git a/packages/hypergraph/package.json b/packages/hypergraph/package.json index c8e2648c..a6cf6f64 100644 --- a/packages/hypergraph/package.json +++ b/packages/hypergraph/package.json @@ -72,7 +72,7 @@ "@effect/platform-node": "^0.96.1", "@effect/printer": "^0.45.0", "@effect/printer-ansi": "^0.45.0", - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@noble/ciphers": "^1.3.0", "@noble/curves": "^1.9.7", "@noble/hashes": "^1.8.0", diff --git a/packages/hypergraph/src/config.ts b/packages/hypergraph/src/config.ts index 36238fa3..6c243bc3 100644 --- a/packages/hypergraph/src/config.ts +++ b/packages/hypergraph/src/config.ts @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; let apiOrigin: string | null = null; diff --git a/packages/hypergraph/src/index.ts b/packages/hypergraph/src/index.ts index ae130576..483cace9 100644 --- a/packages/hypergraph/src/index.ts +++ b/packages/hypergraph/src/index.ts @@ -1,4 +1,4 @@ -export { Id } from '@graphprotocol/grc-20'; +export { Id } from '@geoprotocol/geo-sdk'; export * as Typesync from './cli/services/Model.js'; export * as Config from './config.js'; export * as Connect from './connect/index.js'; diff --git a/packages/hypergraph/src/mapping/Mapping.ts b/packages/hypergraph/src/mapping/Mapping.ts index a22d0bd9..54539515 100644 --- a/packages/hypergraph/src/mapping/Mapping.ts +++ b/packages/hypergraph/src/mapping/Mapping.ts @@ -1,4 +1,4 @@ -import { type CreatePropertyParams, Graph, Id as Grc20Id, type Op } from '@graphprotocol/grc-20'; +import { type CreatePropertyParams, Graph, Id as Grc20Id, type Op } from '@geoprotocol/geo-sdk'; import { Data, Array as EffectArray, Schema as EffectSchema, Option, pipe } from 'effect'; import { GeoIdSchema } from '../utils/geo-id.js'; import { namesAreUnique, toCamelCase, toPascalCase } from './Utils.js'; diff --git a/packages/hypergraph/src/space/find-many-public.ts b/packages/hypergraph/src/space/find-many-public.ts index a879392e..54bff66f 100644 --- a/packages/hypergraph/src/space/find-many-public.ts +++ b/packages/hypergraph/src/space/find-many-public.ts @@ -1,4 +1,4 @@ -import { ContentIds, SystemIds } from '@graphprotocol/grc-20'; +import { ContentIds, SystemIds } from '@geoprotocol/geo-sdk'; import { Config } from '@graphprotocol/hypergraph'; import * as Either from 'effect/Either'; import * as EffectSchema from 'effect/Schema'; diff --git a/packages/hypergraph/test/cli/services/Utils.test.ts b/packages/hypergraph/test/cli/services/Utils.test.ts index 93537edb..692b6a3c 100644 --- a/packages/hypergraph/test/cli/services/Utils.test.ts +++ b/packages/hypergraph/test/cli/services/Utils.test.ts @@ -1,5 +1,5 @@ import { describe, it } from '@effect/vitest'; -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { Effect } from 'effect'; import { buildMappingFileFromSchema, diff --git a/packages/hypergraph/test/entity/entity.test.ts b/packages/hypergraph/test/entity/entity.test.ts index 790670e1..a90f0524 100644 --- a/packages/hypergraph/test/entity/entity.test.ts +++ b/packages/hypergraph/test/entity/entity.test.ts @@ -1,6 +1,6 @@ import type { AnyDocumentId, DocHandle } from '@automerge/automerge-repo'; import { Repo } from '@automerge/automerge-repo'; -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { beforeEach, describe, expect, it } from 'vitest'; import * as Entity from '../../src/entity/index.js'; import * as Type from '../../src/type/type.js'; diff --git a/packages/hypergraph/test/entity/find-many-public.test.ts b/packages/hypergraph/test/entity/find-many-public.test.ts index e303bcb2..4668c422 100644 --- a/packages/hypergraph/test/entity/find-many-public.test.ts +++ b/packages/hypergraph/test/entity/find-many-public.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { describe, expect, it } from 'vitest'; import { parseResult } from '../../src/entity/find-many-public.js'; import * as Entity from '../../src/entity/index.js'; diff --git a/packages/hypergraph/test/entity/find-one-public.test.ts b/packages/hypergraph/test/entity/find-one-public.test.ts index fb10f38b..ca9fa63d 100644 --- a/packages/hypergraph/test/entity/find-one-public.test.ts +++ b/packages/hypergraph/test/entity/find-one-public.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { beforeEach, describe, expect, it, vi } from 'vitest'; import { findOnePublic } from '../../src/entity/find-one-public.js'; import * as Entity from '../../src/entity/index.js'; diff --git a/packages/hypergraph/test/entity/findMany.test.ts b/packages/hypergraph/test/entity/findMany.test.ts index 5c223250..6649bcb5 100644 --- a/packages/hypergraph/test/entity/findMany.test.ts +++ b/packages/hypergraph/test/entity/findMany.test.ts @@ -1,6 +1,6 @@ import type { AnyDocumentId, DocHandle } from '@automerge/automerge-repo'; import { Repo } from '@automerge/automerge-repo'; -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { beforeEach, describe, expect, it } from 'vitest'; import * as Entity from '../../src/entity/index.js'; import * as Type from '../../src/type/type.js'; diff --git a/packages/hypergraph/test/entity/space-ids-types.test.ts b/packages/hypergraph/test/entity/space-ids-types.test.ts index e0536738..70d768e0 100644 --- a/packages/hypergraph/test/entity/space-ids-types.test.ts +++ b/packages/hypergraph/test/entity/space-ids-types.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { describe, expectTypeOf, it } from 'vitest'; import type { FindManyPublicParams, findManyPublic } from '../../src/entity/find-many-public.js'; import type { FindOnePublicParams, findOnePublic } from '../../src/entity/find-one-public.js'; diff --git a/packages/hypergraph/test/mapping/Mapping.test.ts b/packages/hypergraph/test/mapping/Mapping.test.ts index 090ee428..8ad2a542 100644 --- a/packages/hypergraph/test/mapping/Mapping.test.ts +++ b/packages/hypergraph/test/mapping/Mapping.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { describe, expect, it } from 'vitest'; import { diff --git a/packages/hypergraph/test/utils/relation-config-overrides.test.ts b/packages/hypergraph/test/utils/relation-config-overrides.test.ts index 293cb089..7d8db239 100644 --- a/packages/hypergraph/test/utils/relation-config-overrides.test.ts +++ b/packages/hypergraph/test/utils/relation-config-overrides.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { describe, expect, it } from 'vitest'; import * as Entity from '../../src/entity/index.js'; import * as Type from '../../src/type/type.js'; diff --git a/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts b/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts index 856ac0fe..772e166b 100644 --- a/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts +++ b/packages/hypergraph/test/utils/translate-filter-to-graphql.test.ts @@ -1,4 +1,4 @@ -import { Id } from '@graphprotocol/grc-20'; +import { Id } from '@geoprotocol/geo-sdk'; import { Entity, Type } from '@graphprotocol/hypergraph'; import type * as Schema from 'effect/Schema'; import { describe, expect, it } from 'vitest'; diff --git a/packages/typesync-studio/graphql.codegen.ts b/packages/typesync-studio/graphql.codegen.ts index 98437254..5cf15b45 100644 --- a/packages/typesync-studio/graphql.codegen.ts +++ b/packages/typesync-studio/graphql.codegen.ts @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import type { CodegenConfig } from '@graphql-codegen/cli'; import type { TypeScriptPluginConfig } from '@graphql-codegen/typescript'; import type { TypeScriptDocumentsPluginConfig } from '@graphql-codegen/typescript-operations'; diff --git a/packages/typesync-studio/package.json b/packages/typesync-studio/package.json index fb111fee..88593b5d 100644 --- a/packages/typesync-studio/package.json +++ b/packages/typesync-studio/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@base-ui-components/react": "1.0.0-beta.2", - "@graphprotocol/grc-20": "^0.33.0", + "@geoprotocol/geo-sdk": "^0.1.1", "@graphprotocol/hypergraph": "workspace:*", "@graphprotocol/hypergraph-react": "workspace:*", "@graphql-typed-document-node/core": "^3.2.0", diff --git a/packages/typesync-studio/src/clients/Graphql.ts b/packages/typesync-studio/src/clients/Graphql.ts index 4c7904a9..993dfbed 100644 --- a/packages/typesync-studio/src/clients/Graphql.ts +++ b/packages/typesync-studio/src/clients/Graphql.ts @@ -1,4 +1,4 @@ -import { Graph } from '@graphprotocol/grc-20'; +import { Graph } from '@geoprotocol/geo-sdk'; import { GraphQLClient } from 'graphql-request'; export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 88516d27..5ebc7982 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,9 +26,9 @@ importers: '@effect/vitest': specifier: ^0.25.1 version: 0.25.1(effect@3.17.13)(vitest@3.2.4(@types/debug@4.1.12)(@types/node@24.3.0)(jiti@2.5.1)(jsdom@26.1.0(bufferutil@4.0.9)(utf-8-validate@5.0.10))(lightningcss@1.30.1)(terser@5.43.1)(tsx@4.20.5)(yaml@2.8.1)) - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) babel-plugin-annotate-pure-calls: specifier: ^0.5.0 version: 0.5.0(@babel/core@7.28.3) @@ -50,9 +50,9 @@ importers: '@base-ui-components/react': specifier: 1.0.0-beta.2 version: 1.0.0-beta.2(@types/react@19.1.10)(react-dom@19.1.1(react@19.1.1))(react@19.1.1) - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -141,9 +141,9 @@ importers: apps/events: dependencies: - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -259,9 +259,9 @@ importers: apps/next-example: dependencies: - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -293,9 +293,9 @@ importers: apps/privy-login-example: dependencies: - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../../packages/hypergraph/publish @@ -734,9 +734,9 @@ importers: '@effect/printer-ansi': specifier: ^0.45.0 version: 0.45.0(@effect/typeclass@0.31.10(effect@3.17.13))(effect@3.17.13) - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@noble/ciphers': specifier: ^1.3.0 version: 1.3.0 @@ -814,9 +814,9 @@ importers: '@automerge/automerge-repo-react-hooks': specifier: ^2.2.0 version: 2.2.0(react-dom@19.1.1(react@19.1.1))(react@19.1.1) - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) '@noble/hashes': specifier: ^1.8.0 version: 1.8.0 @@ -870,9 +870,9 @@ importers: '@base-ui-components/react': specifier: 1.0.0-beta.2 version: 1.0.0-beta.2(@types/react@19.1.10)(react-dom@19.1.1(react@19.1.1))(react@19.1.1) - '@graphprotocol/grc-20': - specifier: ^0.33.0 - version: 0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) + '@geoprotocol/geo-sdk': + specifier: ^0.1.1 + version: 0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17) '@graphprotocol/hypergraph': specifier: workspace:* version: link:../hypergraph/publish @@ -3031,6 +3031,9 @@ packages: '@floating-ui/utils@0.2.10': resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==} + '@geoprotocol/geo-sdk@0.1.1': + resolution: {integrity: sha512-NbJW8GN0xXa8fKbZAEw9rsakTjb6/AIzK5XYnFQZ5rn0TvLXJ5RUG4PpdP9jRfK3yQg8qLHte3WA2Sn3FXieGQ==} + '@geoprotocol/grc-20@0.1.7': resolution: {integrity: sha512-BJGUwG6exJnLkoRzCwzohybxgtwsYwuzEcnyJ2YPQQ1WwDXp7o8oNwLVUjzwEqjEabw1oIRpSnDNrH/LqSEaYA==} engines: {node: '>=18'} @@ -3038,9 +3041,6 @@ packages: '@gerrit0/mini-shiki@3.12.2': resolution: {integrity: sha512-HKZPmO8OSSAAo20H2B3xgJdxZaLTwtlMwxg0967scnrDlPwe6j5+ULGHyIqwgTbFCn9yv/ff8CmfWZLE9YKBzA==} - '@graphprotocol/grc-20@0.33.0': - resolution: {integrity: sha512-gDOkhtOx9F3w15pA31rq4a0SdeZBqQUv0n7Du+Z7IdJPj0vn9Bs/tLcTToljs34+JJ3G8xCIY8e2FmRjKxR9Dw==} - '@graphql-codegen/add@5.0.3': resolution: {integrity: sha512-SxXPmramkth8XtBlAHu4H4jYcYXM/o3p01+psU+0NADQowA8jtYkK6MW5rV6T+CxkEaNZItfSmZRPgIuypcqnA==} peerDependencies: @@ -3794,8 +3794,8 @@ packages: resolution: {integrity: sha512-TtxJSRD8Ohxp6bKkhrm27JRHAxPczQA7idtcTOMYI+wQRRrfgqxHv1cFbCApcSnNjtXkmzFozn6jQtFrOmbjPQ==} engines: {node: '>=14'} - '@oxc-project/types@0.108.0': - resolution: {integrity: sha512-7lf13b2IA/kZO6xgnIZA88sq3vwrxWk+2vxf6cc+omwYCRTiA5e63Beqf3fz/v8jEviChWWmFYBwzfSeyrsj7Q==} + '@oxc-project/types@0.110.0': + resolution: {integrity: sha512-6Ct21OIlrEnFEJk5LT4e63pk3btsI6/TusD/GStLi7wYlGJNOl1GI9qvXAnRAxQU9zqA2Oz+UwhfTOU2rPZVow==} '@parcel/watcher-android-arm64@2.5.1': resolution: {integrity: sha512-KF8+j9nNbUN8vzOFDpRMsaKBHZ/mcjEjMToVMJOhTozkDonQFFrRcfdLWn6yWKCmJKmdVxSgHiYvTCef4/qcBA==} @@ -4395,79 +4395,79 @@ packages: peerDependencies: viem: ^2.0.0 - '@rolldown/binding-android-arm64@1.0.0-beta.60': - resolution: {integrity: sha512-hOW6iQXtpG4uCW1zGK56+KhEXGttSkTp2ykncW/nkOIF/jOKTqbM944Q73HVeMXP1mPRvE2cZwNp3xeLIeyIGQ==} + '@rolldown/binding-android-arm64@1.0.0-rc.1': + resolution: {integrity: sha512-He6ZoCfv5D7dlRbrhNBkuMVIHd0GDnjJwbICE1OWpG7G3S2gmJ+eXkcNLJjzjNDpeI2aRy56ou39AJM9AD8YFA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@rolldown/binding-darwin-arm64@1.0.0-beta.60': - resolution: {integrity: sha512-vyDA4HXY2mP8PPtl5UE17uGPxUNG4m1wkfa3kAkR8JWrFbarV97UmLq22IWrNhtBPa89xqerzLK8KoVmz5JqCQ==} + '@rolldown/binding-darwin-arm64@1.0.0-rc.1': + resolution: {integrity: sha512-YzJdn08kSOXnj85ghHauH2iHpOJ6eSmstdRTLyaziDcUxe9SyQJgGyx/5jDIhDvtOcNvMm2Ju7m19+S/Rm1jFg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@rolldown/binding-darwin-x64@1.0.0-beta.60': - resolution: {integrity: sha512-WnxyqxAKP2BsxouwGY/RCF5UFw/LA4QOHhJ7VEl+UCelHokiwqNHRbryLAyRy3TE1FZ5eae+vAFcaetAu/kWLw==} + '@rolldown/binding-darwin-x64@1.0.0-rc.1': + resolution: {integrity: sha512-cIvAbqM+ZVV6lBSKSBtlNqH5iCiW933t1q8j0H66B3sjbe8AxIRetVqfGgcHcJtMzBIkIALlL9fcDrElWLJQcQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@rolldown/binding-freebsd-x64@1.0.0-beta.60': - resolution: {integrity: sha512-JtyWJ+zXOHof5gOUYwdTWI2kL6b8q9eNwqB/oD4mfUFaC/COEB2+47JMhcq78dey9Ahmec3DZKRDZPRh9hNAMQ==} + '@rolldown/binding-freebsd-x64@1.0.0-rc.1': + resolution: {integrity: sha512-rVt+B1B/qmKwCl1XD02wKfgh3vQPXRXdB/TicV2w6g7RVAM1+cZcpigwhLarqiVCxDObFZ7UgXCxPC7tpDoRog==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.60': - resolution: {integrity: sha512-LrMoKqpHx+kCaNSk84iSBd4yVOymLIbxJQtvFjDN2CjQraownR+IXcwYDblFcj9ivmS54T3vCboXBbm3s1zbPQ==} + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.1': + resolution: {integrity: sha512-69YKwJJBOFprQa1GktPgbuBOfnn+EGxu8sBJ1TjPER+zhSpYeaU4N07uqmyBiksOLGXsMegymuecLobfz03h8Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.60': - resolution: {integrity: sha512-sqI+Vdx1gmXJMsXN3Fsewm3wlt7RHvRs1uysSp//NLsCoh9ZFEUr4ZzGhWKOg6Rvf+njNu/vCsz96x7wssLejQ==} + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.1': + resolution: {integrity: sha512-9JDhHUf3WcLfnViFWm+TyorqUtnSAHaCzlSNmMOq824prVuuzDOK91K0Hl8DUcEb9M5x2O+d2/jmBMsetRIn3g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-arm64-musl@1.0.0-beta.60': - resolution: {integrity: sha512-8xlqGLDtTP8sBfYwneTDu8+PRm5reNEHAuI/+6WPy9y350ls0KTFd3EJCOWEXWGW0F35ko9Fn9azmurBTjqOrQ==} + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.1': + resolution: {integrity: sha512-UvApLEGholmxw/HIwmUnLq3CwdydbhaHHllvWiCTNbyGom7wTwOtz5OAQbAKZYyiEOeIXZNPkM7nA4Dtng7CLw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] - '@rolldown/binding-linux-x64-gnu@1.0.0-beta.60': - resolution: {integrity: sha512-iR4nhVouVZK1CiGGGyz+prF5Lw9Lmz30Rl36Hajex+dFVFiegka604zBwzTp5Tl0BZnr50ztnVJ30tGrBhDr8Q==} + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.1': + resolution: {integrity: sha512-uVctNgZHiGnJx5Fij7wHLhgw4uyZBVi6mykeWKOqE7bVy9Hcxn0fM/IuqdMwk6hXlaf9fFShDTFz2+YejP+x0A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] - '@rolldown/binding-linux-x64-musl@1.0.0-beta.60': - resolution: {integrity: sha512-HbfNcqNeqxFjSMf1Kpe8itr2e2lr0Bm6HltD2qXtfU91bSSikVs9EWsa1ThshQ1v2ZvxXckGjlVLtah6IoslPg==} + '@rolldown/binding-linux-x64-musl@1.0.0-rc.1': + resolution: {integrity: sha512-T6Eg0xWwcxd/MzBcuv4Z37YVbUbJxy5cMNnbIt/Yr99wFwli30O4BPlY8hKeGyn6lWNtU0QioBS46lVzDN38bg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] - '@rolldown/binding-openharmony-arm64@1.0.0-beta.60': - resolution: {integrity: sha512-BiiamFcgTJ+ZFOUIMO9AHXUo9WXvHVwGfSrJ+Sv0AsTd2w3VN7dJGiH3WRcxKFetljJHWvGbM4fdpY5lf6RIvw==} + '@rolldown/binding-openharmony-arm64@1.0.0-rc.1': + resolution: {integrity: sha512-PuGZVS2xNJyLADeh2F04b+Cz4NwvpglbtWACgrDOa5YDTEHKwmiTDjoD5eZ9/ptXtcpeFrMqD2H4Zn33KAh1Eg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@rolldown/binding-wasm32-wasi@1.0.0-beta.60': - resolution: {integrity: sha512-6roXGbHMdR2ucnxXuwbmQvk8tuYl3VGu0yv13KxspyKBxxBd4RS6iykzLD6mX2gMUHhfX8SVWz7n/62gfyKHow==} + '@rolldown/binding-wasm32-wasi@1.0.0-rc.1': + resolution: {integrity: sha512-2mOxY562ihHlz9lEXuaGEIDCZ1vI+zyFdtsoa3M62xsEunDXQE+DVPO4S4x5MPK9tKulG/aFcA/IH5eVN257Cw==} engines: {node: '>=14.0.0'} cpu: [wasm32] - '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.60': - resolution: {integrity: sha512-JBOm8/DC/CKnHyMHoJFdvzVHxUixid4dGkiTqGflxOxO43uSJMpl77pSPXvzwZ/VXwqblU2V0/PanyCBcRLowQ==} + '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.1': + resolution: {integrity: sha512-oQVOP5cfAWZwRD0Q3nGn/cA9FW3KhMMuQ0NIndALAe6obqjLhqYVYDiGGRGrxvnjJsVbpLwR14gIUYnpIcHR1g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@rolldown/binding-win32-x64-msvc@1.0.0-beta.60': - resolution: {integrity: sha512-MKF0B823Efp+Ot8KsbwIuGhKH58pf+2rSM6VcqyNMlNBHheOM0Gf7JmEu+toc1jgN6fqjH7Et+8hAzsLVkIGfA==} + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.1': + resolution: {integrity: sha512-Ydsxxx++FNOuov3wCBPaYjZrEvKOOGq3k+BF4BPridhg2pENfitSRD2TEuQ8i33bp5VptuNdC9IzxRKU031z5A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -4475,8 +4475,8 @@ packages: '@rolldown/pluginutils@1.0.0-beta.32': resolution: {integrity: sha512-QReCdvxiUZAPkvp1xpAg62IeNzykOFA6syH2CnClif4YmALN1XKpB39XneL80008UbtMShthSVDKmrx05N1q/g==} - '@rolldown/pluginutils@1.0.0-beta.60': - resolution: {integrity: sha512-Jz4aqXRPVtqkH1E3jRDzLO5cgN5JwW+WG0wXGE4NiJd25nougv/AHzxmKCzmVQUYnxLmTM0M4wrZp+LlC2FKLg==} + '@rolldown/pluginutils@1.0.0-rc.1': + resolution: {integrity: sha512-UTBjtTxVOhodhzFVp/ayITaTETRHPUPYZPXQe0WU0wOgxghMojXxYjOiPOauKIYNWJAWS2fd7gJgGQK8GU8vDA==} '@rollup/plugin-inject@5.0.5': resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} @@ -11052,8 +11052,8 @@ packages: vue-tsc: optional: true - rolldown@1.0.0-beta.60: - resolution: {integrity: sha512-YYgpv7MiTp9LdLj1fzGzCtij8Yi2OKEc3HQtfbIxW4yuSgpQz9518I69U72T5ErPA/ATOXqlcisiLrWy+5V9YA==} + rolldown@1.0.0-rc.1: + resolution: {integrity: sha512-M3AeZjYE6UclblEf531Hch0WfVC/NOL43Cc+WdF3J50kk5/fvouHhDumSGTh0oRjbZ8C4faaVr5r6Nx1xMqDGg==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -15857,19 +15857,7 @@ snapshots: '@floating-ui/utils@0.2.10': {} - '@geoprotocol/grc-20@0.1.7': - dependencies: - '@bokuweb/zstd-wasm': 0.0.27 - - '@gerrit0/mini-shiki@3.12.2': - dependencies: - '@shikijs/engine-oniguruma': 3.12.2 - '@shikijs/langs': 3.12.2 - '@shikijs/themes': 3.12.2 - '@shikijs/types': 3.12.2 - '@shikijs/vscode-textmate': 10.0.2 - - '@graphprotocol/grc-20@0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': + '@geoprotocol/geo-sdk@0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@3.25.76))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@geoprotocol/grc-20': 0.1.7 effect: 3.17.13 @@ -15886,7 +15874,7 @@ snapshots: - utf-8-validate - zod - '@graphprotocol/grc-20@0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': + '@geoprotocol/geo-sdk@0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76)': dependencies: '@geoprotocol/grc-20': 0.1.7 effect: 3.17.13 @@ -15903,7 +15891,7 @@ snapshots: - utf-8-validate - zod - '@graphprotocol/grc-20@0.33.0(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17)': + '@geoprotocol/geo-sdk@0.1.1(bufferutil@4.0.9)(ox@0.8.7(typescript@5.9.2)(zod@4.0.17))(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@4.0.17)': dependencies: '@geoprotocol/grc-20': 0.1.7 effect: 3.17.13 @@ -15920,6 +15908,18 @@ snapshots: - utf-8-validate - zod + '@geoprotocol/grc-20@0.1.7': + dependencies: + '@bokuweb/zstd-wasm': 0.0.27 + + '@gerrit0/mini-shiki@3.12.2': + dependencies: + '@shikijs/engine-oniguruma': 3.12.2 + '@shikijs/langs': 3.12.2 + '@shikijs/themes': 3.12.2 + '@shikijs/types': 3.12.2 + '@shikijs/vscode-textmate': 10.0.2 + '@graphql-codegen/add@5.0.3(graphql@16.11.0)': dependencies: '@graphql-codegen/plugin-helpers': 5.1.1(graphql@16.11.0) @@ -16884,7 +16884,7 @@ snapshots: '@opentelemetry/semantic-conventions@1.36.0': {} - '@oxc-project/types@0.108.0': {} + '@oxc-project/types@0.110.0': {} '@parcel/watcher-android-arm64@2.5.1': optional: true @@ -18106,50 +18106,50 @@ snapshots: tslib: 2.8.1 viem: 2.34.0(bufferutil@4.0.9)(typescript@5.9.2)(utf-8-validate@5.0.10)(zod@3.25.76) - '@rolldown/binding-android-arm64@1.0.0-beta.60': + '@rolldown/binding-android-arm64@1.0.0-rc.1': optional: true - '@rolldown/binding-darwin-arm64@1.0.0-beta.60': + '@rolldown/binding-darwin-arm64@1.0.0-rc.1': optional: true - '@rolldown/binding-darwin-x64@1.0.0-beta.60': + '@rolldown/binding-darwin-x64@1.0.0-rc.1': optional: true - '@rolldown/binding-freebsd-x64@1.0.0-beta.60': + '@rolldown/binding-freebsd-x64@1.0.0-rc.1': optional: true - '@rolldown/binding-linux-arm-gnueabihf@1.0.0-beta.60': + '@rolldown/binding-linux-arm-gnueabihf@1.0.0-rc.1': optional: true - '@rolldown/binding-linux-arm64-gnu@1.0.0-beta.60': + '@rolldown/binding-linux-arm64-gnu@1.0.0-rc.1': optional: true - '@rolldown/binding-linux-arm64-musl@1.0.0-beta.60': + '@rolldown/binding-linux-arm64-musl@1.0.0-rc.1': optional: true - '@rolldown/binding-linux-x64-gnu@1.0.0-beta.60': + '@rolldown/binding-linux-x64-gnu@1.0.0-rc.1': optional: true - '@rolldown/binding-linux-x64-musl@1.0.0-beta.60': + '@rolldown/binding-linux-x64-musl@1.0.0-rc.1': optional: true - '@rolldown/binding-openharmony-arm64@1.0.0-beta.60': + '@rolldown/binding-openharmony-arm64@1.0.0-rc.1': optional: true - '@rolldown/binding-wasm32-wasi@1.0.0-beta.60': + '@rolldown/binding-wasm32-wasi@1.0.0-rc.1': dependencies: '@napi-rs/wasm-runtime': 1.1.1 optional: true - '@rolldown/binding-win32-arm64-msvc@1.0.0-beta.60': + '@rolldown/binding-win32-arm64-msvc@1.0.0-rc.1': optional: true - '@rolldown/binding-win32-x64-msvc@1.0.0-beta.60': + '@rolldown/binding-win32-x64-msvc@1.0.0-rc.1': optional: true '@rolldown/pluginutils@1.0.0-beta.32': {} - '@rolldown/pluginutils@1.0.0-beta.60': {} + '@rolldown/pluginutils@1.0.0-rc.1': {} '@rollup/plugin-inject@5.0.5(rollup@4.47.1)': dependencies: @@ -26183,7 +26183,7 @@ snapshots: hash-base: 3.0.5 inherits: 2.0.4 - rolldown-plugin-dts@0.15.7(rolldown@1.0.0-beta.60)(typescript@5.9.2): + rolldown-plugin-dts@0.15.7(rolldown@1.0.0-rc.1)(typescript@5.9.2): dependencies: '@babel/generator': 7.28.3 '@babel/parser': 7.28.3 @@ -26193,31 +26193,31 @@ snapshots: debug: 4.4.1 dts-resolver: 2.1.1 get-tsconfig: 4.10.1 - rolldown: 1.0.0-beta.60 + rolldown: 1.0.0-rc.1 optionalDependencies: typescript: 5.9.2 transitivePeerDependencies: - oxc-resolver - supports-color - rolldown@1.0.0-beta.60: + rolldown@1.0.0-rc.1: dependencies: - '@oxc-project/types': 0.108.0 - '@rolldown/pluginutils': 1.0.0-beta.60 + '@oxc-project/types': 0.110.0 + '@rolldown/pluginutils': 1.0.0-rc.1 optionalDependencies: - '@rolldown/binding-android-arm64': 1.0.0-beta.60 - '@rolldown/binding-darwin-arm64': 1.0.0-beta.60 - '@rolldown/binding-darwin-x64': 1.0.0-beta.60 - '@rolldown/binding-freebsd-x64': 1.0.0-beta.60 - '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-beta.60 - '@rolldown/binding-linux-arm64-gnu': 1.0.0-beta.60 - '@rolldown/binding-linux-arm64-musl': 1.0.0-beta.60 - '@rolldown/binding-linux-x64-gnu': 1.0.0-beta.60 - '@rolldown/binding-linux-x64-musl': 1.0.0-beta.60 - '@rolldown/binding-openharmony-arm64': 1.0.0-beta.60 - '@rolldown/binding-wasm32-wasi': 1.0.0-beta.60 - '@rolldown/binding-win32-arm64-msvc': 1.0.0-beta.60 - '@rolldown/binding-win32-x64-msvc': 1.0.0-beta.60 + '@rolldown/binding-android-arm64': 1.0.0-rc.1 + '@rolldown/binding-darwin-arm64': 1.0.0-rc.1 + '@rolldown/binding-darwin-x64': 1.0.0-rc.1 + '@rolldown/binding-freebsd-x64': 1.0.0-rc.1 + '@rolldown/binding-linux-arm-gnueabihf': 1.0.0-rc.1 + '@rolldown/binding-linux-arm64-gnu': 1.0.0-rc.1 + '@rolldown/binding-linux-arm64-musl': 1.0.0-rc.1 + '@rolldown/binding-linux-x64-gnu': 1.0.0-rc.1 + '@rolldown/binding-linux-x64-musl': 1.0.0-rc.1 + '@rolldown/binding-openharmony-arm64': 1.0.0-rc.1 + '@rolldown/binding-wasm32-wasi': 1.0.0-rc.1 + '@rolldown/binding-win32-arm64-msvc': 1.0.0-rc.1 + '@rolldown/binding-win32-x64-msvc': 1.0.0-rc.1 rollup@4.39.0: dependencies: @@ -27126,8 +27126,8 @@ snapshots: diff: 8.0.2 empathic: 2.0.0 hookable: 5.5.3 - rolldown: 1.0.0-beta.60 - rolldown-plugin-dts: 0.15.7(rolldown@1.0.0-beta.60)(typescript@5.9.2) + rolldown: 1.0.0-rc.1 + rolldown-plugin-dts: 0.15.7(rolldown@1.0.0-rc.1)(typescript@5.9.2) semver: 7.7.2 tinyexec: 1.0.1 tinyglobby: 0.2.14 From da10f1a6d6f29a5d82e6e997bec5a0cccd5a3ed7 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 11:22:14 +0100 Subject: [PATCH 2/7] switch API endpoint --- apps/events/src/Boot.tsx | 2 +- apps/events/test-script.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/events/src/Boot.tsx b/apps/events/src/Boot.tsx index 23adee75..8a576efb 100644 --- a/apps/events/src/Boot.tsx +++ b/apps/events/src/Boot.tsx @@ -17,7 +17,7 @@ export function Boot() { diff --git a/apps/events/test-script.ts b/apps/events/test-script.ts index 7cd4dcb4..add72ee0 100644 --- a/apps/events/test-script.ts +++ b/apps/events/test-script.ts @@ -1,7 +1,7 @@ import { SystemIds } from '@geoprotocol/geo-sdk'; import { Config, Entity, Id, Type } from '@graphprotocol/hypergraph'; -Config.setApiOrigin('https://testnet-api-staging.geobrowser.io'); +Config.setApiOrigin('https://testnet-api.geobrowser.io'); const BOUNTY_TYPE_ID = Id('327976dea5ad45769b83b7e7ec6337cf'); const REWARD_PROPERTY_ID = Id('e8e7301136354e84b46b767e7cd530a8'); From 490768ea795f6ac9cf0dd75a327b7bcf8fbce295 Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 11:25:31 +0100 Subject: [PATCH 3/7] cleanup --- docs/docs/key-features.md | 2 +- packages/hypergraph/src/connect/smart-account.ts | 4 ++-- packages/hypergraph/src/mapping/Mapping.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/key-features.md b/docs/docs/key-features.md index d83b8fff..230d9398 100644 --- a/docs/docs/key-features.md +++ b/docs/docs/key-features.md @@ -41,7 +41,7 @@ Every update is encrypted **on the client** using XChaCha20-Poly1305. Only membe ## Knowledge Graph SDK -Build, link, and publish knowledge as entities and relations using the [`@graphprotocol/grc-20`](https://www.npmjs.com/package/@graphprotocol/grc-20) Knowledge Graph SDK. It makes it easy to organize data into spaces, anchor edits onchain, and work with The Graph's knowledge graph standard. +Build, link, and publish knowledge as entities and relations using the [`@geoprotocol/geo-sdk`](https://www.npmjs.com/package/@geoprotocol/geo-sdk) Knowledge Graph SDK. It makes it easy to organize data into spaces, anchor edits onchain, and work with The Graph's knowledge graph standard. ## Graph-based data model diff --git a/packages/hypergraph/src/connect/smart-account.ts b/packages/hypergraph/src/connect/smart-account.ts index 424c25d0..a2dae58c 100644 --- a/packages/hypergraph/src/connect/smart-account.ts +++ b/packages/hypergraph/src/connect/smart-account.ts @@ -1,4 +1,4 @@ -import { MAINNET, TESTNET } from '@graphprotocol/grc-20/contracts'; +import { TESTNET } from '@geoprotocol/geo-sdk/contracts'; import { randomBytes } from '@noble/hashes/utils'; import { encodeSmartSessionSignature, @@ -78,7 +78,7 @@ const SAFE_4337_MODULE_ADDRESS = '0x75cf11467937ce3F2f357CE24ffc3DBF8fD5c226'; const ERC7579_LAUNCHPAD_ADDRESS = '0x7579011aB74c46090561ea277Ba79D510c6C00ff'; const SPACE_FACTORY_ADDRESS: Record = { - '80451': MAINNET.DAO_FACTORY_ADDRESS, + '80451': TESTNET.DAO_FACTORY_ADDRESS, // TODO: switch to mainnet '19411': TESTNET.DAO_FACTORY_ADDRESS, }; diff --git a/packages/hypergraph/src/mapping/Mapping.ts b/packages/hypergraph/src/mapping/Mapping.ts index 54539515..a35c608f 100644 --- a/packages/hypergraph/src/mapping/Mapping.ts +++ b/packages/hypergraph/src/mapping/Mapping.ts @@ -523,7 +523,7 @@ function processType(type: SchemaType, typeIdMap: TypeIdMapping): ProcessedType * * @example * ```ts - * import { Id } from "@graphprotocol/grc-20" + * import { Id } from "@geoprotocol/geo-sdk" * import { generateMapping } from "@graphprotocol/hypergraph" * * const schema: Schema = { From 9f0bdbda1ef9251a0ed11745e9c8be06b1fbe0fa Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 11:29:16 +0100 Subject: [PATCH 4/7] fix networks --- packages/hypergraph-react/src/HypergraphAppContext.tsx | 2 +- packages/hypergraph-react/src/publish-ops.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hypergraph-react/src/HypergraphAppContext.tsx b/packages/hypergraph-react/src/HypergraphAppContext.tsx index 656b5d02..1d722990 100644 --- a/packages/hypergraph-react/src/HypergraphAppContext.tsx +++ b/packages/hypergraph-react/src/HypergraphAppContext.tsx @@ -968,7 +968,7 @@ export function HypergraphAppProvider({ const result = await Graph.createSpace({ editorAddress: smartSessionClient.account.address, name, - network: smartSessionClient.chain.id === Connect.GEO_TESTNET.id ? 'TESTNET' : 'MAINNET', + network: smartSessionClient.chain.id === Connect.GEO_TESTNET.id ? 'TESTNET' : 'TESTNET', // TODO: switch to mainnet }); spaceId = result.id; console.log('Created public space', spaceId); diff --git a/packages/hypergraph-react/src/publish-ops.ts b/packages/hypergraph-react/src/publish-ops.ts index 48b4336d..5b506423 100644 --- a/packages/hypergraph-react/src/publish-ops.ts +++ b/packages/hypergraph-react/src/publish-ops.ts @@ -23,7 +23,7 @@ export const publishOps = async ({ name, ops, walletClient, space }: PublishPara throw new Error('No address found'); } - const network = walletClient.chain.id === Connect.GEO_TESTNET.id ? 'TESTNET' : 'MAINNET'; + const network = walletClient.chain.id === Connect.GEO_TESTNET.id ? 'TESTNET' : 'TESTNET'; // TODO: switch to mainnet const publishResult = await Ipfs.publishEdit({ name, ops: ops, From c8c58171dae16e8d1c50c78282cb078ee842b14d Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 11:37:53 +0100 Subject: [PATCH 5/7] fix url --- apps/connect/src/routes/authenticate.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/connect/src/routes/authenticate.tsx b/apps/connect/src/routes/authenticate.tsx index cbf99fb9..e13b8b89 100644 --- a/apps/connect/src/routes/authenticate.tsx +++ b/apps/connect/src/routes/authenticate.tsx @@ -18,7 +18,7 @@ import { usePublicSpaces } from '@/hooks/use-public-spaces'; const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET; const API_URL = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' - ? `${Graph.MAINNET_API_ORIGIN}/v2/graphql` + ? `${Graph.TESTNET_API_ORIGIN}/v2/graphql` // TODO: switch to mainnet : `${Graph.TESTNET_API_ORIGIN}/v2/graphql`; type AuthenticateSearch = { From 404c4ff1be465d5eb6e010e3133a17b3067bc0cc Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 18:52:50 +0100 Subject: [PATCH 6/7] move graphql endpoint --- apps/connect/src/routes/authenticate.tsx | 4 ++-- packages/hypergraph-react/src/internal/use-public-space.tsx | 2 +- packages/hypergraph-react/test/prepare-publish.test.ts | 2 +- packages/typesync-studio/graphql.codegen.ts | 2 +- packages/typesync-studio/src/clients/Graphql.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/connect/src/routes/authenticate.tsx b/apps/connect/src/routes/authenticate.tsx index e13b8b89..a58f032b 100644 --- a/apps/connect/src/routes/authenticate.tsx +++ b/apps/connect/src/routes/authenticate.tsx @@ -18,8 +18,8 @@ import { usePublicSpaces } from '@/hooks/use-public-spaces'; const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET; const API_URL = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' - ? `${Graph.TESTNET_API_ORIGIN}/v2/graphql` // TODO: switch to mainnet - : `${Graph.TESTNET_API_ORIGIN}/v2/graphql`; + ? `${Graph.TESTNET_API_ORIGIN}/graphql` // TODO: switch to mainnet + : `${Graph.TESTNET_API_ORIGIN}/graphql`; type AuthenticateSearch = { data: unknown; diff --git a/packages/hypergraph-react/src/internal/use-public-space.tsx b/packages/hypergraph-react/src/internal/use-public-space.tsx index 18993089..d0ef55f2 100644 --- a/packages/hypergraph-react/src/internal/use-public-space.tsx +++ b/packages/hypergraph-react/src/internal/use-public-space.tsx @@ -24,7 +24,7 @@ export const usePublicSpace = ({ spaceId, enabled }: { spaceId: string; enabled: const result = useQuery({ queryKey: ['hypergraph-public-space', spaceId], queryFn: async () => { - const result = await request(`${Config.getApiOrigin()}/v2/graphql`, spaceQueryDocument, { + const result = await request(`${Config.getApiOrigin()}/graphql`, spaceQueryDocument, { spaceId, }); return result?.space?.page diff --git a/packages/hypergraph-react/test/prepare-publish.test.ts b/packages/hypergraph-react/test/prepare-publish.test.ts index 4f0be903..af45670f 100644 --- a/packages/hypergraph-react/test/prepare-publish.test.ts +++ b/packages/hypergraph-react/test/prepare-publish.test.ts @@ -133,7 +133,7 @@ describe('preparePublish', () => { const result = await preparePublish(params); - expect(mockRequest).toHaveBeenCalledWith(`${Config.getApiOrigin()}/v2/graphql`, expect.any(String), { + expect(mockRequest).toHaveBeenCalledWith(`${Config.getApiOrigin()}/graphql`, expect.any(String), { entityId: entity.id, spaceId: publicSpaceId, }); diff --git a/packages/typesync-studio/graphql.codegen.ts b/packages/typesync-studio/graphql.codegen.ts index 5cf15b45..f8b5d78d 100644 --- a/packages/typesync-studio/graphql.codegen.ts +++ b/packages/typesync-studio/graphql.codegen.ts @@ -18,7 +18,7 @@ const config = { overwrite: true, generates: { './src/generated/': { - schema: `${Graph.TESTNET_API_ORIGIN}/v2/graphql`, + schema: `${Graph.TESTNET_API_ORIGIN}/graphql`, documents: ['./src/**/*.{ts,tsx}'], preset: 'client', config: pluginConfig, diff --git a/packages/typesync-studio/src/clients/Graphql.ts b/packages/typesync-studio/src/clients/Graphql.ts index 993dfbed..783afb6c 100644 --- a/packages/typesync-studio/src/clients/Graphql.ts +++ b/packages/typesync-studio/src/clients/Graphql.ts @@ -1,4 +1,4 @@ import { Graph } from '@geoprotocol/geo-sdk'; import { GraphQLClient } from 'graphql-request'; -export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`); +export const graphqlClient = new GraphQLClient(`${Graph.TESTNET_API_ORIGIN}/graphql`); From da9df1e07437c974bf04dc7b7841092f9322a2bc Mon Sep 17 00:00:00 2001 From: Nik Graf Date: Fri, 23 Jan 2026 19:01:17 +0100 Subject: [PATCH 7/7] cleanup --- apps/connect/src/routes/index.tsx | 2 +- docs/docs/spaces.md | 2 +- packages/hypergraph-react/src/hooks/use-spaces.ts | 2 +- packages/hypergraph-react/src/internal/generate-delete-ops.tsx | 2 +- packages/hypergraph-react/src/prepare-publish.ts | 2 +- packages/hypergraph/src/entity/find-many-public.ts | 2 +- packages/hypergraph/src/entity/find-one-public.ts | 2 +- packages/hypergraph/src/entity/search-many-public.ts | 2 +- packages/hypergraph/src/space/find-many-public.ts | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/connect/src/routes/index.tsx b/apps/connect/src/routes/index.tsx index 7ea1a88c..27598735 100644 --- a/apps/connect/src/routes/index.tsx +++ b/apps/connect/src/routes/index.tsx @@ -33,7 +33,7 @@ function Authorized() { isPending: publicSpacesPending, error: publicSpacesError, data: publicSpacesData, - } = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`); + } = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/graphql`); return (
diff --git a/docs/docs/spaces.md b/docs/docs/spaces.md index a6ced3ce..62092050 100644 --- a/docs/docs/spaces.md +++ b/docs/docs/spaces.md @@ -14,7 +14,7 @@ Public spaces can be found at [Geo Browser](https://www.geobrowser.io/root), whe Indexer API that indexes all the public spaces and the content in it! -[Railway Graphql API](https://api-testnet.geobrowser.io/v2/graphql) +[Railway Graphql API](https://api-testnet.geobrowser.io/graphql) ## Private Spaces diff --git a/packages/hypergraph-react/src/hooks/use-spaces.ts b/packages/hypergraph-react/src/hooks/use-spaces.ts index e967f268..57e9e0da 100644 --- a/packages/hypergraph-react/src/hooks/use-spaces.ts +++ b/packages/hypergraph-react/src/hooks/use-spaces.ts @@ -35,7 +35,7 @@ export const useSpaces = (params: { mode: 'public' | 'private' }) => { queryKey: ['hypergraph-public-spaces', params.mode], queryFn: async () => { const result = await request( - `${Config.getApiOrigin()}/v2/graphql`, + `${Config.getApiOrigin()}/graphql`, publicSpacesQueryDocument, { accountAddress, diff --git a/packages/hypergraph-react/src/internal/generate-delete-ops.tsx b/packages/hypergraph-react/src/internal/generate-delete-ops.tsx index adf5adb9..bafa61e7 100644 --- a/packages/hypergraph-react/src/internal/generate-delete-ops.tsx +++ b/packages/hypergraph-react/src/internal/generate-delete-ops.tsx @@ -45,7 +45,7 @@ type DeleteEntityResult = { }; export const generateDeleteOps = async ({ id }: { id: string; space: string }) => { - const result = await request(`${Config.getApiOrigin()}/v2/graphql`, deleteEntityQueryDocument, { + const result = await request(`${Config.getApiOrigin()}/graphql`, deleteEntityQueryDocument, { entityId: id, }); if (result.entity === null) { diff --git a/packages/hypergraph-react/src/prepare-publish.ts b/packages/hypergraph-react/src/prepare-publish.ts index dce9ff75..c1adf2a2 100644 --- a/packages/hypergraph-react/src/prepare-publish.ts +++ b/packages/hypergraph-react/src/prepare-publish.ts @@ -58,7 +58,7 @@ export const preparePublish = async ({ publicSpace, }: PreparePublishParams) => { const data = await request( - `${Config.getApiOrigin()}/v2/graphql`, + `${Config.getApiOrigin()}/graphql`, entityToPublishQueryDocument, { entityId: entity.id, diff --git a/packages/hypergraph/src/entity/find-many-public.ts b/packages/hypergraph/src/entity/find-many-public.ts index 56a4c39f..d9b22df9 100644 --- a/packages/hypergraph/src/entity/find-many-public.ts +++ b/packages/hypergraph/src/entity/find-many-public.ts @@ -297,7 +297,7 @@ export const findManyPublic = async < queryVariables.sortDirection = sortDirection; } - const result = await request(`${Config.getApiOrigin()}/v2/graphql`, queryDocument, queryVariables); + const result = await request(`${Config.getApiOrigin()}/graphql`, queryDocument, queryVariables); const { data, invalidEntities, invalidRelationEntities } = parseResult( result, diff --git a/packages/hypergraph/src/entity/find-one-public.ts b/packages/hypergraph/src/entity/find-one-public.ts index 761ecefb..ad842d75 100644 --- a/packages/hypergraph/src/entity/find-one-public.ts +++ b/packages/hypergraph/src/entity/find-one-public.ts @@ -165,7 +165,7 @@ export const findOnePublic = async < const queryDocument = buildEntityQuery(relationTypeIds, includeSpaceIds); - const result = await request(`${Config.getApiOrigin()}/v2/graphql`, queryDocument, { + const result = await request(`${Config.getApiOrigin()}/graphql`, queryDocument, { id, spaceId: space, }); diff --git a/packages/hypergraph/src/entity/search-many-public.ts b/packages/hypergraph/src/entity/search-many-public.ts index 708e0993..89a4248f 100644 --- a/packages/hypergraph/src/entity/search-many-public.ts +++ b/packages/hypergraph/src/entity/search-many-public.ts @@ -82,7 +82,7 @@ export const searchManyPublic = async < const filterParams = filter ? Utils.translateFilterToGraphql(filter, type) : {}; - const result = await request(`${Config.getApiOrigin()}/v2/graphql`, queryDocument, { + const result = await request(`${Config.getApiOrigin()}/graphql`, queryDocument, { spaceId: space, typeIds, query, diff --git a/packages/hypergraph/src/space/find-many-public.ts b/packages/hypergraph/src/space/find-many-public.ts index 54bff66f..62053d47 100644 --- a/packages/hypergraph/src/space/find-many-public.ts +++ b/packages/hypergraph/src/space/find-many-public.ts @@ -186,7 +186,7 @@ export const findManyPublic = async (params?: FindManyPublicParams) => { throw new Error('Provide only one of memberId or editorId when calling findManyPublic().'); } - const endpoint = `${Config.getApiOrigin()}/v2/graphql`; + const endpoint = `${Config.getApiOrigin()}/graphql`; const queryDocument = buildSpacesQuery(filter); const queryResult = await request(endpoint, queryDocument); return parseSpacesQueryResult(queryResult);