Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenmarcus committed Oct 9, 2024
1 parent 54a212a commit f140be0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions packages/auth/src/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type { WalletSelectorModal } from '@near-wallet-selector/modal-ui';
import { SUPPORTED_NEAR_WALLETS } from './wallets.setup';
import { ERROR_MESSAGES } from './errorMessages';
import { mbjs } from '@mintbase-js/sdk';
import { setupMintbaseWallet } from '@mintbase-js/wallet';
import { setupBitteWallet } from '@mintbase-js/wallet';

// mintbase SDK wallet functionality wraps
// Near Wallet Selector lib, provided by NEAR Protocol
Expand All @@ -45,12 +45,12 @@ export let walletSelectorComponents: WalletSelectorComponents = {
*/

const walletUrls = {
testnet: 'https://testnet.wallet.mintbase.xyz/',
mainnet: 'https://wallet.mintbase.xyz',
testnet: 'https://testnet.wallet.bitte.ai/',
mainnet: 'https://wallet.bitte.ai',
};

// eslint-disable-next-line max-len
export const setupMintbaseWalletSelector = async (
export const setupBitteWalletSelector = async (
callbackUrl,
onlyMbWallet = false,
network?,
Expand All @@ -65,7 +65,7 @@ export const setupMintbaseWalletSelector = async (
network: network,
debug: mbjs.keys.debugMode,
modules: [
setupMintbaseWallet({
setupBitteWallet({
walletUrl: walletUrls[network],
deprecated: false,
callbackUrl: callbackUrl,
Expand All @@ -79,7 +79,7 @@ export const setupMintbaseWalletSelector = async (
network: network,
debug: mbjs.keys.debugMode,
modules: [
setupMintbaseWallet({
setupBitteWallet({
walletUrl: walletUrls[network],
deprecated: false,
callbackUrl: callbackUrl,
Expand Down
12 changes: 6 additions & 6 deletions packages/wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@



This is the [Mintbase Wallet](https://wallet.mintbase.xyz/) SDK package.
This is the [Bitte Wallet](https://wallet.bitte.ai/) SDK package.
You can check a quick example of Simple Login using Next.js 14 and @mintbase-js/react

check our [React integration](https://docs.mintbase.xyz/dev/mintbase-sdk-ref/react#mintbasewalletcontextprovider)
check our [React integration](https://docs.mintbase.xyz/dev/mintbase-sdk-ref/react#bittewalletcontextprovider)

Example:
You can check a [quick example of Simple Login](https://github.com/Mintbase/examples/tree/main/starter) using Next.js 14 and @mintbase-js/react
You can check a [quick example of Simple Login](https://github.com/Mintbase/templates/tree/main/starter-next) using Next.js 14 and @mintbase-js/react


<p align="center">
Expand Down Expand Up @@ -101,9 +101,9 @@ Then use it in your dApp:

```ts
import { setupWalletSelector } from "@near-wallet-selector/core";
import { setupMintbaseWallet } from "@mintbase-js/wallet";
import { setupBitteWallet } from "@mintbase-js/wallet";

const mintbaseWallet = setupMintbaseWallet({
const mintbaseWallet = setupBitteWallet({
networkId: 'mainnet',
walletUrl: 'https://wallet.mintbase.xyz',
callbackUrl: 'https://www.mywebsite.com',
Expand All @@ -121,7 +121,7 @@ const selector = await setupWalletSelector({



## setupMintbaseWallet
## setupBitteWallet



Expand Down

0 comments on commit f140be0

Please sign in to comment.