import { http, createConfig } from '@wagmi/vue' import {bsc, mainnet, sepolia} from '@wagmi/vue/chains' import {defaultWagmiConfig} from "@web3modal/wagmi/vue"; import {arbitrum} from "@wagmi/core/chains"; // @ts-expect-error 1. Get projectId export const projectId = '5bad4b7459c1bdcb4d4972a1227b03c2' // 2. Create wagmiConfig const match = { id: 9001, name: 'MATCH', network: 'MATCH', iconUrl: '', iconBackground: '#fff', nativeCurrency: { decimals: 18, name: 'MATCH', symbol: 'MATCH', }, rpcUrls: { default: { http: ['https://rpc.matchscan.io'], }, public: { http: ['https://rpc.matchscan.io'], } }, blockExplorers: { default: { name: 'matchscan', url: 'https://lisbon.matchscan.io' }, etherscan: { name: 'matchscan', url: 'https://lisbon.matchscan.io' }, }, testnet: false, }; const match_test = { id: 698, name: 'MATCH_TEST', network: 'MATCH_TEST', iconUrl: '', iconBackground: '#fff', nativeCurrency: { decimals: 18, name: 'MATCH_TEST', symbol: 'MATCH_TEST', }, rpcUrls: { default: { http: ['https://lisbon-testnet-rpc.matchtest.co/'], }, public: { http: ['https://lisbon-testnet-rpc.matchtest.co/'], } }, blockExplorers: { default: { name: 'matchscan', url: 'https://testnet.matchscan.io' }, etherscan: { name: 'matchscan', url: 'https://testnet.matchscan.io' }, }, testnet: true, }; export const chains = [match] //match_test export const wagmiConfig = defaultWagmiConfig({ chains, projectId, transports: { [match.id]: http(), // [match_test.id]: http(), }, metadata: { name: 'Web3Modal Vue Example', description: 'Web3Modal Vue Example', url: '', icons: [], verifyUrl: '' } })