chainInfo from server, routes, wallet rework

This commit is contained in:
Tim Olson
2023-10-04 03:40:47 -04:00
parent e7a9600c54
commit 7239987867
26 changed files with 603 additions and 297 deletions

View File

@@ -1,4 +1,5 @@
import {io} from "socket.io-client";
import {useStore} from "@/store/store.js";
export const socket = io(import.meta.env.VITE_WS_URL || undefined, { transports: ["websocket"] })
@@ -14,3 +15,7 @@ socket.on('welcome', (data)=>{
console.log('welcome',data)
})
socket.on('chainInfo', async (chainInfo)=>{
const s = useStore()
s.chainInfo = chainInfo
})