mango-v4/ts/client/index.html

14 lines
79 KiB
HTML

<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@blockworks-foundation/mango-v4</title><meta name="description" content="Documentation for @blockworks-foundation/mango-v4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script async src="assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@blockworks-foundation/mango-v4</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><h1>@blockworks-foundation/mango-v4</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Enumerations</h3><ul class="tsd-index-list"><li class="tsd-kind-enum"><a href="enums/OracleProvider.html" class="tsd-kind-icon">Oracle<wbr/>Provider</a></li></ul></section><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class tsd-has-type-parameter"><a href="classes/As.html" class="tsd-kind-icon">As</a></li><li class="tsd-kind-class"><a href="classes/Bank.html" class="tsd-kind-icon">Bank</a></li><li class="tsd-kind-class"><a href="classes/BookSide.html" class="tsd-kind-icon">Book<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/BookSideType.html" class="tsd-kind-icon">Book<wbr/>Side<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanType.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanWithdraw.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Withdraw</a></li><li class="tsd-kind-class"><a href="classes/Group.html" class="tsd-kind-icon">Group</a></li><li class="tsd-kind-class"><a href="classes/HealthType.html" class="tsd-kind-icon">Health<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/I80F48.html" class="tsd-kind-icon">I80<wbr/>F48</a></li><li class="tsd-kind-class"><a href="classes/I80F48Dto.html" class="tsd-kind-icon">I80<wbr/>F48<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/InnerNode.html" class="tsd-kind-icon">Inner<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/InterestRateParams.html" class="tsd-kind-icon">Interest<wbr/>Rate<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/LeafNode.html" class="tsd-kind-icon">Leaf<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/MangoAccount.html" class="tsd-kind-icon">Mango<wbr/>Account</a></li><li class="tsd-kind-class"><a href="classes/MangoClient.html" class="tsd-kind-icon">Mango<wbr/>Client</a></li><li class="tsd-kind-class"><a href="classes/MintInfo.html" class="tsd-kind-icon">Mint<wbr/>Info</a></li><li class="tsd-kind-class"><a href="classes/OracleConfigParams.html" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/PerpEventQueue.html" class="tsd-kind-icon">Perp<wbr/>Event<wbr/>Queue</a></li><li class="tsd-kind-class"><a href="classes/PerpMarket.html" class="tsd-kind-icon">Perp<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/PerpOo.html" class="tsd-kind-icon">Perp<wbr/>Oo</a></li><li class="tsd-kind-class"><a href="classes/PerpOoDto.html" class="tsd-kind-icon">Perp<wbr/>Oo<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/PerpOrder.html" class="tsd-kind-icon">Perp<wbr/>Order</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderSide.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderType.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/PerpPosition.html" class="tsd-kind-icon">Perp<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/PerpPositionDto.html" class="tsd-kind-icon">Perp<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3Market.html" class="tsd-kind-icon">Serum3<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/Serum3OrderType.html" class="tsd-kind-icon">Serum3<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/Serum3Orders.html" class="tsd-kind-icon">Serum3<wbr/>Orders</a></li><li class="tsd-kind-class"><a href="classes/Serum3PositionDto.html" class="tsd-kind-icon">Serum3<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3SelfTradeBehavior.html" class="tsd-kind-icon">Serum3<wbr/>Self<wbr/>Trade<wbr/>Behavior</a></li><li class="tsd-kind-class"><a href="classes/Serum3Side.html" class="tsd-kind-icon">Serum3<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/StubOracle.html" class="tsd-kind-icon">Stub<wbr/>Oracle</a></li><li class="tsd-kind-class"><a href="classes/TokenPosition.html" class="tsd-kind-icon">Token<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/TokenPositionDto.html" class="tsd-kind-icon">Token<wbr/>Position<wbr/>Dto</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface"><a href="interfaces/BankForHealth.html" class="tsd-kind-icon">Bank<wbr/>For<wbr/>Health</a></li><li class="tsd-kind-interface"><a href="interfaces/Event.html" class="tsd-kind-icon">Event</a></li><li class="tsd-kind-interface"><a href="interfaces/FillEvent.html" class="tsd-kind-icon">Fill<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/LiquidateEvent.html" class="tsd-kind-icon">Liquidate<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/OutEvent.html" class="tsd-kind-icon">Out<wbr/>Event</a></li></ul></section><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias tsd-has-type-parameter"><a href="index.html#Modify" class="tsd-kind-icon">Modify</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfig" class="tsd-kind-icon">Oracle<wbr/>Config</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfigDto" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Dto</a></li><li class="tsd-kind-type-alias"><a href="index.html#ParsedFillEvent" class="tsd-kind-icon">Parsed<wbr/>Fill<wbr/>Event</a></li><li class="tsd-kind-type-alias"><a href="index.html#PerpMarketIndex" class="tsd-kind-icon">Perp<wbr/>Market<wbr/>Index</a></li><li class="tsd-kind-type-alias"><a href="index.html#StablePriceModel" class="tsd-kind-icon">Stable<wbr/>Price<wbr/>Model</a></li><li class="tsd-kind-type-alias"><a href="index.html#TokenIndex" class="tsd-kind-icon">Token<wbr/>Index</a></li></ul></section><section class="tsd-index-section "><h3>Variables</h3><ul class="tsd-index-list"><li class="tsd-kind-variable"><a href="index.html#I64_MAX_BN" class="tsd-kind-icon">I64_<wbr/>MAX_<wbr/>BN</a></li><li class="tsd-kind-variable"><a href="index.html#MANGO_V4_ID" class="tsd-kind-icon">MANGO_<wbr/>V4_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#NullPerpEditParams" class="tsd-kind-icon">Null<wbr/>Perp<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#NullTokenEditParams" class="tsd-kind-icon">Null<wbr/>Token<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#OPENBOOK_PROGRAM_ID" class="tsd-kind-icon">OPENBOOK_<wbr/>PROGRAM_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#QUOTE_DECIMALS" class="tsd-kind-icon">QUOTE_<wbr/>DECIMALS</a></li><li class="tsd-kind-variable"><a href="index.html#TrueIxGateParams" class="tsd-kind-icon">True<wbr/>Ix<wbr/>Gate<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#U64_MAX_BN" class="tsd-kind-icon">U64_<wbr/>MAX_<wbr/>BN</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function"><a href="index.html#HUNDRED_I80F48" class="tsd-kind-icon">HUNDRED_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#MAX_I80F48" class="tsd-kind-icon">MAX_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#ONE_I80F48" class="tsd-kind-icon">ONE_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MAX" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MIN" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MIN</a></li><li class="tsd-kind-function"><a href="index.html#RUST_U64_MAX" class="tsd-kind-icon">RUST_<wbr/>U64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#ZERO_I80F48" class="tsd-kind-icon">ZERO_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#bpsToDecimal" class="tsd-kind-icon">bps<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#buildIxGate" class="tsd-kind-icon">build<wbr/>Ix<wbr/>Gate</a></li><li class="tsd-kind-function"><a href="index.html#buildVersionedTx" class="tsd-kind-icon">build<wbr/>Versioned<wbr/>Tx</a></li><li class="tsd-kind-function"><a href="index.html#createAssociatedTokenAccountIdempotentInstruction" class="tsd-kind-icon">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction</a></li><li class="tsd-kind-function"><a href="index.html#getAssociatedTokenAddress" class="tsd-kind-icon">get<wbr/>Associated<wbr/>Token<wbr/>Address</a></li><li class="tsd-kind-function"><a href="index.html#percentageToDecimal" class="tsd-kind-icon">percentage<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#toNative" class="tsd-kind-icon">to<wbr/>Native</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48ForQuote" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimals" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimalsForQuote" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiI80F48" class="tsd-kind-icon">to<wbr/>Ui<wbr/>I80<wbr/>F48</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-has-type-parameter"><a id="Modify" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Modify<a href="#Modify" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Modify<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">R</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">R</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">R</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/types.ts#L3">types.ts:3</a></li></ul></aside><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T</h4></li><li><h4>R</h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="OracleConfig" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Oracle<wbr/>Config<a href="#OracleConfig" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Oracle<wbr/>Config<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>confFilter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a><span class="tsd-signature-symbol">; </span>maxStalenessSlots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/accounts/bank.ts#L15">accounts/bank.ts:15</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>conf<wbr/>Filter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li><li class="tsd-parameter"><h5>max<wbr/>Staleness<wbr/>Slots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="OracleConfigDto" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Oracle<wbr/>Config<wbr/>Dto<a href="#OracleConfigDto" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Oracle<wbr/>Config<wbr/>Dto<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>confFilter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a><span class="tsd-signature-symbol">; </span>maxStalenessSlots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/accounts/bank.ts#L10">accounts/bank.ts:10</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>conf<wbr/>Filter<span class="tsd-signature-symbol">: </span><a href="classes/I80F48Dto.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48Dto</a></h5></li><li class="tsd-parameter"><h5>max<wbr/>Staleness<wbr/>Slots<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="ParsedFillEvent" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Parsed<wbr/>Fill<wbr/>Event<a href="#ParsedFillEvent" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Parsed<wbr/>Fill<wbr/>Event<span class="tsd-signature-symbol">:</span> <a href="index.html#Modify" class="tsd-signature-type" data-tsd-kind="Type alias">Modify</a><span class="tsd-signature-symbol">&lt;</span><a href="interfaces/FillEvent.html" class="tsd-signature-type" data-tsd-kind="Interface">FillEvent</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span>price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>quantity<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/accounts/perp.ts#L28">accounts/perp.ts:28</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="PerpMarketIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Perp<wbr/>Market<wbr/>Index<a href="#PerpMarketIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Perp<wbr/>Market<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> &amp; </span><a href="classes/As.html" class="tsd-signature-type" data-tsd-kind="Class">As</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">&quot;perp-market-index&quot;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/accounts/perp.ts#L26">accounts/perp.ts:26</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="StablePriceModel" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Stable<wbr/>Price<wbr/>Model<a href="#StablePriceModel" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Stable<wbr/>Price<wbr/>Model<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>delayAccumulatorPrice<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayAccumulatorTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayGrowthLimit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayIntervalSeconds<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>delayPrices<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>lastDelayIntervalIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>lastUpdateTimestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol">; </span>stableGrowthLimit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>stablePrice<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/accounts/bank.ts#L20">accounts/bank.ts:20</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>delay<wbr/>Accumulator<wbr/>Price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Accumulator<wbr/>Time<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Growth<wbr/>Limit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Interval<wbr/>Seconds<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>delay<wbr/>Prices<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>last<wbr/>Delay<wbr/>Interval<wbr/>Index<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>last<wbr/>Update<wbr/>Timestamp<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></h5></li><li class="tsd-parameter"><h5>stable<wbr/>Growth<wbr/>Limit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>stable<wbr/>Price<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias"><a id="TokenIndex" class="tsd-anchor"></a><h3 class="tsd-anchor-link">Token<wbr/>Index<a href="#TokenIndex" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Token<wbr/>Index<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> &amp; </span><a href="classes/As.html" class="tsd-signature-type" data-tsd-kind="Class">As</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">&quot;token-index&quot;</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/accounts/bank.ts#L8">accounts/bank.ts:8</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Variables</h2><section class="tsd-panel tsd-member tsd-kind-variable"><a id="I64_MAX_BN" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> I64_<wbr/>MAX_<wbr/>BN<a href="#I64_MAX_BN" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">I64_<wbr/>MAX_<wbr/>BN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L19">utils.ts:19</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="MANGO_V4_ID" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> MANGO_<wbr/>V4_<wbr/>ID<a href="#MANGO_V4_ID" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">MANGO_<wbr/>V4_<wbr/>ID<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>mainnet-beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>testnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/constants/index.ts#L19">constants/index.ts:19</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>mainnet-<wbr/>beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>testnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="NullPerpEditParams" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> Null<wbr/>Perp<wbr/>Edit<wbr/>Params<a href="#NullPerpEditParams" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Null<wbr/>Perp<wbr/>Edit<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PerpEditParams</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/clientIxParamBuilder.ts#L89">clientIxParamBuilder.ts:89</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="NullTokenEditParams" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> Null<wbr/>Token<wbr/>Edit<wbr/>Params<a href="#NullTokenEditParams" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">Null<wbr/>Token<wbr/>Edit<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">TokenEditParams</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/clientIxParamBuilder.ts#L31">clientIxParamBuilder.ts:31</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="OPENBOOK_PROGRAM_ID" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> OPENBOOK_<wbr/>PROGRAM_<wbr/>ID<a href="#OPENBOOK_PROGRAM_ID" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">OPENBOOK_<wbr/>PROGRAM_<wbr/>ID<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">; </span>mainnet-beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/constants/index.ts#L14">constants/index.ts:14</a></li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>devnet<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li><li class="tsd-parameter"><h5>mainnet-<wbr/>beta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="QUOTE_DECIMALS" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> QUOTE_<wbr/>DECIMALS<a href="#QUOTE_DECIMALS" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">QUOTE_<wbr/>DECIMALS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">6</span><span class="tsd-signature-symbol"> = 6</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L57">utils.ts:57</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="TrueIxGateParams" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> True<wbr/>Ix<wbr/>Gate<wbr/>Params<a href="#TrueIxGateParams" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">True<wbr/>Ix<wbr/>Gate<wbr/>Params<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">IxGateParams</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/clientIxParamBuilder.ts#L178">clientIxParamBuilder.ts:178</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-variable"><a id="U64_MAX_BN" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagConst">Const</span> U64_<wbr/>MAX_<wbr/>BN<a href="#U64_MAX_BN" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">U64_<wbr/>MAX_<wbr/>BN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L18">utils.ts:18</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function"><a id="HUNDRED_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">HUNDRED_<wbr/>I80<wbr/>F48<a href="#HUNDRED_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">HUNDRED_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/numbers/I80F48.ts#L239">numbers/I80F48.ts:239</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="MAX_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">MAX_<wbr/>I80<wbr/>F48<a href="#MAX_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">MAX_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/numbers/I80F48.ts#L243">numbers/I80F48.ts:243</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="ONE_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ONE_<wbr/>I80<wbr/>F48<a href="#ONE_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">ONE_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/numbers/I80F48.ts#L231">numbers/I80F48.ts:231</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="RUST_I64_MAX" class="tsd-anchor"></a><h3 class="tsd-anchor-link">RUST_<wbr/>I64_<wbr/>MAX<a href="#RUST_I64_MAX" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MAX<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/constants/index.ts#L7">constants/index.ts:7</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="RUST_I64_MIN" class="tsd-anchor"></a><h3 class="tsd-anchor-link">RUST_<wbr/>I64_<wbr/>MIN<a href="#RUST_I64_MIN" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MIN<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/constants/index.ts#L10">constants/index.ts:10</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="RUST_U64_MAX" class="tsd-anchor"></a><h3 class="tsd-anchor-link">RUST_<wbr/>U64_<wbr/>MAX<a href="#RUST_U64_MAX" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">RUST_<wbr/>U64_<wbr/>MAX<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/constants/index.ts#L4">constants/index.ts:4</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="ZERO_I80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">ZERO_<wbr/>I80<wbr/>F48<a href="#ZERO_I80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">ZERO_<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/numbers/I80F48.ts#L235">numbers/I80F48.ts:235</a></li></ul></aside><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="bpsToDecimal" class="tsd-anchor"></a><h3 class="tsd-anchor-link">bps<wbr/>To<wbr/>Decimal<a href="#bpsToDecimal" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">bps<wbr/>To<wbr/>Decimal<span class="tsd-signature-symbol">(</span>bps<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L21">utils.ts:21</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>bps: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="buildIxGate" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Ix<wbr/>Gate<a href="#buildIxGate" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">build<wbr/>Ix<wbr/>Gate<span class="tsd-signature-symbol">(</span>p<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IxGateParams</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/clientIxParamBuilder.ts#L234">clientIxParamBuilder.ts:234</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>p: <span class="tsd-signature-type">IxGateParams</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="buildVersionedTx" class="tsd-anchor"></a><h3 class="tsd-anchor-link">build<wbr/>Versioned<wbr/>Tx<a href="#buildVersionedTx" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">build<wbr/>Versioned<wbr/>Tx<span class="tsd-signature-symbol">(</span>provider<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">AnchorProvider</span>, ix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span>, additionalSigners<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Signer</span><span class="tsd-signature-symbol">[]</span>, alts<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">VersionedTransaction</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L126">utils.ts:126</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>provider: <span class="tsd-signature-type">AnchorProvider</span></h5></li><li><h5>ix: <span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">[]</span></h5></li><li><h5>additionalSigners: <span class="tsd-signature-type">Signer</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5></li><li><h5>alts: <span class="tsd-signature-type">AddressLookupTableAccount</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">VersionedTransaction</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="createAssociatedTokenAccountIdempotentInstruction" class="tsd-anchor"></a><h3 class="tsd-anchor-link">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction<a href="#createAssociatedTokenAccountIdempotentInstruction" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction<span class="tsd-signature-symbol">(</span>payer<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, owner<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, mint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L102">utils.ts:102</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>payer: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>owner: <span class="tsd-signature-type">PublicKey</span></h5></li><li><h5>mint: <span class="tsd-signature-type">PublicKey</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">TransactionInstruction</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="getAssociatedTokenAddress" class="tsd-anchor"></a><h3 class="tsd-anchor-link">get<wbr/>Associated<wbr/>Token<wbr/>Address<a href="#getAssociatedTokenAddress" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">get<wbr/>Associated<wbr/>Token<wbr/>Address<span class="tsd-signature-symbol">(</span>mint<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, owner<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PublicKey</span>, allowOwnerOffCurve<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, programId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">PublicKey</span>, associatedTokenProgramId<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">&gt;</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L84">utils.ts:84</a></li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
<p>Get the address of the associated token account for a given mint and owner</p>
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>mint: <span class="tsd-signature-type">PublicKey</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Token mint account</p>
</div></div></li><li><h5>owner: <span class="tsd-signature-type">PublicKey</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Owner of the new account</p>
</div></div></li><li><h5>allowOwnerOffCurve: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>Allow the owner account to be a PDA (Program Derived Address)</p>
</div></div></li><li><h5>programId: <span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> = TOKEN_PROGRAM_ID</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>SPL Token program account</p>
</div></div></li><li><h5>associatedTokenProgramId: <span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol"> = ASSOCIATED_TOKEN_PROGRAM_ID</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
<p>SPL Associated Token program account</p>
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">PublicKey</span><span class="tsd-signature-symbol">&gt;</span></h4><div><p>Address of the associated token account</p>
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="percentageToDecimal" class="tsd-anchor"></a><h3 class="tsd-anchor-link">percentage<wbr/>To<wbr/>Decimal<a href="#percentageToDecimal" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">percentage<wbr/>To<wbr/>Decimal<span class="tsd-signature-symbol">(</span>percentage<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L25">utils.ts:25</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>percentage: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toNative" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Native<a href="#toNative" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Native<span class="tsd-signature-symbol">(</span>uiAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">BN</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L37">utils.ts:37</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiAmount: <span class="tsd-signature-type">number</span></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">BN</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toNativeI80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Native<wbr/>I80<wbr/>F48<a href="#toNativeI80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span>uiAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L33">utils.ts:33</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiAmount: <span class="tsd-signature-type">number</span></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toNativeI80F48ForQuote" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote<a href="#toNativeI80F48ForQuote" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote<span class="tsd-signature-symbol">(</span>uiAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L29">utils.ts:29</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>uiAmount: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toUiDecimals" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Ui<wbr/>Decimals<a href="#toUiDecimals" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<span class="tsd-signature-symbol">(</span>nativeAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L41">utils.ts:41</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>nativeAmount: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toUiDecimalsForQuote" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote<a href="#toUiDecimalsForQuote" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote<span class="tsd-signature-symbol">(</span>nativeAmount<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L59">utils.ts:59</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>nativeAmount: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">BN</span><span class="tsd-signature-symbol"> | </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function"><a id="toUiI80F48" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>Ui<wbr/>I80<wbr/>F48<a href="#toUiI80F48" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-function"><li class="tsd-signature tsd-kind-icon">to<wbr/>Ui<wbr/>I80<wbr/>F48<span class="tsd-signature-symbol">(</span>nativeAmount<span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a>, decimals<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/blockworks-foundation/mango-v4/blob/268ccfd/ts/client/src/utils.ts#L65">utils.ts:65</a></li></ul></aside><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>nativeAmount: <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h5></li><li><h5>decimals: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="classes/I80F48.html" class="tsd-signature-type" data-tsd-kind="Class">I80F48</a></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="index.html">Exports</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-enum"><a href="enums/OracleProvider.html" class="tsd-kind-icon">Oracle<wbr/>Provider</a></li><li class="tsd-kind-class tsd-has-type-parameter"><a href="classes/As.html" class="tsd-kind-icon">As</a></li><li class="tsd-kind-class"><a href="classes/Bank.html" class="tsd-kind-icon">Bank</a></li><li class="tsd-kind-class"><a href="classes/BookSide.html" class="tsd-kind-icon">Book<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/BookSideType.html" class="tsd-kind-icon">Book<wbr/>Side<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanType.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/FlashLoanWithdraw.html" class="tsd-kind-icon">Flash<wbr/>Loan<wbr/>Withdraw</a></li><li class="tsd-kind-class"><a href="classes/Group.html" class="tsd-kind-icon">Group</a></li><li class="tsd-kind-class"><a href="classes/HealthType.html" class="tsd-kind-icon">Health<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/I80F48.html" class="tsd-kind-icon">I80<wbr/>F48</a></li><li class="tsd-kind-class"><a href="classes/I80F48Dto.html" class="tsd-kind-icon">I80<wbr/>F48<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/InnerNode.html" class="tsd-kind-icon">Inner<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/InterestRateParams.html" class="tsd-kind-icon">Interest<wbr/>Rate<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/LeafNode.html" class="tsd-kind-icon">Leaf<wbr/>Node</a></li><li class="tsd-kind-class"><a href="classes/MangoAccount.html" class="tsd-kind-icon">Mango<wbr/>Account</a></li><li class="tsd-kind-class"><a href="classes/MangoClient.html" class="tsd-kind-icon">Mango<wbr/>Client</a></li><li class="tsd-kind-class"><a href="classes/MintInfo.html" class="tsd-kind-icon">Mint<wbr/>Info</a></li><li class="tsd-kind-class"><a href="classes/OracleConfigParams.html" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Params</a></li><li class="tsd-kind-class"><a href="classes/PerpEventQueue.html" class="tsd-kind-icon">Perp<wbr/>Event<wbr/>Queue</a></li><li class="tsd-kind-class"><a href="classes/PerpMarket.html" class="tsd-kind-icon">Perp<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/PerpOo.html" class="tsd-kind-icon">Perp<wbr/>Oo</a></li><li class="tsd-kind-class"><a href="classes/PerpOoDto.html" class="tsd-kind-icon">Perp<wbr/>Oo<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/PerpOrder.html" class="tsd-kind-icon">Perp<wbr/>Order</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderSide.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/PerpOrderType.html" class="tsd-kind-icon">Perp<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/PerpPosition.html" class="tsd-kind-icon">Perp<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/PerpPositionDto.html" class="tsd-kind-icon">Perp<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3Market.html" class="tsd-kind-icon">Serum3<wbr/>Market</a></li><li class="tsd-kind-class"><a href="classes/Serum3OrderType.html" class="tsd-kind-icon">Serum3<wbr/>Order<wbr/>Type</a></li><li class="tsd-kind-class"><a href="classes/Serum3Orders.html" class="tsd-kind-icon">Serum3<wbr/>Orders</a></li><li class="tsd-kind-class"><a href="classes/Serum3PositionDto.html" class="tsd-kind-icon">Serum3<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-class"><a href="classes/Serum3SelfTradeBehavior.html" class="tsd-kind-icon">Serum3<wbr/>Self<wbr/>Trade<wbr/>Behavior</a></li><li class="tsd-kind-class"><a href="classes/Serum3Side.html" class="tsd-kind-icon">Serum3<wbr/>Side</a></li><li class="tsd-kind-class"><a href="classes/StubOracle.html" class="tsd-kind-icon">Stub<wbr/>Oracle</a></li><li class="tsd-kind-class"><a href="classes/TokenPosition.html" class="tsd-kind-icon">Token<wbr/>Position</a></li><li class="tsd-kind-class"><a href="classes/TokenPositionDto.html" class="tsd-kind-icon">Token<wbr/>Position<wbr/>Dto</a></li><li class="tsd-kind-interface"><a href="interfaces/BankForHealth.html" class="tsd-kind-icon">Bank<wbr/>For<wbr/>Health</a></li><li class="tsd-kind-interface"><a href="interfaces/Event.html" class="tsd-kind-icon">Event</a></li><li class="tsd-kind-interface"><a href="interfaces/FillEvent.html" class="tsd-kind-icon">Fill<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/LiquidateEvent.html" class="tsd-kind-icon">Liquidate<wbr/>Event</a></li><li class="tsd-kind-interface"><a href="interfaces/OutEvent.html" class="tsd-kind-icon">Out<wbr/>Event</a></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><a href="index.html#Modify" class="tsd-kind-icon">Modify</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfig" class="tsd-kind-icon">Oracle<wbr/>Config</a></li><li class="tsd-kind-type-alias"><a href="index.html#OracleConfigDto" class="tsd-kind-icon">Oracle<wbr/>Config<wbr/>Dto</a></li><li class="tsd-kind-type-alias"><a href="index.html#ParsedFillEvent" class="tsd-kind-icon">Parsed<wbr/>Fill<wbr/>Event</a></li><li class="tsd-kind-type-alias"><a href="index.html#PerpMarketIndex" class="tsd-kind-icon">Perp<wbr/>Market<wbr/>Index</a></li><li class="tsd-kind-type-alias"><a href="index.html#StablePriceModel" class="tsd-kind-icon">Stable<wbr/>Price<wbr/>Model</a></li><li class="tsd-kind-type-alias"><a href="index.html#TokenIndex" class="tsd-kind-icon">Token<wbr/>Index</a></li><li class="tsd-kind-variable"><a href="index.html#I64_MAX_BN" class="tsd-kind-icon">I64_<wbr/>MAX_<wbr/>BN</a></li><li class="tsd-kind-variable"><a href="index.html#MANGO_V4_ID" class="tsd-kind-icon">MANGO_<wbr/>V4_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#NullPerpEditParams" class="tsd-kind-icon">Null<wbr/>Perp<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#NullTokenEditParams" class="tsd-kind-icon">Null<wbr/>Token<wbr/>Edit<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#OPENBOOK_PROGRAM_ID" class="tsd-kind-icon">OPENBOOK_<wbr/>PROGRAM_<wbr/>ID</a></li><li class="tsd-kind-variable"><a href="index.html#QUOTE_DECIMALS" class="tsd-kind-icon">QUOTE_<wbr/>DECIMALS</a></li><li class="tsd-kind-variable"><a href="index.html#TrueIxGateParams" class="tsd-kind-icon">True<wbr/>Ix<wbr/>Gate<wbr/>Params</a></li><li class="tsd-kind-variable"><a href="index.html#U64_MAX_BN" class="tsd-kind-icon">U64_<wbr/>MAX_<wbr/>BN</a></li><li class="tsd-kind-function"><a href="index.html#HUNDRED_I80F48" class="tsd-kind-icon">HUNDRED_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#MAX_I80F48" class="tsd-kind-icon">MAX_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#ONE_I80F48" class="tsd-kind-icon">ONE_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MAX" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#RUST_I64_MIN" class="tsd-kind-icon">RUST_<wbr/>I64_<wbr/>MIN</a></li><li class="tsd-kind-function"><a href="index.html#RUST_U64_MAX" class="tsd-kind-icon">RUST_<wbr/>U64_<wbr/>MAX</a></li><li class="tsd-kind-function"><a href="index.html#ZERO_I80F48" class="tsd-kind-icon">ZERO_<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#bpsToDecimal" class="tsd-kind-icon">bps<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#buildIxGate" class="tsd-kind-icon">build<wbr/>Ix<wbr/>Gate</a></li><li class="tsd-kind-function"><a href="index.html#buildVersionedTx" class="tsd-kind-icon">build<wbr/>Versioned<wbr/>Tx</a></li><li class="tsd-kind-function"><a href="index.html#createAssociatedTokenAccountIdempotentInstruction" class="tsd-kind-icon">create<wbr/>Associated<wbr/>Token<wbr/>Account<wbr/>Idempotent<wbr/>Instruction</a></li><li class="tsd-kind-function"><a href="index.html#getAssociatedTokenAddress" class="tsd-kind-icon">get<wbr/>Associated<wbr/>Token<wbr/>Address</a></li><li class="tsd-kind-function"><a href="index.html#percentageToDecimal" class="tsd-kind-icon">percentage<wbr/>To<wbr/>Decimal</a></li><li class="tsd-kind-function"><a href="index.html#toNative" class="tsd-kind-icon">to<wbr/>Native</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48</a></li><li class="tsd-kind-function"><a href="index.html#toNativeI80F48ForQuote" class="tsd-kind-icon">to<wbr/>Native<wbr/>I80<wbr/>F48<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimals" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals</a></li><li class="tsd-kind-function"><a href="index.html#toUiDecimalsForQuote" class="tsd-kind-icon">to<wbr/>Ui<wbr/>Decimals<wbr/>For<wbr/>Quote</a></li><li class="tsd-kind-function"><a href="index.html#toUiI80F48" class="tsd-kind-icon">to<wbr/>Ui<wbr/>I80<wbr/>F48</a></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="assets/main.js"></script></body></html>