Added .prettierrc.js. Tried to match it to the current format as closely as possible (some files had trailing commas and some didn't so chose none for now).
Added computeUiPrice utility function
Changed tickSize and minOrderSize to be uiAmounts for backward compatibility with v3. Added tickSizeBN and minOrderSizeBN for BN amounts.
Made marketState optional on OpenOrders.load for backwards compatibility.
Fixed convert function in Orderbook.getL2 and added typing.
Anchor.toml
to allow using anchor cli.prettierrc.js
. Tried to match it to the current format as closely as possible (some files had trailing commas and some didn't so chosenone
for now).computeUiPrice
utility functiontickSize
andminOrderSize
to be uiAmounts for backward compatibility with v3. AddedtickSizeBN
andminOrderSizeBN
for BN amounts.marketState
optional onOpenOrders.load
for backwards compatibility.convert
function inOrderbook.getL2
and added typing.