Skip to content

Commit 20ae04b

Browse files
committed
Merge branch 'main' of github.com:graphprotocol/hypergraph into chris.whited/feat-typesync-pkg/mapping-generation
2 parents d086b9f + c792450 commit 20ae04b

20 files changed

Lines changed: 49 additions & 41 deletions

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pnpm up --interactive --latest -r
88

99
## Publishing
1010

11+
Update the version in the `package.json` files (hypergraph, hypergraph-react, typesync)
12+
1113
```sh
1214
pnpm build
1315
# publish hypergraph

apps/connect/.env.development

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
VITE_HYPERGRAPH_SYNC_SERVER_ORIGIN="http://localhost:3030"
22
VITE_HYPERGRAPH_CHAIN="geo-testnet"
3-
VITE_HYPERGRAPH_API_URL="https://v2-postgraphile.up.railway.app/graphql"
43
VITE_HYPERGRAPH_RPC_URL="https://rpc-geo-test-zc16z3tcvf.t.conduit.xyz"
54
VITE_PRIVY_APP_ID="cmbhnmo1x000bla0mxudtd8z9"
65
VITE_PRIVY_PROVIDERS="development"
76
# VITE_HYPERGRAPH_CHAIN="geogenesis"
8-
# VITE_HYPERGRAPH_API_URL="https://hypergraph-v2.up.railway.app/graphql"
97
# VITE_HYPERGRAPH_RPC_URL="https://rpc-geo-genesis-h0q2s21xx8.t.conduit.xyz"

apps/connect/.env.production

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# VITE_HYPERGRAPH_SYNC_SERVER_ORIGIN="https://syncserver.hypergraph.thegraph.com"
22
VITE_HYPERGRAPH_SYNC_SERVER_ORIGIN="https://hypergraph.fly.dev"
33
VITE_HYPERGRAPH_CHAIN="geo-testnet"
4-
VITE_HYPERGRAPH_API_URL="https://v2-postgraphile.up.railway.app/graphql"
54
VITE_HYPERGRAPH_RPC_URL="https://rpc-geo-test-zc16z3tcvf.t.conduit.xyz"
65
VITE_PRIVY_APP_ID="cmcccikza007bjy0niawgutl0"
76
VITE_PRIVY_PROVIDERS="production"

apps/connect/src/routes/authenticate.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { SpacesCard } from '@/components/SpacesCard';
33
import { Loading } from '@/components/ui/Loading';
44
import { usePrivateSpaces } from '@/hooks/use-private-spaces';
55
import { usePublicSpaces } from '@/hooks/use-public-spaces';
6+
import { Graph } from '@graphprotocol/grc-20';
67
import { Connect, Identity, Key, type Messages, StoreConnect, Utils } from '@graphprotocol/hypergraph';
78
import { useIdentityToken, usePrivy, useWallets } from '@privy-io/react-auth';
89
import { createFileRoute } from '@tanstack/react-router';
@@ -145,7 +146,7 @@ function AuthenticateComponent() {
145146
isPending: publicSpacesPending,
146147
error: publicSpacesError,
147148
data: publicSpacesData,
148-
} = usePublicSpaces(import.meta.env.VITE_HYPERGRAPH_API_URL);
149+
} = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/graphql`);
149150

150151
const selectedPrivateSpaces = new Set<string>();
151152
const selectedPublicSpaces = new Set<string>();

apps/connect/src/routes/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { SpacesCard } from '@/components/SpacesCard';
33
import { Loading } from '@/components/ui/Loading';
44
import { usePrivateSpaces } from '@/hooks/use-private-spaces';
55
import { usePublicSpaces } from '@/hooks/use-public-spaces';
6+
import { Graph } from '@graphprotocol/grc-20';
67
import { useIdentityToken } from '@privy-io/react-auth';
78
import { createFileRoute } from '@tanstack/react-router';
89

@@ -32,7 +33,7 @@ function Authorized() {
3233
isPending: publicSpacesPending,
3334
error: publicSpacesError,
3435
data: publicSpacesData,
35-
} = usePublicSpaces(import.meta.env.VITE_HYPERGRAPH_API_URL);
36+
} = usePublicSpaces(`${Graph.TESTNET_API_ORIGIN}/graphql`);
3637

3738
return (
3839
<div className="flex grow flex-col items-center justify-center">

apps/server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ app.use(express.json({ limit: '2mb' }));
6969
app.use(cors());
7070

7171
app.get('/', (_req, res) => {
72-
res.send('Server is running (v0.0.12)');
72+
res.send('Server is running (v0.0.14)');
7373
});
7474

7575
app.get('/connect/spaces', async (req, res) => {

docs/docs/spaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Public spaces are spaces that are open to the public. They are visible to anyone
1212

1313
Indexer API that indexes all the public spaces and the content in it!
1414

15-
[Railway Graphql API](https://v2-postgraphile.up.railway.app/graphql)
15+
[Railway Graphql API](https://api-testnet.geobrowser.io/graphql)
1616

1717
## Private Spaces
1818

docs/docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const config = {
4545
sidebarPath: './sidebars.js',
4646
// Please change this to your repo.
4747
// Remove this to remove the "edit this page" links.
48-
editUrl: 'https://github.com/graphprotocol/hypergraph/edit/main/',
48+
editUrl: 'https://github.com/graphprotocol/hypergraph/edit/main/docs',
4949
},
5050
blog: {
5151
showReadingTime: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@babel/core": "^7.28.0",
2020
"@biomejs/biome": "1.9.4",
2121
"@changesets/cli": "^2.29.5",
22-
"@graphprotocol/grc-20": "^0.21.4",
22+
"@graphprotocol/grc-20": "^0.21.6",
2323
"babel-plugin-annotate-pure-calls": "^0.5.0",
2424
"glob": "^11.0.3",
2525
"pkg-pr-new": "^0.0.54",

packages/hypergraph-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/hypergraph-react",
3-
"version": "0.0.12",
3+
"version": "0.0.14",
44
"description": "React implementation and additional functionality, components, and hooks for the hypergraph SDK framework",
55
"keywords": ["Web3", "Local-First", "Knowledge Graph", "Graph Protocol", "react"],
66
"publishConfig": {

0 commit comments

Comments
 (0)