complete checkin for juan; config tweaks & mock tweaks
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
/.env
|
||||||
public/version.js
|
public/version.js
|
||||||
|
|
||||||
### JetBrains template
|
### JetBrains template
|
||||||
@@ -160,7 +161,7 @@ web_modules/
|
|||||||
.yarn-integrity
|
.yarn-integrity
|
||||||
|
|
||||||
# dotenv environment variables file
|
# dotenv environment variables file
|
||||||
.env
|
.env-mock
|
||||||
.env.test
|
.env.test
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
# parcel-bundler cache (https://parceljs.org/)
|
||||||
|
|||||||
@@ -82,10 +82,6 @@ export async function pendOrder(order) {
|
|||||||
console.log('order', JSON.stringify(order))
|
console.log('order', JSON.stringify(order))
|
||||||
const s = useStore()
|
const s = useStore()
|
||||||
s.pendingOrders.push(order)
|
s.pendingOrders.push(order)
|
||||||
const signer = await connectWallet()
|
|
||||||
if (!s.vaults.length)
|
|
||||||
socket.emit('ensureVault', s.chainId, await signer.getAddress(), 0)
|
|
||||||
else
|
|
||||||
flushOrders()
|
flushOrders()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -107,6 +103,10 @@ export async function asyncFlushOrders() {
|
|||||||
console.log('signer denied')
|
console.log('signer denied')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if (!s.vaults.length) {
|
||||||
|
socket.emit('ensureVault', s.chainId, await signer.getAddress(), 0)
|
||||||
|
return
|
||||||
|
}
|
||||||
const contract = await vaultContract(0, signer)
|
const contract = await vaultContract(0, signer)
|
||||||
if (!contract) {
|
if (!contract) {
|
||||||
console.error(`no contract for vault 0 of ${signer.address}`)
|
console.error(`no contract for vault 0 of ${signer.address}`)
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {useStore} from "@/store/store";
|
import {useStore} from "@/store/store";
|
||||||
import {connectWallet} from "@/blockchain/wallet.js";
|
|
||||||
|
|
||||||
const s = useStore()
|
const s = useStore()
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ export const useStore = defineStore('app', {
|
|||||||
pendingOrders: [], // created but not yet sent to metamask. maybe waiting on vault creation.
|
pendingOrders: [], // created but not yet sent to metamask. maybe waiting on vault creation.
|
||||||
errors: [{
|
errors: [{
|
||||||
title: 'DANGER!',
|
title: 'DANGER!',
|
||||||
text: 'This is early development (alpha) software, which could have severe bugs that lose all your money. Thank you for testing a SMALL amount!',
|
text: 'This is early development (alpha) software. There could be severe bugs that lose all your money. Thank you for testing a SMALL amount!',
|
||||||
closeable: false
|
closeable: false
|
||||||
}],
|
}],
|
||||||
extraTokens: {},
|
extraTokens: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user