My Donation
+
Latest Donations
+
diff --git a/frontend/src/wallets/web3modal.js b/frontend/src/wallets/web3modal.js
deleted file mode 100644
index 8f72989..0000000
--- a/frontend/src/wallets/web3modal.js
+++ /dev/null
@@ -1,54 +0,0 @@
-import { createAppKit } from "@reown/appkit/react";
-import { reconnect } from "@wagmi/core";
-import { nearTestnet } from "@reown/appkit/networks";
-import { WagmiAdapter } from "@reown/appkit-adapter-wagmi";
-
-// Get your projectId at https://cloud.reown.com
-const projectId = "5bb0fe33763b3bea40b8d69e4269b4ae";
-
-const connectors = [
- walletConnect({
- projectId,
- metadata: {
- name: "Donation",
- description: "Examples demonstrating integrations with NEAR blockchain",
- url: "https://near.github.io/wallet-selector",
- icons: ["https://near.github.io/wallet-selector/favicon.ico"],
- },
- showQrModal: false, // showQrModal must be false
- }),
- injected({ shimDisconnect: true }),
-];
-
-export const wagmiAdapter = new WagmiAdapter({
- projectId,
- connectors,
- networks: [nearTestnet],
-});
-
-// Preserve login state on page reload
-reconnect(wagmiAdapter.wagmiConfig);
-
-// Modal for login
-export const web3Modal = createAppKit({
- adapters: [wagmiAdapter],
- projectId,
- networks: [nearTestnet],
- enableWalletConnect: true,
- features: {
- analytics: true,
- swaps: false,
- onramp: false,
- email: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
- socials: false, // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
- },
- coinbasePreference: "eoaOnly", // Smart accounts (Safe contract) not available on NEAR Protocol, only EOA.
- allWallets: "SHOW",
-});
-
-// force reconnecting if the user has already signed in with an ethereum wallet
-// this is a workaround until `ethereum-wallets` supports the `reconnect` method
-if (typeof window !== "undefined") {
- const recentWallets = localStorage.getItem("near-wallet-selector:recentlySignedInWallets");
- recentWallets && recentWallets.includes("ethereum-wallets") && reconnect(wagmiAdapter.wagmiConfig)
-}
\ No newline at end of file
diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json
new file mode 100644
index 0000000..41583c8
--- /dev/null
+++ b/frontend/tsconfig.json
@@ -0,0 +1,35 @@
+{
+ "compilerOptions": {
+ "baseUrl": ".",
+ "paths": {
+ "@/*": [
+ "./src/*"
+ ]
+ },
+ "jsx": "preserve",
+ "strict": true,
+ "moduleResolution": "node",
+ "skipLibCheck": true,
+ "target": "ES2017",
+ "lib": [
+ "dom",
+ "dom.iterable",
+ "esnext"
+ ],
+ "allowJs": true,
+ "noEmit": true,
+ "incremental": true,
+ "module": "esnext",
+ "esModuleInterop": true,
+ "resolveJsonModule": true,
+ "isolatedModules": true
+ },
+ "include": [
+ "**/*.ts",
+ "**/*.tsx",
+ "global.d.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
+}
\ No newline at end of file