static version.json file

This commit is contained in:
Tim Olson
2024-01-03 16:07:10 -04:00
parent 29517807f5
commit 80cd86dcec
8 changed files with 39 additions and 29 deletions

View File

@@ -14,18 +14,6 @@ socket.on('disconnect', () => {
console.log(new Date(), 'ws disconnected')
})
socket.on('welcome', async (data) => {
console.log('welcome', data)
const s = useStore()
// todo put the vaultInitCodeHash into the chainInfo
s.chainInfo = data.chainInfo
s.vaultInitCodeHash = data.vaultInitCodeHash
const p = new ethers.BrowserProvider(window.ethereum)
const network = await p.getNetwork()
if (network !== null)
onChainChanged(network.chainId)
})
socket.on('p', async (chainId, pool, price) => {
console.log('pool price from message', chainId, pool, price)
const s = useStore()