Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove wallets #529

Merged
merged 3 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions packages/cosmos-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,14 @@
"@cosmos-kit/ctrl": "^2.13.1",
"@cosmos-kit/exodus": "^2.12.1",
"@cosmos-kit/fin": "^2.13.2",
"@cosmos-kit/frontier": "^2.12.1",
"@cosmos-kit/galaxy-station": "^2.12.1",
"@cosmos-kit/keplr": "^2.14.2",
"@cosmos-kit/leap": "^2.14.2",
"@cosmos-kit/ledger": "^2.13.1",
"@cosmos-kit/okxwallet-extension": "^2.13.0",
"@cosmos-kit/omni": "^2.12.1",
"@cosmos-kit/owallet": "^2.14.1",
"@cosmos-kit/shell": "^2.13.2",
"@cosmos-kit/station": "^2.12.1",
"@cosmos-kit/tailwind": "^1.7.1",
"@cosmos-kit/trust": "^2.13.1",
"@cosmos-kit/vectis": "^2.13.2"
"@cosmos-kit/trust": "^2.13.1"
}
}
}
27 changes: 5 additions & 22 deletions packages/cosmos-kit/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { wallets as compassExtension } from '@cosmos-kit/compass-extension';
import { wallets as okxwalletExtension } from '@cosmos-kit/okxwallet-extension';
import { wallets as cosmostationExtension } from '@cosmos-kit/cosmostation-extension';
import { wallets as cosmostationMobile } from '@cosmos-kit/cosmostation-mobile';
import { wallets as frontierExtension } from '@cosmos-kit/frontier-extension';
import { wallets as keplrExtension } from '@cosmos-kit/keplr-extension';
import { wallets as keplrMobile } from '@cosmos-kit/keplr-mobile';
import { wallets as owalletExtension } from '@cosmos-kit/owallet-extension';
Expand All @@ -15,28 +14,24 @@ import { wallets as leapMetamaskCosmosSnap } from '@cosmos-kit/leap-metamask-cos
import { wallets as ledgerUSB } from '@cosmos-kit/ledger';
import { wallets as omniMobile } from '@cosmos-kit/omni-mobile';
import { wallets as finExtension } from '@cosmos-kit/fin-extension';
import { wallets as stationExtension } from '@cosmos-kit/station-extension';
import { wallets as trustExtension } from '@cosmos-kit/trust-extension';
import { wallets as trustMobile } from '@cosmos-kit/trust-mobile';
import { wallets as shellExtension } from '@cosmos-kit/shell-extension';
import { wallets as vectisExtension } from '@cosmos-kit/vectis-extension';
import { wallets as ctrlExtension } from '@cosmos-kit/ctrl-extension';
import { wallets as exodusExtension } from '@cosmos-kit/exodus-extension';
import { wallets as tailwindWallet } from '@cosmos-kit/tailwind';
import { wallets as galaxyStationExtension } from '@cosmos-kit/galaxy-station-extension';
import { wallets as cdcwalletExtension } from '@cosmos-kit/cdcwallet-extension';

export type WalletName =
| 'keplr'
| 'cosmostation'
| 'ledger'
| 'okxwallet'
| 'station'
| 'leap'
| 'trust'
| 'ctrl'
| 'vectis'
| 'frontier'
| 'fin'
| 'omni'
| 'coin98'
Expand All @@ -45,22 +40,21 @@ export type WalletName =
| 'tailwind'
| 'owallet'
| 'exodus'
| 'galaxystation'
| 'cdcwallet';

export type WalletList<
E extends MainWalletBase | null,
M extends MainWalletBase | null
> = (E extends MainWalletBase
? M extends MainWalletBase
? [E, M]
: [E]
? [E, M]
: [E]
: M extends MainWalletBase
? [M]
: []) & {
mobile: M | null;
extension: E | null;
};
mobile: M | null;
extension: E | null;
};

export function createWalletList<
ExtensionWallet extends MainWalletBase | null,
Expand Down Expand Up @@ -90,12 +84,10 @@ export const leap = createWalletList(
leapMobile[0],
leapMetamaskCosmosSnap[0]
);
export const station = createWalletList(stationExtension[0], null);
export const okxwallet = createWalletList(okxwalletExtension[0], null);
export const trust = createWalletList(trustExtension[0], trustMobile[0]);
export const ctrl = createWalletList(ctrlExtension[0], null);
export const vectis = createWalletList(vectisExtension[0], null);
export const frontier = createWalletList(frontierExtension[0], null);
export const fin = createWalletList(finExtension[0], null);
export const omni = createWalletList(null, omniMobile[0]);
export const shell = createWalletList(shellExtension[0], null);
Expand All @@ -104,7 +96,6 @@ export const compass = createWalletList(compassExtension[0], null);
export const exodus = createWalletList(exodusExtension[0], null);
export const tailwind = createWalletList(tailwindWallet[0], null);
export const owallet = createWalletList(owalletExtension[0], owalletMobile[0]);
export const galaxystation = createWalletList(galaxyStationExtension[0], null);
export const cdcwallet = createWalletList(cdcwalletExtension[0], null);

export type SubWalletList = MainWalletBase[] & {
Expand All @@ -117,20 +108,17 @@ export type AllWalletList = SubWalletList & {
cosmostation: typeof cosmostation;
ledger: typeof ledger;
okxwallet: typeof okxwallet;
station: typeof station;
leap: typeof leap;
trust: typeof trust;
ctrl: typeof ctrl;
vectis: typeof vectis;
frontier: typeof frontier;
fin: typeof fin;
omni: typeof omni;
coin98: typeof coin98;
compass: typeof compass;
exodus: typeof exodus;
tailwind: typeof tailwind;
owallet: typeof owallet;
galaxystation: typeof galaxystation;
cdcwallet: typeof cdcwallet;
for: (...names: WalletName[]) => SubWalletList;
not: (...names: WalletName[]) => SubWalletList;
Expand Down Expand Up @@ -165,15 +153,13 @@ export function createAllWalletList(ws: MainWalletBase[]) {
wallets.trust = trust;
wallets.ctrl = ctrl;
wallets.vectis = vectis;
wallets.frontier = frontier;
wallets.fin = fin;
wallets.omni = omni;
wallets.coin98 = coin98;
wallets.compass = compass;
wallets.exodus = exodus;
wallets.tailwind = tailwind;
wallets.owallet = owallet;
wallets.galaxystation = galaxystation;
wallets.cdcwallet = cdcwallet;

defineGetters(wallets);
Expand Down Expand Up @@ -211,19 +197,16 @@ export const wallets = createAllWalletList([
...leap,
...ledger,
...okxwallet,
...station,
...trust,
...cosmostation,
...ctrl,
...vectis,
...frontier,
...fin,
...omni,
...coin98,
...compass,
...exodus,
...tailwind,
...owallet,
...galaxystation,
...cdcwallet,
]);
12 changes: 0 additions & 12 deletions wallets/galaxy-station-extension/.editorconfig

This file was deleted.

7 changes: 0 additions & 7 deletions wallets/galaxy-station-extension/.eslintignore

This file was deleted.

82 changes: 0 additions & 82 deletions wallets/galaxy-station-extension/.eslintrc.json

This file was deleted.

48 changes: 0 additions & 48 deletions wallets/galaxy-station-extension/.gitignore

This file was deleted.

32 changes: 0 additions & 32 deletions wallets/galaxy-station-extension/.npmignore

This file was deleted.

1 change: 0 additions & 1 deletion wallets/galaxy-station-extension/.npmrc

This file was deleted.

7 changes: 0 additions & 7 deletions wallets/galaxy-station-extension/.prettierrc.json

This file was deleted.

Loading
Loading