@polymarket/bindings 0.1.0-beta.7 → 0.1.0-beta.9

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.
@@ -1,99 +0,0 @@
1
- import { EvmAddress, PrivateKey, TxHash } from '@polymarket/types';
2
- import { z } from 'zod';
3
- import { DecimalString, BaseUnits } from './index.js';
4
-
5
- type Tagged<T, Tag extends string> = T & {
6
- readonly __tag: Tag;
7
- };
8
- type PerpsInstrumentId = Tagged<number, 'PerpsInstrumentId'>;
9
- type PerpsOrderId = Tagged<number, 'PerpsOrderId'>;
10
- type PerpsClientOrderId = Tagged<string, 'PerpsClientOrderId'>;
11
- type PerpsTradeId = Tagged<number, 'PerpsTradeId'>;
12
- type PerpsWithdrawalId = Tagged<number, 'PerpsWithdrawalId'>;
13
- type PerpsInternalTransferId = Tagged<number, 'PerpsInternalTransferId'>;
14
- declare const PerpsInstrumentIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInstrumentId, number>>;
15
- declare const PerpsOrderIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsOrderId, number>>;
16
- declare const PerpsClientOrderIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsClientOrderId, string>>;
17
- declare const PerpsTradeIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsTradeId, number>>;
18
- declare const PerpsWithdrawalIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsWithdrawalId, number>>;
19
- declare const PerpsInternalTransferIdSchema: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
20
- declare const PerpsDecimalInputSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<DecimalString, number>>]>;
21
- type PerpsDecimalInput = z.input<typeof PerpsDecimalInputSchema>;
22
- declare enum PerpsInstrumentType {
23
- Perpetual = "perpetual"
24
- }
25
- declare enum PerpsInstrumentCategory {
26
- Equity = "equity",
27
- Commodity = "commodity",
28
- Index = "index",
29
- Crypto = "crypto"
30
- }
31
- declare enum PerpsSide {
32
- Long = "long",
33
- Short = "short"
34
- }
35
- declare enum PerpsTimeInForce {
36
- Gtc = "gtc",
37
- Ioc = "ioc",
38
- Fok = "fok"
39
- }
40
- declare enum PerpsDepositStatus {
41
- Pending = "pending",
42
- Confirmed = "confirmed",
43
- Removed = "removed"
44
- }
45
- declare enum PerpsWithdrawalStatus {
46
- Pending = "pending",
47
- Confirmed = "confirmed",
48
- Removed = "removed"
49
- }
50
- declare enum PerpsInternalTransferDirection {
51
- In = "in",
52
- Out = "out"
53
- }
54
- declare enum PerpsKlineInterval {
55
- OneSecond = "1s",
56
- OneMinute = "1m",
57
- FiveMinutes = "5m",
58
- FifteenMinutes = "15m",
59
- OneHour = "1h",
60
- FourHours = "4h",
61
- OneDay = "1d",
62
- OneWeek = "1w"
63
- }
64
- declare enum PerpsPnlInterval {
65
- OneHour = "1h",
66
- FourHours = "4h",
67
- OneDay = "1d",
68
- OneWeek = "1w"
69
- }
70
- declare const PerpsInstrumentTypeSchema: z.ZodEnum<typeof PerpsInstrumentType>;
71
- declare const PerpsInstrumentCategorySchema: z.ZodEnum<typeof PerpsInstrumentCategory>;
72
- declare const PerpsSideSchema: z.ZodEnum<typeof PerpsSide>;
73
- declare const PerpsTimeInForceSchema: z.ZodEnum<typeof PerpsTimeInForce>;
74
- declare const PerpsDepositStatusSchema: z.ZodEnum<typeof PerpsDepositStatus>;
75
- declare const PerpsWithdrawalStatusSchema: z.ZodEnum<typeof PerpsWithdrawalStatus>;
76
- declare const PerpsInternalTransferDirectionSchema: z.ZodEnum<typeof PerpsInternalTransferDirection>;
77
- declare const PerpsKlineIntervalSchema: z.ZodEnum<typeof PerpsKlineInterval>;
78
- declare const PerpsPnlIntervalSchema: z.ZodEnum<typeof PerpsPnlInterval>;
79
- declare const PerpsAssetSchema: z.ZodString;
80
- declare const RawPerpsTxHashSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<TxHash, string>>>>;
81
- declare const PerpsDataResponseSchema: <T extends z.ZodType>(itemSchema: T) => z.ZodObject<{
82
- data: z.ZodArray<T>;
83
- more: z.ZodBoolean;
84
- }, z.core.$strip>;
85
- type PerpsCredentials = {
86
- proxy: EvmAddress;
87
- privateKey: PrivateKey;
88
- secret: string;
89
- expiresAt: number;
90
- };
91
- type PerpsDepositAmount = BaseUnits;
92
- type PerpsWithdrawalAmount = BaseUnits;
93
- type PerpsTxHash = TxHash;
94
- type PerpsDecimal = DecimalString;
95
- declare function perpsDecimal(value: string | number): DecimalString;
96
- declare function perpsBaseUnits(value: string): BaseUnits;
97
- declare function decimalString(value: string): DecimalString;
98
-
99
- export { PerpsKlineInterval as A, PerpsKlineIntervalSchema as B, PerpsOrderIdSchema as C, PerpsPnlInterval as D, PerpsPnlIntervalSchema as E, PerpsSideSchema as F, PerpsTimeInForceSchema as G, PerpsTradeIdSchema as H, type PerpsTxHash as I, type PerpsWithdrawalAmount as J, PerpsWithdrawalIdSchema as K, PerpsWithdrawalStatusSchema as L, decimalString as M, perpsBaseUnits as N, perpsDecimal as O, type PerpsInstrumentId as P, RawPerpsTxHashSchema as R, PerpsDepositStatus as a, type PerpsWithdrawalId as b, PerpsWithdrawalStatus as c, type PerpsInternalTransferId as d, PerpsInternalTransferDirection as e, PerpsInstrumentType as f, PerpsInstrumentCategory as g, type PerpsTradeId as h, PerpsSide as i, type PerpsOrderId as j, PerpsTimeInForce as k, type PerpsClientOrderId as l, PerpsAssetSchema as m, PerpsClientOrderIdSchema as n, type PerpsCredentials as o, PerpsDataResponseSchema as p, type PerpsDecimal as q, type PerpsDecimalInput as r, PerpsDecimalInputSchema as s, type PerpsDepositAmount as t, PerpsDepositStatusSchema as u, PerpsInstrumentCategorySchema as v, PerpsInstrumentIdSchema as w, PerpsInstrumentTypeSchema as x, PerpsInternalTransferDirectionSchema as y, PerpsInternalTransferIdSchema as z };