order status updates working

This commit is contained in:
Tim Olson
2023-11-08 23:18:36 -04:00
parent 25aef69ea3
commit 2aae833ff4
4 changed files with 28 additions and 16 deletions

View File

@@ -3,6 +3,7 @@ import {getAbi} from "./abi.js";
import {getProvider, getSigner} from "./blockchain.js";
import {vaultBalances, vaults} from './cache.js';
import {chainInfo, VAULT_INIT_CODE_HASH} from "./chain.js";
import {sendVaultOrders} from "./order.js";
// Vault
// address owner
@@ -56,6 +57,8 @@ export async function loginAddress(socket, chainId, address) {
break
}
socket.emit('vaults', chainId, address, found)
for( const vault of found )
sendVaultOrders(socket, chainId, vault)
}
}