Skip to content

Commit

Permalink
remove unnecessary exports
Browse files Browse the repository at this point in the history
  • Loading branch information
MananTank committed Feb 21, 2024
1 parent 1110e15 commit 7c5f0ea
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 48 deletions.
13 changes: 2 additions & 11 deletions packages/thirdweb/src/exports/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ export { injectedProvider } from "../wallets/injected/mipdStore.js";
export {
injectedMetamaskProvider,
metamaskWallet,
metamaskMetadata,
} from "../wallets/injected/wallets/metamask.js";

export {
Expand All @@ -45,26 +44,21 @@ export {

export {
rainbowWallet,
rainbowWalletMetadata,
injectedRainbowProvider,
} from "../wallets/injected/wallets/rainbow.js";

export {
zerionWallet,
zerionWalletMetadata,
injectedZerionProvider,
} from "../wallets/injected/wallets/zerion.js";

// wallet-connect
export {
walletConnect,
walletConnectMetadata,
} from "../wallets/wallet-connect/index.js";
export { walletConnect } from "../wallets/wallet-connect/index.js";

export type { WalletConnectConnectionOptions } from "../wallets/wallet-connect/types.js";

// smart
export { smartWallet, smartWalletMetadata } from "../wallets/smart/index.js";
export { smartWallet } from "../wallets/smart/index.js";
export type { SmartWalletOptions } from "../wallets/smart/types.js";

// storage
Expand All @@ -82,14 +76,11 @@ export {

export {
coinbaseSDKWallet,
CoinbaseSDKWallet,
type CoinbaseSDKWalletOptions,
type CoinbaseSDKWalletConnectionOptions,
} from "../wallets/coinbase/coinbaseSDKWallet.js";
export { coinbaseMetadata } from "../wallets/coinbase/coinbaseMetadata.js";

export { embeddedWallet } from "../wallets/embedded/core/wallet/index.js";
export { embeddedWalletMetadata } from "../wallets/embedded/core/wallet/index.js";
export {
type MultiStepAuthArgsType,
type SingleStepAuthArgsType,
Expand Down
1 change: 0 additions & 1 deletion packages/thirdweb/src/exports/wallets/coinbase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export {

export {
coinbaseSDKWallet,
CoinbaseSDKWallet,
type CoinbaseSDKWalletOptions,
type CoinbaseSDKWalletConnectionOptions,
} from "../../wallets/coinbase/coinbaseSDKWallet.js";
Expand Down
1 change: 0 additions & 1 deletion packages/thirdweb/src/exports/wallets/embedded.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export { embeddedWallet } from "../../wallets/embedded/core/wallet/index.js";
export { embeddedWalletMetadata } from "../../wallets/embedded/core/wallet/index.js";
export {
type MultiStepAuthArgsType,
type SingleStepAuthArgsType,
Expand Down
30 changes: 2 additions & 28 deletions packages/thirdweb/src/exports/wallets/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export type { WalletEventListener } from "../../wallets/interfaces/listeners.js"
export type { WalletMetadata } from "../../wallets/types.js";

export type { ConnectionStatus } from "../../wallets/manager/index.js";
export { createConnectionManager } from "../../wallets/manager/index.js";

export {
getTokenBalance,
Expand All @@ -22,7 +21,6 @@ export {

// injected
export { injectedWallet } from "../../wallets/injected/index.js";
export { getMIPDStore } from "../../wallets/injected/mipdStore.js";

export type {
WalletRDNS,
Expand All @@ -35,7 +33,6 @@ export { injectedProvider } from "../../wallets/injected/mipdStore.js";
export {
injectedMetamaskProvider,
metamaskWallet,
metamaskMetadata,
} from "../../wallets/injected/wallets/metamask.js";

export {
Expand All @@ -45,49 +42,26 @@ export {

export {
rainbowWallet,
rainbowWalletMetadata,
injectedRainbowProvider,
} from "../../wallets/injected/wallets/rainbow.js";

export {
zerionWallet,
zerionWalletMetadata,
injectedZerionProvider,
} from "../../wallets/injected/wallets/zerion.js";

// wallet-connect
export {
walletConnect,
walletConnectMetadata,
} from "../../wallets/wallet-connect/index.js";
export { walletConnect } from "../../wallets/wallet-connect/index.js";

export type { WalletConnectConnectionOptions } from "../../wallets/wallet-connect/types.js";

// smart
export {
smartWallet,
SmartWallet,
smartWalletMetadata,
personalWalletToSmartAccountMap,
} from "../../wallets/smart/index.js";
export { smartWallet } from "../../wallets/smart/index.js";
export type { SmartWalletOptions } from "../../wallets/smart/types.js";

// storage
export {
getSavedConnectParamsFromStorage,
saveConnectParamsToStorage,
deleteConnectParamsFromStorage,
} from "../../wallets/manager/storage.js";
export type { WithPersonalWalletConnectionOptions } from "../../wallets/manager/storage.js";

export {
getStoredActiveWalletId,
getStoredConnectedWalletIds,
} from "../../wallets/manager/index.js";

export {
coinbaseSDKWallet,
CoinbaseSDKWallet,
type CoinbaseSDKWalletConnectionOptions,
} from "../../wallets/coinbase/coinbaseSDKWallet.js";

Check warning on line 67 in packages/thirdweb/src/exports/wallets/index.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/wallets/index.ts#L1-L67

Added lines #L1 - L67 were not covered by tests
export { coinbaseMetadata } from "../../wallets/coinbase/coinbaseMetadata.js";
1 change: 0 additions & 1 deletion packages/thirdweb/src/exports/wallets/metamask.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export {
injectedMetamaskProvider,
metamaskWallet,
metamaskMetadata,
} from "../../wallets/injected/wallets/metamask.js";

Check warning on line 4 in packages/thirdweb/src/exports/wallets/metamask.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/wallets/metamask.ts#L1-L4

Added lines #L1 - L4 were not covered by tests
2 changes: 1 addition & 1 deletion packages/thirdweb/src/exports/wallets/smart.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { smartWallet, smartWalletMetadata } from "../../wallets/smart/index.js";
export { smartWallet } from "../../wallets/smart/index.js";
export type { SmartWalletOptions } from "../../wallets/smart/types.js";

Check warning on line 2 in packages/thirdweb/src/exports/wallets/smart.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/wallets/smart.ts#L1-L2

Added lines #L1 - L2 were not covered by tests
5 changes: 1 addition & 4 deletions packages/thirdweb/src/exports/wallets/wallet-connect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export {
walletConnect,
walletConnectMetadata,
} from "../../wallets/wallet-connect/index.js";
export { walletConnect } from "../../wallets/wallet-connect/index.js";

Check warning on line 1 in packages/thirdweb/src/exports/wallets/wallet-connect.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/wallets/wallet-connect.ts#L1

Added line #L1 was not covered by tests
1 change: 0 additions & 1 deletion packages/thirdweb/src/exports/wallets/zerion.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export {
zerionWallet,
zerionWalletMetadata,
injectedZerionProvider,
} from "../../wallets/injected/wallets/zerion.js";

Check warning on line 4 in packages/thirdweb/src/exports/wallets/zerion.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/exports/wallets/zerion.ts#L1-L4

Added lines #L1 - L4 were not covered by tests

0 comments on commit 7c5f0ea

Please sign in to comment.