| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- 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: ''
- }
- })
|