config.js 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import { http, createConfig } from '@wagmi/vue'
  2. import {bsc, mainnet, sepolia} from '@wagmi/vue/chains'
  3. import {defaultWagmiConfig} from "@web3modal/wagmi/vue";
  4. import {arbitrum} from "@wagmi/core/chains";
  5. // @ts-expect-error 1. Get projectId
  6. export const projectId = '5bad4b7459c1bdcb4d4972a1227b03c2'
  7. // 2. Create wagmiConfig
  8. const match = {
  9. id: 9001,
  10. name: 'MATCH',
  11. network: 'MATCH',
  12. iconUrl: '',
  13. iconBackground: '#fff',
  14. nativeCurrency: {
  15. decimals: 18,
  16. name: 'MATCH',
  17. symbol: 'MATCH',
  18. },
  19. rpcUrls: {
  20. default: {
  21. http: ['https://rpc.matchscan.io'],
  22. },
  23. public: {
  24. http: ['https://rpc.matchscan.io'],
  25. }
  26. },
  27. blockExplorers: {
  28. default: {
  29. name: 'matchscan',
  30. url: 'https://lisbon.matchscan.io'
  31. },
  32. etherscan: {
  33. name: 'matchscan',
  34. url: 'https://lisbon.matchscan.io'
  35. },
  36. },
  37. testnet: false,
  38. };
  39. const match_test = {
  40. id: 698,
  41. name: 'MATCH_TEST',
  42. network: 'MATCH_TEST',
  43. iconUrl: '',
  44. iconBackground: '#fff',
  45. nativeCurrency: {
  46. decimals: 18,
  47. name: 'MATCH_TEST',
  48. symbol: 'MATCH_TEST',
  49. },
  50. rpcUrls: {
  51. default: {
  52. http: ['https://lisbon-testnet-rpc.matchtest.co/'],
  53. },
  54. public: {
  55. http: ['https://lisbon-testnet-rpc.matchtest.co/'],
  56. }
  57. },
  58. blockExplorers: {
  59. default: {
  60. name: 'matchscan',
  61. url: 'https://testnet.matchscan.io'
  62. },
  63. etherscan: {
  64. name: 'matchscan',
  65. url: 'https://testnet.matchscan.io'
  66. },
  67. },
  68. testnet: true,
  69. };
  70. export const chains = [match] //match_test
  71. export const wagmiConfig = defaultWagmiConfig({
  72. chains,
  73. projectId,
  74. transports: {
  75. [match.id]: http(),
  76. // [match_test.id]: http(),
  77. },
  78. metadata: {
  79. name: 'Web3Modal Vue Example',
  80. description: 'Web3Modal Vue Example',
  81. url: '',
  82. icons: [],
  83. verifyUrl: ''
  84. }
  85. })