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

fix: remove Huobi, MeetOne, AToken and MyKey wallets (LF-4489) #120

Merged
merged 4 commits into from
Aug 18, 2023
Merged
Show file tree
Hide file tree
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
4 changes: 0 additions & 4 deletions packages/wallet-management/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ export interface Wallet extends EventEmitter {

export enum ProviderIdentityFlag {
AlphaWallet = 'isAlphaWallet',
AToken = 'isAToken',
BlockWallet = 'isBlockWallet',
Binance = 'bbcSignTx',
Bitpie = 'isBitpie',
Expand All @@ -71,13 +70,10 @@ export enum ProviderIdentityFlag {
Detected = 'request',
Dcent = 'isDcentWallet',
Frame = 'isFrame',
HuobiWallet = 'isHbWallet',
HyperPay = 'isHyperPay',
ImToken = 'isImToken',
Liquality = 'isLiquality',
MeetOne = 'wallet',
MetaMask = 'isMetaMask',
MyKey = 'isMYKEY',
OwnBit = 'isOwnbit',
Status = 'isStatus',
TallyHo = 'isTally',
Expand Down
16 changes: 4 additions & 12 deletions packages/wallet-management/src/walletIcons/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import alphawallet from './alphawallet.svg';
import atoken from './atoken.svg';
import binance from './binance.svg';
import bitpie from './bitpie.svg';
import blockwallet from './blockwallet.svg';
import brave from './brave.svg';
import coinbase from './coinbase.svg';
import dcent from './dcent.svg';
import exodus from './exodus.svg';
import frame from './frame.svg';
import huobiwallet from './huobiwallet.svg';
import frontier from './frontier.svg';
import hyperpay from './hyperpay.svg';
import imtoken from './imtoken.svg';
import liquality from './liquality.svg';
import mathwallet from './mathWallet.svg';
import meetone from './meetone.svg';
import metamask from './metaMask.svg';
import mykey from './mykey.svg';
import oneInch from './oneInch.svg';
import opera from './opera.svg';
import ownbit from './ownbit.svg';
import placeholder from './placeholder.svg';
import safe from './safe.svg';
import status from './status.svg';
import tallyho from './tallyho.svg';
import tokenary from './tokenary.svg';
Expand All @@ -26,16 +26,11 @@ import trust from './trust.svg';
import walletConnect from './walletConnect.svg';
import walletio from './walletio.svg';
import xdefi from './xdefi.svg';
import frontier from './frontier.svg';
import placeholder from './placeholder.svg';
import exodus from './exodus.svg';
import safe from './safe.svg';

export const walletIcons = {
mathwallet,
walletConnect,
alphawallet,
atoken,
frontier,
blockwallet,
binance,
Expand All @@ -45,13 +40,10 @@ export const walletIcons = {
coinbase,
dcent,
frame,
huobiwallet,
hyperpay,
imtoken,
liquality,
meetone,
metamask,
mykey,
oneInch,
opera,
ownbit,
Expand Down
31 changes: 0 additions & 31 deletions packages/wallet-management/src/wallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@ const alphawallet: Wallet = new InjectedConnector({
icon: walletIcons.alphawallet,
});

const atoken: Wallet = new InjectedConnector({
name: 'AToken',
installed: async () =>
(window as any).ethereum?.[ProviderIdentityFlag.AToken],
icon: walletIcons.atoken,
});

const apex: Wallet = new InjectedConnector({
name: 'Apex Wallet',
installed: async () =>
Expand Down Expand Up @@ -167,13 +160,6 @@ const frame: Wallet = new InjectedConnector(
(window as any).frame,
);

const huobiwallet: Wallet = new InjectedConnector({
name: 'HuobiWallet',
installed: async () =>
(window as any).ethereum?.[ProviderIdentityFlag.HuobiWallet],
icon: walletIcons.huobiwallet,
});

const hyperpay: Wallet = new InjectedConnector({
name: 'HyperPay',
// Note: The property `hiWallet` is as of now the only known way of identifying hyperpay
Expand All @@ -199,19 +185,6 @@ const liquality: Wallet = new InjectedConnector(
(window as any).liquality,
);

const meetone: Wallet = new InjectedConnector({
name: 'MeetOne',
installed: async () =>
(window as any).ethereum?.[ProviderIdentityFlag.MeetOne] === 'MEETONE',
icon: walletIcons.meetone,
});

const mykey: Wallet = new InjectedConnector({
name: 'MyKey',
installed: async () => (window as any).ethereum?.[ProviderIdentityFlag.MyKey],
icon: walletIcons.mykey,
});

const ownbit: Wallet = new InjectedConnector({
name: 'OwnBit',
installed: async () =>
Expand Down Expand Up @@ -296,19 +269,15 @@ export const supportedWallets = [
trust,
status,
alphawallet,
atoken,
blockWallet,
bitpie,
brave,
apex,
dcent,
frame,
huobiwallet,
hyperpay,
imtoken,
liquality,
meetone,
mykey,
ownbit,
tokenpocket,
xdefi,
Expand Down