From b246231c51825a887af6ca5d1dc239fba73b6334 Mon Sep 17 00:00:00 2001 From: Nathaniel Parke Date: Mon, 7 Sep 2020 17:32:41 +0800 Subject: [PATCH] Make bid and ask accounts public on Market --- src/market.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/market.ts b/src/market.ts index e54d79c..63065f7 100644 --- a/src/market.ts +++ b/src/market.ts @@ -144,6 +144,14 @@ export class Market { return this._decoded.quoteMint; } + get bidsAddress(): PublicKey { + return this._decoded.bids; + } + + get asksAddress(): PublicKey { + return this._decoded.asks; + } + async loadBids(connection: Connection): Promise { const { data } = throwIfNull( await connection.getAccountInfo(this._decoded.bids),