Skip to content

Commit

Permalink
fixes for unpublished wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
jordaaash committed Sep 27, 2021
1 parent 7c66987 commit eb70f80
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ The core [wallets](https://github.com/solana-labs/wallet-adapter/tree/master/pac

| package | description | npm |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ |
| [bitpie](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/bitpie) | Adapter for [Bitpie](https://bitpie.com) | [`@solana/wallet-adapter-bitpie`](https://www.npmjs.com/package/@solana/wallet-adapter-bitpie) |
| [bitpie](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/bitpie) \* | Adapter for [Bitpie](https://bitpie.com) | [`@solana/wallet-adapter-bitpie`](https://www.npmjs.com/package/@solana/wallet-adapter-bitpie) |
| [blocto](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/blocto) | Adapter for [Blocto](https://blocto.app) | [`@solana/wallet-adapter-blocto`](https://www.npmjs.com/package/@solana/wallet-adapter-blocto) |
| [clover](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/clover) \* | Adapter for [Clover](https://clover.finance) | [`@solana/wallet-adapter-clover`](https://www.npmjs.com/package/@solana/wallet-adapter-clover) |
| [coin98](https://github.com/solana-labs/wallet-adapter/tree/master/packages/wallets/coin98) | Adapter for [Coin98](https://coin98.com) | [`@solana/wallet-adapter-coin98`](https://www.npmjs.com/package/@solana/wallet-adapter-coin98) |
Expand Down
1 change: 0 additions & 1 deletion packages/core/wallets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"@solana/wallet-adapter-base": "^0.6.0"
},
"dependencies": {
"@solana/wallet-adapter-bitpie": "^0.2.0",
"@solana/wallet-adapter-blocto": "^0.2.0",
"@solana/wallet-adapter-coin98": "^0.2.0",
"@solana/wallet-adapter-ledger": "^0.6.0",
Expand Down
18 changes: 10 additions & 8 deletions packages/core/wallets/src/bitpie.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { BitpieWalletAdapter, BitpieWalletAdapterConfig } from '@solana/wallet-adapter-bitpie';
import { Wallet, WalletName } from './types';
// import { BitpieWalletAdapter, BitpieWalletAdapterConfig } from '@solana/wallet-adapter-bitpie';
// import { Wallet, WalletName } from './types';
//
// export const getBitpieWallet = (config: BitpieWalletAdapterConfig = {}): Wallet => ({
// name: WalletName.Bitpie,
// url: 'https://bitpiecn.com',
// icon: `data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHdpZHRoPSI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMxZTNkYTAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzUwZGUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iYiIgeDE9IjUyLjU0NTc1JSIgeDI9IjUyLjU0NTc1JSIgeGxpbms6aHJlZj0iI2EiIHkxPSIxMDAlIiB5Mj0iMCUiLz48bGluZWFyR3JhZGllbnQgaWQ9ImMiIHgxPSI1MCUiIHgyPSI1MCUiIHkxPSIwJSIgeTI9IjEwMCUiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzFkM2JhMyIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMTczNzkzIiBzdG9wLW9wYWNpdHk9Ii42NTI5MzgiLz48L2xpbmVhckdyYWRpZ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LS4wMDA5MDkxdjUuODE5bDIuMTgyNjM2NC4wMDAwOTA5YzIuMDA4MzA4MSAwIDMuNjM2MzYzNiAxLjYyODA1NTUgMy42MzYzNjM2IDMuNjM2MzYzNiAwIDIuMDA4MzA4Mi0xLjYyODA1NTUgMy42MzYzNjM3LTMuNjM2MzYzNiAzLjYzNjM2MzdsLTIuMTgyNjM2NC0uMDAwODE4Mi4wMDA4MTgyIDIuMTgyNjM2NGMwIDIuMDA4MzA4MS0xLjYyODA1NTUgMy42MzYzNjM2LTMuNjM2MzYzNyAzLjYzNjM2MzYtMi4wMDgzMDgxIDAtMy42MzYzNjM2LTEuNjI4MDU1NS0zLjYzNjM2MzYtMy42MzYzNjM2bC0uMDAwMDkwOS0yLjE4MjYzNjRoLTUuODE5em0tLjAwMDkwOTEtOS40NTQ2MzY0aDUuODE5di01LjgxOWgtNS44MTl6IiBmaWxsPSJ1cmwoI2QpIiB0cmFuc2Zvcm09Im1hdHJpeCguODY2MDI1NCAtLjUgLjUgLjg2NjAyNTQgLTExLjcxMjgxMyAyMC4yODcxODcpIi8+PC9nPjwvc3ZnPg==`,
// adapter: () => new BitpieWalletAdapter(config),
// });

export const getBitpieWallet = (config: BitpieWalletAdapterConfig = {}): Wallet => ({
name: WalletName.Bitpie,
url: 'https://bitpiecn.com',
icon: `data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiIHdpZHRoPSI2NCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGxpbmVhckdyYWRpZW50IGlkPSJhIj48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiMxZTNkYTAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMzNzUwZGUiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZ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IuMTgxNjM2NGMwLTIuMDA4MzA4MSAxLjYyODA1NTUtMy42MzYzNjM2IDMuNjM2MzYzNi0zLjYzNjM2MzYgMi4wMDgzMDgyIDAgMy42MzYzNjM3IDEuNjI4MDU1NSAzLjYzNjM2MzcgMy42MzYzNjM2bC0uMDAwODE4MiAyLjE4MTYzNjQgMi4xODI2MzY0LjAwMDE4MThjMi4wMDgzMDgxIDAgMy42MzYzNjM2IDEuNjI4MDU1NSAzLjYzNjM2MzYgMy42MzYzNjM3IDAgMi4wMDgzMDgxLTEuNjI4MDU1NSAzLjYzNjM2MzYtMy42MzYzNjM2IDMuNjM2MzYzNmwtMi4xODI2MzY0LS4wMDA5MDkxdjUuODE5bDIuMTgyNjM2NC4wMDAwOTA5YzIuMDA4MzA4MSAwIDMuNjM2MzYzNiAxLjYyODA1NTUgMy42MzYzNjM2IDMuNjM2MzYzNiAwIDIuMDA4MzA4Mi0xLjYyODA1NTUgMy42MzYzNjM3LTMuNjM2MzYzNiAzLjYzNjM2MzdsLTIuMTgyNjM2NC0uMDAwODE4Mi4wMDA4MTgyIDIuMTgyNjM2NGMwIDIuMDA4MzA4MS0xLjYyODA1NTUgMy42MzYzNjM2LTMuNjM2MzYzNyAzLjYzNjM2MzYtMi4wMDgzMDgxIDAtMy42MzYzNjM2LTEuNjI4MDU1NS0zLjYzNjM2MzYtMy42MzYzNjM2bC0uMDAwMDkwOS0yLjE4MjYzNjRoLTUuODE5em0tLjAwMDkwOTEtOS40NTQ2MzY0aDUuODE5di01LjgxOWgtNS44MTl6IiBmaWxsPSJ1cmwoI2QpIiB0cmFuc2Zvcm09Im1hdHJpeCguODY2MDI1NCAtLjUgLjUgLjg2NjAyNTQgLTExLjcxMjgxMyAyMC4yODcxODcpIi8+PC9nPjwvc3ZnPg==`,
adapter: () => new BitpieWalletAdapter(config),
});
export {}; // not published yet
2 changes: 1 addition & 1 deletion packages/core/wallets/src/clover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
// adapter: () => new CloverWalletAdapter(config),
// });

export {};
export {}; // not published yet
6 changes: 3 additions & 3 deletions packages/core/wallets/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { MessageSignerWalletAdapter, SignerWalletAdapter, WalletAdapter } from '@solana/wallet-adapter-base';

export enum WalletName {
Bitpie = 'Bitpie',
// Bitpie = 'Bitpie', // not published yet
Blocto = 'Blocto',
// Clover = 'Clover',
// Clover = 'Clover', // not published yet
Coin98 = 'Coin98',
Ledger = 'Ledger',
MathWallet = 'MathWallet',
Expand All @@ -16,7 +16,7 @@ export enum WalletName {
SolletExtension = 'Sollet (Extension)',
Solong = 'Solong',
Torus = 'Torus',
// WalletConnect = 'WalletConnect',
// WalletConnect = 'WalletConnect', // not published yet
}

export interface Wallet {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/wallets/src/walletconnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
// adapter: () => new WalletConnectWalletAdapter(config),
// });

export {};
export {}; // not published yet
1 change: 1 addition & 0 deletions packages/starter/nextjs-starter/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const withTM = require('next-transpile-modules')([
'@solana/wallet-adapter-ant-design',
'@solana/wallet-adapter-material-ui',
'@solana/wallet-adapter-react-ui',
'@solana/wallet-adapter-bitkeep',
'@solana/wallet-adapter-bitpie',
'@solana/wallet-adapter-blocto',
'@solana/wallet-adapter-clover',
Expand Down

0 comments on commit eb70f80

Please sign in to comment.