import {arbitrum, mainnet} from 'viem/chains'
import {createConfig} from '@privy-io/wagmi'
import {http} from 'wagmi'

// Create the Privy Wagmi config with Ethereum and Arbitrum chains
export const privyWagmiConfig = createConfig({
  chains: [mainnet, arbitrum],
  transports: {
    // You can customize RPC providers here if needed
    [mainnet.id]: http(),
    [arbitrum.id]: http(),
  },
})

// Export the supported chains for use elsewhere in the app
export const supportedChains = [mainnet, arbitrum] 