@bancor/carbon-sdk
Version:
The SDK is a READ-ONLY tool, intended to facilitate working with Carbon contracts. It's a convenient wrapper around our matching algorithm, allowing programs and users get a ready to use transaction data that will allow them to manage strategies and fulfi
2 lines (1 loc) • 667 B
JavaScript
export{Decimals}from"./decimals/index.js";export{areScaledRatesEqual,calculateCorrelatedZ,calculateRequiredLiquidity,decodeFloat,decodeOrder,decodeRate,encodeFloat,encodeOrder,encodeOrders,encodeRate,isOrderEncodable}from"./encoders/index.js";export{encodedOrderBNToStr,encodedOrderStrToBN,encodedStrategyBNToStr,encodedStrategyStrToBN,matchActionBNToStr,ordersMapBNToStr,ordersMapStrToBN,replaceBigNumbersWithStrings,tradeActionStrToBN}from"./serializers/index.js";export{BigNumberMax,BigNumberMin,BnToDec,DecToBn,Decimal,MAX_UINT256,ONE,TEN,formatUnits,mulDiv,parseUnits,tenPow,trimDecimal}from"./numerics/index.js";export{BigNumber}from"@ethersproject/bignumber";