diff --git a/.env-mock b/.env-mock
index ce2d550..65e1b4d 100644
--- a/.env-mock
+++ b/.env-mock
@@ -1 +1,2 @@
VITE_WS_URL=ws://localhost:3001
+REQUIRE_AUTH=NOAUTH
diff --git a/src/blockchain/orderlib.js b/src/blockchain/orderlib.js
index b246741..f1966e9 100644
--- a/src/blockchain/orderlib.js
+++ b/src/blockchain/orderlib.js
@@ -118,6 +118,15 @@ export function isOpen(state) {
return state >= 1 && state < 3
}
+
+export function parseElaboratedOrderStatus(chainId, status) {
+ const [txId, ...remaining] = status
+ const result = parseOrderStatus(chainId, remaining)
+ result.txId = txId
+ return result
+}
+
+
export function parseOrderStatus(chainId, status) {
let [
order,
diff --git a/src/charts/ohlc.js b/src/charts/ohlc.js
index 0ec4e4c..8f216be 100644
--- a/src/charts/ohlc.js
+++ b/src/charts/ohlc.js
@@ -90,7 +90,7 @@ const seriesStarts = {}
async function getUrl(url) {
try {
const response = await fetch(url)
- console.log('got response', response)
+ // console.log('got response', response)
if (response.ok)
return await response.text()
else
@@ -104,7 +104,7 @@ async function getUrl(url) {
export async function loadOHLC (symbol, contract, from, to, tvRes) {
- console.log('loadOHLC', tvRes, new Date(1000*from), new Date(1000*to), symbol, contract);
+ // console.log('loadOHLC', tvRes, new Date(1000*from), new Date(1000*to), symbol, contract);
let chainId
let bars = [];
let inverted = symbol.inverted;
@@ -130,8 +130,6 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
}
baseURL += `${chainId}/${contract}/`
- console.log('baseURL', baseURL)
-
const res = resMap[tvRes]
const fetches = []
let start = from
@@ -140,7 +138,7 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
const response = await getUrl(baseURL+'quote.csv')
if (response.length) {
seriesStarts[baseURL] = parseInt(response.split(',')[0])
- console.log(`Series ${baseURL} starts at ${new Date(start*1000)}`)
+ // console.log(`Series ${baseURL} starts at ${new Date(start*1000)}`)
}
else {
console.error(`Bad response while fetching ${baseURL+'quote.csv'}`)
@@ -155,7 +153,7 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
for(let now = start; now < to; now = res.nextStart(now)) {
const url = baseURL + res.filename(contract, now);
- console.log('fetching', url)
+ // console.log('fetching', url)
const prom = getUrl(url)
fetches.push(prom);
}
@@ -166,7 +164,7 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
let lineNum = 0
response.split('\n').forEach((line) => {
lineNum++
- console.log(`processing line ${lineNum}`, line)
+ // console.log(`processing line ${lineNum}`, line)
const row = line.split(',')
let time, open, high, low, close=null
switch (row.length) {
@@ -216,17 +214,17 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
break
}
if (close!==null) {
- console.log(`filling up to ${time}`)
+ // console.log(`filling up to ${time}`)
fill(time, res.period)
const bar = {time:time*1000, open, high, low, close};
- console.log('pushing bar', bar)
+ // console.log('pushing bar', bar)
bars.push(bar)
latest = [time, close]
}
})
- console.log(`processed ${lineNum} lines`)
+ // console.log(`processed ${lineNum} lines`)
}
- else { console.log('response was empty') }
+ // else { console.log('response was empty') }
}
fill(to, res.period)
@@ -241,7 +239,7 @@ export async function loadOHLC (symbol, contract, from, to, tvRes) {
// backward to find beginning of history. How far to search?
let noData = bars.length === 0;
- if (noData) console.log("noData == true!");
- console.log('bars', bars)
+ // if (noData) console.log("noData == true!");
+ // console.log('bars', bars)
return [bars, {noData}];
}
diff --git a/src/common.js b/src/common.js
index 9be855e..c47f5d5 100644
--- a/src/common.js
+++ b/src/common.js
@@ -53,7 +53,7 @@ export function buildMetadataMap(metadata) {
map[tokenMeta.a] = tokenMeta
metadataMap[Number(chain)] = map
}
- console.log('metadataMap', metadataMap)
+ // console.log('metadataMap', metadataMap)
return metadataMap
}
diff --git a/src/components/BetaSignin.vue b/src/components/BetaSignin.vue
new file mode 100644
index 0000000..b151ca3
--- /dev/null
+++ b/src/components/BetaSignin.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+ Follow our social media for public release updates!
+
+
+
+
+
+
+
+
diff --git a/src/components/NeedsSigner.vue b/src/components/NeedsSigner.vue
index 7778989..6546ffb 100644
--- a/src/components/NeedsSigner.vue
+++ b/src/components/NeedsSigner.vue
@@ -1,4 +1,5 @@
+
@@ -35,6 +36,7 @@
+