Skip to content

Commit

Permalink
add bitte-wallet (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
xieqiancaosissi authored Aug 29, 2024
1 parent 4c9c6c4 commit 2be7bd4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions utils/wallet-selector-compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down
18 changes: 17 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2089,6 +2089,15 @@
nanoid "3.3.4"
query-string "^7.1.1"

"@mintbase-js/[email protected]":
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/[email protected]":
version "0.6.0-beta.3"
resolved "https://registry.yarnpkg.com/@mintbase-js/wallet/-/wallet-0.6.0-beta.3.tgz#31ee107f2cf888fa120e8ca07f47e5dcd278ca26"
Expand Down Expand Up @@ -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/[email protected]", "@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"
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit 2be7bd4

Please sign in to comment.