new ohlc; beta signin; elaborated order status (not working yet)

This commit is contained in:
tim
2024-08-10 23:27:22 -04:00
parent e7753add65
commit 90c504a8c9
8 changed files with 66 additions and 19 deletions

View File

@@ -31,9 +31,9 @@ function timestamp() {
return Math.round(new Date().getTime() / 1000)
}
const UNKNOWN_PROVIDER = {}
const REQUIRE_AUTH = import.meta.env.VITE_REQUIRE_AUTH !== 'NOAUTH';
export const useStore = defineStore('app', ()=> {
const clock = ref(timestamp()) // the clock ticks infrequently enough to be mostly stable for user display
@@ -42,6 +42,8 @@ export const useStore = defineStore('app', ()=> {
const nav = ref(false) // controls opening navigation drawer
const allowed = ref(!REQUIRE_AUTH)
const _chainId = ref(Number(Object.keys(versionMeta.chainInfo)[0]))
const _chainInfo = ref(versionMeta.chainInfo)
@@ -128,7 +130,7 @@ export const useStore = defineStore('app', ()=> {
}
return {
nav, chainId, chainInfo, chain, provider, providerRef, vaultInitCodeHash, account, vaults, vaultVersions,
allowed, nav, chainId, chainInfo, chain, provider, providerRef, vaultInitCodeHash, account, vaults, vaultVersions,
transactionSenders, errors, extraTokens, poolPrices, vaultBalances, orders, vault, version, upgrade, vaultOrders,
tokens, factory, helper,
mockenv, mockCoins,