Make bid and ask accounts public on Market
This commit is contained in:
parent
cfe53022af
commit
b246231c51
|
@ -144,6 +144,14 @@ export class Market {
|
||||||
return this._decoded.quoteMint;
|
return this._decoded.quoteMint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get bidsAddress(): PublicKey {
|
||||||
|
return this._decoded.bids;
|
||||||
|
}
|
||||||
|
|
||||||
|
get asksAddress(): PublicKey {
|
||||||
|
return this._decoded.asks;
|
||||||
|
}
|
||||||
|
|
||||||
async loadBids(connection: Connection): Promise<Orderbook> {
|
async loadBids(connection: Connection): Promise<Orderbook> {
|
||||||
const { data } = throwIfNull(
|
const { data } = throwIfNull(
|
||||||
await connection.getAccountInfo(this._decoded.bids),
|
await connection.getAccountInfo(this._decoded.bids),
|
||||||
|
|
Loading…
Reference in New Issue