From 7baf2cc84d1d10460e1ffc3a9b0ff7c0dc890a9e Mon Sep 17 00:00:00 2001 From: Lukas Date: Thu, 10 Jul 2025 16:10:02 +0200 Subject: [PATCH] feat(app): enable keplr/leap evm --- app2/src/lib/wallet/evm/config.svelte.ts | 5 ++++- app2/src/lib/wallet/evm/wagmi-config.svelte.ts | 12 ++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/app2/src/lib/wallet/evm/config.svelte.ts b/app2/src/lib/wallet/evm/config.svelte.ts index d6b705d05e..0e21372e04 100644 --- a/app2/src/lib/wallet/evm/config.svelte.ts +++ b/app2/src/lib/wallet/evm/config.svelte.ts @@ -204,7 +204,8 @@ class SepoliaStore { export const sepoliaStore = new SepoliaStore() -const excludeWalletList = ["io.leapwallet.LeapWallet", "app.keplr"] +// Exclude wallet list, example ["io.leapwallet.LeapWallet", "app.keplr"] +const excludeWalletList: string[] = [] export const evmWalletsInformation = getWagmiConfig() .connectors.map(connector => { @@ -216,6 +217,8 @@ export const evmWalletsInformation = getWagmiConfig() ? "Safe Wallet" : name.includes("injected") ? "Browser Wallet" + : name.includes("leap") || id.includes("leap") + ? "Leap" : connector.name, icon: (id.includes("walletconnect") ? "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23268fff' d='M4.91 7.52a10.18 10.18 0 0 1 14.18 0l.47.46a.48.48 0 0 1 0 .7l-1.61 1.57a.25.25 0 0 1-.36 0l-.65-.63a7.1 7.1 0 0 0-9.88 0l-.7.68a.26.26 0 0 1-.35 0L4.4 8.72a.48.48 0 0 1 0-.7zm17.5 3.26 1.44 1.4a.48.48 0 0 1 0 .7l-6.46 6.33a.51.51 0 0 1-.71 0l-4.59-4.5a.13.13 0 0 0-.18 0l-4.59 4.5a.51.51 0 0 1-.7 0L.14 12.88a.48.48 0 0 1 0-.7l1.43-1.4a.51.51 0 0 1 .71 0l4.59 4.5c.05.04.13.04.18 0l4.59-4.5a.51.51 0 0 1 .7 0l4.6 4.5c.04.04.12.04.17 0l4.6-4.5a.5.5 0 0 1 .7 0' /%3E%3C/svg%3E%0A" diff --git a/app2/src/lib/wallet/evm/wagmi-config.svelte.ts b/app2/src/lib/wallet/evm/wagmi-config.svelte.ts index cf663832c9..ff71156429 100644 --- a/app2/src/lib/wallet/evm/wagmi-config.svelte.ts +++ b/app2/src/lib/wallet/evm/wagmi-config.svelte.ts @@ -211,12 +211,6 @@ function createWagmiConfigInstance() { shimDisconnect: true, unstable_shimAsyncInject: 2_500, }), - coinbaseWallet({ - darkMode: true, - appName: uiStore.appInfo.name, - appLogoUrl: uiStore.appInfo.iconUrl, - enableMobileWalletLink: true, - }), metaMask({ injectProvider: true, dappMetadata: { @@ -226,6 +220,12 @@ function createWagmiConfigInstance() { }, useDeeplink: true, }), + coinbaseWallet({ + darkMode: true, + appName: uiStore.appInfo.name, + appLogoUrl: uiStore.appInfo.iconUrl, + enableMobileWalletLink: true, + }), safe({ allowedDomains: [ /gnosis-safe.io$/,