2025-10-03 13:19:20 +02:00
|
|
|
import './assets/styles/main.sass';
|
|
|
|
|
import { createApp } from 'vue';
|
2026-02-19 20:18:27 +01:00
|
|
|
import { WagmiPlugin } from '@wagmi/vue';
|
2026-02-23 21:13:02 +00:00
|
|
|
// VueQueryPlugin is required by @wagmi/vue — it provides the TanStack Query context
|
|
|
|
|
// that Wagmi uses internally for its reactive data hooks (useAccount, useConnect, etc.).
|
2026-02-22 08:09:44 +00:00
|
|
|
import { VueQueryPlugin } from '@tanstack/vue-query';
|
2026-02-19 20:18:27 +01:00
|
|
|
import { createHarbConfig } from '@harb/web3';
|
2025-10-03 13:19:20 +02:00
|
|
|
import App from './App.vue';
|
|
|
|
|
import router from './router';
|
2025-07-24 16:08:17 +02:00
|
|
|
|
2026-02-19 20:18:27 +01:00
|
|
|
const rpcUrl = import.meta.env.VITE_LOCAL_RPC_URL ?? '/api/rpc';
|
|
|
|
|
const config = createHarbConfig({ rpcUrl });
|
2025-07-24 16:08:17 +02:00
|
|
|
|
2026-02-19 20:18:27 +01:00
|
|
|
const app = createApp(App);
|
2026-02-22 08:09:44 +00:00
|
|
|
app.use(VueQueryPlugin);
|
2026-02-19 20:18:27 +01:00
|
|
|
app.use(WagmiPlugin, { config });
|
2025-10-03 13:19:20 +02:00
|
|
|
app.use(router);
|
|
|
|
|
app.mount('#app');
|