From 2be7bd4f1374db5c8133d0acddf8226943d426d4 Mon Sep 17 00:00:00 2001 From: xieqiancaosissi Date: Thu, 29 Aug 2024 17:18:23 +0800 Subject: [PATCH] add bitte-wallet (#93) --- package.json | 1 + utils/wallet-selector-compat.ts | 6 ++++++ yarn.lock | 18 +++++++++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f767a6b8..08343ccb 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "@mui/styles": "^5.10.6", "@mui/system": "^5.10.6", "@mui/utils": "^5.10.6", + "@near-wallet-selector/bitte-wallet": "^8.9.12", "@near-wallet-selector/core": "^8.9.7", "@near-wallet-selector/here-wallet": "^8.9.7", "@near-wallet-selector/ledger": "^8.9.7", diff --git a/utils/wallet-selector-compat.ts b/utils/wallet-selector-compat.ts index 4007b184..5eaa8008 100644 --- a/utils/wallet-selector-compat.ts +++ b/utils/wallet-selector-compat.ts @@ -11,6 +11,7 @@ import { setupNearMobileWallet } from "@near-wallet-selector/near-mobile-wallet" import { setupModal } from "@near-wallet-selector/modal-ui"; import { setupLedger } from "@near-wallet-selector/ledger"; import { setupMintbaseWallet } from "@near-wallet-selector/mintbase-wallet"; +import { setupBitteWallet } from "@near-wallet-selector/bitte-wallet"; import type { WalletSelectorModal } from "@near-wallet-selector/modal-ui"; import { Near } from "near-api-js/lib/near"; import { Account } from "near-api-js/lib/account"; @@ -134,6 +135,11 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr contractId: LOGIC_CONTRACT_NAME, deprecated: false, }), + setupBitteWallet({ + walletUrl: "https://wallet.bitte.ai", + contractId: LOGIC_CONTRACT_NAME, + deprecated: false, + }), ], network: { networkId: defaultNetwork, diff --git a/yarn.lock b/yarn.lock index d89c18aa..b7e50cd9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2089,6 +2089,15 @@ nanoid "3.3.4" query-string "^7.1.1" +"@mintbase-js/wallet@0.6.0-beta.10": + version "0.6.0-beta.10" + resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.6.0-beta.10.tgz#26a6ef1d9a46c117dc4389441b2f780c292afd43" + integrity sha512-i0U5cGLu7WySdfzOPlPO+eN/iQlVaPWo0E12UPWFNjAUrn76WJFvHM0RDHZYg9p+Ex5VTp2lU0vkJu6KtJO9Tw== + dependencies: + "@near-wallet-selector/wallet-utils" "^8.9.5" + bn.js "^5.2.1" + near-api-js "^3.0.0" + "@mintbase-js/wallet@0.6.0-beta.3": version "0.6.0-beta.3" resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.6.0-beta.3.tgz#31ee107f2cf888fa120e8ca07f47e5dcd278ca26" @@ -2523,6 +2532,13 @@ "@near-js/utils" "0.3.0" borsh "1.0.0" +"@near-wallet-selector/bitte-wallet@^8.9.12": + version "8.9.12" + resolved "https://registry.yarnpkg.com/@near-wallet-selector/bitte-wallet/-/bitte-wallet-8.9.12.tgz#e27eda48aa9af194dedbcb421f0e340ba0e70ec0" + integrity sha512-yzEL/9KAc3eqLjvfFBM1YZzzbfObEfj9PZPbljdESPm/vW93GfhLq3MPvQmRyahT3areDqeHqMUlWObvrYcLaQ== + dependencies: + "@mintbase-js/wallet" "0.6.0-beta.10" + "@near-wallet-selector/core@7.9.1", "@near-wallet-selector/core@^7.1.0": version "7.9.1" resolved "https://registry.npmjs.org/@near-wallet-selector/core/-/core-7.9.1.tgz" @@ -10029,7 +10045,7 @@ near-api-js@^2.1.1, near-api-js@^2.1.3: node-fetch "^2.6.1" tweetnacl "^1.0.1" -near-api-js@^3.0.1: +near-api-js@^3.0.0, near-api-js@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/near-api-js/-/near-api-js-3.0.4.tgz#5ee094ce53e30239cc817ca942ec3e9739296dbb" integrity sha512-qKWjnugoB7kSFhzZ5GXyH/eABspCQYWBmWnM4hpV5ctnQBt89LqgEu9yD1z4sa89MvUu8BuCxwb1m00BE8iofg==