@polymarket/clob-client 4.0.0 → 4.0.2

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/config.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare type ContractConfig = {
1
+ type ContractConfig = {
2
2
  exchange: string;
3
3
  negRiskAdapter: string;
4
4
  negRiskExchange: string;
package/dist/config.js CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CONDITIONAL_TOKEN_DECIMALS = exports.COLLATERAL_TOKEN_DECIMALS = exports.getContractConfig = void 0;
4
4
  const MUMBAI_CONTRACTS = {
5
5
  exchange: "0x4bFb41d5B3570DeFd03C39a9A4D8dE6Bd8B8982E",
6
- negRiskAdapter: "0xd91E80cF2E7be2e162c6513ceD06f1dD0dA35296",
7
- negRiskExchange: "0xC5d563A36AE78145C45a50134d48A1215220f80a",
6
+ negRiskAdapter: "0x9A6930BB811fe3dFE1c35e4502134B38EC54399C",
7
+ negRiskExchange: "0x87d1A0DdB4C63a6301916F02090A51a7241571e4",
8
8
  collateral: "0x2E8DCfE708D44ae2e406a1c02DFE2Fa13012f961",
9
9
  conditionalTokens: "0x7D8610E9567d2a6C9FBf66a5A13E9Ba8bb120d43",
10
10
  };
@@ -5,7 +5,7 @@ export declare const POST = "POST";
5
5
  export declare const DELETE = "DELETE";
6
6
  export declare const PUT = "PUT";
7
7
  export declare const request: (endpoint: string, method: Method, headers?: any, data?: any, params?: any) => Promise<any>;
8
- export declare type QueryParams = Record<string, any>;
8
+ export type QueryParams = Record<string, any>;
9
9
  export interface RequestOptions {
10
10
  headers?: AxiosRequestHeaders;
11
11
  data?: any;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./client";
2
2
  export * from "./types";
3
3
  export * from "./order-builder";
4
+ export * from "./config";
package/dist/index.js CHANGED
@@ -4,4 +4,5 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./client"), exports);
5
5
  tslib_1.__exportStar(require("./types"), exports);
6
6
  tslib_1.__exportStar(require("./order-builder"), exports);
7
+ tslib_1.__exportStar(require("./config"), exports);
7
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB;AACxB,0DAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,kDAAwB;AACxB,0DAAgC;AAChC,mDAAyB"}
package/dist/types.d.ts CHANGED
@@ -151,7 +151,7 @@ export interface OpenOrder {
151
151
  expiration: string;
152
152
  type: string;
153
153
  }
154
- export declare type OpenOrdersResponse = OpenOrder[];
154
+ export type OpenOrdersResponse = OpenOrder[];
155
155
  export interface FilterParams {
156
156
  owner?: string;
157
157
  max?: number;
@@ -276,14 +276,14 @@ export interface OrderScoring {
276
276
  export interface OrdersScoringParams {
277
277
  orderIds: string[];
278
278
  }
279
- export declare type OrdersScoring = {
279
+ export type OrdersScoring = {
280
280
  [orderId in string]: boolean;
281
281
  };
282
- export declare type CreateOrderOptions = {
282
+ export type CreateOrderOptions = {
283
283
  tickSize: TickSize;
284
284
  negRisk?: boolean;
285
285
  };
286
- export declare type TickSize = "0.1" | "0.01" | "0.001" | "0.0001";
286
+ export type TickSize = "0.1" | "0.01" | "0.001" | "0.0001";
287
287
  export interface RoundConfig {
288
288
  readonly price: number;
289
289
  readonly size: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@polymarket/clob-client",
3
3
  "description": "Typescript client for Polymarket's CLOB",
4
- "version": "4.0.0",
4
+ "version": "4.0.2",
5
5
  "contributors": [
6
6
  {
7
7
  "name": "Jonathan Amenechi",