Skip to content

Commit

Permalink
feat: add gate wallet (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
Addminus authored Sep 7, 2023
1 parent ae458be commit cd19867
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/wallet-management/src/walletIcons/gate.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ -28,6 +28,7 @@ import walletio from './walletio.svg';
import xdefi from './xdefi.svg';
import bitGet from './bitget.svg';
import okx from './okx.svg';
import gate from './gate.svg';

export const walletIcons = {
mathwallet,
Expand All @@ -36,6 +37,7 @@ export const walletIcons = {
frontier,
blockwallet,
bitGet,
gate,
binance,
placeholder,
bitpie,
Expand Down
10 changes: 10 additions & 0 deletions packages/wallet-management/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,15 @@ const bitGet: Wallet = new InjectedConnector(
(window as any).bitkeep?.ethereum,
);

const gate: Wallet = new InjectedConnector(
{
name: 'Gate',
installed: async () => (window as any).gatewallet,
icon: walletIcons.gate,
},
(window as any).gatewallet,
);

const frontier: Wallet = new InjectedConnector(
{
name: 'Frontier',
Expand Down Expand Up @@ -281,6 +290,7 @@ export const supportedWallets = [
metamask,
walletConnect,
bitGet,
gate,
exodus,
tallyho,
binance,
Expand Down

0 comments on commit cd19867

Please sign in to comment.