@oddmaki-protocol/sdk 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -9529,15 +9529,24 @@ interface PriceMarketData {
9529
9529
  finalPrice: bigint;
9530
9530
  resolutionWindow: bigint;
9531
9531
  resolved: boolean;
9532
+ /**
9533
+ * Reference price for resolution.
9534
+ * - Explicit-strike markets: set at creation, never changes.
9535
+ * - Deferred Up/Down markets: 0 at creation, populated at resolution with the
9536
+ * open price captured from the earliest Hermes VAA in
9537
+ * `[openTime, openTime + resolutionWindow]`.
9538
+ */
9532
9539
  strikePrice: bigint;
9533
9540
  /**
9534
- * Pyth VAA publishTime for the opening-price capture (seconds since epoch).
9535
- * 0 for strike markets (no opening price is captured).
9541
+ * Pyth VAA publishTime of the open-price capture (seconds since epoch).
9542
+ * - Explicit-strike markets: always 0 (no open price is captured).
9543
+ * - Deferred Up/Down markets: 0 until resolution, then set to the open VAA's
9544
+ * publishTime.
9536
9545
  */
9537
9546
  openPriceTime: bigint;
9538
9547
  }
9539
9548
  /**
9540
- * Latest Pyth price update data plus the signed VAA's publishTime.
9549
+ * Latest Pyth price update plus the signed VAA's publishTime.
9541
9550
  * `fetchedAt` is the SDK-local unix timestamp (seconds) at fetch time.
9542
9551
  */
9543
9552
  interface PythUpdate {
@@ -9545,31 +9554,66 @@ interface PythUpdate {
9545
9554
  publishTime: bigint;
9546
9555
  fetchedAt: bigint;
9547
9556
  }
9557
+ /**
9558
+ * Projected open price for a deferred Up/Down market that hasn't resolved yet.
9559
+ * Derived from the same Hermes VAA the on-chain resolver will pick.
9560
+ */
9561
+ interface ProjectedOpenPrice {
9562
+ /** Price extracted from the open-window Hermes VAA (Pyth feed-native units). */
9563
+ price: bigint;
9564
+ /** publishTime of the VAA (seconds since epoch). */
9565
+ publishTime: bigint;
9566
+ /** Pyth's price exponent for the feed (e.g. -8). Convenience for UI formatting. */
9567
+ expo: number;
9568
+ /**
9569
+ * `true` once `block.timestamp >= openTime + resolutionWindow` — past that point
9570
+ * every client querying Hermes the same way agrees on the same VAA and the
9571
+ * on-chain strike at resolution will equal this exact `price`. Before that,
9572
+ * the value is a best-effort projection that could shift slightly as Hermes
9573
+ * publishes new VAAs inside the window.
9574
+ */
9575
+ canonical: boolean;
9576
+ /** The market's openTime this projection corresponds to. */
9577
+ openTime: bigint;
9578
+ }
9548
9579
  declare class PriceMarketModule extends BaseModule {
9549
9580
  /**
9550
- * Create a Pyth-powered price market
9581
+ * Create a Pyth-powered price market. Three shapes via one entry point:
9582
+ *
9583
+ * - **Immediate Up/Down** (`strikePrice = 0`, `openTime = 0` or omitted):
9584
+ * `openTime` is set to `block.timestamp` at creation; open price is
9585
+ * captured at resolution from the earliest Hermes VAA in
9586
+ * `[openTime, openTime + resolutionWindow]`.
9587
+ *
9588
+ * - **Scheduled Up/Down** (`strikePrice = 0`, `openTime > now`):
9589
+ * Market exists from creation and is tradable. At `openTime` the open
9590
+ * price window begins; capture happens at resolution as above.
9551
9591
  *
9552
- * When strikePrice > 0, creates a strike market resolved against
9553
- * the explicit target price. No Pyth update data or ETH is needed.
9554
- * When strikePrice is 0 or omitted, captures the current Pyth price
9555
- * and uses it as the reference (standard Up/Down market).
9592
+ * - **Explicit strike** (`strikePrice > 0`): Above/Below market resolved
9593
+ * against the caller-supplied target. `openTime` is ignored and stored
9594
+ * as `block.timestamp`; no open-price capture occurs at resolution.
9595
+ *
9596
+ * Creation never touches Pyth — no VAA submission, no Pyth fee. The
9597
+ * resolver pays Pyth fees later when calling {@link resolvePyth}.
9556
9598
  *
9557
9599
  * @param params.venueId - The venue to create the market in
9558
9600
  * @param params.pythFeedId - Pyth price feed ID (e.g., ETH/USD)
9559
- * @param params.strikePrice - Target price in feed's exponent scale (0 = use current price)
9560
- * @param params.closeTime - Absolute close timestamp (must be 300–86400s from now)
9601
+ * @param params.strikePrice - Target price (0 = capture open at resolution)
9602
+ * @param params.openTime - When the market opens (0 = immediate / now)
9603
+ * @param params.closeTime - Absolute close timestamp (must be > effective openTime)
9561
9604
  * @param params.outcomes - Market outcome labels (e.g., ["Up", "Down"] or ["Above", "Below"])
9562
- * @param params.tickSize - Price increment for the orderbook
9605
+ * @param params.tickSize - Price increment for the orderbook (1e15 or 1e16)
9563
9606
  * @param params.collateralToken - ERC20 collateral token address
9564
- * @param params.question - Market question for UMA ancillary data (fallback)
9607
+ * @param params.question - Market question for ancillary data
9565
9608
  * @param params.liveness - UMA challenge period in seconds (0 = default)
9566
9609
  * @param params.tags - Optional tags for the market
9567
- * @param params.resolutionWindow - Pyth timestamp tolerance in seconds (0 = default 60s)
9610
+ * @param params.resolutionWindow - Pyth timestamp tolerance in seconds (0 = default 60s, max 300s)
9568
9611
  */
9569
9612
  createPyth(params: {
9570
9613
  venueId: bigint;
9571
9614
  pythFeedId: `0x${string}`;
9572
9615
  strikePrice?: bigint;
9616
+ openTime?: bigint;
9573
9617
  closeTime: bigint;
9574
9618
  outcomes?: string[];
9575
9619
  tickSize: bigint;
@@ -9580,11 +9624,14 @@ declare class PriceMarketModule extends BaseModule {
9580
9624
  resolutionWindow?: bigint;
9581
9625
  }): Promise<`0x${string}`>;
9582
9626
  /**
9583
- * Resolve a price market using Pyth closing price
9627
+ * Resolve a price market using Pyth.
9584
9628
  *
9585
- * Anyone can call this after the market's closeTime has passed.
9586
- * Fetches the historical Pyth price at closeTime and submits it.
9587
- * Works for both standard price markets and strike markets.
9629
+ * Anyone can call this after `closeTime`. For deferred Up/Down markets
9630
+ * (`strikePrice == 0`), the SDK fetches **two** Hermes VAAs one for the
9631
+ * open window, one for the close window and submits them together so the
9632
+ * on-chain facet can capture the open price and compare against the close
9633
+ * in a single transaction. For explicit-strike markets only the close VAA
9634
+ * is fetched.
9588
9635
  */
9589
9636
  resolvePyth(marketId: bigint): Promise<`0x${string}`>;
9590
9637
  /**
@@ -9592,7 +9639,7 @@ declare class PriceMarketModule extends BaseModule {
9592
9639
  */
9593
9640
  isPriceMarket(marketId: bigint): Promise<boolean>;
9594
9641
  /**
9595
- * Check if a price market can be resolved
9642
+ * Check if a price market can be resolved (closeTime reached and not yet resolved).
9596
9643
  */
9597
9644
  canResolve(marketId: bigint): Promise<boolean>;
9598
9645
  /**
@@ -9607,46 +9654,29 @@ declare class PriceMarketModule extends BaseModule {
9607
9654
  * Set the Pyth oracle contract address. Diamond owner only.
9608
9655
  */
9609
9656
  setPythContract(pythContract: Address): Promise<`0x${string}`>;
9610
- /**
9611
- * Get the effective opening-price staleness window in seconds.
9612
- *
9613
- * A submitted VAA's `publishTime` must fall within
9614
- * `[block.timestamp - openMaxStaleness, block.timestamp + OPEN_FUTURE_SKEW]`
9615
- * at `createPriceMarketPyth` time. Defaults to 300s when unset on-chain.
9616
- */
9617
- getOpenMaxStaleness(): Promise<bigint>;
9618
- /**
9619
- * Set the opening-price staleness window (seconds). Diamond owner only.
9620
- * Pass 0 to fall back to the built-in default.
9621
- */
9622
- setOpenMaxStaleness(openMaxStaleness: bigint): Promise<`0x${string}`>;
9623
9657
  /**
9624
9658
  * Shared pre-flight checks: creation fee allowance, ancillary data, tags
9625
9659
  */
9626
9660
  private _prepareCreationCommon;
9627
- /**
9628
- * Fetch Pyth update data and compute the required ETH value (for Up/Down markets)
9629
- */
9630
- private _preparePythUpdate;
9631
9661
  private formatAncillaryData;
9632
9662
  /**
9633
- * Fetch latest Pyth price update from Hermes — bytes plus the VAA's publishTime.
9663
+ * Fetch the latest Pyth price update from Hermes — the bytes plus the
9664
+ * VAA's publishTime.
9634
9665
  *
9635
- * Use this (or {@link fetchFreshPythUpdate}) instead of re-rolling Hermes
9636
- * calls when building `createPriceMarketPyth` transactions. The on-chain
9637
- * staleness window defaults to 300s — if the user takes longer than that
9638
- * to sign, the VAA will be rejected.
9666
+ * Useful for UI projected-strike display: callers can render the current
9667
+ * Pyth price (and its publishTime) before a deferred market's open window
9668
+ * closes, then switch to the on-chain strike once resolution happens.
9639
9669
  */
9640
9670
  fetchPythLatestUpdate(feedId: `0x${string}`): Promise<PythUpdate>;
9641
9671
  /**
9642
- * Return a Pyth update that is fresh enough to pass the on-chain staleness check.
9672
+ * Return a Pyth update that is fresh enough for client-side projected-strike
9673
+ * display.
9643
9674
  *
9644
- * If `cached` is provided and still within `maxAgeSeconds`, it is returned as-is.
9645
- * Otherwise Hermes is re-queried; if the newly fetched VAA is also older than
9646
- * `maxAgeSeconds` (e.g. feed is quiet), it retries up to `maxAttempts`.
9675
+ * If `cached` is provided and still within `maxAgeSeconds`, returns it
9676
+ * unchanged. Otherwise re-queries Hermes; if the new VAA is also stale
9677
+ * (quiet feed), retries up to `maxAttempts`.
9647
9678
  *
9648
- * Defaults: `maxAgeSeconds = 120` (leaves ~180s headroom under the 300s default
9649
- * on-chain window), `maxAttempts = 3`.
9679
+ * Defaults: `maxAgeSeconds = 120`, `maxAttempts = 3`.
9650
9680
  */
9651
9681
  fetchFreshPythUpdate(feedId: `0x${string}`, options?: {
9652
9682
  maxAgeSeconds?: number;
@@ -9654,11 +9684,30 @@ declare class PriceMarketModule extends BaseModule {
9654
9684
  cached?: PythUpdate;
9655
9685
  }): Promise<PythUpdate>;
9656
9686
  /**
9657
- * Fetch latest Pyth price update data from Hermes API (raw bytes only).
9687
+ * Resolve the projected open price for a deferred Up/Down market what the
9688
+ * UI should display as the "strike" between `openTime` and resolution.
9689
+ *
9690
+ * For deferred markets, the on-chain `strikePrice` is 0 until the resolver
9691
+ * fires {@link resolvePyth}. This helper replicates the same rule the
9692
+ * contract will use ("earliest in-window Hermes VAA in
9693
+ * `[openTime, openTime + resolutionWindow]`") by querying Hermes at
9694
+ * `openTime`, so the value rendered in the UI matches what the on-chain
9695
+ * strike will be once resolution lands.
9696
+ *
9697
+ * Returns `null` when the projection isn't applicable:
9698
+ * - The market is already resolved — caller should read `pm.strikePrice` directly.
9699
+ * - The market is explicit-strike (`pm.strikePrice > 0`) — same, read from chain.
9700
+ * - The market hasn't reached `openTime` yet — no VAA exists; UI should show
9701
+ * "strike set at HH:MM" or similar pending state.
9702
+ *
9703
+ * `result.canonical === true` means the open window has fully elapsed and the
9704
+ * value will not change. Before that, render the price with a "pending" hint.
9658
9705
  */
9659
- private fetchPythUpdateData;
9706
+ fetchProjectedOpenPrice(marketId: bigint): Promise<ProjectedOpenPrice | null>;
9660
9707
  /**
9661
- * Fetch historical Pyth price update data at a specific timestamp
9708
+ * Fetch historical Pyth price update data at a specific timestamp.
9709
+ * Used internally by {@link resolvePyth} to fetch open-window and
9710
+ * close-window VAAs.
9662
9711
  */
9663
9712
  private fetchPythHistoricalData;
9664
9713
  }
@@ -15354,6 +15403,11 @@ var PythResolutionFacet = [
15354
15403
  type: "int64",
15355
15404
  internalType: "int64"
15356
15405
  },
15406
+ {
15407
+ name: "openTime",
15408
+ type: "uint256",
15409
+ internalType: "uint256"
15410
+ },
15357
15411
  {
15358
15412
  name: "closeTime",
15359
15413
  type: "uint256",
@@ -15393,11 +15447,6 @@ var PythResolutionFacet = [
15393
15447
  name: "resolutionWindow",
15394
15448
  type: "uint256",
15395
15449
  internalType: "uint256"
15396
- },
15397
- {
15398
- name: "pythUpdateData",
15399
- type: "bytes[]",
15400
- internalType: "bytes[]"
15401
15450
  }
15402
15451
  ],
15403
15452
  outputs: [
@@ -15407,21 +15456,7 @@ var PythResolutionFacet = [
15407
15456
  internalType: "uint256"
15408
15457
  }
15409
15458
  ],
15410
- stateMutability: "payable"
15411
- },
15412
- {
15413
- type: "function",
15414
- name: "getOpenMaxStaleness",
15415
- inputs: [
15416
- ],
15417
- outputs: [
15418
- {
15419
- name: "",
15420
- type: "uint256",
15421
- internalType: "uint256"
15422
- }
15423
- ],
15424
- stateMutability: "view"
15459
+ stateMutability: "nonpayable"
15425
15460
  },
15426
15461
  {
15427
15462
  type: "function",
@@ -15439,36 +15474,36 @@ var PythResolutionFacet = [
15439
15474
  },
15440
15475
  {
15441
15476
  type: "function",
15442
- name: "resolvePriceMarketPyth",
15477
+ name: "markPriceMarketInvalid",
15443
15478
  inputs: [
15444
15479
  {
15445
15480
  name: "marketId",
15446
15481
  type: "uint256",
15447
15482
  internalType: "uint256"
15448
- },
15449
- {
15450
- name: "pythUpdateData",
15451
- type: "bytes[]",
15452
- internalType: "bytes[]"
15453
15483
  }
15454
15484
  ],
15455
15485
  outputs: [
15456
15486
  ],
15457
- stateMutability: "payable"
15487
+ stateMutability: "nonpayable"
15458
15488
  },
15459
15489
  {
15460
15490
  type: "function",
15461
- name: "setOpenMaxStaleness",
15491
+ name: "resolvePriceMarketPyth",
15462
15492
  inputs: [
15463
15493
  {
15464
- name: "openMaxStaleness",
15494
+ name: "marketId",
15465
15495
  type: "uint256",
15466
15496
  internalType: "uint256"
15497
+ },
15498
+ {
15499
+ name: "pythUpdateData",
15500
+ type: "bytes[]",
15501
+ internalType: "bytes[]"
15467
15502
  }
15468
15503
  ],
15469
15504
  outputs: [
15470
15505
  ],
15471
- stateMutability: "nonpayable"
15506
+ stateMutability: "payable"
15472
15507
  },
15473
15508
  {
15474
15509
  type: "function",
@@ -15607,19 +15642,6 @@ var PythResolutionFacet = [
15607
15642
  ],
15608
15643
  anonymous: false
15609
15644
  },
15610
- {
15611
- type: "event",
15612
- name: "OpenMaxStalenessUpdated",
15613
- inputs: [
15614
- {
15615
- name: "openMaxStaleness",
15616
- type: "uint256",
15617
- indexed: false,
15618
- internalType: "uint256"
15619
- }
15620
- ],
15621
- anonymous: false
15622
- },
15623
15645
  {
15624
15646
  type: "event",
15625
15647
  name: "PriceMarketCreatedPyth",
@@ -15675,6 +15697,25 @@ var PythResolutionFacet = [
15675
15697
  ],
15676
15698
  anonymous: false
15677
15699
  },
15700
+ {
15701
+ type: "event",
15702
+ name: "PriceMarketInvalidated",
15703
+ inputs: [
15704
+ {
15705
+ name: "marketId",
15706
+ type: "uint256",
15707
+ indexed: true,
15708
+ internalType: "uint256"
15709
+ },
15710
+ {
15711
+ name: "caller",
15712
+ type: "address",
15713
+ indexed: true,
15714
+ internalType: "address"
15715
+ }
15716
+ ],
15717
+ anonymous: false
15718
+ },
15678
15719
  {
15679
15720
  type: "event",
15680
15721
  name: "PriceMarketResolvedPyth",
@@ -15697,6 +15738,12 @@ var PythResolutionFacet = [
15697
15738
  indexed: false,
15698
15739
  internalType: "int64"
15699
15740
  },
15741
+ {
15742
+ name: "openPriceTime",
15743
+ type: "uint256",
15744
+ indexed: false,
15745
+ internalType: "uint256"
15746
+ },
15700
15747
  {
15701
15748
  name: "outcome",
15702
15749
  type: "string",
@@ -15740,19 +15787,19 @@ var PythResolutionFacet = [
15740
15787
  },
15741
15788
  {
15742
15789
  type: "error",
15743
- name: "CloseTimeNotReached",
15790
+ name: "AssertionInProgress",
15744
15791
  inputs: [
15745
15792
  ]
15746
15793
  },
15747
15794
  {
15748
15795
  type: "error",
15749
- name: "CloseTimeTooFar",
15796
+ name: "CloseTimeNotAfterOpenTime",
15750
15797
  inputs: [
15751
15798
  ]
15752
15799
  },
15753
15800
  {
15754
15801
  type: "error",
15755
- name: "CloseTimeTooSoon",
15802
+ name: "CloseTimeNotReached",
15756
15803
  inputs: [
15757
15804
  ]
15758
15805
  },
@@ -15790,6 +15837,12 @@ var PythResolutionFacet = [
15790
15837
  }
15791
15838
  ]
15792
15839
  },
15840
+ {
15841
+ type: "error",
15842
+ name: "GracePeriodNotElapsed",
15843
+ inputs: [
15844
+ ]
15845
+ },
15793
15846
  {
15794
15847
  type: "error",
15795
15848
  name: "InsufficientPythFee",
@@ -15820,6 +15873,12 @@ var PythResolutionFacet = [
15820
15873
  inputs: [
15821
15874
  ]
15822
15875
  },
15876
+ {
15877
+ type: "error",
15878
+ name: "InvalidOpenTime",
15879
+ inputs: [
15880
+ ]
15881
+ },
15823
15882
  {
15824
15883
  type: "error",
15825
15884
  name: "InvalidOutcomesLength",
@@ -15840,7 +15899,13 @@ var PythResolutionFacet = [
15840
15899
  },
15841
15900
  {
15842
15901
  type: "error",
15843
- name: "NoValidPriceUpdate",
15902
+ name: "NoClosePriceInWindow",
15903
+ inputs: [
15904
+ ]
15905
+ },
15906
+ {
15907
+ type: "error",
15908
+ name: "NoOpenPriceInWindow",
15844
15909
  inputs: [
15845
15910
  ]
15846
15911
  },
@@ -16910,6 +16975,25 @@ var ERC20 = [
16910
16975
  ],
16911
16976
  stateMutability: "view"
16912
16977
  },
16978
+ {
16979
+ type: "function",
16980
+ name: "mint",
16981
+ inputs: [
16982
+ {
16983
+ name: "to",
16984
+ type: "address",
16985
+ internalType: "address"
16986
+ },
16987
+ {
16988
+ name: "amount",
16989
+ type: "uint256",
16990
+ internalType: "uint256"
16991
+ }
16992
+ ],
16993
+ outputs: [
16994
+ ],
16995
+ stateMutability: "nonpayable"
16996
+ },
16913
16997
  {
16914
16998
  type: "function",
16915
16999
  name: "name",
@@ -17131,6 +17215,25 @@ var UmaOracle = [
17131
17215
  ],
17132
17216
  stateMutability: "view"
17133
17217
  },
17218
+ {
17219
+ type: "function",
17220
+ name: "disputeAssertion",
17221
+ inputs: [
17222
+ {
17223
+ name: "assertionId",
17224
+ type: "bytes32",
17225
+ internalType: "bytes32"
17226
+ },
17227
+ {
17228
+ name: "disputer",
17229
+ type: "address",
17230
+ internalType: "address"
17231
+ }
17232
+ ],
17233
+ outputs: [
17234
+ ],
17235
+ stateMutability: "nonpayable"
17236
+ },
17134
17237
  {
17135
17238
  type: "function",
17136
17239
  name: "getAssertion",
@@ -17309,25 +17412,6 @@ var UmaOracle = [
17309
17412
  outputs: [
17310
17413
  ],
17311
17414
  stateMutability: "nonpayable"
17312
- },
17313
- {
17314
- type: "function",
17315
- name: "disputeAssertion",
17316
- inputs: [
17317
- {
17318
- name: "assertionId",
17319
- type: "bytes32",
17320
- internalType: "bytes32"
17321
- },
17322
- {
17323
- name: "disputer",
17324
- type: "address",
17325
- internalType: "address"
17326
- }
17327
- ],
17328
- outputs: [
17329
- ],
17330
- stateMutability: "nonpayable"
17331
17415
  }
17332
17416
  ];
17333
17417
 
@@ -17474,4 +17558,4 @@ declare function parseMetadata<T extends {
17474
17558
 
17475
17559
  declare const version = "0.1.0";
17476
17560
 
17477
- export { AccessControlFacet as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet as BatchOrdersFacetABI, CONTRACT_ADDRESSES, type ChancePercentInput, ConditionalTokens as ConditionalTokensABI, DEFAULT_CHAIN, ERC20 as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PRICE_MARKET_SERIES, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet as LimitOrdersFacetABI, MarketGroupFacet as MarketGroupFacetABI, type MarketMetadata, MarketModule, MarketOrdersFacet as MarketOrdersFacetABI, type MarketQuestion, type MarketStatus, MarketsFacet as MarketsFacetABI, MatchingFacet as MatchingFacetABI, MetadataFacet as MetadataFacetABI, NegRiskFacet as NegRiskFacetABI, OddMakiClient, type OddMakiClientConfig, type OddMakiConfig, OrderBookFacet as OrderBookFacetABI, PROTOCOL_FEES, type PriceMarketData, PriceMarketFacet as PriceMarketFacetABI, PriceMarketModule, ProtocolFacet as ProtocolFacetABI, PublicModule, PythResolutionFacet as PythResolutionFacetABI, type PythUpdate, ResolutionFacet as ResolutionFacetABI, SUBGRAPH_IDS, SubgraphClient, type SubgraphMarketPriceData, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet as TagsFacetABI, TokenModule, type TopOfBookEntry, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle as UmaOracleABI, VALID_TICK_SIZES, VaultFacet as VaultFacetABI, VenueFacet as VenueFacetABI, type VenueMetadata, VenueModule, WhitelistAccessControl as WhitelistAccessControlABI, buildSubgraphGatewayUrl, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };
17561
+ export { AccessControlFacet as AccessControlFacetABI, AccessControlModule, BatchOrdersFacet as BatchOrdersFacetABI, CONTRACT_ADDRESSES, type ChancePercentInput, ConditionalTokens as ConditionalTokensABI, DEFAULT_CHAIN, ERC20 as ERC20ABI, FeedProvider, GET_ALL_MARKETS_FEED, GET_ALL_MARKETS_FEED_BY_VOLUME, GET_CHART_TRADES, GET_CHART_TRADES_ALL, GET_GROUP_MARKETS, GET_LEADERBOARD, GET_MARKET, GET_MARKETS, GET_MARKETS_WITH_PRICING, GET_MARKET_GROUP, GET_MARKET_GROUPS, GET_MARKET_GROUP_ITEM, GET_MARKET_TOP_HOLDERS, GET_ORDERS, GET_PRICE_MARKET_SERIES, GET_PROTOCOL_STATS, GET_QUESTION, GET_QUESTIONS, GET_RECENT_MARKETS, GET_RECENT_TRADES, GET_TOP_OF_BOOK, GET_TRADER_CLOSED_POSITIONS, GET_TRADER_FILLS, GET_TRADER_POSITIONS, GET_TRADER_PROFILE, GET_TRADES, GET_UNIFIED_MARKET_FEED, GET_UNIFIED_MARKET_FEED_BY_VOLUME, GET_USER, GET_VENUES, LimitOrdersFacet as LimitOrdersFacetABI, MarketGroupFacet as MarketGroupFacetABI, type MarketMetadata, MarketModule, MarketOrdersFacet as MarketOrdersFacetABI, type MarketQuestion, type MarketStatus, MarketsFacet as MarketsFacetABI, MatchingFacet as MatchingFacetABI, MetadataFacet as MetadataFacetABI, NegRiskFacet as NegRiskFacetABI, OddMakiClient, type OddMakiClientConfig, type OddMakiConfig, OrderBookFacet as OrderBookFacetABI, PROTOCOL_FEES, type PriceMarketData, PriceMarketFacet as PriceMarketFacetABI, PriceMarketModule, type ProjectedOpenPrice, ProtocolFacet as ProtocolFacetABI, PublicModule, PythResolutionFacet as PythResolutionFacetABI, type PythUpdate, ResolutionFacet as ResolutionFacetABI, SUBGRAPH_IDS, SubgraphClient, type SubgraphMarketPriceData, TICK_SIZE_FINE, TICK_SIZE_STANDARD, TagsFacet as TagsFacetABI, TokenModule, type TopOfBookEntry, TradeModule, UMA_DEFAULTS, UmaModule, UmaOracle as UmaOracleABI, VALID_TICK_SIZES, VaultFacet as VaultFacetABI, VenueFacet as VenueFacetABI, type VenueMetadata, VenueModule, WhitelistAccessControl as WhitelistAccessControlABI, buildSubgraphGatewayUrl, calculateChancePercent, clearDecimalsCache, createExpiry, createOddMakiClient, formatAmount, formatAncillaryData, formatTimestamp, getCachedTokenDecimals, getOutcomePrice, getTokenDecimals, isValidTickSize, parseAmount, parseAncillaryData, parseMetadata, parseTokenAmount, priceToTick, resolveIPFSUri, tickToPercentage, tickToPrice, version };