Skip to content

Commit

Permalink
feat: added okx wallet (#124)
Browse files Browse the repository at this point in the history
* feat:added okx wallet

* fix:change Okx to OKX
  • Loading branch information
0xsebn authored Sep 6, 2023
1 parent ae83ae6 commit d977981
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/wallet-management/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,5 @@ export enum ProviderIdentityFlag {
MathWallet = 'isMathWallet',
Frontier = 'isFrontier',
ApexWallet = 'isApexWallet',
OkxWallet = 'okxwallet',
}
2 changes: 2 additions & 0 deletions packages/wallet-management/src/walletIcons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import walletConnect from './walletConnect.svg';
import walletio from './walletio.svg';
import xdefi from './xdefi.svg';
import bitkeep from './bitkeep.svg';
import okx from './okx.svg';

export const walletIcons = {
mathwallet,
Expand All @@ -46,6 +47,7 @@ export const walletIcons = {
imtoken,
liquality,
metamask,
okx,
oneInch,
opera,
ownbit,
Expand Down
18 changes: 18 additions & 0 deletions packages/wallet-management/src/walletIcons/okx.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions packages/wallet-management/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,15 @@ const tokenary: Wallet = new InjectedConnector({
icon: walletIcons.tokenary,
});

const okx: Wallet = new InjectedConnector(
{
name: 'OKX',
installed: async () => (window as any).okxwallet,
icon: walletIcons.okx,
},
(window as any).okxwallet,
);

const exodus: Wallet = new InjectedConnector(
{
name: 'Exodus',
Expand Down Expand Up @@ -277,6 +286,7 @@ export const supportedWallets = [
binance,
frontier,
coinbase,
okx,
trust,
status,
alphawallet,
Expand Down

0 comments on commit d977981

Please sign in to comment.