Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import FindWalletLanguageSelectInput from "@/components/FindWalletProductTable/F
import Layer2SelectInput from "@/components/FindWalletProductTable/Layer2SelectInput"
import PrivacyIcon from "@/components/icons/privacy.svg"
import {
AccountUpgradesIcon,
BrowserIcon,
BuyCryptoIcon,
ConnectDappsIcon,
Expand All @@ -23,6 +24,7 @@ import {
NonCustodialIcon,
OpenSourceWalletIcon,
RPCImportingIcon,
SmartAccountsIcon,
SocialRecoverIcon,
StakingIcon,
SwapIcon,
Expand Down Expand Up @@ -904,6 +906,60 @@ export const useWalletFilters = (): FilterOption[] => {
},
options: [],
},
{
filterKey: "eip_4337_support",
filterLabel: t("page-find-wallet-smart-accounts"),
description: t("page-find-wallet-smart-accounts-desc"),
inputState: false,
input: (filterIndex, itemIndex, inputState, updateFilterState) => {
return (
<SwitchFilterInput
Icon={SmartAccountsIcon}
label={t("page-find-wallet-smart-accounts")}
description={t("page-find-wallet-smart-accounts-desc")}
filterIndex={filterIndex}
itemIndex={itemIndex}
inputState={inputState}
updateFilterState={(filterIndex, itemIndex, newInputState) => {
trackCustomEvent({
eventCategory: "WalletFilterSidebar",
eventAction: `${locale} - ${t("page-find-wallet-smart-accounts")}`,
eventName: `eip_4337_support ${newInputState}`,
})
updateFilterState(filterIndex, itemIndex, newInputState)
}}
/>
)
},
options: [],
},
{
filterKey: "eip_7702_support",
filterLabel: t("page-find-wallet-account-upgrades"),
description: t("page-find-wallet-account-upgrades-desc"),
inputState: false,
input: (filterIndex, itemIndex, inputState, updateFilterState) => {
return (
<SwitchFilterInput
Icon={AccountUpgradesIcon}
label={t("page-find-wallet-account-upgrades")}
description={t("page-find-wallet-account-upgrades-desc")}
filterIndex={filterIndex}
itemIndex={itemIndex}
inputState={inputState}
updateFilterState={(filterIndex, itemIndex, newInputState) => {
trackCustomEvent({
eventCategory: "WalletFilterSidebar",
eventAction: `${locale} - ${t("page-find-wallet-account-upgrades")}`,
eventName: `eip_7702_support ${newInputState}`,
})
updateFilterState(filterIndex, itemIndex, newInputState)
}}
/>
)
},
options: [],
},
],
},
{
Expand Down
7 changes: 7 additions & 0 deletions src/components/icons/wallets/account-upgrades.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/components/icons/wallets/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import AccountUpgradesIcon from "./account-upgrades.svg"
import BrowserIcon from "./browser.svg"
import BuyCryptoIcon from "./buy-crypto.svg"
import ConnectDappsIcon from "./connect-dapps.svg"
Expand All @@ -16,12 +17,14 @@ import NFTSupportIcon from "./nft-support.svg"
import NonCustodialIcon from "./non-custodial.svg"
import OpenSourceWalletIcon from "./open-source-wallet.svg"
import RPCImportingIcon from "./rpc-importing.svg"
import SmartAccountsIcon from "./smart-accounts.svg"
import SocialRecoverIcon from "./social-recover.svg"
import StakingIcon from "./staking.svg"
import SwapIcon from "./swap.svg"
import WithdrawCryptoIcon from "./withdraw-crypto.svg"

export {
AccountUpgradesIcon,
BrowserIcon,
BuyCryptoIcon,
ConnectDappsIcon,
Expand All @@ -40,6 +43,7 @@ export {
NonCustodialIcon,
OpenSourceWalletIcon,
RPCImportingIcon,
SmartAccountsIcon,
SocialRecoverIcon,
StakingIcon,
SwapIcon,
Expand Down
6 changes: 6 additions & 0 deletions src/components/icons/wallets/smart-accounts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/intl/en/page-wallets-find-wallet.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
"page-find-wallet-empty-results-desc": "There are no wallets matching your criteria, try removing some filters.",
"page-find-wallet-privacy": "Privacy",
"page-find-wallet-privacy-desc": "Wallets that support built-in private transactions",
"page-find-wallet-smart-accounts": "Smart accounts",
"page-find-wallet-smart-accounts-desc": "Use a smart contract as your wallet account. Pay gas fees with tokens other than ETH, recover your wallet if you lose your keys, and bundle multiple actions into one transaction.",
"page-find-wallet-account-upgrades": "Account upgrades",
"page-find-wallet-account-upgrades-desc": "Add smart features to your existing account. Keep your existing address while gaining abilities like batched transactions and sponsored gas fees.",
"page-find-wallet-see-wallets": "See wallets",
"page-find-wallet-search-languages": "Search languages..."
}
2 changes: 2 additions & 0 deletions src/lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export const WALLETS_FILTERS_DEFAULT = {
withdraw_crypto: false,
multisig: false,
social_recovery: false,
eip_4337_support: false,
eip_7702_support: false,
new_to_crypto: false,
}

Expand Down
2 changes: 2 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,8 @@ export type WalletData = {
withdraw_crypto: boolean
multisig: boolean
social_recovery: boolean
eip_4337_support?: boolean
eip_7702_support?: boolean
onboard_documentation: string
documentation: string
mpc?: boolean
Expand Down