diff --git a/apps/cowswap-frontend/src/modules/wallet/containers/ConnectWalletOptions.tsx b/apps/cowswap-frontend/src/modules/wallet/containers/ConnectWalletOptions.tsx index 3087cacc00..c128d55d6f 100644 --- a/apps/cowswap-frontend/src/modules/wallet/containers/ConnectWalletOptions.tsx +++ b/apps/cowswap-frontend/src/modules/wallet/containers/ConnectWalletOptions.tsx @@ -10,7 +10,7 @@ import { OpenMetaMaskMobileOption, InstallKeystoneOption, KeystoneOption, - LedgerOption, + // LedgerOption, TrezorOption, TrustWalletOption, WalletConnectV2Option, @@ -65,7 +65,7 @@ export function ConnectWalletOptions({ tryActivation }: { tryActivation: TryActi // const zengoOption = (!isInjectedMobileBrowser && ) ?? null const ambireOption = (!isInjectedMobileBrowser && ) ?? null const alphaOption = (!isInjectedMobileBrowser && ) ?? null - const ledgerOption = (!isInjectedMobileBrowser && !isMobile && ) ?? null + // const ledgerOption = (!isInjectedMobileBrowser && !isMobile && ) ?? null const trezorOption = (!isInjectedMobileBrowser && !isMobile && ) ?? null const keystoneOption = (showKeystone && ) || (!isMobile && ) @@ -79,7 +79,7 @@ export function ConnectWalletOptions({ tryActivation }: { tryActivation: TryActi {injectedOption} {walletConnectionV2Option} {coinbaseWalletOption} - {ledgerOption} + {/*{ledgerOption}*/} {trezorOption} {/*{zengoOption}*/} {ambireOption} diff --git a/libs/wallet/src/api/types.ts b/libs/wallet/src/api/types.ts index 1eef0f0315..537d44f81e 100644 --- a/libs/wallet/src/api/types.ts +++ b/libs/wallet/src/api/types.ts @@ -13,7 +13,7 @@ export enum ConnectionType { ALPHA = 'ALPHA', TALLY = 'TALLY', TRUST = 'TRUST', - LEDGER = 'LEDGER', + // LEDGER = 'LEDGER', KEYSTONE = 'KEYSTONE', TREZOR = 'TREZOR', } diff --git a/libs/wallet/src/api/utils/connection.ts b/libs/wallet/src/api/utils/connection.ts index 9604f4f7b3..4fdda54d58 100644 --- a/libs/wallet/src/api/utils/connection.ts +++ b/libs/wallet/src/api/utils/connection.ts @@ -19,7 +19,7 @@ const connectionTypeToName: Record = { [ConnectionType.ALPHA]: 'Alpha', [ConnectionType.TALLY]: 'Tally', [ConnectionType.TRUST]: 'Trust', - [ConnectionType.LEDGER]: 'Ledger', + // [ConnectionType.LEDGER]: 'Ledger', [ConnectionType.KEYSTONE]: 'Keystone', [ConnectionType.TREZOR]: 'Trezor', } @@ -37,7 +37,7 @@ const connectionTypeToIcon: Record = { [ConnectionType.COINBASE_WALLET]: CoinbaseWalletIcon, [ConnectionType.TRUST]: TrustIcon, [ConnectionType.TALLY]: TallyIcon, - [ConnectionType.LEDGER]: LedgerIcon, + // [ConnectionType.LEDGER]: LedgerIcon, [ConnectionType.TREZOR]: TrezorIcon, [ConnectionType.KEYSTONE]: KeystoneImage, [ConnectionType.WALLET_CONNECT_V2]: WalletConnectIcon, diff --git a/libs/wallet/src/index.ts b/libs/wallet/src/index.ts index 119ff2def4..4fdf45d42c 100644 --- a/libs/wallet/src/index.ts +++ b/libs/wallet/src/index.ts @@ -40,7 +40,7 @@ export { } from './web3-react/connection/injected' export { InstallKeystoneOption, KeystoneOption } from './web3-react/connection/keystone' -export { LedgerOption } from './web3-react/connection/ledger' +// export { LedgerOption } from './web3-react/connection/ledger' export { TrezorOption } from './web3-react/connection/trezor' export { TrustWalletOption } from './web3-react/connection/trust' export { WalletConnectV2Option } from './web3-react/connection/walletConnectV2' diff --git a/libs/wallet/src/web3-react/utils/getWeb3ReactConnection.ts b/libs/wallet/src/web3-react/utils/getWeb3ReactConnection.ts index 9085cc59bf..db169948a8 100644 --- a/libs/wallet/src/web3-react/utils/getWeb3ReactConnection.ts +++ b/libs/wallet/src/web3-react/utils/getWeb3ReactConnection.ts @@ -5,7 +5,7 @@ import { coinbaseWalletConnection } from '../connection/coinbase' import { injectedConnection } from '../connection/injected' import { injectedWidgetConnection } from '../connection/injectedWidget' import { keystoneConnection } from '../connection/keystone' -import { ledgerConnection } from '../connection/ledger' +// import { ledgerConnection } from '../connection/ledger' import { networkConnection } from '../connection/network' import { gnosisSafeConnection } from '../connection/safe' import { tallyWalletConnection } from '../connection/tally' @@ -25,7 +25,7 @@ const connectionTypeToConnection: Record = [ConnectionType.ALPHA]: walletConnectConnectionV2, [ConnectionType.TALLY]: tallyWalletConnection, [ConnectionType.TRUST]: trustWalletConnection, - [ConnectionType.LEDGER]: ledgerConnection, + // [ConnectionType.LEDGER]: ledgerConnection, [ConnectionType.KEYSTONE]: keystoneConnection, [ConnectionType.INJECTED_WIDGET]: injectedWidgetConnection, [ConnectionType.TREZOR]: trezorConnection, diff --git a/libs/wallet/src/web3-react/utils/isChainAllowed.ts b/libs/wallet/src/web3-react/utils/isChainAllowed.ts index 645ca8d4d3..a3aa413c54 100644 --- a/libs/wallet/src/web3-react/utils/isChainAllowed.ts +++ b/libs/wallet/src/web3-react/utils/isChainAllowed.ts @@ -14,7 +14,7 @@ const allowedChainsByWallet: Record = { [ConnectionType.GNOSIS_SAFE]: ALL_SUPPORTED_CHAIN_IDS, [ConnectionType.TALLY]: ALL_SUPPORTED_CHAIN_IDS, [ConnectionType.TRUST]: ALL_SUPPORTED_CHAIN_IDS, - [ConnectionType.LEDGER]: ALL_SUPPORTED_CHAIN_IDS, + // [ConnectionType.LEDGER]: ALL_SUPPORTED_CHAIN_IDS, [ConnectionType.TREZOR]: ALL_SUPPORTED_CHAIN_IDS, [ConnectionType.KEYSTONE]: ALL_SUPPORTED_CHAIN_IDS, [ConnectionType.ALPHA]: [], diff --git a/package.json b/package.json index d17c7b7ee4..9bc8a938a7 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,6 @@ "@ethvault/iframe-provider": "^0.1.10", "@fontsource/ibm-plex-mono": "^4.5.1", "@fontsource/inter": "^4.5.1", - "@ledgerhq/connect-kit-loader": "^1.0.2", "@lingui/cli": "^4.3.0", "@lingui/core": "^4.3.0", "@lingui/macro": "^4.3.0", diff --git a/yarn.lock b/yarn.lock index e7a6e339eb..1c4bc28217 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3103,11 +3103,6 @@ resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA== -"@ledgerhq/connect-kit-loader@^1.0.2": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.1.0.tgz#10343b78ef13436818bf3453568a559c0eeb9d48" - integrity sha512-HUy12FEczoWY2FPubnsm1uOA8tkVWc0j90i47suThV3C9NL2xx69ZAIEU3Ytzs2bwLek9S1Q2S1VQJvA+3Ygkg== - "@ledgerhq/connect-kit-loader@^1.1.0": version "1.1.2" resolved "https://registry.yarnpkg.com/@ledgerhq/connect-kit-loader/-/connect-kit-loader-1.1.2.tgz#d550e3c1f046e4c796f32a75324b03606b7e226a"