Skip to content

Commit 6021153

Browse files
authored
fix imports (#264)
1 parent 69ca83b commit 6021153

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

apps/connect/src/routes/authenticate.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { Loading } from '@/components/ui/Loading';
44
import { usePrivateSpaces } from '@/hooks/use-private-spaces';
55
import { usePublicSpaces } from '@/hooks/use-public-spaces';
66
import { Connect, Identity, Key, type Messages, StoreConnect, Utils } from '@graphprotocol/hypergraph';
7-
import { GEOGENESIS, GEO_TESTNET, getSmartAccountWalletClient } from '@graphprotocol/hypergraph/connect/smart-account';
87
import { useIdentityToken, usePrivy, useWallets } from '@privy-io/react-auth';
98
import { createFileRoute } from '@tanstack/react-router';
109
import { createStore } from '@xstate/store';
@@ -14,7 +13,7 @@ import { TriangleAlert } from 'lucide-react';
1413
import { useEffect } from 'react';
1514
import { createWalletClient, custom } from 'viem';
1615

17-
const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? GEOGENESIS : GEO_TESTNET;
16+
const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET;
1817

1918
type AuthenticateSearch = {
2019
data: unknown;
@@ -396,7 +395,7 @@ function AuthenticateComponent() {
396395
},
397396
);
398397
console.log('smart session created');
399-
const smartAccountClient = await getSmartAccountWalletClient({
398+
const smartAccountClient = await Connect.getSmartAccountWalletClient({
400399
owner: walletClient,
401400
address: accountAddress,
402401
chain: CHAIN,

apps/connect/src/routes/login.lazy.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import GeoLogo from '@/assets/images/geo-logo-branded.svg?react';
22
import { AppTitle } from '@/components/ui/AppTitle';
33
import { Connect, type Identity } from '@graphprotocol/hypergraph';
4-
import { GEOGENESIS, GEO_TESTNET } from '@graphprotocol/hypergraph/connect/smart-account';
54
import { type ConnectedWallet, useIdentityToken, usePrivy, useWallets } from '@privy-io/react-auth';
65
import { createLazyFileRoute, useRouter } from '@tanstack/react-router';
76
import { useCallback, useEffect, useState } from 'react';
87
import { type WalletClient, createWalletClient, custom } from 'viem';
98

10-
const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? GEOGENESIS : GEO_TESTNET;
9+
const CHAIN = import.meta.env.VITE_HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET;
1110
const syncServerUri = import.meta.env.VITE_HYPERGRAPH_SYNC_SERVER_ORIGIN;
1211
const storage = localStorage;
1312

apps/server/src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { parse } from 'node:url';
2-
import { Identity, Inboxes, Messages, SpaceEvents, Utils } from '@graphprotocol/hypergraph';
3-
import { GEOGENESIS, GEO_TESTNET } from '@graphprotocol/hypergraph/connect/smart-account';
2+
import { Connect, Identity, Inboxes, Messages, SpaceEvents, Utils } from '@graphprotocol/hypergraph';
43
import { bytesToHex, randomBytes } from '@noble/hashes/utils.js';
54
import cors from 'cors';
65
import { Effect, Exit, Schema } from 'effect';
@@ -43,7 +42,7 @@ const decodeRequestMessage = Schema.decodeUnknownEither(Messages.RequestMessage)
4342
const webSocketServer = new WebSocketServer({ noServer: true });
4443
const PORT = process.env.PORT !== undefined ? Number.parseInt(process.env.PORT) : 3030;
4544
const app = express();
46-
const CHAIN = process.env.HYPERGRAPH_CHAIN === 'geogenesis' ? GEOGENESIS : GEO_TESTNET;
45+
const CHAIN = process.env.HYPERGRAPH_CHAIN === 'geogenesis' ? Connect.GEOGENESIS : Connect.GEO_TESTNET;
4746
const RPC_URL = process.env.HYPERGRAPH_RPC_URL ?? CHAIN.rpcUrls.default.http[0];
4847

4948
type AuthenticatedRequest = Request & { accountAddress?: string };

0 commit comments

Comments
 (0)