From 5ca8d4b9edcd872ae2120b2744b4d6443ad1d4d7 Mon Sep 17 00:00:00 2001 From: Jeesun Kim Date: Fri, 8 Nov 2024 14:53:13 -0800 Subject: [PATCH] add all eligible modules from stellar wallets kit --- package.json | 2 +- src/components/WalletKitContextProvider.tsx | 6 ++---- yarn.lock | 9 +++++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 3aacdfe2..6d2e73fa 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "pre-push": "yarn lint:ts && yarn test" }, "dependencies": { - "@creit.tech/stellar-wallets-kit": "^1.2.3", + "@creit.tech/stellar-wallets-kit": "^1.2.5", "@ledgerhq/hw-app-str": "^7.0.4", "@ledgerhq/hw-transport-webusb": "^6.29.4", "@stellar/design-system": "^2.0.0-beta.17", diff --git a/src/components/WalletKitContextProvider.tsx b/src/components/WalletKitContextProvider.tsx index 113ea3b0..0cdf2cd7 100644 --- a/src/components/WalletKitContextProvider.tsx +++ b/src/components/WalletKitContextProvider.tsx @@ -5,10 +5,8 @@ import { useStore } from "@/store/useStore"; import { StellarWalletsKit, - FreighterModule, - xBullModule, - AlbedoModule, XBULL_ID, + allowAllModules, } from "@creit.tech/stellar-wallets-kit"; import { getWalletKitNetwork } from "@/helpers/getWalletKitNetwork"; @@ -80,7 +78,7 @@ export const WalletKitContextProvider = ({ return new StellarWalletsKit({ network: networkType, selectedWalletId: XBULL_ID, - modules: [new xBullModule(), new FreighterModule(), new AlbedoModule()], + modules: allowAllModules(), ...(theme && { buttonTheme: isDarkTheme ? { diff --git a/yarn.lock b/yarn.lock index 4e06d941..84859d9d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -262,10 +262,10 @@ "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" -"@creit.tech/stellar-wallets-kit@^1.2.3": - version "1.2.3" - resolved "https://registry.yarnpkg.com/@creit.tech/stellar-wallets-kit/-/stellar-wallets-kit-1.2.3.tgz#4a7cb03786fdf8c4ac3da8f872e951d3e9a2c349" - integrity sha512-AM1fL/cQkI0i+lefJlViOPR4uxZrPDImbF+eCYST7FEIWYZrPsd/Mtne5qGVJDC6Umzdg9HqJt7CSFZTUJ2b3A== +"@creit.tech/stellar-wallets-kit@^1.2.5": + version "1.2.5" + resolved "https://registry.yarnpkg.com/@creit.tech/stellar-wallets-kit/-/stellar-wallets-kit-1.2.5.tgz#852cdb9a1c248a5e9d9e899ff7fa59d99db69848" + integrity sha512-PcNK//8LzMLwZgpJwrnVAKR6PRN9Idt37VgG5SzkQEyLze5G1v+T+sUAc4OBQ0jkpFqHLarpgeMjfeB21T5ZGA== dependencies: "@albedo-link/intent" "0.12.0" "@creit.tech/xbull-wallet-connect" "0.3.0" @@ -277,6 +277,7 @@ "@stellar/freighter-api" "3.0.0" "@walletconnect/modal" "2.6.2" "@walletconnect/sign-client" "2.11.2" + buffer "6.0.3" events "3.3.0" lit "3.2.0" rxjs "7.8.1"