From d340e7d17ef61b07075efeb28ff0cd111ff65b64 Mon Sep 17 00:00:00 2001 From: Addminus Date: Thu, 31 Aug 2023 14:23:44 +0200 Subject: [PATCH] feat: add gate wallet --- .../src/walletIcons/gate.svg | 20 +++++++++++++++++++ .../src/walletIcons/index.ts | 2 ++ packages/wallet-management/src/wallets.ts | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 packages/wallet-management/src/walletIcons/gate.svg diff --git a/packages/wallet-management/src/walletIcons/gate.svg b/packages/wallet-management/src/walletIcons/gate.svg new file mode 100644 index 000000000..73cda1d63 --- /dev/null +++ b/packages/wallet-management/src/walletIcons/gate.svg @@ -0,0 +1,20 @@ + + 编组 7 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/packages/wallet-management/src/walletIcons/index.ts b/packages/wallet-management/src/walletIcons/index.ts index 631a76054..8191f03dd 100644 --- a/packages/wallet-management/src/walletIcons/index.ts +++ b/packages/wallet-management/src/walletIcons/index.ts @@ -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, @@ -35,6 +36,7 @@ export const walletIcons = { frontier, blockwallet, bitkeep, + gate, binance, placeholder, bitpie, diff --git a/packages/wallet-management/src/wallets.ts b/packages/wallet-management/src/wallets.ts index 9e0849d61..39c145ef7 100644 --- a/packages/wallet-management/src/wallets.ts +++ b/packages/wallet-management/src/wallets.ts @@ -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', @@ -272,6 +281,7 @@ export const supportedWallets = [ metamask, walletConnect, bitKeep, + gate, exodus, tallyho, binance,