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

Added okto wallet on the cosmos-kit wallets #492

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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: 7 additions & 1 deletion packages/cosmos-kit/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ 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';
import { wallets as oktoWallet } from '@cosmos-kit/okto-extension';

export type WalletName =
| 'keplr'
Expand All @@ -45,7 +46,8 @@ export type WalletName =
| 'owallet'
| 'exodus'
| 'galaxystation'
| 'cdcwallet';
| 'cdcwallet'
| 'okto';

export type WalletList<
E extends MainWalletBase | null,
Expand Down Expand Up @@ -106,6 +108,7 @@ export const tailwind = createWalletList(tailwindWallet[0], null);
export const owallet = createWalletList(owalletExtension[0], null);
export const galaxystation = createWalletList(galaxyStationExtension[0], null);
export const cdcwallet = createWalletList(cdcwalletExtension[0], null);
export const okto = createWalletList(oktoWallet[0], null);

export type SubWalletList = MainWalletBase[] & {
get mobile(): MainWalletBase[];
Expand All @@ -132,6 +135,7 @@ export type AllWalletList = SubWalletList & {
owallet: typeof owallet;
galaxystation: typeof owallet;
cdcwallet: typeof cdcwallet;
okto: typeof okto;
for: (...names: WalletName[]) => SubWalletList;
not: (...names: WalletName[]) => SubWalletList;
};
Expand Down Expand Up @@ -175,6 +179,7 @@ export function createAllWalletList(ws: MainWalletBase[]) {
wallets.owallet = owallet;
wallets.galaxystation = galaxystation;
wallets.cdcwallet = cdcwallet;
wallets.okto = okto;

defineGetters(wallets);

Expand Down Expand Up @@ -226,4 +231,5 @@ export const wallets = createAllWalletList([
...owallet,
...galaxystation,
...cdcwallet,
...okto,
]);
Loading