ts: maintain alt script was missing perp market relevant pubkeys

Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
This commit is contained in:
microwavedcola1 2023-11-27 09:34:09 +01:00
parent 755dbd7ec0
commit 603ca0b224
1 changed files with 15 additions and 0 deletions

View File

@ -248,6 +248,21 @@ async function run(): Promise<void> {
.flat()
.map((serum3ExternalMarket) => serum3ExternalMarket.asksAddress),
);
await extendTable(
client,
group,
payer,
'perp market event queues, bids, and asks',
altAddress1,
Array.from(group.perpMarketsMapByMarketIndex.values())
.flat()
.map((perpMarket) => [
perpMarket.eventQueue,
perpMarket.bids,
perpMarket.asks,
])
.flat(),
);
} catch (error) {
console.log(error);
}