diff --git a/assets/search.js b/assets/search.js index 835ec5c..ce3644e 100644 --- a/assets/search.js +++ b/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"kinds\":{\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"262144\":\"Accessor\",\"4194304\":\"Type alias\",\"16777216\":\"Reference\"},\"rows\":[{\"id\":0,\"kind\":128,\"name\":\"SDK\",\"url\":\"classes/SDK.html\",\"classes\":\"tsd-kind-class\"},{\"id\":1,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SDK.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":2,\"kind\":1024,\"name\":\"_client\",\"url\":\"classes/SDK.html#_client\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":3,\"kind\":1024,\"name\":\"_swap\",\"url\":\"classes/SDK.html#_swap\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":4,\"kind\":1024,\"name\":\"_liquidity\",\"url\":\"classes/SDK.html#_liquidity\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":5,\"kind\":1024,\"name\":\"_resources\",\"url\":\"classes/SDK.html#_resources\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":6,\"kind\":1024,\"name\":\"_networkOptions\",\"url\":\"classes/SDK.html#_networkOptions\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":7,\"kind\":1024,\"name\":\"_curves\",\"url\":\"classes/SDK.html#_curves\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":8,\"kind\":262144,\"name\":\"Swap\",\"url\":\"classes/SDK.html#Swap\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":9,\"kind\":262144,\"name\":\"Resources\",\"url\":\"classes/SDK.html#Resources\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":10,\"kind\":262144,\"name\":\"Liquidity\",\"url\":\"classes/SDK.html#Liquidity\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":11,\"kind\":262144,\"name\":\"client\",\"url\":\"classes/SDK.html#client\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":12,\"kind\":262144,\"name\":\"networkOptions\",\"url\":\"classes/SDK.html#networkOptions\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":13,\"kind\":262144,\"name\":\"curves\",\"url\":\"classes/SDK.html#curves\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":14,\"kind\":128,\"name\":\"SwapModule\",\"url\":\"classes/SwapModule.html\",\"classes\":\"tsd-kind-class\"},{\"id\":15,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SwapModule.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":16,\"kind\":1024,\"name\":\"_sdk\",\"url\":\"classes/SwapModule.html#_sdk\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SwapModule\"},{\"id\":17,\"kind\":262144,\"name\":\"sdk\",\"url\":\"classes/SwapModule.html#sdk\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":18,\"kind\":2048,\"name\":\"getAmountIn\",\"url\":\"classes/SwapModule.html#getAmountIn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":19,\"kind\":2048,\"name\":\"getAmountOut\",\"url\":\"classes/SwapModule.html#getAmountOut\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":20,\"kind\":2048,\"name\":\"calculateRates\",\"url\":\"classes/SwapModule.html#calculateRates\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":21,\"kind\":2048,\"name\":\"createSwapTransactionPayload\",\"url\":\"classes/SwapModule.html#createSwapTransactionPayload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":22,\"kind\":2048,\"name\":\"getLiquidityPoolResource\",\"url\":\"classes/SwapModule.html#getLiquidityPoolResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":23,\"kind\":128,\"name\":\"LiquidityModule\",\"url\":\"classes/LiquidityModule.html\",\"classes\":\"tsd-kind-class\"},{\"id\":24,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/LiquidityModule.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":25,\"kind\":1024,\"name\":\"_sdk\",\"url\":\"classes/LiquidityModule.html#_sdk\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"LiquidityModule\"},{\"id\":26,\"kind\":262144,\"name\":\"sdk\",\"url\":\"classes/LiquidityModule.html#sdk\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":27,\"kind\":2048,\"name\":\"checkPoolExistence\",\"url\":\"classes/LiquidityModule.html#checkPoolExistence\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":28,\"kind\":2048,\"name\":\"getLiquidityPoolResource\",\"url\":\"classes/LiquidityModule.html#getLiquidityPoolResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":29,\"kind\":2048,\"name\":\"getLiquiditySupplyResource\",\"url\":\"classes/LiquidityModule.html#getLiquiditySupplyResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":30,\"kind\":2048,\"name\":\"calculateSupply\",\"url\":\"classes/LiquidityModule.html#calculateSupply\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":31,\"kind\":2048,\"name\":\"getAmountIn\",\"url\":\"classes/LiquidityModule.html#getAmountIn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":32,\"kind\":2048,\"name\":\"getAmountOut\",\"url\":\"classes/LiquidityModule.html#getAmountOut\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":33,\"kind\":2048,\"name\":\"calculateRateAndMinReceivedLP\",\"url\":\"classes/LiquidityModule.html#calculateRateAndMinReceivedLP\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":34,\"kind\":2048,\"name\":\"createAddLiquidityPayload\",\"url\":\"classes/LiquidityModule.html#createAddLiquidityPayload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":35,\"kind\":2048,\"name\":\"createBurnLiquidityPayload\",\"url\":\"classes/LiquidityModule.html#createBurnLiquidityPayload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":36,\"kind\":2048,\"name\":\"calculateOutputBurn\",\"url\":\"classes/LiquidityModule.html#calculateOutputBurn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":37,\"kind\":128,\"name\":\"ResourcesModule\",\"url\":\"classes/ResourcesModule.html\",\"classes\":\"tsd-kind-class\"},{\"id\":38,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/ResourcesModule.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"ResourcesModule\"},{\"id\":39,\"kind\":1024,\"name\":\"_sdk\",\"url\":\"classes/ResourcesModule.html#_sdk\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"ResourcesModule\"},{\"id\":40,\"kind\":262144,\"name\":\"sdk\",\"url\":\"classes/ResourcesModule.html#sdk\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"ResourcesModule\"},{\"id\":41,\"kind\":2048,\"name\":\"fetchAccountResource\",\"url\":\"classes/ResourcesModule.html#fetchAccountResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter\",\"parent\":\"ResourcesModule\"},{\"id\":42,\"kind\":256,\"name\":\"SdkOptions\",\"url\":\"interfaces/SdkOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"id\":43,\"kind\":1024,\"name\":\"nodeUrl\",\"url\":\"interfaces/SdkOptions.html#nodeUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SdkOptions\"},{\"id\":44,\"kind\":1024,\"name\":\"networkOptions\",\"url\":\"interfaces/SdkOptions.html#networkOptions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SdkOptions\"},{\"id\":45,\"kind\":4194304,\"name\":\"CalculateRatesParams\",\"url\":\"modules.html#CalculateRatesParams\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":46,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules.html#CalculateRatesParams.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"CalculateRatesParams\"},{\"id\":47,\"kind\":1024,\"name\":\"fromToken\",\"url\":\"modules.html#CalculateRatesParams.__type.fromToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":48,\"kind\":1024,\"name\":\"toToken\",\"url\":\"modules.html#CalculateRatesParams.__type.toToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":49,\"kind\":1024,\"name\":\"amount\",\"url\":\"modules.html#CalculateRatesParams.__type.amount\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":50,\"kind\":1024,\"name\":\"interactiveToken\",\"url\":\"modules.html#CalculateRatesParams.__type.interactiveToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":51,\"kind\":1024,\"name\":\"curveType\",\"url\":\"modules.html#CalculateRatesParams.__type.curveType\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":52,\"kind\":1024,\"name\":\"version\",\"url\":\"modules.html#CalculateRatesParams.__type.version\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":53,\"kind\":1024,\"name\":\"additionalFee\",\"url\":\"modules.html#CalculateRatesParams.__type.additionalFee\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":54,\"kind\":4194304,\"name\":\"CreateTXPayloadParams\",\"url\":\"modules.html#CreateTXPayloadParams\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":55,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules.html#CreateTXPayloadParams.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"CreateTXPayloadParams\"},{\"id\":56,\"kind\":1024,\"name\":\"fromToken\",\"url\":\"modules.html#CreateTXPayloadParams.__type.fromToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":57,\"kind\":1024,\"name\":\"toToken\",\"url\":\"modules.html#CreateTXPayloadParams.__type.toToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":58,\"kind\":1024,\"name\":\"fromAmount\",\"url\":\"modules.html#CreateTXPayloadParams.__type.fromAmount\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":59,\"kind\":1024,\"name\":\"toAmount\",\"url\":\"modules.html#CreateTXPayloadParams.__type.toAmount\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":60,\"kind\":1024,\"name\":\"interactiveToken\",\"url\":\"modules.html#CreateTXPayloadParams.__type.interactiveToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":61,\"kind\":1024,\"name\":\"slippage\",\"url\":\"modules.html#CreateTXPayloadParams.__type.slippage\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":62,\"kind\":1024,\"name\":\"stableSwapType\",\"url\":\"modules.html#CreateTXPayloadParams.__type.stableSwapType\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":63,\"kind\":1024,\"name\":\"curveType\",\"url\":\"modules.html#CreateTXPayloadParams.__type.curveType\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":64,\"kind\":1024,\"name\":\"version\",\"url\":\"modules.html#CreateTXPayloadParams.__type.version\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":65,\"kind\":64,\"name\":\"getCoinInWithFees\",\"url\":\"modules.html#getCoinInWithFees\",\"classes\":\"tsd-kind-function\"},{\"id\":66,\"kind\":64,\"name\":\"getCoinOutWithFees\",\"url\":\"modules.html#getCoinOutWithFees\",\"classes\":\"tsd-kind-function\"},{\"id\":67,\"kind\":64,\"name\":\"getCoinsOutWithFeesStable\",\"url\":\"modules.html#getCoinsOutWithFeesStable\",\"classes\":\"tsd-kind-function\"},{\"id\":68,\"kind\":64,\"name\":\"getCoinsInWithFeesStable\",\"url\":\"modules.html#getCoinsInWithFeesStable\",\"classes\":\"tsd-kind-function\"},{\"id\":69,\"kind\":64,\"name\":\"convertValueToDecimal\",\"url\":\"modules.html#convertValueToDecimal\",\"classes\":\"tsd-kind-function\"},{\"id\":70,\"kind\":64,\"name\":\"convertDecimalToFixedString\",\"url\":\"modules.html#convertDecimalToFixedString\",\"classes\":\"tsd-kind-function\"},{\"id\":71,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules.html#default\",\"classes\":\"tsd-kind-reference\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,14.283]],[\"parent/0\",[]],[\"name/1\",[1,27.864]],[\"parent/1\",[0,1.3]],[\"name/2\",[2,38.85]],[\"parent/2\",[0,1.3]],[\"name/3\",[3,38.85]],[\"parent/3\",[0,1.3]],[\"name/4\",[4,38.85]],[\"parent/4\",[0,1.3]],[\"name/5\",[5,38.85]],[\"parent/5\",[0,1.3]],[\"name/6\",[6,38.85]],[\"parent/6\",[0,1.3]],[\"name/7\",[7,38.85]],[\"parent/7\",[0,1.3]],[\"name/8\",[8,38.85]],[\"parent/8\",[0,1.3]],[\"name/9\",[9,38.85]],[\"parent/9\",[0,1.3]],[\"name/10\",[10,38.85]],[\"parent/10\",[0,1.3]],[\"name/11\",[11,38.85]],[\"parent/11\",[0,1.3]],[\"name/12\",[12,33.742]],[\"parent/12\",[0,1.3]],[\"name/13\",[13,38.85]],[\"parent/13\",[0,1.3]],[\"name/14\",[14,20.392]],[\"parent/14\",[]],[\"name/15\",[1,27.864]],[\"parent/15\",[14,1.856]],[\"name/16\",[15,30.377]],[\"parent/16\",[14,1.856]],[\"name/17\",[0,14.283]],[\"parent/17\",[14,1.856]],[\"name/18\",[16,33.742]],[\"parent/18\",[14,1.856]],[\"name/19\",[17,33.742]],[\"parent/19\",[14,1.856]],[\"name/20\",[18,38.85]],[\"parent/20\",[14,1.856]],[\"name/21\",[19,38.85]],[\"parent/21\",[14,1.856]],[\"name/22\",[20,33.742]],[\"parent/22\",[14,1.856]],[\"name/23\",[21,16.163]],[\"parent/23\",[]],[\"name/24\",[1,27.864]],[\"parent/24\",[21,1.471]],[\"name/25\",[15,30.377]],[\"parent/25\",[21,1.471]],[\"name/26\",[0,14.283]],[\"parent/26\",[21,1.471]],[\"name/27\",[22,38.85]],[\"parent/27\",[21,1.471]],[\"name/28\",[20,33.742]],[\"parent/28\",[21,1.471]],[\"name/29\",[23,38.85]],[\"parent/29\",[21,1.471]],[\"name/30\",[24,38.85]],[\"parent/30\",[21,1.471]],[\"name/31\",[16,33.742]],[\"parent/31\",[21,1.471]],[\"name/32\",[17,33.742]],[\"parent/32\",[21,1.471]],[\"name/33\",[25,38.85]],[\"parent/33\",[21,1.471]],[\"name/34\",[26,38.85]],[\"parent/34\",[21,1.471]],[\"name/35\",[27,38.85]],[\"parent/35\",[21,1.471]],[\"name/36\",[28,38.85]],[\"parent/36\",[21,1.471]],[\"name/37\",[29,25.857]],[\"parent/37\",[]],[\"name/38\",[1,27.864]],[\"parent/38\",[29,2.353]],[\"name/39\",[15,30.377]],[\"parent/39\",[29,2.353]],[\"name/40\",[0,14.283]],[\"parent/40\",[29,2.353]],[\"name/41\",[30,38.85]],[\"parent/41\",[29,2.353]],[\"name/42\",[31,30.377]],[\"parent/42\",[]],[\"name/43\",[32,38.85]],[\"parent/43\",[31,2.765]],[\"name/44\",[12,33.742]],[\"parent/44\",[31,2.765]],[\"name/45\",[33,33.742]],[\"parent/45\",[]],[\"name/46\",[34,33.742]],[\"parent/46\",[33,3.071]],[\"name/47\",[35,33.742]],[\"parent/47\",[36,2.071]],[\"name/48\",[37,33.742]],[\"parent/48\",[36,2.071]],[\"name/49\",[38,38.85]],[\"parent/49\",[36,2.071]],[\"name/50\",[39,33.742]],[\"parent/50\",[36,2.071]],[\"name/51\",[40,33.742]],[\"parent/51\",[36,2.071]],[\"name/52\",[41,33.742]],[\"parent/52\",[36,2.071]],[\"name/53\",[42,38.85]],[\"parent/53\",[36,2.071]],[\"name/54\",[43,33.742]],[\"parent/54\",[]],[\"name/55\",[34,33.742]],[\"parent/55\",[43,3.071]],[\"name/56\",[35,33.742]],[\"parent/56\",[44,1.856]],[\"name/57\",[37,33.742]],[\"parent/57\",[44,1.856]],[\"name/58\",[45,38.85]],[\"parent/58\",[44,1.856]],[\"name/59\",[46,38.85]],[\"parent/59\",[44,1.856]],[\"name/60\",[39,33.742]],[\"parent/60\",[44,1.856]],[\"name/61\",[47,38.85]],[\"parent/61\",[44,1.856]],[\"name/62\",[48,38.85]],[\"parent/62\",[44,1.856]],[\"name/63\",[40,33.742]],[\"parent/63\",[44,1.856]],[\"name/64\",[41,33.742]],[\"parent/64\",[44,1.856]],[\"name/65\",[49,38.85]],[\"parent/65\",[]],[\"name/66\",[50,38.85]],[\"parent/66\",[]],[\"name/67\",[51,38.85]],[\"parent/67\",[]],[\"name/68\",[52,38.85]],[\"parent/68\",[]],[\"name/69\",[53,38.85]],[\"parent/69\",[]],[\"name/70\",[54,38.85]],[\"parent/70\",[]],[\"name/71\",[55,38.85]],[\"parent/71\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":34,\"name\":{\"46\":{},\"55\":{}},\"parent\":{}}],[\"_client\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"_curves\",{\"_index\":7,\"name\":{\"7\":{}},\"parent\":{}}],[\"_liquidity\",{\"_index\":4,\"name\":{\"4\":{}},\"parent\":{}}],[\"_networkoptions\",{\"_index\":6,\"name\":{\"6\":{}},\"parent\":{}}],[\"_resources\",{\"_index\":5,\"name\":{\"5\":{}},\"parent\":{}}],[\"_sdk\",{\"_index\":15,\"name\":{\"16\":{},\"25\":{},\"39\":{}},\"parent\":{}}],[\"_swap\",{\"_index\":3,\"name\":{\"3\":{}},\"parent\":{}}],[\"additionalfee\",{\"_index\":42,\"name\":{\"53\":{}},\"parent\":{}}],[\"amount\",{\"_index\":38,\"name\":{\"49\":{}},\"parent\":{}}],[\"calculateoutputburn\",{\"_index\":28,\"name\":{\"36\":{}},\"parent\":{}}],[\"calculaterateandminreceivedlp\",{\"_index\":25,\"name\":{\"33\":{}},\"parent\":{}}],[\"calculaterates\",{\"_index\":18,\"name\":{\"20\":{}},\"parent\":{}}],[\"calculateratesparams\",{\"_index\":33,\"name\":{\"45\":{}},\"parent\":{\"46\":{}}}],[\"calculateratesparams.__type\",{\"_index\":36,\"name\":{},\"parent\":{\"47\":{},\"48\":{},\"49\":{},\"50\":{},\"51\":{},\"52\":{},\"53\":{}}}],[\"calculatesupply\",{\"_index\":24,\"name\":{\"30\":{}},\"parent\":{}}],[\"checkpoolexistence\",{\"_index\":22,\"name\":{\"27\":{}},\"parent\":{}}],[\"client\",{\"_index\":11,\"name\":{\"11\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":1,\"name\":{\"1\":{},\"15\":{},\"24\":{},\"38\":{}},\"parent\":{}}],[\"convertdecimaltofixedstring\",{\"_index\":54,\"name\":{\"70\":{}},\"parent\":{}}],[\"convertvaluetodecimal\",{\"_index\":53,\"name\":{\"69\":{}},\"parent\":{}}],[\"createaddliquiditypayload\",{\"_index\":26,\"name\":{\"34\":{}},\"parent\":{}}],[\"createburnliquiditypayload\",{\"_index\":27,\"name\":{\"35\":{}},\"parent\":{}}],[\"createswaptransactionpayload\",{\"_index\":19,\"name\":{\"21\":{}},\"parent\":{}}],[\"createtxpayloadparams\",{\"_index\":43,\"name\":{\"54\":{}},\"parent\":{\"55\":{}}}],[\"createtxpayloadparams.__type\",{\"_index\":44,\"name\":{},\"parent\":{\"56\":{},\"57\":{},\"58\":{},\"59\":{},\"60\":{},\"61\":{},\"62\":{},\"63\":{},\"64\":{}}}],[\"curves\",{\"_index\":13,\"name\":{\"13\":{}},\"parent\":{}}],[\"curvetype\",{\"_index\":40,\"name\":{\"51\":{},\"63\":{}},\"parent\":{}}],[\"default\",{\"_index\":55,\"name\":{\"71\":{}},\"parent\":{}}],[\"fetchaccountresource\",{\"_index\":30,\"name\":{\"41\":{}},\"parent\":{}}],[\"fromamount\",{\"_index\":45,\"name\":{\"58\":{}},\"parent\":{}}],[\"fromtoken\",{\"_index\":35,\"name\":{\"47\":{},\"56\":{}},\"parent\":{}}],[\"getamountin\",{\"_index\":16,\"name\":{\"18\":{},\"31\":{}},\"parent\":{}}],[\"getamountout\",{\"_index\":17,\"name\":{\"19\":{},\"32\":{}},\"parent\":{}}],[\"getcoininwithfees\",{\"_index\":49,\"name\":{\"65\":{}},\"parent\":{}}],[\"getcoinoutwithfees\",{\"_index\":50,\"name\":{\"66\":{}},\"parent\":{}}],[\"getcoinsinwithfeesstable\",{\"_index\":52,\"name\":{\"68\":{}},\"parent\":{}}],[\"getcoinsoutwithfeesstable\",{\"_index\":51,\"name\":{\"67\":{}},\"parent\":{}}],[\"getliquiditypoolresource\",{\"_index\":20,\"name\":{\"22\":{},\"28\":{}},\"parent\":{}}],[\"getliquiditysupplyresource\",{\"_index\":23,\"name\":{\"29\":{}},\"parent\":{}}],[\"interactivetoken\",{\"_index\":39,\"name\":{\"50\":{},\"60\":{}},\"parent\":{}}],[\"liquidity\",{\"_index\":10,\"name\":{\"10\":{}},\"parent\":{}}],[\"liquiditymodule\",{\"_index\":21,\"name\":{\"23\":{}},\"parent\":{\"24\":{},\"25\":{},\"26\":{},\"27\":{},\"28\":{},\"29\":{},\"30\":{},\"31\":{},\"32\":{},\"33\":{},\"34\":{},\"35\":{},\"36\":{}}}],[\"networkoptions\",{\"_index\":12,\"name\":{\"12\":{},\"44\":{}},\"parent\":{}}],[\"nodeurl\",{\"_index\":32,\"name\":{\"43\":{}},\"parent\":{}}],[\"resources\",{\"_index\":9,\"name\":{\"9\":{}},\"parent\":{}}],[\"resourcesmodule\",{\"_index\":29,\"name\":{\"37\":{}},\"parent\":{\"38\":{},\"39\":{},\"40\":{},\"41\":{}}}],[\"sdk\",{\"_index\":0,\"name\":{\"0\":{},\"17\":{},\"26\":{},\"40\":{}},\"parent\":{\"1\":{},\"2\":{},\"3\":{},\"4\":{},\"5\":{},\"6\":{},\"7\":{},\"8\":{},\"9\":{},\"10\":{},\"11\":{},\"12\":{},\"13\":{}}}],[\"sdkoptions\",{\"_index\":31,\"name\":{\"42\":{}},\"parent\":{\"43\":{},\"44\":{}}}],[\"slippage\",{\"_index\":47,\"name\":{\"61\":{}},\"parent\":{}}],[\"stableswaptype\",{\"_index\":48,\"name\":{\"62\":{}},\"parent\":{}}],[\"swap\",{\"_index\":8,\"name\":{\"8\":{}},\"parent\":{}}],[\"swapmodule\",{\"_index\":14,\"name\":{\"14\":{}},\"parent\":{\"15\":{},\"16\":{},\"17\":{},\"18\":{},\"19\":{},\"20\":{},\"21\":{},\"22\":{}}}],[\"toamount\",{\"_index\":46,\"name\":{\"59\":{}},\"parent\":{}}],[\"totoken\",{\"_index\":37,\"name\":{\"48\":{},\"57\":{}},\"parent\":{}}],[\"version\",{\"_index\":41,\"name\":{\"52\":{},\"64\":{}},\"parent\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = JSON.parse("{\"kinds\":{\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"262144\":\"Accessor\",\"4194304\":\"Type alias\",\"16777216\":\"Reference\"},\"rows\":[{\"id\":0,\"kind\":128,\"name\":\"SDK\",\"url\":\"classes/SDK.html\",\"classes\":\"tsd-kind-class\"},{\"id\":1,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SDK.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":2,\"kind\":1024,\"name\":\"_client\",\"url\":\"classes/SDK.html#_client\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":3,\"kind\":1024,\"name\":\"_swap\",\"url\":\"classes/SDK.html#_swap\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":4,\"kind\":1024,\"name\":\"_liquidity\",\"url\":\"classes/SDK.html#_liquidity\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":5,\"kind\":1024,\"name\":\"_resources\",\"url\":\"classes/SDK.html#_resources\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":6,\"kind\":1024,\"name\":\"_networkOptions\",\"url\":\"classes/SDK.html#_networkOptions\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":7,\"kind\":1024,\"name\":\"_curves\",\"url\":\"classes/SDK.html#_curves\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SDK\"},{\"id\":8,\"kind\":262144,\"name\":\"Swap\",\"url\":\"classes/SDK.html#Swap\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":9,\"kind\":262144,\"name\":\"Resources\",\"url\":\"classes/SDK.html#Resources\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":10,\"kind\":262144,\"name\":\"Liquidity\",\"url\":\"classes/SDK.html#Liquidity\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":11,\"kind\":262144,\"name\":\"client\",\"url\":\"classes/SDK.html#client\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":12,\"kind\":262144,\"name\":\"networkOptions\",\"url\":\"classes/SDK.html#networkOptions\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":13,\"kind\":262144,\"name\":\"curves\",\"url\":\"classes/SDK.html#curves\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SDK\"},{\"id\":14,\"kind\":128,\"name\":\"SwapModule\",\"url\":\"classes/SwapModule.html\",\"classes\":\"tsd-kind-class\"},{\"id\":15,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SwapModule.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":16,\"kind\":1024,\"name\":\"_sdk\",\"url\":\"classes/SwapModule.html#_sdk\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"SwapModule\"},{\"id\":17,\"kind\":262144,\"name\":\"sdk\",\"url\":\"classes/SwapModule.html#sdk\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":18,\"kind\":2048,\"name\":\"getAmountIn\",\"url\":\"classes/SwapModule.html#getAmountIn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":19,\"kind\":2048,\"name\":\"getAmountOut\",\"url\":\"classes/SwapModule.html#getAmountOut\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":20,\"kind\":2048,\"name\":\"calculateRates\",\"url\":\"classes/SwapModule.html#calculateRates\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":21,\"kind\":2048,\"name\":\"createSwapTransactionPayload\",\"url\":\"classes/SwapModule.html#createSwapTransactionPayload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":22,\"kind\":2048,\"name\":\"getLiquidityPoolResource\",\"url\":\"classes/SwapModule.html#getLiquidityPoolResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SwapModule\"},{\"id\":23,\"kind\":128,\"name\":\"LiquidityModule\",\"url\":\"classes/LiquidityModule.html\",\"classes\":\"tsd-kind-class\"},{\"id\":24,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/LiquidityModule.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":25,\"kind\":1024,\"name\":\"_sdk\",\"url\":\"classes/LiquidityModule.html#_sdk\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"LiquidityModule\"},{\"id\":26,\"kind\":262144,\"name\":\"sdk\",\"url\":\"classes/LiquidityModule.html#sdk\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":27,\"kind\":2048,\"name\":\"checkPoolExistence\",\"url\":\"classes/LiquidityModule.html#checkPoolExistence\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":28,\"kind\":2048,\"name\":\"getLiquidityPoolResource\",\"url\":\"classes/LiquidityModule.html#getLiquidityPoolResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":29,\"kind\":2048,\"name\":\"getLiquiditySupplyResource\",\"url\":\"classes/LiquidityModule.html#getLiquiditySupplyResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":30,\"kind\":2048,\"name\":\"calculateSupply\",\"url\":\"classes/LiquidityModule.html#calculateSupply\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":31,\"kind\":2048,\"name\":\"getAmountIn\",\"url\":\"classes/LiquidityModule.html#getAmountIn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":32,\"kind\":2048,\"name\":\"getAmountOut\",\"url\":\"classes/LiquidityModule.html#getAmountOut\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":33,\"kind\":2048,\"name\":\"calculateRateAndMinReceivedLP\",\"url\":\"classes/LiquidityModule.html#calculateRateAndMinReceivedLP\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":34,\"kind\":2048,\"name\":\"createAddLiquidityPayload\",\"url\":\"classes/LiquidityModule.html#createAddLiquidityPayload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":35,\"kind\":2048,\"name\":\"createBurnLiquidityPayload\",\"url\":\"classes/LiquidityModule.html#createBurnLiquidityPayload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":36,\"kind\":2048,\"name\":\"calculateOutputBurn\",\"url\":\"classes/LiquidityModule.html#calculateOutputBurn\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"LiquidityModule\"},{\"id\":37,\"kind\":128,\"name\":\"ResourcesModule\",\"url\":\"classes/ResourcesModule.html\",\"classes\":\"tsd-kind-class\"},{\"id\":38,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/ResourcesModule.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"ResourcesModule\"},{\"id\":39,\"kind\":1024,\"name\":\"_sdk\",\"url\":\"classes/ResourcesModule.html#_sdk\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"ResourcesModule\"},{\"id\":40,\"kind\":262144,\"name\":\"sdk\",\"url\":\"classes/ResourcesModule.html#sdk\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"ResourcesModule\"},{\"id\":41,\"kind\":2048,\"name\":\"fetchAccountResource\",\"url\":\"classes/ResourcesModule.html#fetchAccountResource\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter\",\"parent\":\"ResourcesModule\"},{\"id\":42,\"kind\":256,\"name\":\"SdkOptions\",\"url\":\"interfaces/SdkOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"id\":43,\"kind\":1024,\"name\":\"nodeUrl\",\"url\":\"interfaces/SdkOptions.html#nodeUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SdkOptions\"},{\"id\":44,\"kind\":1024,\"name\":\"nodeOptions\",\"url\":\"interfaces/SdkOptions.html#nodeOptions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SdkOptions\"},{\"id\":45,\"kind\":1024,\"name\":\"networkOptions\",\"url\":\"interfaces/SdkOptions.html#networkOptions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SdkOptions\"},{\"id\":46,\"kind\":4194304,\"name\":\"CalculateRatesParams\",\"url\":\"modules.html#CalculateRatesParams\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":47,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules.html#CalculateRatesParams.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"CalculateRatesParams\"},{\"id\":48,\"kind\":1024,\"name\":\"fromToken\",\"url\":\"modules.html#CalculateRatesParams.__type.fromToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":49,\"kind\":1024,\"name\":\"toToken\",\"url\":\"modules.html#CalculateRatesParams.__type.toToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":50,\"kind\":1024,\"name\":\"amount\",\"url\":\"modules.html#CalculateRatesParams.__type.amount\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":51,\"kind\":1024,\"name\":\"interactiveToken\",\"url\":\"modules.html#CalculateRatesParams.__type.interactiveToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":52,\"kind\":1024,\"name\":\"curveType\",\"url\":\"modules.html#CalculateRatesParams.__type.curveType\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":53,\"kind\":1024,\"name\":\"version\",\"url\":\"modules.html#CalculateRatesParams.__type.version\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":54,\"kind\":1024,\"name\":\"additionalFee\",\"url\":\"modules.html#CalculateRatesParams.__type.additionalFee\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CalculateRatesParams.__type\"},{\"id\":55,\"kind\":4194304,\"name\":\"CreateTXPayloadParams\",\"url\":\"modules.html#CreateTXPayloadParams\",\"classes\":\"tsd-kind-type-alias\"},{\"id\":56,\"kind\":65536,\"name\":\"__type\",\"url\":\"modules.html#CreateTXPayloadParams.__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"CreateTXPayloadParams\"},{\"id\":57,\"kind\":1024,\"name\":\"fromToken\",\"url\":\"modules.html#CreateTXPayloadParams.__type.fromToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":58,\"kind\":1024,\"name\":\"toToken\",\"url\":\"modules.html#CreateTXPayloadParams.__type.toToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":59,\"kind\":1024,\"name\":\"fromAmount\",\"url\":\"modules.html#CreateTXPayloadParams.__type.fromAmount\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":60,\"kind\":1024,\"name\":\"toAmount\",\"url\":\"modules.html#CreateTXPayloadParams.__type.toAmount\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":61,\"kind\":1024,\"name\":\"interactiveToken\",\"url\":\"modules.html#CreateTXPayloadParams.__type.interactiveToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":62,\"kind\":1024,\"name\":\"slippage\",\"url\":\"modules.html#CreateTXPayloadParams.__type.slippage\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":63,\"kind\":1024,\"name\":\"stableSwapType\",\"url\":\"modules.html#CreateTXPayloadParams.__type.stableSwapType\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":64,\"kind\":1024,\"name\":\"curveType\",\"url\":\"modules.html#CreateTXPayloadParams.__type.curveType\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":65,\"kind\":1024,\"name\":\"version\",\"url\":\"modules.html#CreateTXPayloadParams.__type.version\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"CreateTXPayloadParams.__type\"},{\"id\":66,\"kind\":64,\"name\":\"getCoinInWithFees\",\"url\":\"modules.html#getCoinInWithFees\",\"classes\":\"tsd-kind-function\"},{\"id\":67,\"kind\":64,\"name\":\"getCoinOutWithFees\",\"url\":\"modules.html#getCoinOutWithFees\",\"classes\":\"tsd-kind-function\"},{\"id\":68,\"kind\":64,\"name\":\"getCoinsOutWithFeesStable\",\"url\":\"modules.html#getCoinsOutWithFeesStable\",\"classes\":\"tsd-kind-function\"},{\"id\":69,\"kind\":64,\"name\":\"getCoinsInWithFeesStable\",\"url\":\"modules.html#getCoinsInWithFeesStable\",\"classes\":\"tsd-kind-function\"},{\"id\":70,\"kind\":64,\"name\":\"convertValueToDecimal\",\"url\":\"modules.html#convertValueToDecimal\",\"classes\":\"tsd-kind-function\"},{\"id\":71,\"kind\":64,\"name\":\"convertDecimalToFixedString\",\"url\":\"modules.html#convertDecimalToFixedString\",\"classes\":\"tsd-kind-function\"},{\"id\":72,\"kind\":16777216,\"name\":\"default\",\"url\":\"modules.html#default\",\"classes\":\"tsd-kind-reference\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,14.419]],[\"parent/0\",[]],[\"name/1\",[1,28]],[\"parent/1\",[0,1.314]],[\"name/2\",[2,38.986]],[\"parent/2\",[0,1.314]],[\"name/3\",[3,38.986]],[\"parent/3\",[0,1.314]],[\"name/4\",[4,38.986]],[\"parent/4\",[0,1.314]],[\"name/5\",[5,38.986]],[\"parent/5\",[0,1.314]],[\"name/6\",[6,38.986]],[\"parent/6\",[0,1.314]],[\"name/7\",[7,38.986]],[\"parent/7\",[0,1.314]],[\"name/8\",[8,38.986]],[\"parent/8\",[0,1.314]],[\"name/9\",[9,38.986]],[\"parent/9\",[0,1.314]],[\"name/10\",[10,38.986]],[\"parent/10\",[0,1.314]],[\"name/11\",[11,38.986]],[\"parent/11\",[0,1.314]],[\"name/12\",[12,33.878]],[\"parent/12\",[0,1.314]],[\"name/13\",[13,38.986]],[\"parent/13\",[0,1.314]],[\"name/14\",[14,20.528]],[\"parent/14\",[]],[\"name/15\",[1,28]],[\"parent/15\",[14,1.871]],[\"name/16\",[15,30.513]],[\"parent/16\",[14,1.871]],[\"name/17\",[0,14.419]],[\"parent/17\",[14,1.871]],[\"name/18\",[16,33.878]],[\"parent/18\",[14,1.871]],[\"name/19\",[17,33.878]],[\"parent/19\",[14,1.871]],[\"name/20\",[18,38.986]],[\"parent/20\",[14,1.871]],[\"name/21\",[19,38.986]],[\"parent/21\",[14,1.871]],[\"name/22\",[20,33.878]],[\"parent/22\",[14,1.871]],[\"name/23\",[21,16.299]],[\"parent/23\",[]],[\"name/24\",[1,28]],[\"parent/24\",[21,1.486]],[\"name/25\",[15,30.513]],[\"parent/25\",[21,1.486]],[\"name/26\",[0,14.419]],[\"parent/26\",[21,1.486]],[\"name/27\",[22,38.986]],[\"parent/27\",[21,1.486]],[\"name/28\",[20,33.878]],[\"parent/28\",[21,1.486]],[\"name/29\",[23,38.986]],[\"parent/29\",[21,1.486]],[\"name/30\",[24,38.986]],[\"parent/30\",[21,1.486]],[\"name/31\",[16,33.878]],[\"parent/31\",[21,1.486]],[\"name/32\",[17,33.878]],[\"parent/32\",[21,1.486]],[\"name/33\",[25,38.986]],[\"parent/33\",[21,1.486]],[\"name/34\",[26,38.986]],[\"parent/34\",[21,1.486]],[\"name/35\",[27,38.986]],[\"parent/35\",[21,1.486]],[\"name/36\",[28,38.986]],[\"parent/36\",[21,1.486]],[\"name/37\",[29,25.993]],[\"parent/37\",[]],[\"name/38\",[1,28]],[\"parent/38\",[29,2.369]],[\"name/39\",[15,30.513]],[\"parent/39\",[29,2.369]],[\"name/40\",[0,14.419]],[\"parent/40\",[29,2.369]],[\"name/41\",[30,38.986]],[\"parent/41\",[29,2.369]],[\"name/42\",[31,28]],[\"parent/42\",[]],[\"name/43\",[32,38.986]],[\"parent/43\",[31,2.552]],[\"name/44\",[33,38.986]],[\"parent/44\",[31,2.552]],[\"name/45\",[12,33.878]],[\"parent/45\",[31,2.552]],[\"name/46\",[34,33.878]],[\"parent/46\",[]],[\"name/47\",[35,33.878]],[\"parent/47\",[34,3.088]],[\"name/48\",[36,33.878]],[\"parent/48\",[37,2.087]],[\"name/49\",[38,33.878]],[\"parent/49\",[37,2.087]],[\"name/50\",[39,38.986]],[\"parent/50\",[37,2.087]],[\"name/51\",[40,33.878]],[\"parent/51\",[37,2.087]],[\"name/52\",[41,33.878]],[\"parent/52\",[37,2.087]],[\"name/53\",[42,33.878]],[\"parent/53\",[37,2.087]],[\"name/54\",[43,38.986]],[\"parent/54\",[37,2.087]],[\"name/55\",[44,33.878]],[\"parent/55\",[]],[\"name/56\",[35,33.878]],[\"parent/56\",[44,3.088]],[\"name/57\",[36,33.878]],[\"parent/57\",[45,1.871]],[\"name/58\",[38,33.878]],[\"parent/58\",[45,1.871]],[\"name/59\",[46,38.986]],[\"parent/59\",[45,1.871]],[\"name/60\",[47,38.986]],[\"parent/60\",[45,1.871]],[\"name/61\",[40,33.878]],[\"parent/61\",[45,1.871]],[\"name/62\",[48,38.986]],[\"parent/62\",[45,1.871]],[\"name/63\",[49,38.986]],[\"parent/63\",[45,1.871]],[\"name/64\",[41,33.878]],[\"parent/64\",[45,1.871]],[\"name/65\",[42,33.878]],[\"parent/65\",[45,1.871]],[\"name/66\",[50,38.986]],[\"parent/66\",[]],[\"name/67\",[51,38.986]],[\"parent/67\",[]],[\"name/68\",[52,38.986]],[\"parent/68\",[]],[\"name/69\",[53,38.986]],[\"parent/69\",[]],[\"name/70\",[54,38.986]],[\"parent/70\",[]],[\"name/71\",[55,38.986]],[\"parent/71\",[]],[\"name/72\",[56,38.986]],[\"parent/72\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":35,\"name\":{\"47\":{},\"56\":{}},\"parent\":{}}],[\"_client\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{}}],[\"_curves\",{\"_index\":7,\"name\":{\"7\":{}},\"parent\":{}}],[\"_liquidity\",{\"_index\":4,\"name\":{\"4\":{}},\"parent\":{}}],[\"_networkoptions\",{\"_index\":6,\"name\":{\"6\":{}},\"parent\":{}}],[\"_resources\",{\"_index\":5,\"name\":{\"5\":{}},\"parent\":{}}],[\"_sdk\",{\"_index\":15,\"name\":{\"16\":{},\"25\":{},\"39\":{}},\"parent\":{}}],[\"_swap\",{\"_index\":3,\"name\":{\"3\":{}},\"parent\":{}}],[\"additionalfee\",{\"_index\":43,\"name\":{\"54\":{}},\"parent\":{}}],[\"amount\",{\"_index\":39,\"name\":{\"50\":{}},\"parent\":{}}],[\"calculateoutputburn\",{\"_index\":28,\"name\":{\"36\":{}},\"parent\":{}}],[\"calculaterateandminreceivedlp\",{\"_index\":25,\"name\":{\"33\":{}},\"parent\":{}}],[\"calculaterates\",{\"_index\":18,\"name\":{\"20\":{}},\"parent\":{}}],[\"calculateratesparams\",{\"_index\":34,\"name\":{\"46\":{}},\"parent\":{\"47\":{}}}],[\"calculateratesparams.__type\",{\"_index\":37,\"name\":{},\"parent\":{\"48\":{},\"49\":{},\"50\":{},\"51\":{},\"52\":{},\"53\":{},\"54\":{}}}],[\"calculatesupply\",{\"_index\":24,\"name\":{\"30\":{}},\"parent\":{}}],[\"checkpoolexistence\",{\"_index\":22,\"name\":{\"27\":{}},\"parent\":{}}],[\"client\",{\"_index\":11,\"name\":{\"11\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":1,\"name\":{\"1\":{},\"15\":{},\"24\":{},\"38\":{}},\"parent\":{}}],[\"convertdecimaltofixedstring\",{\"_index\":55,\"name\":{\"71\":{}},\"parent\":{}}],[\"convertvaluetodecimal\",{\"_index\":54,\"name\":{\"70\":{}},\"parent\":{}}],[\"createaddliquiditypayload\",{\"_index\":26,\"name\":{\"34\":{}},\"parent\":{}}],[\"createburnliquiditypayload\",{\"_index\":27,\"name\":{\"35\":{}},\"parent\":{}}],[\"createswaptransactionpayload\",{\"_index\":19,\"name\":{\"21\":{}},\"parent\":{}}],[\"createtxpayloadparams\",{\"_index\":44,\"name\":{\"55\":{}},\"parent\":{\"56\":{}}}],[\"createtxpayloadparams.__type\",{\"_index\":45,\"name\":{},\"parent\":{\"57\":{},\"58\":{},\"59\":{},\"60\":{},\"61\":{},\"62\":{},\"63\":{},\"64\":{},\"65\":{}}}],[\"curves\",{\"_index\":13,\"name\":{\"13\":{}},\"parent\":{}}],[\"curvetype\",{\"_index\":41,\"name\":{\"52\":{},\"64\":{}},\"parent\":{}}],[\"default\",{\"_index\":56,\"name\":{\"72\":{}},\"parent\":{}}],[\"fetchaccountresource\",{\"_index\":30,\"name\":{\"41\":{}},\"parent\":{}}],[\"fromamount\",{\"_index\":46,\"name\":{\"59\":{}},\"parent\":{}}],[\"fromtoken\",{\"_index\":36,\"name\":{\"48\":{},\"57\":{}},\"parent\":{}}],[\"getamountin\",{\"_index\":16,\"name\":{\"18\":{},\"31\":{}},\"parent\":{}}],[\"getamountout\",{\"_index\":17,\"name\":{\"19\":{},\"32\":{}},\"parent\":{}}],[\"getcoininwithfees\",{\"_index\":50,\"name\":{\"66\":{}},\"parent\":{}}],[\"getcoinoutwithfees\",{\"_index\":51,\"name\":{\"67\":{}},\"parent\":{}}],[\"getcoinsinwithfeesstable\",{\"_index\":53,\"name\":{\"69\":{}},\"parent\":{}}],[\"getcoinsoutwithfeesstable\",{\"_index\":52,\"name\":{\"68\":{}},\"parent\":{}}],[\"getliquiditypoolresource\",{\"_index\":20,\"name\":{\"22\":{},\"28\":{}},\"parent\":{}}],[\"getliquiditysupplyresource\",{\"_index\":23,\"name\":{\"29\":{}},\"parent\":{}}],[\"interactivetoken\",{\"_index\":40,\"name\":{\"51\":{},\"61\":{}},\"parent\":{}}],[\"liquidity\",{\"_index\":10,\"name\":{\"10\":{}},\"parent\":{}}],[\"liquiditymodule\",{\"_index\":21,\"name\":{\"23\":{}},\"parent\":{\"24\":{},\"25\":{},\"26\":{},\"27\":{},\"28\":{},\"29\":{},\"30\":{},\"31\":{},\"32\":{},\"33\":{},\"34\":{},\"35\":{},\"36\":{}}}],[\"networkoptions\",{\"_index\":12,\"name\":{\"12\":{},\"45\":{}},\"parent\":{}}],[\"nodeoptions\",{\"_index\":33,\"name\":{\"44\":{}},\"parent\":{}}],[\"nodeurl\",{\"_index\":32,\"name\":{\"43\":{}},\"parent\":{}}],[\"resources\",{\"_index\":9,\"name\":{\"9\":{}},\"parent\":{}}],[\"resourcesmodule\",{\"_index\":29,\"name\":{\"37\":{}},\"parent\":{\"38\":{},\"39\":{},\"40\":{},\"41\":{}}}],[\"sdk\",{\"_index\":0,\"name\":{\"0\":{},\"17\":{},\"26\":{},\"40\":{}},\"parent\":{\"1\":{},\"2\":{},\"3\":{},\"4\":{},\"5\":{},\"6\":{},\"7\":{},\"8\":{},\"9\":{},\"10\":{},\"11\":{},\"12\":{},\"13\":{}}}],[\"sdkoptions\",{\"_index\":31,\"name\":{\"42\":{}},\"parent\":{\"43\":{},\"44\":{},\"45\":{}}}],[\"slippage\",{\"_index\":48,\"name\":{\"62\":{}},\"parent\":{}}],[\"stableswaptype\",{\"_index\":49,\"name\":{\"63\":{}},\"parent\":{}}],[\"swap\",{\"_index\":8,\"name\":{\"8\":{}},\"parent\":{}}],[\"swapmodule\",{\"_index\":14,\"name\":{\"14\":{}},\"parent\":{\"15\":{},\"16\":{},\"17\":{},\"18\":{},\"19\":{},\"20\":{},\"21\":{},\"22\":{}}}],[\"toamount\",{\"_index\":47,\"name\":{\"60\":{}},\"parent\":{}}],[\"totoken\",{\"_index\":38,\"name\":{\"49\":{},\"58\":{}},\"parent\":{}}],[\"version\",{\"_index\":42,\"name\":{\"53\":{},\"65\":{}},\"parent\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/classes/LiquidityModule.html b/classes/LiquidityModule.html index 64b6bb3..b143fc2 100644 --- a/classes/LiquidityModule.html +++ b/classes/LiquidityModule.html @@ -1 +1 @@ -LiquidityModule | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LiquidityModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • calculateOutputBurn(params: ICalculateBurnLiquidityParams): Promise<undefined | { withoutSlippage: { x: string; y: string }; x: string; y: string }>
  • Parameters

    • params: ICalculateBurnLiquidityParams

    Returns Promise<undefined | { withoutSlippage: { x: string; y: string }; x: string; y: string }>

  • calculateRateAndMinReceivedLP(params: ICalculateRatesParams): Promise<{ rate: string; receiveLp: string }>
  • calculateSupply(params: ICalculateSupplyParams): string
  • checkPoolExistence(params: TGetResourcesPayload): Promise<boolean>
  • createAddLiquidityPayload(params: TCreateLiquidityPoolTXPayloadParams): Promise<TxPayloadCallFunction>
  • createBurnLiquidityPayload(params: ICreateBurnLiquidityPayload): Promise<{ arguments: string[]; function: string; type: string; type_arguments: string[] }>
  • Parameters

    • params: ICreateBurnLiquidityPayload

    Returns Promise<{ arguments: string[]; function: string; type: string; type_arguments: string[] }>

  • getAmountIn(params: Omit<ICalculateRatesParams, "interactiveToken">): Promise<string>
  • getAmountOut(params: Omit<ICalculateRatesParams, "interactiveToken">): Promise<string>
  • getLiquidityPoolResource(params: TGetResourcesPayload): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource> }>
  • Parameters

    • params: TGetResourcesPayload

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource> }>

  • getLiquiditySupplyResource(params: TGetResourcesPayload): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosCoinInfoResource> }>
  • Parameters

    • params: TGetResourcesPayload

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosCoinInfoResource> }>

Generated using TypeDoc

\ No newline at end of file +LiquidityModule | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LiquidityModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • calculateOutputBurn(params: ICalculateBurnLiquidityParams): Promise<undefined | { withoutSlippage: { x: string; y: string }; x: string; y: string }>
  • Parameters

    • params: ICalculateBurnLiquidityParams

    Returns Promise<undefined | { withoutSlippage: { x: string; y: string }; x: string; y: string }>

  • calculateRateAndMinReceivedLP(params: ICalculateRatesParams): Promise<{ rate: string; receiveLp: string }>
  • calculateSupply(params: ICalculateSupplyParams): string
  • checkPoolExistence(params: TGetResourcesPayload): Promise<boolean>
  • createAddLiquidityPayload(params: TCreateLiquidityPoolTXPayloadParams): Promise<TxPayloadCallFunction>
  • createBurnLiquidityPayload(params: ICreateBurnLiquidityPayload): Promise<{ arguments: string[]; function: string; type: string; type_arguments: string[] }>
  • Parameters

    • params: ICreateBurnLiquidityPayload

    Returns Promise<{ arguments: string[]; function: string; type: string; type_arguments: string[] }>

  • getAmountIn(params: Omit<ICalculateRatesParams, "interactiveToken">): Promise<string>
  • getAmountOut(params: Omit<ICalculateRatesParams, "interactiveToken">): Promise<string>
  • getLiquidityPoolResource(params: TGetResourcesPayload): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource> }>
  • Parameters

    • params: TGetResourcesPayload

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource> }>

  • getLiquiditySupplyResource(params: TGetResourcesPayload): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosCoinInfoResource> }>
  • Parameters

    • params: TGetResourcesPayload

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosCoinInfoResource> }>

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/ResourcesModule.html b/classes/ResourcesModule.html index 28e2939..2721ad2 100644 --- a/classes/ResourcesModule.html +++ b/classes/ResourcesModule.html @@ -1 +1 @@ -ResourcesModule | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ResourcesModule

Implements

  • IModule

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • fetchAccountResource<T>(accountAddress: string, resourceType: string): Promise<undefined | AptosResource<T>>
  • Type parameters

    • T = unknown

    Parameters

    • accountAddress: string
    • resourceType: string

    Returns Promise<undefined | AptosResource<T>>

Generated using TypeDoc

\ No newline at end of file +ResourcesModule | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ResourcesModule

Implements

  • IModule

Index

Constructors

Properties

Accessors

Methods

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • fetchAccountResource<T>(accountAddress: string, resourceType: string): Promise<undefined | AptosResource<T>>
  • Type parameters

    • T = unknown

    Parameters

    • accountAddress: string
    • resourceType: string

    Returns Promise<undefined | AptosResource<T>>

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/SDK.html b/classes/SDK.html index 748f6fc..ac2be26 100644 --- a/classes/SDK.html +++ b/classes/SDK.html @@ -1 +1 @@ -SDK | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SDK

Index

Constructors

Properties

_client: AptosClient
_curves: ICurves
_liquidity: LiquidityModule
_networkOptions: Required<INetworkOptions>
_resources: ResourcesModule
_swap: SwapModule

Accessors

  • get client(): AptosClient
  • get curves(): ICurves
  • get networkOptions(): Required<INetworkOptions>
  • Returns Required<INetworkOptions>

Generated using TypeDoc

\ No newline at end of file +SDK | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SDK

Index

Constructors

Properties

_client: AptosClient
_curves: ICurves
_liquidity: LiquidityModule
_networkOptions: Required<INetworkOptions>
_resources: ResourcesModule
_swap: SwapModule

Accessors

  • get client(): AptosClient
  • get curves(): ICurves
  • get networkOptions(): Required<INetworkOptions>
  • Returns Required<INetworkOptions>

Generated using TypeDoc

\ No newline at end of file diff --git a/classes/SwapModule.html b/classes/SwapModule.html index 345f451..e1707f8 100644 --- a/classes/SwapModule.html +++ b/classes/SwapModule.html @@ -1 +1 @@ -SwapModule | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SwapModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • getLiquidityPoolResource(params: GetLiquidityPoolResourceParams): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource>; liquidityPoolType: string }>
  • Parameters

    • params: GetLiquidityPoolResourceParams

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource>; liquidityPoolType: string }>

Generated using TypeDoc

\ No newline at end of file +SwapModule | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SwapModule

Implements

  • IModule

Index

Constructors

Properties

_sdk: SDK

Accessors

Methods

  • getLiquidityPoolResource(params: GetLiquidityPoolResourceParams): Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource>; liquidityPoolType: string }>
  • Parameters

    • params: GetLiquidityPoolResourceParams

    Returns Promise<{ liquidityPoolResource: undefined | AptosResource<AptosPoolResource>; liquidityPoolType: string }>

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/SdkOptions.html b/interfaces/SdkOptions.html index 4f819a1..596d394 100644 --- a/interfaces/SdkOptions.html +++ b/interfaces/SdkOptions.html @@ -1 +1 @@ -SdkOptions | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SdkOptions

Index

Properties

networkOptions?: INetworkOptions
nodeUrl: string

Generated using TypeDoc

\ No newline at end of file +SdkOptions | @pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SdkOptions

Index

Properties

networkOptions?: INetworkOptions
nodeOptions?: Partial<ClientConfig>
nodeUrl: string

Generated using TypeDoc

\ No newline at end of file diff --git a/modules.html b/modules.html index 0e87047..82c6b78 100644 --- a/modules.html +++ b/modules.html @@ -1,4 +1,4 @@ -@pontem/liquidswap-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

@pontem/liquidswap-sdk

Index

References

Renames and re-exports SDK

Type aliases

CalculateRatesParams: { additionalFee?: number; amount: Decimal | number; curveType: CurveType; fromToken: AptosResourceType; interactiveToken: "from" | "to"; toToken: AptosResourceType; version?: typeof VERSION_0 | typeof VERSION_0_5 }

Type declaration

  • Optional additionalFee?: number
  • amount: Decimal | number
  • curveType: CurveType
  • fromToken: AptosResourceType
  • interactiveToken: "from" | "to"
  • toToken: AptosResourceType
  • Optional version?: typeof VERSION_0 | typeof VERSION_0_5
CreateTXPayloadParams: { curveType: CurveType; fromAmount: Decimal | number; fromToken: AptosResourceType; interactiveToken: "from" | "to"; slippage: number; stableSwapType: "high" | "normal"; toAmount: Decimal | number; toToken: AptosResourceType; version?: typeof VERSION_0 | typeof VERSION_0_5 }

Type declaration

  • curveType: CurveType
  • fromAmount: Decimal | number
  • fromToken: AptosResourceType
  • interactiveToken: "from" | "to"
  • slippage: number
  • stableSwapType: "high" | "normal"
  • toAmount: Decimal | number
  • toToken: AptosResourceType
  • Optional version?: typeof VERSION_0 | typeof VERSION_0_5

Functions

  • convertDecimalToFixedString(value: Decimal, decimals: number): string
  • convertValueToDecimal(value: string | number, decimals?: undefined | number): Decimal
  • Parameters

    • value: string | number
    • decimals: undefined | number = 0

    Returns Decimal

  • getCoinInWithFees(coinOutVal: Decimal, reserveOutSize: Decimal, reserveInSize: Decimal, fee: Decimal): Decimal
  • +@pontem/liquidswap-sdk
    Options
    All
    • Public
    • Public/Protected
    • All
    Menu

    @pontem/liquidswap-sdk

    Index

    References

    Renames and re-exports SDK

    Type aliases

    CalculateRatesParams: { additionalFee?: number; amount: Decimal | number; curveType: CurveType; fromToken: AptosResourceType; interactiveToken: "from" | "to"; toToken: AptosResourceType; version?: typeof VERSION_0 | typeof VERSION_0_5 }

    Type declaration

    • Optional additionalFee?: number
    • amount: Decimal | number
    • curveType: CurveType
    • fromToken: AptosResourceType
    • interactiveToken: "from" | "to"
    • toToken: AptosResourceType
    • Optional version?: typeof VERSION_0 | typeof VERSION_0_5
    CreateTXPayloadParams: { curveType: CurveType; fromAmount: Decimal | number; fromToken: AptosResourceType; interactiveToken: "from" | "to"; slippage: number; stableSwapType: "high" | "normal"; toAmount: Decimal | number; toToken: AptosResourceType; version?: typeof VERSION_0 | typeof VERSION_0_5 }

    Type declaration

    • curveType: CurveType
    • fromAmount: Decimal | number
    • fromToken: AptosResourceType
    • interactiveToken: "from" | "to"
    • slippage: number
    • stableSwapType: "high" | "normal"
    • toAmount: Decimal | number
    • toToken: AptosResourceType
    • Optional version?: typeof VERSION_0 | typeof VERSION_0_5

    Functions

    • convertDecimalToFixedString(value: Decimal, decimals: number): string
    • convertValueToDecimal(value: string | number, decimals?: undefined | number): Decimal
    • Parameters

      • value: string | number
      • decimals: undefined | number = 0

      Returns Decimal

    • getCoinInWithFees(coinOutVal: Decimal, reserveOutSize: Decimal, reserveInSize: Decimal, fee: Decimal): Decimal
    • Calculates rate with uncorrelated curve for 'from' input based on 'to' input

      Parameters

      • coinOutVal: Decimal

        amount of second('to') token

        @@ -8,7 +8,7 @@

        amount of reserves for first('from') token

      • fee: Decimal

        amount of fee

        -

      Returns Decimal

    • getCoinOutWithFees(coinInVal: Decimal, reserveInSize: Decimal, reserveOutSize: Decimal, fee: Decimal): Decimal

    Returns Decimal

  • getCoinOutWithFees(coinInVal: Decimal, reserveInSize: Decimal, reserveOutSize: Decimal, fee: Decimal): Decimal
  • Calculates rate with uncorrelated curve for 'to' input based on 'from' input

    Parameters

    • coinInVal: Decimal

      amount of first('from') token

      @@ -18,7 +18,7 @@

      amount of reserves for second('to') token

    • fee: Decimal

      amount of fee

      -

    Returns Decimal

  • getCoinsInWithFeesStable(coinOut: Decimal, reserveOut: Decimal, reserveIn: Decimal, scaleOut: Decimal, scaleIn: Decimal, fee: Decimal): Decimal

Returns Decimal

  • getCoinsInWithFeesStable(coinOut: Decimal, reserveOut: Decimal, reserveIn: Decimal, scaleOut: Decimal, scaleIn: Decimal, fee: Decimal): Decimal
  • Calculates rate with stable curve for 'from' input based on 'to' input

    Parameters

    • coinOut: Decimal

      amount of second('to') token

      @@ -32,7 +32,7 @@

      precision for the ('from')token in decimal places

    • fee: Decimal

      amount of fee

      -

    Returns Decimal

  • getCoinsOutWithFeesStable(coinIn: Decimal, reserveIn: Decimal, reserveOut: Decimal, scaleIn: Decimal, scaleOut: Decimal, fee: Decimal): Decimal

Returns Decimal

  • getCoinsOutWithFeesStable(coinIn: Decimal, reserveIn: Decimal, reserveOut: Decimal, scaleIn: Decimal, scaleOut: Decimal, fee: Decimal): Decimal
  • Calculates rate with stable curve for 'from' input based on 'to' input

    Parameters

    • coinIn: Decimal

      amount of first('from') token