Skip to content

intear wallet (dont merge) #6

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,12 @@
"fsevents": false
},
"dependencies": {
"@bitte-ai/wallet": "0.8.2",
"@mintbase-js/data": "^0.6.6",
"@mintbase-js/sdk": "^0.6.6",
"@near-wallet-selector/core": "^9.0.2",
"@near-wallet-selector/here-wallet": "^9.0.2",
"@near-wallet-selector/meteor-wallet": "^9.0.2",
"@near-wallet-selector/modal-ui": "^9.0.2",
"@near-wallet-selector/my-near-wallet": "^9.0.2",
"@near-wallet-selector/intear-wallet": "^9.0.2",
"buffer": "^6.0.3",
"react": "^19.1.0",
"react-dom": "^19.1.0"
Expand Down
311 changes: 7 additions & 304 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions src/BitteWalletContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ export const BitteWalletContextProvider: React.FC<ContextProviderType> = ({
} = BitteWalletAuth;

const setupBitteWallet = async (): Promise<WalletSelectorComponents> => {
const isOnlyBitteWallet =
!!onlyBitteWallet ||
!!(additionalWallets && additionalWallets.length > 0);

const isOnlyBitteWallet = !!onlyBitteWallet;

return await setupBitteWalletSelector(
isOnlyBitteWallet,
Expand Down
15 changes: 5 additions & 10 deletions src/wallet/bitte-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@near-wallet-selector/core';
import { setupModal } from '@near-wallet-selector/modal-ui';
import { map, distinctUntilChanged, Subscription } from 'rxjs';
import { setupIntearWallet } from "@near-wallet-selector/intear-wallet";

import {
WALLET_CONNECTION_POLL_INTERVAL,
Expand All @@ -20,11 +21,8 @@ import type {
import type { WalletSelectorModal } from '@near-wallet-selector/modal-ui';

import { mbjs } from '@mintbase-js/sdk';
import { setupBitteWallet } from '@bitte-ai/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';


const SUPPORT = '- further help available on our telegram channel: https://t.me/mintdev';
Expand All @@ -36,8 +34,9 @@ export const ERROR_MESSAGES = {

export const SUPPORTED_NEAR_WALLETS: Array<WalletModuleFactory> =[
setupMeteorWallet(),
setupMyNearWallet(),
setupHereWallet(),
// setupMyNearWallet(),
// setupHereWallet(),
setupIntearWallet(),
];

export type WalletSelectorComponents = {
Expand Down Expand Up @@ -71,7 +70,6 @@ export const BitteWalletAuth = {
BitteWalletAuth.walletSelectorComponents.selector = await setupWalletSelector({
network: network || 'mainnet',
modules: [
setupBitteWallet() as WalletModuleFactory<Wallet>,
...(options?.additionalWallets || []),
...SUPPORTED_NEAR_WALLETS,
],
Expand All @@ -81,10 +79,7 @@ export const BitteWalletAuth = {

network: network || 'mainnet',
modules: [
setupBitteWallet({
walletUrl: walletUrl || walletUrls[network as 'mainnet' | 'testnet'],
}) as WalletModuleFactory<Wallet>,
...(options?.additionalWallets || []),
...SUPPORTED_NEAR_WALLETS,
],
});
}
Expand Down