Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Solana Integration #461

Merged
merged 15 commits into from
Jul 12, 2024
23 changes: 21 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@
"@fortawesome/free-solid-svg-icons": "6.5.2",
"@fortawesome/react-fontawesome": "0.2.2",
"@itheum/sdk-mx-data-nft": "3.5.1",
"@metaplex-foundation/digital-asset-standard-api": "1.0.3",
"@metaplex-foundation/mpl-bubblegum": "3.1.2",
"@metaplex-foundation/mpl-token-metadata": "3.2.1",
"@metaplex-foundation/umi": "0.8.10",
"@metaplex-foundation/umi-bundle-defaults": "0.8.10",
"@metaplex-foundation/umi-web3js-adapters": "0.8.10",
"@multiversx/sdk-core": "13.2.1",
"@multiversx/sdk-dapp": "2.33.5",
"@multiversx/sdk-network-providers": "2.4.3",
"@noble/ed25519": "1.7.3",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dropdown-menu": "2.0.6",
"@radix-ui/react-navigation-menu": "1.1.4",
Expand Down Expand Up @@ -42,6 +49,14 @@
"react-zoom-pan-pinch": "3.4.4",
"simplex-noise": "4.0.1",
"slick-carousel": "1.8.1",
"@solana-mobile/wallet-adapter-mobile": "2.1.3",
"@solana/spl-account-compression": "0.2.1",
"@solana/spl-token": "0.4.6",
"@solana/wallet-adapter-base": "0.9.23",
"@solana/wallet-adapter-react": "0.15.35",
"@solana/wallet-adapter-react-ui": "0.9.35",
"@solana/wallet-adapter-wallets": "0.19.32",
"@solana/web3.js": "1.91.8",
"tailwind-merge": "2.3.0",
"tailwindcss-animate": "1.0.7",
"web-vitals": "4.1.1",
Expand Down Expand Up @@ -97,9 +112,13 @@
"vitest": "1.6.0"
},
"resolutions": {
"**/*/nth-check": "2.0.1"
"**/*/nth-check": "2.0.1",
"rpc-websockets": "7.9.0"
},
"overrides": {
"rpc-websockets": "7.9.0"
},
"engines": {
"node": "18.20.2"
"node": "18.20.3"
}
}
104 changes: 47 additions & 57 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,57 +1,47 @@
import React from "react";
import { Route, Routes, BrowserRouter as Router } from "react-router-dom";
import { DappProvider, Layout } from "components";
import { TransactionsToastList, NotificationModal, SignTransactionsModals } from "components";
import { ELROND_NETWORK, apiTimeout, walletConnectV2ProjectId } from "config";
import { MultiversxInfographics, MyWallet, PageNotFound, Unlock, GetBitz, BoberGameRoom } from "pages";
import { ItheumTrailblazer } from "pages/AppMarketplace/ItheumTrailblazer/ItheumTrailblazer";
import { NFTunes } from "pages/AppMarketplace/NFTunes";
import { TimeCapsule } from "pages/AppMarketplace/TimeCapsule/TimeCapsule";
import { routes, routeNames } from "routes";
import { ThemeProvider } from "./libComponents/ThemeProvider";
import { StoreProvider } from "./store/StoreProvider";
import { DeepForestMusic } from "pages/AppMarketplace/DeepForestMusic/DeepForestMusic";

export const App = () => {
return (
<Router>
<DappProvider
environment={ELROND_NETWORK}
customNetworkConfig={{
name: "itheum-explorer",
apiTimeout,
walletConnectV2ProjectId,
}}
dappConfig={{
shouldUseWebViewProvider: true,
}}>
<StoreProvider>
<ThemeProvider defaultTheme="system" storageKey="explorer-ui-theme">
<Layout>
<TransactionsToastList />
<NotificationModal />
<SignTransactionsModals className="custom-class-for-modals" />
<Routes>
<Route path={routeNames.unlock} element={<Unlock />} />
{routes.map((route, index) => (
<Route path={route.path} key={index} element={<route.component />} />
))}
<Route path={`${routeNames.itheumtrailblazer}/:targetNonce/:targetMessageToBeSigned`} element={<ItheumTrailblazer />} />
<Route path={`${routeNames.multiversxinfographics}/:targetNonce/:targetMessageToBeSigned`} element={<MultiversxInfographics />} />
<Route path={`${routeNames.nftunes}/:targetNonce/:targetMessageToBeSigned`} element={<NFTunes />} />
<Route path={`${routeNames.deepforestmusic}/:targetNonce/:targetMessageToBeSigned`} element={<DeepForestMusic />} />
<Route path={`${routeNames.timecapsule}/:targetNonce/:targetMessageToBeSigned`} element={<TimeCapsule />} />
<Route path={`${routeNames.mywallet}/:targetNonce/:targetMessageToBeSigned`} element={<MyWallet />} />
<Route path={`${routeNames.getbitz}/:targetNonce/:targetMessageToBeSigned`} element={<GetBitz />} />
<Route path={`${routeNames.bobergameroom}/:targetNonce/:targetMessageToBeSigned`} element={<BoberGameRoom />} />
<Route path="*" element={<PageNotFound />} />
</Routes>
</Layout>
</ThemeProvider>
</StoreProvider>
</DappProvider>
</Router>
);
};

export default App;
import React from "react";
import { Route, Routes, BrowserRouter as Router } from "react-router-dom";
import { Layout } from "components";
import { MvxContextProvider } from "contexts/mvx/MvxContextProvider";
import { SolContextProvider } from "contexts/sol/SolContextProvider";
import { MultiversxInfographics, MyWallet, PageNotFound, Unlock, GetBitz, BoberGameRoom } from "pages";
import { DeepForestMusic } from "pages/AppMarketplace/DeepForestMusic/DeepForestMusic";
import { ItheumTrailblazer } from "pages/AppMarketplace/ItheumTrailblazer/ItheumTrailblazer";
import { NFTunes } from "pages/AppMarketplace/NFTunes";
import { TimeCapsule } from "pages/AppMarketplace/TimeCapsule/TimeCapsule";
import { routes, routeNames } from "routes";
import { ThemeProvider } from "./contexts/ThemeProvider";
import { StoreProvider } from "./store/StoreProvider";

export const App = () => {
return (
<Router>
<SolContextProvider>
<MvxContextProvider>
<StoreProvider>
<ThemeProvider defaultTheme="system" storageKey="explorer-ui-theme">
<Layout>
<Routes>
<Route path={routeNames.unlock} element={<Unlock />} />
{routes.map((route, index) => (
<Route path={route.path} key={index} element={<route.component />} />
))}
<Route path={`${routeNames.itheumtrailblazer}/:targetNonce/:targetMessageToBeSigned`} element={<ItheumTrailblazer />} />
<Route path={`${routeNames.multiversxinfographics}/:targetNonce/:targetMessageToBeSigned`} element={<MultiversxInfographics />} />
<Route path={`${routeNames.nftunes}/:targetNonce/:targetMessageToBeSigned`} element={<NFTunes />} />
<Route path={`${routeNames.deepforestmusic}/:targetNonce/:targetMessageToBeSigned`} element={<DeepForestMusic />} />
<Route path={`${routeNames.timecapsule}/:targetNonce/:targetMessageToBeSigned`} element={<TimeCapsule />} />
<Route path={`${routeNames.mywallet}/:targetNonce/:targetMessageToBeSigned`} element={<MyWallet />} />
<Route path={`${routeNames.getbitz}/:targetNonce/:targetMessageToBeSigned`} element={<GetBitz />} />
<Route path={`${routeNames.bobergameroom}/:targetNonce/:targetMessageToBeSigned`} element={<BoberGameRoom />} />
<Route path="*" element={<PageNotFound />} />
</Routes>
</Layout>
</ThemeProvider>
</StoreProvider>
</MvxContextProvider>
</SolContextProvider>
</Router>
);
};

export default App;
Loading