Skip to content

Commit 717f66d

Browse files
committed
nightly
1 parent a3098db commit 717f66d

File tree

4 files changed

+110
-4
lines changed

4 files changed

+110
-4
lines changed

packages/web/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"@near-wallet-selector/core": "^7.0.3",
1919
"@near-wallet-selector/meteor-wallet": "^7.0.3",
2020
"@near-wallet-selector/near-wallet": "^7.0.3",
21+
"@near-wallet-selector/nightly-connect": "7.0.3",
2122
"@near-wallet-selector/sender": "^7.4.0",
2223
"@near/apollo": "*",
2324
"@near/ts": "*",
@@ -28,6 +29,7 @@
2829
"@types/bn.js": "^5.1.0",
2930
"@types/ramda": "^0.28.14",
3031
"@types/yup": "^0.29.14",
32+
"@vercel/analytics": "^0.1.8",
3133
"@xstate/react": "^3.0.0",
3234
"autoprefixer": "^10.4.13",
3335
"axios": "^1.2.2",

packages/web/src/context/wallet-selector.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type { WalletSelector, AccountState } from "@near-wallet-selector/core";
1212
import { setupNearWallet } from "@near-wallet-selector/near-wallet";
1313
import { setupMeteorWallet } from "@near-wallet-selector/meteor-wallet";
1414
/* import { setupSender } from "@near-wallet-selector/sender"; */
15+
/* import { setupNightlyConnect } from "@near-wallet-selector/nightly-connect"; */
1516
import { tokenMetadata } from "@/interfaces";
1617
import { viewFunction } from "@/tools";
1718

@@ -64,7 +65,19 @@ export const WalletSelectorContextProvider: React.FC<
6465
const _selector = await setupWalletSelector({
6566
network: import.meta.env.VITE_NEAR_NETWORK || "testnet",
6667
debug: true,
67-
modules: [setupNearWallet(), setupMeteorWallet() /* setupSender() */],
68+
modules: [
69+
/* setupNightlyConnect({
70+
url: "wss://relay.nightly.app/app",
71+
appMetadata: {
72+
additionalInfo: "",
73+
application: "NEAR Wallet Selector",
74+
description: "Example dApp used by NEAR Wallet Selector",
75+
icon: "https://near.org/wp-content/uploads/2020/09/cropped-favicon-192x192.png",
76+
},
77+
}), */
78+
setupNearWallet(),
79+
setupMeteorWallet() /* setupSender() */,
80+
],
6881
});
6982

7083
const state = _selector.store.getState();

packages/web/src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import { WalletSelectorModal } from "@/modals";
1111
import { buildClient } from "./resolvers";
1212
import "./index.css";
1313
import "intro.js/introjs.css";
14-
14+
import { inject } from "@vercel/analytics";
1515
// TODO: Find a better way to handle this buffer error
1616
window.Buffer = window.Buffer || Buffer;
17-
17+
inject();
1818
ReactDOM.createRoot(document.getElementById("root")!).render(
1919
<React.StrictMode>
2020
<ApolloProvider client={buildClient(import.meta.env.VITE_GRAPHQL_API_URI)}>

yarn.lock

Lines changed: 92 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)