Skip to content

Commit

Permalink
Revert "Add ETH-wallets to react lib" (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus authored Oct 8, 2024
1 parent c7c788f commit cd68117
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 99 deletions.
20 changes: 6 additions & 14 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,12 @@
"dependencies": {
"@mintbase-js/data": "0.6.2",
"@mintbase-js/wallet": "0.6.2",
"@near-wallet-selector/core": "8.9.13",
"@near-wallet-selector/ethereum-wallets": "8.9.13",
"@near-wallet-selector/here-wallet": "8.9.13",
"@near-wallet-selector/meteor-wallet": "8.9.13",
"@near-wallet-selector/modal-ui": "8.9.13",
"@near-wallet-selector/my-near-wallet": "8.9.13",
"@tanstack/react-query": "5.24.8",
"@wagmi/connectors": "5.0.10",
"@wagmi/core": "2.10.5",
"@web3modal/wagmi": "5.0.6",
"near-api-js": "^5.0.0",
"@near-wallet-selector/core": "8.9.12",
"@near-wallet-selector/here-wallet": "8.9.12",
"@near-wallet-selector/meteor-wallet": "8.9.12",
"@near-wallet-selector/modal-ui": "8.9.12",
"@near-wallet-selector/my-near-wallet": "8.9.12",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "2.16.2",
"wagmi": "2.10.5"
"react-dom": "^18.2.0"
}
}
4 changes: 0 additions & 4 deletions packages/react/src/wallet/bitte-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import { ConnectionTimeoutError } from './wallet';
import { setupMeteorWallet } from '@near-wallet-selector/meteor-wallet';
import { setupHereWallet } from '@near-wallet-selector/here-wallet';
import { setupMyNearWallet } from '@near-wallet-selector/my-near-wallet';
import { wagmiConfig, web3Modal } from './web3-modal';
import { setupEthereumWallets } from "@near-wallet-selector/ethereum-wallets";

const SUPPORT = '- further help available on our telegram channel: https://t.me/mintdev';

Expand All @@ -36,12 +34,10 @@ export const ERROR_MESSAGES = {
WALLET_CONNECTION_NOT_FOUND: `Wallet connection not received after ${WALLET_CONNECTION_TIMEOUT}ms - ${SUPPORT}`,
};

const alwaysOnboardDuringSignIn = true;
export const SUPPORTED_NEAR_WALLETS: Array<WalletModuleFactory> =[
setupMeteorWallet(),
setupMyNearWallet(),
setupHereWallet(),
setupEthereumWallets({ wagmiConfig, web3Modal, alwaysOnboardDuringSignIn }),
];

export type WalletSelectorComponents = {
Expand Down
5 changes: 1 addition & 4 deletions packages/react/src/wallet/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ import {
import { setupHereWallet } from '@near-wallet-selector/here-wallet';
import { setupMeteorWallet } from '@near-wallet-selector/meteor-wallet';
import { setupMyNearWallet } from '@near-wallet-selector/my-near-wallet';
import { wagmiConfig, web3Modal } from './web3-modal';
import { setupEthereumWallets } from "@near-wallet-selector/ethereum-wallets";


import { setupBitteWallet, setupMintbaseWallet } from '@mintbase-js/wallet';
import type {
Expand All @@ -34,12 +33,10 @@ export const ERROR_MESSAGES = {
WALLET_CONNECTION_NOT_FOUND: `Wallet connection not received after ${WALLET_CONNECTION_TIMEOUT}ms - ${SUPPORT}`,
};

const alwaysOnboardDuringSignIn = true;
export const SUPPORTED_NEAR_WALLETS: Array<WalletModuleFactory> =[
setupMeteorWallet(),
setupMyNearWallet(),
setupHereWallet(),
setupEthereumWallets({ wagmiConfig, web3Modal, alwaysOnboardDuringSignIn }),
];

// mintbase SDK wallet functionality wraps
Expand Down
77 changes: 0 additions & 77 deletions packages/react/src/wallet/web3-modal.ts

This file was deleted.

0 comments on commit cd68117

Please sign in to comment.