From 57a436f3e886c17b02a5d874cb62b3ca934e10d6 Mon Sep 17 00:00:00 2001 From: Maxence Raballand Date: Sun, 5 May 2024 16:21:02 +0200 Subject: [PATCH] chore: exports --- .zed/{setting.json => settings.json} | 0 src/index.ts | 3 +++ src/lib/index.ts | 14 +++++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) rename .zed/{setting.json => settings.json} (100%) diff --git a/.zed/setting.json b/.zed/settings.json similarity index 100% rename from .zed/setting.json rename to .zed/settings.json diff --git a/src/index.ts b/src/index.ts index 230d637..1389360 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,9 @@ export type { MarketOrderResultFromLogsParams, LimitOrderResultFromLogsParams, LimitOrderResult, + AmountsToHumanPriceParams, + AmountsParams, + AmountsOutput, } from './lib/index.js' export { diff --git a/src/lib/index.ts b/src/lib/index.ts index 03e9a14..c9da9a6 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -17,7 +17,19 @@ export { unpackGlobalConfig } from './global.js' // human-readable -export { rpcOfferToHumanOffer } from './human-readable.js' +export type { + AmountsToHumanPriceParams, + AmountsParams, + AmountsOutput, +} from './human-readable.js' + +export { + rpcOfferToHumanOffer, + rawPriceToHumanPrice, + humanPriceToRawPrice, + amountsToHumanPrice, + amounts, +} from './human-readable.js' // limit-order