Skip to content

Commit dd758c2

Browse files
authored
Nik/switch to geo sdk (#586)
1 parent 3bf4953 commit dd758c2

52 files changed

Lines changed: 175 additions & 175 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@base-ui-components/react": "1.0.0-beta.2",
18-
"@graphprotocol/grc-20": "^0.33.0",
18+
"@geoprotocol/geo-sdk": "^0.1.1",
1919
"@graphprotocol/hypergraph": "workspace:*",
2020
"@graphprotocol/hypergraph-react": "workspace:*",
2121
"@heroicons/react": "^2.2.0",

apps/connect/src/components/CreateSpaceCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph } from '@graphprotocol/grc-20';
1+
import { Graph } from '@geoprotocol/geo-sdk';
22
import { Key, type Messages, SpaceEvents, SpaceInfo, StoreConnect, Utils } from '@graphprotocol/hypergraph';
33
import { useIdentityToken } from '@privy-io/react-auth';
44
import { useQueryClient } from '@tanstack/react-query';

apps/connect/src/routes/authenticate.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph } from '@graphprotocol/grc-20';
1+
import { Graph } from '@geoprotocol/geo-sdk';
22
import { Connect, Identity, Key, type Messages, StoreConnect, Utils } from '@graphprotocol/hypergraph';
33
import { ExclamationTriangleIcon } from '@heroicons/react/24/solid';
44
import { useIdentityToken, usePrivy, useWallets } from '@privy-io/react-auth';
@@ -18,8 +18,8 @@ import { usePublicSpaces } from '@/hooks/use-public-spaces';
1818
const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET;
1919
const API_URL =
2020
import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis'
21-
? `${Graph.MAINNET_API_ORIGIN}/v2/graphql`
22-
: `${Graph.TESTNET_API_ORIGIN}/v2/graphql`;
21+
? `${Graph.TESTNET_API_ORIGIN}/graphql` // TODO: switch to mainnet
22+
: `${Graph.TESTNET_API_ORIGIN}/graphql`;
2323

2424
type AuthenticateSearch = {
2525
data: unknown;

apps/connect/src/routes/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph } from '@graphprotocol/grc-20';
1+
import { Graph } from '@geoprotocol/geo-sdk';
22
import { useIdentityToken } from '@privy-io/react-auth';
33
import { createFileRoute } from '@tanstack/react-router';
44
import { CreateSpaceCard } from '@/components/CreateSpaceCard';
@@ -33,7 +33,7 @@ function Authorized() {
3333
isPending: publicSpacesPending,
3434
error: publicSpacesError,
3535
data: publicSpacesData,
36-
} = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/v2/graphql`);
36+
} = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/graphql`);
3737

3838
return (
3939
<div className="flex grow flex-col items-center justify-center">

apps/events/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:script": "tsx test-script.ts"
1111
},
1212
"dependencies": {
13-
"@graphprotocol/grc-20": "^0.33.0",
13+
"@geoprotocol/geo-sdk": "^0.1.1",
1414
"@graphprotocol/hypergraph": "workspace:*",
1515
"@graphprotocol/hypergraph-react": "workspace:*",
1616
"@noble/hashes": "^1.8.0",

apps/events/src/Boot.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function Boot() {
1717
<HypergraphAppProvider
1818
syncServerUri="http://localhost:3030"
1919
appId="93bb8907085a4a0e83dd62b0dc98e793"
20-
apiOrigin="https://testnet-api-staging.geobrowser.io"
20+
apiOrigin="https://testnet-api.geobrowser.io"
2121
>
2222
<RouterProvider router={router} />
2323
</HypergraphAppProvider>

apps/events/src/components/create-events.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type Op } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@geoprotocol/geo-sdk';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { mapping } from '../mapping';

apps/events/src/components/create-properties-and-types-event.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type Op } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@geoprotocol/geo-sdk';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { useState } from 'react';

apps/events/src/components/create-properties-and-types-todos.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type Op } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@geoprotocol/geo-sdk';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { useState } from 'react';

apps/events/src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ContentIds, SystemIds } from '@graphprotocol/grc-20';
1+
import { ContentIds, SystemIds } from '@geoprotocol/geo-sdk';
22
import { Entity, Id, Type } from '@graphprotocol/hypergraph';
33

44
export const User = Entity.Schema(

0 commit comments

Comments
 (0)