diff --git a/.changeset/fair-sheep-change.md b/.changeset/fair-sheep-change.md new file mode 100644 index 0000000..59724ad --- /dev/null +++ b/.changeset/fair-sheep-change.md @@ -0,0 +1,5 @@ +--- +"@mangrovedao/mgv": patch +--- + +Export types for `getKandelState` diff --git a/src/actions/index.ts b/src/actions/index.ts index 602074c..ade8cd1 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -111,3 +111,10 @@ export { isBound, simulateDeployRouter, } from './smart-router.js' + +export type { + OfferParsed, + GetKandelStateArgs, + GetKandelStateParams, + GetKandelStateResult, +} from './kandel/view.js' diff --git a/src/actions/kandel/view.ts b/src/actions/kandel/view.ts index 203044f..c64b2a3 100644 --- a/src/actions/kandel/view.ts +++ b/src/actions/kandel/view.ts @@ -29,7 +29,7 @@ export type GetKandelStateParams = {} export type GetKandelStateArgs = GetKandelStateParams & Omit -type OfferParsed = { +export type OfferParsed = { id: bigint tick: bigint gives: bigint diff --git a/src/index.ts b/src/index.ts index 8e17a19..ca81f6c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,10 @@ export type { GetOrdersParamsSingleMarket, GetOrdersParams, GetOrdersArgs, + OfferParsed, + GetKandelStateArgs, + GetKandelStateParams, + GetKandelStateResult, } from './actions/index.js' // -- lib functions --