@dimes-dot-fi/sdk 1.4.0 → 1.4.1
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/{aliases-C-B9O2AE.d.cts → aliases-Dtl19fcM.d.cts} +5 -0
- package/dist/{aliases-C-B9O2AE.d.ts → aliases-Dtl19fcM.d.ts} +5 -0
- package/dist/contract/index.d.cts +3 -3
- package/dist/contract/index.d.ts +3 -3
- package/dist/{dimes-client-B0w_Ppd9.d.cts → dimes-client-Bd7DE-tr.d.cts} +1 -1
- package/dist/{dimes-client-uKVU4nq_.d.ts → dimes-client-DsRQSCTw.d.ts} +1 -1
- package/dist/{dimes-error-y7fP6jqH.d.ts → dimes-error-B46ZbXNX.d.ts} +1 -1
- package/dist/{dimes-error-C7MRTq2N.d.cts → dimes-error-DNcs8hsc.d.cts} +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/{quote-skfPSk-e.d.ts → quote-BMw6RUjG.d.ts} +2 -2
- package/dist/{quote-JAvWCzWa.d.cts → quote-IRF_hecL.d.cts} +2 -2
- package/dist/react/index.d.cts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/{types-BSBGUKeJ.d.ts → types-Ct7tufPh.d.ts} +1 -1
- package/dist/{types-opXc4MmU.d.cts → types-DTgaOUUw.d.cts} +1 -1
- package/dist/ws/index.d.cts +3 -3
- package/dist/ws/index.d.ts +3 -3
- package/package.json +2 -2
|
@@ -291,6 +291,11 @@ interface components {
|
|
|
291
291
|
* @example 2025-01-20T12:00:00.000Z
|
|
292
292
|
*/
|
|
293
293
|
close_time?: string;
|
|
294
|
+
/**
|
|
295
|
+
* @description ISO 8601 timestamp when this market was first discovered and listed on the platform
|
|
296
|
+
* @example 2025-01-10T08:00:00.000Z
|
|
297
|
+
*/
|
|
298
|
+
discovered_at: string;
|
|
294
299
|
/**
|
|
295
300
|
* @description ISO 8601 timestamp of the latest time a new position can be opened in this market
|
|
296
301
|
* @example 2025-01-20T11:30:00.000Z
|
|
@@ -291,6 +291,11 @@ interface components {
|
|
|
291
291
|
* @example 2025-01-20T12:00:00.000Z
|
|
292
292
|
*/
|
|
293
293
|
close_time?: string;
|
|
294
|
+
/**
|
|
295
|
+
* @description ISO 8601 timestamp when this market was first discovered and listed on the platform
|
|
296
|
+
* @example 2025-01-10T08:00:00.000Z
|
|
297
|
+
*/
|
|
298
|
+
discovered_at: string;
|
|
294
299
|
/**
|
|
295
300
|
* @description ISO 8601 timestamp of the latest time a new position can be opened in this market
|
|
296
301
|
* @example 2025-01-20T11:30:00.000Z
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Abi, Address, Hex } from 'viem';
|
|
2
2
|
export { Address, Hex } from 'viem';
|
|
3
|
-
import { O as Offer } from '../aliases-
|
|
4
|
-
import { D as DimesClient } from '../dimes-client-
|
|
5
|
-
import { a as DimesContractError } from '../dimes-error-
|
|
3
|
+
import { O as Offer } from '../aliases-Dtl19fcM.cjs';
|
|
4
|
+
import { D as DimesClient } from '../dimes-client-Bd7DE-tr.cjs';
|
|
5
|
+
import { a as DimesContractError } from '../dimes-error-DNcs8hsc.cjs';
|
|
6
6
|
|
|
7
7
|
declare const vaultAbi: Abi;
|
|
8
8
|
declare const erc20Abi: readonly [{
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Abi, Address, Hex } from 'viem';
|
|
2
2
|
export { Address, Hex } from 'viem';
|
|
3
|
-
import { O as Offer } from '../aliases-
|
|
4
|
-
import { D as DimesClient } from '../dimes-client-
|
|
5
|
-
import { a as DimesContractError } from '../dimes-error-
|
|
3
|
+
import { O as Offer } from '../aliases-Dtl19fcM.js';
|
|
4
|
+
import { D as DimesClient } from '../dimes-client-DsRQSCTw.js';
|
|
5
|
+
import { a as DimesContractError } from '../dimes-error-B46ZbXNX.js';
|
|
6
6
|
|
|
7
7
|
declare const vaultAbi: Abi;
|
|
8
8
|
declare const erc20Abi: readonly [{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, C as CreateOfferParams, O as Offer, P as Position, A as PositionTransactions, c as ContractInfo, e as CustomerLimit } from './aliases-
|
|
1
|
+
import { M as Market, C as CreateOfferParams, O as Offer, P as Position, A as PositionTransactions, c as ContractInfo, e as CustomerLimit } from './aliases-Dtl19fcM.cjs';
|
|
2
2
|
|
|
3
3
|
declare const marketMovedCodes: Set<string>;
|
|
4
4
|
type QuoteHint = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as Market, C as CreateOfferParams, O as Offer, P as Position, A as PositionTransactions, c as ContractInfo, e as CustomerLimit } from './aliases-
|
|
1
|
+
import { M as Market, C as CreateOfferParams, O as Offer, P as Position, A as PositionTransactions, c as ContractInfo, e as CustomerLimit } from './aliases-Dtl19fcM.js';
|
|
2
2
|
|
|
3
3
|
declare const marketMovedCodes: Set<string>;
|
|
4
4
|
type QuoteHint = {
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as ApiKeyAuth, a as ApiKeyAuthOptions, b as AuthProvider, C as CorrectedField, D as DimesClient, c as DimesClientOptions, G as GetMarketsParams, d as GetPositionsParams, H as HintAdjustment, J as JwtAuth, e as JwtAuthOptions, M as MarketSort, P as Paginated, Q as QuoteHint, h as hintAdjustment, m as marketMovedCodes, q as quoteErrorHint } from './dimes-client-
|
|
2
|
-
export { D as DimesApiError, a as DimesContractError, b as DimesError } from './dimes-error-
|
|
3
|
-
import { C as CreateOfferParams, O as Offer, M as Market, P as Position } from './aliases-
|
|
4
|
-
export { a as CamelizeKeys, b as ClosedPosition, c as ContractInfo, d as CreateTokenResult, e as CustomerLimit, f as MarketFees, g as MarketLeverage, h as MarketMaxLeveragePerNotional, i as MarketPrices, j as MarketSidedEligibility, k as MarketSidedMaxLeveragePerNotional, l as OpenPosition, m as OriginationTier, n as PositionClosedFees, o as PositionCurrent, p as PositionEntry, q as PositionFailure, r as PositionOpenFees, s as PositionResult, t as PositionRisk, u as PositionTiming, v as PositionUnwind, w as PositionUnwindList, x as isClosedPosition, y as isOpenPosition, z as leverageMaxBps } from './aliases-
|
|
5
|
-
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from './quote-
|
|
6
|
-
export { M as MarketMovedEvent, S as Side } from './quote-
|
|
7
|
-
export { P as PositionEvent, a as PositionEventType, p as positionEventTypes } from './types-
|
|
1
|
+
export { A as ApiKeyAuth, a as ApiKeyAuthOptions, b as AuthProvider, C as CorrectedField, D as DimesClient, c as DimesClientOptions, G as GetMarketsParams, d as GetPositionsParams, H as HintAdjustment, J as JwtAuth, e as JwtAuthOptions, M as MarketSort, P as Paginated, Q as QuoteHint, h as hintAdjustment, m as marketMovedCodes, q as quoteErrorHint } from './dimes-client-Bd7DE-tr.cjs';
|
|
2
|
+
export { D as DimesApiError, a as DimesContractError, b as DimesError } from './dimes-error-DNcs8hsc.cjs';
|
|
3
|
+
import { C as CreateOfferParams, O as Offer, M as Market, P as Position } from './aliases-Dtl19fcM.cjs';
|
|
4
|
+
export { a as CamelizeKeys, b as ClosedPosition, c as ContractInfo, d as CreateTokenResult, e as CustomerLimit, f as MarketFees, g as MarketLeverage, h as MarketMaxLeveragePerNotional, i as MarketPrices, j as MarketSidedEligibility, k as MarketSidedMaxLeveragePerNotional, l as OpenPosition, m as OriginationTier, n as PositionClosedFees, o as PositionCurrent, p as PositionEntry, q as PositionFailure, r as PositionOpenFees, s as PositionResult, t as PositionRisk, u as PositionTiming, v as PositionUnwind, w as PositionUnwindList, x as isClosedPosition, y as isOpenPosition, z as leverageMaxBps } from './aliases-Dtl19fcM.cjs';
|
|
5
|
+
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from './quote-IRF_hecL.cjs';
|
|
6
|
+
export { M as MarketMovedEvent, S as Side } from './quote-IRF_hecL.cjs';
|
|
7
|
+
export { P as PositionEvent, a as PositionEventType, p as positionEventTypes } from './types-DTgaOUUw.cjs';
|
|
8
8
|
|
|
9
9
|
type Params = Record<string, unknown> | null;
|
|
10
10
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { A as ApiKeyAuth, a as ApiKeyAuthOptions, b as AuthProvider, C as CorrectedField, D as DimesClient, c as DimesClientOptions, G as GetMarketsParams, d as GetPositionsParams, H as HintAdjustment, J as JwtAuth, e as JwtAuthOptions, M as MarketSort, P as Paginated, Q as QuoteHint, h as hintAdjustment, m as marketMovedCodes, q as quoteErrorHint } from './dimes-client-
|
|
2
|
-
export { D as DimesApiError, a as DimesContractError, b as DimesError } from './dimes-error-
|
|
3
|
-
import { C as CreateOfferParams, O as Offer, M as Market, P as Position } from './aliases-
|
|
4
|
-
export { a as CamelizeKeys, b as ClosedPosition, c as ContractInfo, d as CreateTokenResult, e as CustomerLimit, f as MarketFees, g as MarketLeverage, h as MarketMaxLeveragePerNotional, i as MarketPrices, j as MarketSidedEligibility, k as MarketSidedMaxLeveragePerNotional, l as OpenPosition, m as OriginationTier, n as PositionClosedFees, o as PositionCurrent, p as PositionEntry, q as PositionFailure, r as PositionOpenFees, s as PositionResult, t as PositionRisk, u as PositionTiming, v as PositionUnwind, w as PositionUnwindList, x as isClosedPosition, y as isOpenPosition, z as leverageMaxBps } from './aliases-
|
|
5
|
-
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from './quote-
|
|
6
|
-
export { M as MarketMovedEvent, S as Side } from './quote-
|
|
7
|
-
export { P as PositionEvent, a as PositionEventType, p as positionEventTypes } from './types-
|
|
1
|
+
export { A as ApiKeyAuth, a as ApiKeyAuthOptions, b as AuthProvider, C as CorrectedField, D as DimesClient, c as DimesClientOptions, G as GetMarketsParams, d as GetPositionsParams, H as HintAdjustment, J as JwtAuth, e as JwtAuthOptions, M as MarketSort, P as Paginated, Q as QuoteHint, h as hintAdjustment, m as marketMovedCodes, q as quoteErrorHint } from './dimes-client-DsRQSCTw.js';
|
|
2
|
+
export { D as DimesApiError, a as DimesContractError, b as DimesError } from './dimes-error-B46ZbXNX.js';
|
|
3
|
+
import { C as CreateOfferParams, O as Offer, M as Market, P as Position } from './aliases-Dtl19fcM.js';
|
|
4
|
+
export { a as CamelizeKeys, b as ClosedPosition, c as ContractInfo, d as CreateTokenResult, e as CustomerLimit, f as MarketFees, g as MarketLeverage, h as MarketMaxLeveragePerNotional, i as MarketPrices, j as MarketSidedEligibility, k as MarketSidedMaxLeveragePerNotional, l as OpenPosition, m as OriginationTier, n as PositionClosedFees, o as PositionCurrent, p as PositionEntry, q as PositionFailure, r as PositionOpenFees, s as PositionResult, t as PositionRisk, u as PositionTiming, v as PositionUnwind, w as PositionUnwindList, x as isClosedPosition, y as isOpenPosition, z as leverageMaxBps } from './aliases-Dtl19fcM.js';
|
|
5
|
+
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from './quote-BMw6RUjG.js';
|
|
6
|
+
export { M as MarketMovedEvent, S as Side } from './quote-BMw6RUjG.js';
|
|
7
|
+
export { P as PositionEvent, a as PositionEventType, p as positionEventTypes } from './types-Ct7tufPh.js';
|
|
8
8
|
|
|
9
9
|
type Params = Record<string, unknown> | null;
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HintAdjustment } from './dimes-client-
|
|
2
|
-
import { O as Offer } from './aliases-
|
|
1
|
+
import { H as HintAdjustment } from './dimes-client-DsRQSCTw.js';
|
|
2
|
+
import { O as Offer } from './aliases-Dtl19fcM.js';
|
|
3
3
|
|
|
4
4
|
type Side = "yes" | "no";
|
|
5
5
|
interface QuoteParams {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { H as HintAdjustment } from './dimes-client-
|
|
2
|
-
import { O as Offer } from './aliases-
|
|
1
|
+
import { H as HintAdjustment } from './dimes-client-Bd7DE-tr.cjs';
|
|
2
|
+
import { O as Offer } from './aliases-Dtl19fcM.cjs';
|
|
3
3
|
|
|
4
4
|
type Side = "yes" | "no";
|
|
5
5
|
interface QuoteParams {
|
package/dist/react/index.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { D as DimesClient, H as HintAdjustment, G as GetMarketsParams, P as Paginated, d as GetPositionsParams } from '../dimes-client-
|
|
4
|
-
import { O as Offer, M as Market, P as Position, c as ContractInfo, e as CustomerLimit } from '../aliases-
|
|
5
|
-
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from '../quote-
|
|
3
|
+
import { D as DimesClient, H as HintAdjustment, G as GetMarketsParams, P as Paginated, d as GetPositionsParams } from '../dimes-client-Bd7DE-tr.cjs';
|
|
4
|
+
import { O as Offer, M as Market, P as Position, c as ContractInfo, e as CustomerLimit } from '../aliases-Dtl19fcM.cjs';
|
|
5
|
+
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from '../quote-IRF_hecL.cjs';
|
|
6
6
|
import { UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
7
|
|
|
8
8
|
interface DimesProviderProps {
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { D as DimesClient, H as HintAdjustment, G as GetMarketsParams, P as Paginated, d as GetPositionsParams } from '../dimes-client-
|
|
4
|
-
import { O as Offer, M as Market, P as Position, c as ContractInfo, e as CustomerLimit } from '../aliases-
|
|
5
|
-
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from '../quote-
|
|
3
|
+
import { D as DimesClient, H as HintAdjustment, G as GetMarketsParams, P as Paginated, d as GetPositionsParams } from '../dimes-client-DsRQSCTw.js';
|
|
4
|
+
import { O as Offer, M as Market, P as Position, c as ContractInfo, e as CustomerLimit } from '../aliases-Dtl19fcM.js';
|
|
5
|
+
import { Q as QuoteParams, a as QuoteOptions, b as QuoteResult } from '../quote-BMw6RUjG.js';
|
|
6
6
|
import { UseQueryOptions, UseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
7
7
|
|
|
8
8
|
interface DimesProviderProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Position, M as Market, B as MarketPolymarket, g as MarketLeverage } from './aliases-
|
|
1
|
+
import { P as Position, M as Market, B as MarketPolymarket, g as MarketLeverage } from './aliases-Dtl19fcM.js';
|
|
2
2
|
|
|
3
3
|
declare const positionEventTypes: readonly ["position.cancelled", "position.close_requested", "position.closed", "position.created", "position.force_unwound", "position.liquidated", "position.opened", "position.opening", "position.reverted", "position.settled"];
|
|
4
4
|
type PositionEventType = (typeof positionEventTypes)[number];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Position, M as Market, B as MarketPolymarket, g as MarketLeverage } from './aliases-
|
|
1
|
+
import { P as Position, M as Market, B as MarketPolymarket, g as MarketLeverage } from './aliases-Dtl19fcM.cjs';
|
|
2
2
|
|
|
3
3
|
declare const positionEventTypes: readonly ["position.cancelled", "position.close_requested", "position.closed", "position.created", "position.force_unwound", "position.liquidated", "position.opened", "position.opening", "position.reverted", "position.settled"];
|
|
4
4
|
type PositionEventType = (typeof positionEventTypes)[number];
|
package/dist/ws/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as PositionEventType, P as PositionEvent, N as NotificationEvent, M as MarketEventType, b as MarketEvent } from '../types-
|
|
2
|
-
export { c as MarketDelta, d as MarketEventEnvelope, e as NotificationCode, f as NotificationEventEnvelope, g as PositionEventEnvelope, m as marketEventTypes, n as notificationCodes, p as positionEventTypes } from '../types-
|
|
3
|
-
import '../aliases-
|
|
1
|
+
import { a as PositionEventType, P as PositionEvent, N as NotificationEvent, M as MarketEventType, b as MarketEvent } from '../types-DTgaOUUw.cjs';
|
|
2
|
+
export { c as MarketDelta, d as MarketEventEnvelope, e as NotificationCode, f as NotificationEventEnvelope, g as PositionEventEnvelope, m as marketEventTypes, n as notificationCodes, p as positionEventTypes } from '../types-DTgaOUUw.cjs';
|
|
3
|
+
import '../aliases-Dtl19fcM.cjs';
|
|
4
4
|
|
|
5
5
|
interface PositionSocketOptions {
|
|
6
6
|
baseUrl?: string;
|
package/dist/ws/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as PositionEventType, P as PositionEvent, N as NotificationEvent, M as MarketEventType, b as MarketEvent } from '../types-
|
|
2
|
-
export { c as MarketDelta, d as MarketEventEnvelope, e as NotificationCode, f as NotificationEventEnvelope, g as PositionEventEnvelope, m as marketEventTypes, n as notificationCodes, p as positionEventTypes } from '../types-
|
|
3
|
-
import '../aliases-
|
|
1
|
+
import { a as PositionEventType, P as PositionEvent, N as NotificationEvent, M as MarketEventType, b as MarketEvent } from '../types-Ct7tufPh.js';
|
|
2
|
+
export { c as MarketDelta, d as MarketEventEnvelope, e as NotificationCode, f as NotificationEventEnvelope, g as PositionEventEnvelope, m as marketEventTypes, n as notificationCodes, p as positionEventTypes } from '../types-Ct7tufPh.js';
|
|
3
|
+
import '../aliases-Dtl19fcM.js';
|
|
4
4
|
|
|
5
5
|
interface PositionSocketOptions {
|
|
6
6
|
baseUrl?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dimes-dot-fi/sdk",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "TypeScript SDK for the Dimes prediction market API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"format": "prettier --write src tests scripts",
|
|
62
62
|
"format:check": "prettier --check src tests scripts",
|
|
63
63
|
"knip": "knip",
|
|
64
|
-
"prepublishOnly": "pnpm lint && pnpm typecheck && pnpm test && pnpm build",
|
|
64
|
+
"prepublishOnly": "pnpm lint:fix && pnpm typecheck && pnpm test && pnpm build",
|
|
65
65
|
"release": "pnpm version patch && npm publish --access public",
|
|
66
66
|
"release:minor": "pnpm version minor && npm publish --access public",
|
|
67
67
|
"release:major": "pnpm version major && npm publish --access public"
|