Skip to content

Commit

Permalink
feat: Export types for getKandelState (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxencerb authored Jun 14, 2024
1 parent a6c63f0 commit 1e72268
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fair-sheep-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@mangrovedao/mgv": patch
---

Export types for `getKandelState`
7 changes: 7 additions & 0 deletions src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,10 @@ export {
isBound,
simulateDeployRouter,
} from './smart-router.js'

export type {
OfferParsed,
GetKandelStateArgs,
GetKandelStateParams,
GetKandelStateResult,
} from './kandel/view.js'
2 changes: 1 addition & 1 deletion src/actions/kandel/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type GetKandelStateParams = {}
export type GetKandelStateArgs = GetKandelStateParams &
Omit<MulticallParameters, 'contracts' | 'allowFailure'>

type OfferParsed = {
export type OfferParsed = {
id: bigint
tick: bigint
gives: bigint
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export type {
GetOrdersParamsSingleMarket,
GetOrdersParams,
GetOrdersArgs,
OfferParsed,
GetKandelStateArgs,
GetKandelStateParams,
GetKandelStateResult,
} from './actions/index.js'

// -- lib functions --
Expand Down

0 comments on commit 1e72268

Please sign in to comment.