Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
/feature-update wallet adapter cleanup, pkg udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnySolana committed Mar 30, 2023
1 parent 6d441f2 commit a79bb5d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 18 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"@heroicons/react": "^1.0.5",
"@noble/ed25519": "^1.7.1",
"@solana/wallet-adapter-base": "^0.9.20",
"@solana/wallet-adapter-base": "^0.9.22",
"@solana/wallet-adapter-react": "^0.15.28",
"@solana/wallet-adapter-react-ui": "^0.9.27",
"@solana/wallet-adapter-wallets": "^0.19.11",
Expand Down
16 changes: 2 additions & 14 deletions src/contexts/ContextProvider.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { WalletAdapterNetwork, WalletError } from '@solana/wallet-adapter-base';
import { ConnectionProvider, WalletProvider } from '@solana/wallet-adapter-react';
import {
PhantomWalletAdapter,
SolflareWalletAdapter,
SolletExtensionWalletAdapter,
SolletWalletAdapter,
TorusWalletAdapter,
// LedgerWalletAdapter,
// SlopeWalletAdapter,
UnsafeBurnerWalletAdapter
} from '@solana/wallet-adapter-wallets';
import { Cluster, clusterApiUrl } from '@solana/web3.js';
import { FC, ReactNode, useCallback, useMemo } from 'react';
Expand All @@ -32,13 +26,7 @@ const WalletContextProvider: FC<{ children: ReactNode }> = ({ children }) => {

const wallets = useMemo(
() => [
new PhantomWalletAdapter(),
new SolflareWalletAdapter(),
new SolletWalletAdapter({ network }),
new SolletExtensionWalletAdapter({ network }),
new TorusWalletAdapter(),
// new LedgerWalletAdapter(),
// new SlopeWalletAdapter(),
new UnsafeBurnerWalletAdapter(),
],
[network]
);
Expand Down
25 changes: 25 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,16 @@
dependencies:
eventemitter3 "^4.0.0"

"@solana/wallet-adapter-base@^0.9.22":
version "0.9.22"
resolved "https://registry.yarnpkg.com/@solana/wallet-adapter-base/-/wallet-adapter-base-0.9.22.tgz#97812eaf6aebe01e5fe714326b3c9a0614ae6112"
integrity sha512-xbLEZPGSJFvgTeldG9D55evhl7QK/3e/F7vhvcA97mEt1eieTgeKMnGlmmjs3yivI3/gtZNZeSk1XZLnhKcQvw==
dependencies:
"@solana/wallet-standard-features" "^1.0.1"
"@wallet-standard/base" "^1.0.1"
"@wallet-standard/features" "^1.0.3"
eventemitter3 "^4.0.7"

"@solana/wallet-adapter-bitkeep@^0.3.16":
version "0.3.16"
resolved "https://registry.npmjs.org/@solana/wallet-adapter-bitkeep/-/wallet-adapter-bitkeep-0.3.16.tgz"
Expand Down Expand Up @@ -872,6 +882,14 @@
"@wallet-standard/base" "^1.0.0"
"@wallet-standard/features" "^1.0.0"

"@solana/wallet-standard-features@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@solana/wallet-standard-features/-/wallet-standard-features-1.0.1.tgz#36270a646f74a80e51b9e21fb360edb64f840c68"
integrity sha512-SUfx7KtBJ55XIj0qAhhVcC1I6MklAXqWFEz9hDHW+6YcJIyvfix/EilBhaBik1FJ2JT0zukpOfFv8zpuAbFRbw==
dependencies:
"@wallet-standard/base" "^1.0.1"
"@wallet-standard/features" "^1.0.3"

"@solana/wallet-standard-util@^1.0.0":
version "1.0.0"
resolved "https://registry.npmjs.org/@solana/wallet-standard-util/-/wallet-standard-util-1.0.0.tgz"
Expand Down Expand Up @@ -1338,6 +1356,13 @@
dependencies:
"@wallet-standard/base" "^1.0.1"

"@wallet-standard/features@^1.0.3":
version "1.0.3"
resolved "https://registry.yarnpkg.com/@wallet-standard/features/-/features-1.0.3.tgz#c992876c5e4f7a0672f8869c4146c87e0dfe48c8"
integrity sha512-m8475I6W5LTatTZuUz5JJNK42wFRgkJTB0I9tkruMwfqBF2UN2eomkYNVf9RbrsROelCRzSFmugqjKZBFaubsA==
dependencies:
"@wallet-standard/base" "^1.0.1"

"@wallet-standard/wallet@^1.0.0":
version "1.0.1"
resolved "https://registry.npmjs.org/@wallet-standard/wallet/-/wallet-1.0.1.tgz"
Expand Down

0 comments on commit a79bb5d

Please sign in to comment.