Skip to content
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
6 changes: 6 additions & 0 deletions .changeset/remove-porto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lifi/widget-provider-ethereum": minor
"@lifi/wallet-management": patch
---

Remove Porto wallet connector support following the Ithaca Porto sunset. The `porto` option on `EthereumProviderConfig` and `createDefaultWagmiConfig` is removed, along with the Porto wallet icon and tag.
3 changes: 1 addition & 2 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
"@coinbase/wallet-sdk",
"@metamask/connect-evm",
"@metamask/connect-multichain",
"@walletconnect/ethereum-provider",
"porto"
"@walletconnect/ethereum-provider"
]
}
}
Expand Down
2 changes: 0 additions & 2 deletions packages/wallet-management/src/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export const getWalletIcon = (id: string): string | undefined => {
return 'https://lifinance.github.io/types/src/assets/icons/wallets/metamask.svg'
case 'baseAccount':
return 'https://lifinance.github.io/types/src/assets/icons/wallets/baseAccount.svg'
case 'xyz.ithaca.porto':
return 'https://lifinance.github.io/types/src/assets/icons/wallets/porto.svg'
default:
break
}
Expand Down
6 changes: 1 addition & 5 deletions packages/wallet-management/src/utils/walletTags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ export const getConnectorTagType = (
: WalletTagType.GetStarted
}

if (
connectorId === 'coinbaseWalletSDK' ||
connectorId === 'baseAccount' ||
connectorId === 'xyz.ithaca.porto'
) {
if (connectorId === 'coinbaseWalletSDK' || connectorId === 'baseAccount') {
return WalletTagType.GetStarted
}

Expand Down
1 change: 0 additions & 1 deletion packages/widget-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
"csstype": "^3.2.3",
"lodash.isequal": "^4.5.0",
"microdiff": "^1.5.0",
"porto": "^0.2.37",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"viem": "^2.52.2",
Expand Down
1 change: 0 additions & 1 deletion packages/widget-playground/src/defaultWidgetConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const widgetBaseConfig: WidgetConfig = {
coinbase: true,
metaMask: true,
walletConnect: true,
porto: true,
}),
SuiProvider(),
SolanaProvider(),
Expand Down
8 changes: 0 additions & 8 deletions packages/widget-provider-ethereum/src/connectors/porto.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const EthereumBaseProvider: FC<
defaultWalletConnectConfig
),
baseAccount: resolveConfig(config?.baseAccount, defaultBaseAccountConfig),
porto: resolveConfig(config?.porto, undefined),
wagmiConfig: {
ssr: true,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import { defaultWalletConnectConfig } from '../config/walletConnect.js'
import { createBaseAccountConnector } from '../connectors/baseAccount.js'
import { createCoinbaseConnector } from '../connectors/coinbase.js'
import { createMetaMaskConnector } from '../connectors/metaMask.js'
import { createPortoConnector } from '../connectors/porto.js'
import { createWalletConnectConnector } from '../connectors/walletConnect.js'
import type {
CreateConnectorFnExtended,
Expand Down Expand Up @@ -147,16 +146,6 @@ export const EthereumProviderValues: FC<
)
)
}
if (
config?.porto &&
!evmConnectors.some((connector) =>
connector.id.toLowerCase().includes('porto')
)
) {
additionalConnectors.unshift(
createPortoConnector(resolveConfig(config.porto, undefined))
)
}

evmConnectors.unshift(...additionalConnectors)

Expand Down
2 changes: 0 additions & 2 deletions packages/widget-provider-ethereum/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import type {
BaseAccountParameters,
CoinbaseWalletParameters,
MetaMaskParameters,
PortoParameters,
WalletConnectParameters,
} from 'wagmi/connectors'

Expand All @@ -26,7 +25,6 @@ export interface EthereumProviderConfig {
coinbase?: CoinbaseWalletParameters | boolean
metaMask?: MetaMaskParameters | boolean
baseAccount?: BaseAccountParameters | boolean
porto?: Partial<PortoParameters> | boolean
disableMessageSigning?: boolean
sdkProvider?: SDKProvider | SDKProviderFactory<EthereumProviderDeps>
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import type {
BaseAccountParameters,
CoinbaseWalletParameters,
MetaMaskParameters,
PortoParameters,
WalletConnectParameters,
} from 'wagmi/connectors'
import { safe } from 'wagmi/connectors'
import { createBaseAccountConnector } from '../connectors/baseAccount.js'
import { createCoinbaseConnector } from '../connectors/coinbase.js'
import { createMetaMaskConnector } from '../connectors/metaMask.js'
import { createPortoConnector } from '../connectors/porto.js'
import { createWalletConnectConnector } from '../connectors/walletConnect.js'

// Drop viem's bundled mainnet default (eth.merkle.io); BE RPCs arrive via useSyncWagmiConfig.
Expand All @@ -32,7 +30,6 @@ export interface DefaultWagmiConfigProps {
coinbase?: CoinbaseWalletParameters
metaMask?: MetaMaskParameters
baseAccount?: BaseAccountParameters
porto?: Partial<PortoParameters>
wagmiConfig?: {
ssr?: boolean
multiInjectedProviderDiscovery?: boolean
Expand Down Expand Up @@ -141,10 +138,6 @@ export function createDefaultWagmiConfig(
connectors.unshift(createBaseAccountConnector(props.baseAccount))
}

if (props?.porto && (recentConnectorId?.includes?.('porto') || !props.lazy)) {
connectors.unshift(createPortoConnector(props.porto))
}

return {
config,
connectors,
Expand Down
30 changes: 14 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading