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

feat: add gate wallet #123

Merged
merged 2 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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 @@ -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 gate from './gate.svg';

export const walletIcons = {
mathwallet,
Expand All @@ -35,6 +36,7 @@ export const walletIcons = {
frontier,
blockwallet,
bitkeep,
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 bitKeep: 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 @@ -272,6 +281,7 @@ export const supportedWallets = [
metamask,
walletConnect,
bitKeep,
gate,
exodus,
tallyho,
binance,
Expand Down