@polymarket/bindings 0.1.0 → 0.2.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.js CHANGED
@@ -1,2 +1,2 @@
1
- export{T as ApiKeySchema,Ma as BaseUnitsSchema,U as BuilderCodeSchema,S as CategoryIdSchema,V as ClobRewardIdSchema,X as ComboActivityIdSchema,Y as ComboConditionIdSchema,W as CommentIdSchema,a as CommentParentEntityType,ta as CommentParentEntityTypeSchema,Z as CtfConditionIdSchema,da as DateLikeToIsoDateTimeStringSchema,Ia as DecimalStringSchema,Ka as DecimalishSchema,Ja as E6BigIntStringToDecimalStringSchema,ea as EpochLikeToIsoDateTimeStringSchema,aa as EpochMillisecondsSchema,ca as EpochMillisecondsStringSchema,ga as EpochMillisecondsToIsoDateTimeStringSchema,ba as EpochSecondsToMillisecondsSchema,ia as EventIdSchema,$ as EvmAddressSchema,oa as ISOCalendarDateSchema,na as ISODateStringSchema,pa as ImageOptimizationIdSchema,qa as InternalUserIdSchema,la as IsoCalendarDateStringSchema,ka as IsoDateTimeStringSchema,ra as MarketIdSchema,ma as MixedDateTimeStringSchema,sa as NotificationIdSchema,_ as OptionalCtfConditionIdSchema,fa as OptionalDateLikeToIsoDateTimeStringSchema,Oa as OptionalDecimalStringSchema,ha as OptionalEpochMillisecondsToIsoDateTimeStringSchema,ua as OrderIdSchema,b as OrderSide,va as OrderSideSchema,c as OrderType,wa as OrderTypeSchema,xa as PaginationCursorSchema,ya as PositionIdSchema,La as PositiveDecimalNumberSchema,za as QuestionIdSchema,Aa as ResolutionRequestIdSchema,Ba as RfqIdSchema,Ca as RfqQuoteIdSchema,Da as RfqRequestorPublicIdSchema,Ea as TagIdSchema,ja as TickSizeValueSchema,Fa as TokenIdSchema,Ga as TransactionIdSchema,Ha as TxHashSchema,Na as emptyStringToNull,g as toApiKey,R as toBaseUnits,d as toBestLineId,e as toBuilderCode,h as toCategoryId,i as toChatId,j as toClobRewardId,o as toCollectionId,l as toComboActivityId,n as toComboConditionId,k as toCommentId,m as toCtfConditionId,Q as toDecimalString,r as toEpochMilliseconds,p as toEventCreatorId,q as toEventExternalPartnerMappingId,s as toEventId,t as toImageOptimizationId,u as toInternalUserId,v as toIsoCalendarDateString,w as toIsoDateTimeString,y as toMarketId,x as toMixedDateTimeString,z as toNotificationId,A as toOrderId,C as toPaginationCursor,B as toPartnerId,D as toPositionId,E as toQuestionId,F as toResolutionRequestId,G as toRfqId,H as toRfqQuoteId,I as toRfqRequestorPublicId,J as toSeriesId,K as toSportId,L as toTagId,M as toTeamId,N as toTemplateId,P as toTokenId,O as toTransactionId,f as toUuid}from'./chunk-D6QJEBYH.js';//# sourceMappingURL=index.js.map
1
+ export{U as ApiKeySchema,Oa as BaseUnitsSchema,V as BuilderCodeSchema,T as CategoryIdSchema,W as ClobRewardIdSchema,Y as ComboActivityIdSchema,Z as ComboConditionIdSchema,X as CommentIdSchema,a as CommentParentEntityType,ua as CommentParentEntityTypeSchema,_ as CtfConditionIdSchema,ea as DateLikeToIsoDateTimeStringSchema,Ka as DecimalStringSchema,Ma as DecimalishSchema,La as E6BigIntStringToDecimalStringSchema,fa as EpochLikeToIsoDateTimeStringSchema,ba as EpochMillisecondsSchema,da as EpochMillisecondsStringSchema,ha as EpochMillisecondsToIsoDateTimeStringSchema,ca as EpochSecondsToMillisecondsSchema,ja as EventIdSchema,aa as EvmAddressSchema,pa as ISOCalendarDateSchema,oa as ISODateStringSchema,qa as ImageOptimizationIdSchema,ra as InternalUserIdSchema,ma as IsoCalendarDateStringSchema,la as IsoDateTimeStringSchema,sa as MarketIdSchema,na as MixedDateTimeStringSchema,ta as NotificationIdSchema,$ as OptionalCtfConditionIdSchema,ga as OptionalDateLikeToIsoDateTimeStringSchema,Qa as OptionalDecimalStringSchema,ia as OptionalEpochMillisecondsToIsoDateTimeStringSchema,va as OrderIdSchema,b as OrderSide,wa as OrderSideSchema,c as OrderType,xa as OrderTypeSchema,za as PaginationCursorSchema,Aa as PositionIdSchema,Na as PositiveDecimalNumberSchema,Ba as QuestionIdSchema,Ca as ResolutionRequestIdSchema,Da as RfqIdSchema,Ea as RfqQuoteIdSchema,Fa as RfqRequestorPublicIdSchema,Ga as TagIdSchema,ka as TickSizeValueSchema,Ha as TokenIdSchema,d as TradeStatus,ya as TradeStatusSchema,Ia as TransactionIdSchema,Ja as TxHashSchema,Pa as emptyStringToNull,h as toApiKey,S as toBaseUnits,e as toBestLineId,f as toBuilderCode,i as toCategoryId,j as toChatId,k as toClobRewardId,p as toCollectionId,m as toComboActivityId,o as toComboConditionId,l as toCommentId,n as toCtfConditionId,R as toDecimalString,s as toEpochMilliseconds,q as toEventCreatorId,r as toEventExternalPartnerMappingId,t as toEventId,u as toImageOptimizationId,v as toInternalUserId,w as toIsoCalendarDateString,x as toIsoDateTimeString,z as toMarketId,y as toMixedDateTimeString,A as toNotificationId,B as toOrderId,D as toPaginationCursor,C as toPartnerId,E as toPositionId,F as toQuestionId,G as toResolutionRequestId,H as toRfqId,I as toRfqQuoteId,J as toRfqRequestorPublicId,K as toSeriesId,L as toSportId,M as toTagId,N as toTeamId,O as toTemplateId,Q as toTokenId,P as toTransactionId,g as toUuid}from'./chunk-QTXFNR2Y.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -131,13 +131,29 @@ declare enum PerpsDepositStatus {
131
131
  Removed = "removed"
132
132
  }
133
133
  /**
134
+ * Known withdrawal statuses.
135
+ *
136
+ * The service evolves this set independently of released clients, so
137
+ * withdrawal parsing accepts unknown statuses as plain strings; see
138
+ * {@link PerpsWithdrawalStatus}.
139
+ *
134
140
  * @experimental This API may change in a breaking way in any release, including patch releases.
135
141
  */
136
- declare enum PerpsWithdrawalStatus {
142
+ declare enum PerpsKnownWithdrawalStatus {
137
143
  Pending = "pending",
138
144
  Confirmed = "confirmed",
139
- Removed = "removed"
145
+ Removed = "removed",
146
+ Failed = "failed"
140
147
  }
148
+ /**
149
+ * A withdrawal status. Known statuses are enumerated in
150
+ * {@link PerpsKnownWithdrawalStatus}; newly introduced statuses flow through
151
+ * as plain strings so they can be handled before a client release that
152
+ * enumerates them.
153
+ *
154
+ * @experimental This API may change in a breaking way in any release, including patch releases.
155
+ */
156
+ type PerpsWithdrawalStatus = PerpsKnownWithdrawalStatus | (string & {});
141
157
  /**
142
158
  * @experimental This API may change in a breaking way in any release, including patch releases.
143
159
  */
@@ -198,7 +214,7 @@ declare const PerpsDepositStatusSchema: z.ZodEnum<typeof PerpsDepositStatus>;
198
214
  /**
199
215
  * @experimental This API may change in a breaking way in any release, including patch releases.
200
216
  */
201
- declare const PerpsWithdrawalStatusSchema: z.ZodEnum<typeof PerpsWithdrawalStatus>;
217
+ declare const PerpsWithdrawalStatusSchema: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
202
218
  /**
203
219
  * @experimental This API may change in a breaking way in any release, including patch releases.
204
220
  */
@@ -958,4 +974,4 @@ declare const PerpsAccountFillUpdateSchema: z.ZodPipe<z.ZodObject<{
958
974
  coid?: string | undefined;
959
975
  }>>;
960
976
 
961
- export { type PerpsPostOrderAck as $, type PerpsDecimal as A, type PerpsDecimalInput as B, PerpsDecimalInputSchema as C, type PerpsDepositAmount as D, PerpsDepositStatusSchema as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsEntityIdSchema as G, type PerpsFundingInterval as H, PerpsFundingIntervalSchema as I, PerpsInstrumentCategorySchema as J, PerpsInstrumentIdSchema as K, ListPerpsFillsResponseSchema as L, PerpsInstrumentTypeSchema as M, PerpsInternalTransferDirectionSchema as N, PerpsInternalTransferIdSchema as O, type PerpsInstrumentId as P, PerpsKlineInterval as Q, PerpsKlineIntervalSchema as R, type PerpsOrder as S, type PerpsOrderId as T, PerpsOrderIdSchema as U, PerpsOrderSchema as V, PerpsOrderStatus as W, PerpsOrderStatusSchema as X, PerpsOrderUpdateSchema as Y, PerpsPnlInterval as Z, PerpsPnlIntervalSchema as _, type PerpsEntityId as a, PerpsPostOrderAckSchema as a0, PerpsSideSchema as a1, PerpsTimeInForce as a2, PerpsTimeInForceSchema as a3, PerpsTpSlKind as a4, PerpsTpSlKindSchema as a5, type PerpsTpSlOrderFields as a6, PerpsTpSlOrderFieldsSchema as a7, PerpsTpSlScope as a8, PerpsTpSlScopeSchema as a9, PerpsTradeIdSchema as aa, type PerpsTxHash as ab, PerpsTxHashSchema as ac, type PerpsUpdateLeverageResult as ad, PerpsUpdateLeverageResultSchema as ae, type PerpsWithdrawalAmount as af, PerpsWithdrawalIdSchema as ag, PerpsWithdrawalStatusSchema as ah, decimalString as ai, perpsBaseUnits as aj, perpsDecimal as ak, PerpsDepositStatus as b, type PerpsWithdrawalId as c, PerpsWithdrawalStatus as d, type PerpsInternalTransferId as e, PerpsInternalTransferDirection as f, PerpsInstrumentType as g, PerpsInstrumentCategory as h, type PerpsTradeId as i, PerpsSide as j, FetchPerpsOrdersResponseSchema as k, type PerpsAccountFill as l, PerpsAccountFillSchema as m, PerpsAccountFillUpdateSchema as n, PerpsAssetSchema as o, type PerpsCancelAllOrdersResponse as p, PerpsCancelAllOrdersResponseSchema as q, type PerpsCancelOrderResult as r, PerpsCancelOrderResultSchema as s, type PerpsClientOrderId as t, PerpsClientOrderIdSchema as u, type PerpsCommandAck as v, PerpsCommandAckSchema as w, PerpsCommandStatusSchema as x, type PerpsCredentials as y, PerpsDataResponseSchema as z };
977
+ export { type PerpsPostOrderAck as $, type PerpsDecimal as A, type PerpsDecimalInput as B, PerpsDecimalInputSchema as C, type PerpsDepositAmount as D, PerpsDepositStatusSchema as E, FetchPerpsOpenOrdersResponseSchema as F, PerpsEntityIdSchema as G, type PerpsFundingInterval as H, PerpsFundingIntervalSchema as I, PerpsInstrumentCategorySchema as J, PerpsInstrumentIdSchema as K, ListPerpsFillsResponseSchema as L, PerpsInstrumentTypeSchema as M, PerpsInternalTransferDirectionSchema as N, PerpsInternalTransferIdSchema as O, type PerpsInstrumentId as P, PerpsKlineInterval as Q, PerpsKlineIntervalSchema as R, type PerpsOrder as S, type PerpsOrderId as T, PerpsOrderIdSchema as U, PerpsOrderSchema as V, PerpsOrderStatus as W, PerpsOrderStatusSchema as X, PerpsOrderUpdateSchema as Y, PerpsPnlInterval as Z, PerpsPnlIntervalSchema as _, type PerpsEntityId as a, PerpsPostOrderAckSchema as a0, PerpsSideSchema as a1, PerpsTimeInForce as a2, PerpsTimeInForceSchema as a3, PerpsTpSlKind as a4, PerpsTpSlKindSchema as a5, type PerpsTpSlOrderFields as a6, PerpsTpSlOrderFieldsSchema as a7, PerpsTpSlScope as a8, PerpsTpSlScopeSchema as a9, PerpsTradeIdSchema as aa, type PerpsTxHash as ab, PerpsTxHashSchema as ac, type PerpsUpdateLeverageResult as ad, PerpsUpdateLeverageResultSchema as ae, type PerpsWithdrawalAmount as af, PerpsWithdrawalIdSchema as ag, type PerpsWithdrawalStatus as ah, PerpsWithdrawalStatusSchema as ai, decimalString as aj, perpsBaseUnits as ak, perpsDecimal as al, PerpsDepositStatus as b, type PerpsWithdrawalId as c, PerpsKnownWithdrawalStatus as d, type PerpsInternalTransferId as e, PerpsInternalTransferDirection as f, PerpsInstrumentType as g, PerpsInstrumentCategory as h, type PerpsTradeId as i, PerpsSide as j, FetchPerpsOrdersResponseSchema as k, type PerpsAccountFill as l, PerpsAccountFillSchema as m, PerpsAccountFillUpdateSchema as n, PerpsAssetSchema as o, type PerpsCancelAllOrdersResponse as p, PerpsCancelAllOrdersResponseSchema as q, type PerpsCancelOrderResult as r, PerpsCancelOrderResultSchema as s, type PerpsClientOrderId as t, PerpsClientOrderIdSchema as u, type PerpsCommandAck as v, PerpsCommandAckSchema as w, PerpsCommandStatusSchema as x, type PerpsCredentials as y, PerpsDataResponseSchema as z };
@@ -1,6 +1,6 @@
1
1
  import * as _polymarket_types from '@polymarket/types';
2
- import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-mGd3XVG1.js';
3
- export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, l as PerpsAccountFill, m as PerpsAccountFillSchema, n as PerpsAccountFillUpdateSchema, o as PerpsAssetSchema, p as PerpsCancelAllOrdersResponse, q as PerpsCancelAllOrdersResponseSchema, r as PerpsCancelOrderResult, s as PerpsCancelOrderResultSchema, t as PerpsClientOrderId, u as PerpsClientOrderIdSchema, v as PerpsCommandAck, w as PerpsCommandAckSchema, x as PerpsCommandStatusSchema, y as PerpsCredentials, z as PerpsDataResponseSchema, A as PerpsDecimal, B as PerpsDecimalInput, C as PerpsDecimalInputSchema, D as PerpsDepositAmount, E as PerpsDepositStatusSchema, G as PerpsEntityIdSchema, H as PerpsFundingInterval, I as PerpsFundingIntervalSchema, J as PerpsInstrumentCategorySchema, K as PerpsInstrumentIdSchema, M as PerpsInstrumentTypeSchema, N as PerpsInternalTransferDirectionSchema, O as PerpsInternalTransferIdSchema, Q as PerpsKlineInterval, R as PerpsKlineIntervalSchema, S as PerpsOrder, T as PerpsOrderId, U as PerpsOrderIdSchema, V as PerpsOrderSchema, W as PerpsOrderStatus, X as PerpsOrderStatusSchema, Y as PerpsOrderUpdateSchema, Z as PerpsPnlInterval, _ as PerpsPnlIntervalSchema, $ as PerpsPostOrderAck, a0 as PerpsPostOrderAckSchema, a1 as PerpsSideSchema, a2 as PerpsTimeInForce, a3 as PerpsTimeInForceSchema, a4 as PerpsTpSlKind, a5 as PerpsTpSlKindSchema, a6 as PerpsTpSlOrderFields, a7 as PerpsTpSlOrderFieldsSchema, a8 as PerpsTpSlScope, a9 as PerpsTpSlScopeSchema, aa as PerpsTradeIdSchema, ab as PerpsTxHash, ac as PerpsTxHashSchema, ad as PerpsUpdateLeverageResult, ae as PerpsUpdateLeverageResultSchema, af as PerpsWithdrawalAmount, ag as PerpsWithdrawalIdSchema, ah as PerpsWithdrawalStatusSchema, ai as decimalString, aj as perpsBaseUnits, ak as perpsDecimal } from '../orders-mGd3XVG1.js';
2
+ import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsDepositStatus, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus, e as PerpsInternalTransferId, f as PerpsInternalTransferDirection, g as PerpsInstrumentType, h as PerpsInstrumentCategory, i as PerpsTradeId, j as PerpsSide } from '../orders-ClcuI-yo.js';
3
+ export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, L as ListPerpsFillsResponseSchema, l as PerpsAccountFill, m as PerpsAccountFillSchema, n as PerpsAccountFillUpdateSchema, o as PerpsAssetSchema, p as PerpsCancelAllOrdersResponse, q as PerpsCancelAllOrdersResponseSchema, r as PerpsCancelOrderResult, s as PerpsCancelOrderResultSchema, t as PerpsClientOrderId, u as PerpsClientOrderIdSchema, v as PerpsCommandAck, w as PerpsCommandAckSchema, x as PerpsCommandStatusSchema, y as PerpsCredentials, z as PerpsDataResponseSchema, A as PerpsDecimal, B as PerpsDecimalInput, C as PerpsDecimalInputSchema, D as PerpsDepositAmount, E as PerpsDepositStatusSchema, G as PerpsEntityIdSchema, H as PerpsFundingInterval, I as PerpsFundingIntervalSchema, J as PerpsInstrumentCategorySchema, K as PerpsInstrumentIdSchema, M as PerpsInstrumentTypeSchema, N as PerpsInternalTransferDirectionSchema, O as PerpsInternalTransferIdSchema, Q as PerpsKlineInterval, R as PerpsKlineIntervalSchema, S as PerpsOrder, T as PerpsOrderId, U as PerpsOrderIdSchema, V as PerpsOrderSchema, W as PerpsOrderStatus, X as PerpsOrderStatusSchema, Y as PerpsOrderUpdateSchema, Z as PerpsPnlInterval, _ as PerpsPnlIntervalSchema, $ as PerpsPostOrderAck, a0 as PerpsPostOrderAckSchema, a1 as PerpsSideSchema, a2 as PerpsTimeInForce, a3 as PerpsTimeInForceSchema, a4 as PerpsTpSlKind, a5 as PerpsTpSlKindSchema, a6 as PerpsTpSlOrderFields, a7 as PerpsTpSlOrderFieldsSchema, a8 as PerpsTpSlScope, a9 as PerpsTpSlScopeSchema, aa as PerpsTradeIdSchema, ab as PerpsTxHash, ac as PerpsTxHashSchema, ad as PerpsUpdateLeverageResult, ae as PerpsUpdateLeverageResultSchema, af as PerpsWithdrawalAmount, ag as PerpsWithdrawalIdSchema, ah as PerpsWithdrawalStatus, ai as PerpsWithdrawalStatusSchema, aj as decimalString, ak as perpsBaseUnits, al as perpsDecimal } from '../orders-ClcuI-yo.js';
4
4
  import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
5
  import { z } from 'zod';
6
6
 
@@ -723,7 +723,7 @@ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
723
723
  asset: z.ZodString;
724
724
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
725
725
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
726
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
726
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
727
727
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
728
728
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
729
729
  confirmations: z.ZodNumber;
@@ -735,7 +735,7 @@ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
735
735
  asset: string;
736
736
  amount: BaseUnits;
737
737
  fee: DecimalString;
738
- status: PerpsWithdrawalStatus;
738
+ status: PerpsKnownWithdrawalStatus | (string & {});
739
739
  to: _polymarket_types.EvmAddress;
740
740
  hash: _polymarket_types.TxHash | undefined;
741
741
  confirmations: number;
@@ -747,7 +747,7 @@ declare const PerpsWithdrawalSchema: z.ZodPipe<z.ZodObject<{
747
747
  asset: string;
748
748
  amount: BaseUnits;
749
749
  fee: DecimalString;
750
- status: PerpsWithdrawalStatus;
750
+ status: PerpsKnownWithdrawalStatus | (string & {});
751
751
  to: _polymarket_types.EvmAddress;
752
752
  confirmations: number;
753
753
  required_confirmations: number;
@@ -768,7 +768,7 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
768
768
  asset: z.ZodString;
769
769
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
770
770
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
771
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
771
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
772
772
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
773
773
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
774
774
  confirmations: z.ZodNumber;
@@ -780,7 +780,7 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
780
780
  asset: string;
781
781
  amount: BaseUnits;
782
782
  fee: DecimalString;
783
- status: PerpsWithdrawalStatus;
783
+ status: PerpsKnownWithdrawalStatus | (string & {});
784
784
  to: _polymarket_types.EvmAddress;
785
785
  hash: _polymarket_types.TxHash | undefined;
786
786
  confirmations: number;
@@ -792,7 +792,7 @@ declare const ListPerpsWithdrawalsResponseSchema: z.ZodObject<{
792
792
  asset: string;
793
793
  amount: BaseUnits;
794
794
  fee: DecimalString;
795
- status: PerpsWithdrawalStatus;
795
+ status: PerpsKnownWithdrawalStatus | (string & {});
796
796
  to: _polymarket_types.EvmAddress;
797
797
  confirmations: number;
798
798
  required_confirmations: number;
@@ -829,7 +829,7 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
829
829
  asset: z.ZodString;
830
830
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
831
831
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
832
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
832
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
833
833
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
834
834
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
835
835
  }, z.core.$strip>, z.ZodTransform<{
@@ -837,7 +837,7 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
837
837
  asset: string;
838
838
  amount: BaseUnits;
839
839
  fee: DecimalString;
840
- status: PerpsWithdrawalStatus;
840
+ status: PerpsKnownWithdrawalStatus | (string & {});
841
841
  to: _polymarket_types.EvmAddress;
842
842
  hash: _polymarket_types.TxHash | undefined;
843
843
  }, {
@@ -845,7 +845,7 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
845
845
  asset: string;
846
846
  amount: BaseUnits;
847
847
  fee: DecimalString;
848
- status: PerpsWithdrawalStatus;
848
+ status: PerpsKnownWithdrawalStatus | (string & {});
849
849
  to: _polymarket_types.EvmAddress;
850
850
  hash?: _polymarket_types.TxHash | undefined;
851
851
  }>>;
@@ -897,6 +897,7 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
897
897
  max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
898
898
  max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
899
899
  max_leverage: z.ZodNumber;
900
+ isolated_only: z.ZodBoolean;
900
901
  risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
901
902
  lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
902
903
  max_leverage: z.ZodNumber;
@@ -923,6 +924,7 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
923
924
  maxMarketNotional: DecimalString;
924
925
  maxLimitNotional: DecimalString;
925
926
  maxLeverage: number;
927
+ isolatedOnly: boolean;
926
928
  riskTiers: {
927
929
  lowerBound: DecimalString;
928
930
  maxLeverage: number;
@@ -944,6 +946,7 @@ declare const PerpsInstrumentSchema: z.ZodPipe<z.ZodObject<{
944
946
  max_market_notional: DecimalString;
945
947
  max_limit_notional: DecimalString;
946
948
  max_leverage: number;
949
+ isolated_only: boolean;
947
950
  risk_tiers: {
948
951
  lowerBound: DecimalString;
949
952
  maxLeverage: number;
@@ -973,6 +976,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
973
976
  max_market_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
974
977
  max_limit_notional: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
975
978
  max_leverage: z.ZodNumber;
979
+ isolated_only: z.ZodBoolean;
976
980
  risk_tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
977
981
  lower_bound: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
978
982
  max_leverage: z.ZodNumber;
@@ -999,6 +1003,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
999
1003
  maxMarketNotional: DecimalString;
1000
1004
  maxLimitNotional: DecimalString;
1001
1005
  maxLeverage: number;
1006
+ isolatedOnly: boolean;
1002
1007
  riskTiers: {
1003
1008
  lowerBound: DecimalString;
1004
1009
  maxLeverage: number;
@@ -1020,6 +1025,7 @@ declare const FetchPerpsInstrumentsResponseSchema: z.ZodArray<z.ZodPipe<z.ZodObj
1020
1025
  max_market_notional: DecimalString;
1021
1026
  max_limit_notional: DecimalString;
1022
1027
  max_leverage: number;
1028
+ isolated_only: boolean;
1023
1029
  risk_tiers: {
1024
1030
  lowerBound: DecimalString;
1025
1031
  maxLeverage: number;
@@ -1539,6 +1545,20 @@ declare const FetchPerpsFundingHistoryResponseSchema: z.ZodObject<{
1539
1545
  }>>>;
1540
1546
  more: z.ZodBoolean;
1541
1547
  }, z.core.$strip>;
1548
+ declare const PerpsFeeTierSchema: z.ZodPipe<z.ZodObject<{
1549
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1550
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1551
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1552
+ }, z.core.$strip>, z.ZodTransform<{
1553
+ minVolume30d: DecimalString;
1554
+ takerFeeRate: DecimalString;
1555
+ makerFeeRate: DecimalString;
1556
+ }, {
1557
+ min_volume_30d: DecimalString;
1558
+ taker_fee_rate: DecimalString;
1559
+ maker_fee_rate: DecimalString;
1560
+ }>>;
1561
+ type PerpsFeeTier = z.infer<typeof PerpsFeeTierSchema>;
1542
1562
  /**
1543
1563
  * @experimental This API may change in a breaking way in any release, including patch releases.
1544
1564
  */
@@ -1547,15 +1567,38 @@ declare const PerpsFeeScheduleEntrySchema: z.ZodPipe<z.ZodObject<{
1547
1567
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1548
1568
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1549
1569
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1570
+ tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
1571
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1572
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1573
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1574
+ }, z.core.$strip>, z.ZodTransform<{
1575
+ minVolume30d: DecimalString;
1576
+ takerFeeRate: DecimalString;
1577
+ makerFeeRate: DecimalString;
1578
+ }, {
1579
+ min_volume_30d: DecimalString;
1580
+ taker_fee_rate: DecimalString;
1581
+ maker_fee_rate: DecimalString;
1582
+ }>>>;
1550
1583
  }, z.core.$strip>, z.ZodTransform<{
1551
1584
  category: PerpsInstrumentCategory;
1552
1585
  takerFeeRate: DecimalString;
1553
1586
  makerFeeRate: DecimalString;
1587
+ tiers: {
1588
+ minVolume30d: DecimalString;
1589
+ takerFeeRate: DecimalString;
1590
+ makerFeeRate: DecimalString;
1591
+ }[];
1554
1592
  }, {
1555
1593
  instrument_type: PerpsInstrumentType.Perpetual;
1556
1594
  category: PerpsInstrumentCategory;
1557
1595
  taker_fee_rate: DecimalString;
1558
1596
  maker_fee_rate: DecimalString;
1597
+ tiers: {
1598
+ minVolume30d: DecimalString;
1599
+ takerFeeRate: DecimalString;
1600
+ makerFeeRate: DecimalString;
1601
+ }[];
1559
1602
  }>>;
1560
1603
  /**
1561
1604
  * @experimental This API may change in a breaking way in any release, including patch releases.
@@ -1570,27 +1613,60 @@ declare const PerpsFeesInfoSchema: z.ZodPipe<z.ZodObject<{
1570
1613
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1571
1614
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1572
1615
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1616
+ tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
1617
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1618
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1619
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1620
+ }, z.core.$strip>, z.ZodTransform<{
1621
+ minVolume30d: DecimalString;
1622
+ takerFeeRate: DecimalString;
1623
+ makerFeeRate: DecimalString;
1624
+ }, {
1625
+ min_volume_30d: DecimalString;
1626
+ taker_fee_rate: DecimalString;
1627
+ maker_fee_rate: DecimalString;
1628
+ }>>>;
1573
1629
  }, z.core.$strip>, z.ZodTransform<{
1574
1630
  category: PerpsInstrumentCategory;
1575
1631
  takerFeeRate: DecimalString;
1576
1632
  makerFeeRate: DecimalString;
1633
+ tiers: {
1634
+ minVolume30d: DecimalString;
1635
+ takerFeeRate: DecimalString;
1636
+ makerFeeRate: DecimalString;
1637
+ }[];
1577
1638
  }, {
1578
1639
  instrument_type: PerpsInstrumentType.Perpetual;
1579
1640
  category: PerpsInstrumentCategory;
1580
1641
  taker_fee_rate: DecimalString;
1581
1642
  maker_fee_rate: DecimalString;
1643
+ tiers: {
1644
+ minVolume30d: DecimalString;
1645
+ takerFeeRate: DecimalString;
1646
+ makerFeeRate: DecimalString;
1647
+ }[];
1582
1648
  }>>>;
1583
1649
  }, z.core.$strip>, z.ZodTransform<{
1584
1650
  feeSchedule: {
1585
1651
  category: PerpsInstrumentCategory;
1586
1652
  takerFeeRate: DecimalString;
1587
1653
  makerFeeRate: DecimalString;
1654
+ tiers: {
1655
+ minVolume30d: DecimalString;
1656
+ takerFeeRate: DecimalString;
1657
+ makerFeeRate: DecimalString;
1658
+ }[];
1588
1659
  }[];
1589
1660
  }, {
1590
1661
  fee_schedule: {
1591
1662
  category: PerpsInstrumentCategory;
1592
1663
  takerFeeRate: DecimalString;
1593
1664
  makerFeeRate: DecimalString;
1665
+ tiers: {
1666
+ minVolume30d: DecimalString;
1667
+ takerFeeRate: DecimalString;
1668
+ makerFeeRate: DecimalString;
1669
+ }[];
1594
1670
  }[];
1595
1671
  }>>;
1596
1672
  /**
@@ -1606,27 +1682,60 @@ declare const FetchPerpsFeesResponseSchema: z.ZodPipe<z.ZodObject<{
1606
1682
  category: z.ZodEnum<typeof PerpsInstrumentCategory>;
1607
1683
  taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1608
1684
  maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1685
+ tiers: z.ZodArray<z.ZodPipe<z.ZodObject<{
1686
+ min_volume_30d: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1687
+ taker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1688
+ maker_fee_rate: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
1689
+ }, z.core.$strip>, z.ZodTransform<{
1690
+ minVolume30d: DecimalString;
1691
+ takerFeeRate: DecimalString;
1692
+ makerFeeRate: DecimalString;
1693
+ }, {
1694
+ min_volume_30d: DecimalString;
1695
+ taker_fee_rate: DecimalString;
1696
+ maker_fee_rate: DecimalString;
1697
+ }>>>;
1609
1698
  }, z.core.$strip>, z.ZodTransform<{
1610
1699
  category: PerpsInstrumentCategory;
1611
1700
  takerFeeRate: DecimalString;
1612
1701
  makerFeeRate: DecimalString;
1702
+ tiers: {
1703
+ minVolume30d: DecimalString;
1704
+ takerFeeRate: DecimalString;
1705
+ makerFeeRate: DecimalString;
1706
+ }[];
1613
1707
  }, {
1614
1708
  instrument_type: PerpsInstrumentType.Perpetual;
1615
1709
  category: PerpsInstrumentCategory;
1616
1710
  taker_fee_rate: DecimalString;
1617
1711
  maker_fee_rate: DecimalString;
1712
+ tiers: {
1713
+ minVolume30d: DecimalString;
1714
+ takerFeeRate: DecimalString;
1715
+ makerFeeRate: DecimalString;
1716
+ }[];
1618
1717
  }>>>;
1619
1718
  }, z.core.$strip>, z.ZodTransform<{
1620
1719
  feeSchedule: {
1621
1720
  category: PerpsInstrumentCategory;
1622
1721
  takerFeeRate: DecimalString;
1623
1722
  makerFeeRate: DecimalString;
1723
+ tiers: {
1724
+ minVolume30d: DecimalString;
1725
+ takerFeeRate: DecimalString;
1726
+ makerFeeRate: DecimalString;
1727
+ }[];
1624
1728
  }[];
1625
1729
  }, {
1626
1730
  fee_schedule: {
1627
1731
  category: PerpsInstrumentCategory;
1628
1732
  takerFeeRate: DecimalString;
1629
1733
  makerFeeRate: DecimalString;
1734
+ tiers: {
1735
+ minVolume30d: DecimalString;
1736
+ takerFeeRate: DecimalString;
1737
+ makerFeeRate: DecimalString;
1738
+ }[];
1630
1739
  }[];
1631
1740
  }>>;
1632
1741
  /**
@@ -1645,4 +1754,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
1645
1754
  more: z.ZodBoolean;
1646
1755
  }, z.core.$strip>;
1647
1756
 
1648
- export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalStatus, PerpsWithdrawalUpdateSchema };
1757
+ export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsBalance, PerpsBalanceSchema, type PerpsBbo, PerpsBboSchema, PerpsBboUpdateSchema, type PerpsBook, type PerpsBookLevel, PerpsBookLevelSchema, PerpsBookSchema, PerpsBookUpdateSchema, type PerpsCandle, PerpsCandleSchema, PerpsCreateProxyResponseSchema, PerpsCredentialsResponseSchema, PerpsDeleteProxyResponseSchema, type PerpsDeposit, PerpsDepositSchema, PerpsDepositStatus, PerpsDepositUpdateSchema, PerpsEntityId, type PerpsEquityPoint, PerpsEquityPointSchema, type PerpsFeeScheduleEntry, PerpsFeeScheduleEntrySchema, type PerpsFeeTier, PerpsFeeTierSchema, type PerpsFeesInfo, PerpsFeesInfoSchema, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferSchema, PerpsKnownWithdrawalStatus, type PerpsMarginSummary, PerpsMarginSummarySchema, type PerpsPnlPoint, PerpsPnlPointSchema, type PerpsPortfolio, type PerpsPortfolioPosition, PerpsPortfolioPositionSchema, PerpsPortfolioSchema, type PerpsProxyKey, PerpsProxyKeySchema, type PerpsPublicTrade, PerpsPublicTradeSchema, PerpsPublicTradeUpdateSchema, type PerpsRiskTier, PerpsRiskTierSchema, PerpsSide, type PerpsStatistic, PerpsStatisticSchema, PerpsStatisticUpdateSchema, type PerpsTicker, PerpsTickerEntrySchema, PerpsTickerSchema, PerpsTradeId, PerpsWithdrawResponseSchema, type PerpsWithdrawal, PerpsWithdrawalId, PerpsWithdrawalSchema, PerpsWithdrawalUpdateSchema };
@@ -1,2 +1,2 @@
1
- export{X as FetchPerpsAccountConfigResponseSchema,O as FetchPerpsAccountStatsResponseSchema,M as FetchPerpsBalancesResponseSchema,Ja as FetchPerpsCandlesResponseSchema,Ia as FetchPerpsFeesResponseSchema,Fa as FetchPerpsFundingHistoryResponseSchema,oa as FetchPerpsInstrumentsResponseSchema,Va as FetchPerpsOpenOrdersResponseSchema,Ua as FetchPerpsOrdersResponseSchema,S as FetchPerpsPortfolioResponseSchema,ua as FetchPerpsStatisticsResponseSchema,qa as FetchPerpsTickersResponseSchema,Da as FetchPerpsTradesResponseSchema,fa as ListPerpsDepositsResponseSchema,Z as ListPerpsEquityHistoryResponseSchema,Ya as ListPerpsFillsResponseSchema,U as ListPerpsFundingPaymentsResponseSchema,$ as ListPerpsPnlHistoryResponseSchema,ia as ListPerpsWithdrawalsResponseSchema,W as PerpsAccountConfigSchema,Xa as PerpsAccountFillSchema,Za as PerpsAccountFillUpdateSchema,V as PerpsAccountFundingPaymentEntrySchema,T as PerpsAccountFundingPaymentSchema,N as PerpsAccountStatsSchema,F as PerpsAssetSchema,L as PerpsBalanceSchema,za as PerpsBboSchema,Aa as PerpsBboUpdateSchema,wa as PerpsBookLevelSchema,xa as PerpsBookSchema,ya as PerpsBookUpdateSchema,Ra as PerpsCancelAllOrdersResponseSchema,Qa as PerpsCancelOrderResultSchema,sa as PerpsCandleSchema,c as PerpsClientOrderIdSchema,Oa as PerpsCommandAckSchema,Na as PerpsCommandStatusSchema,ca as PerpsCreateProxyResponseSchema,ba as PerpsCredentialsResponseSchema,H as PerpsDataResponseSchema,i as PerpsDecimalInputSchema,da as PerpsDeleteProxyResponseSchema,ea as PerpsDepositSchema,p as PerpsDepositStatus,A as PerpsDepositStatusSchema,ga as PerpsDepositUpdateSchema,g as PerpsEntityIdSchema,Y as PerpsEquityPointSchema,Ga as PerpsFeeScheduleEntrySchema,Ha as PerpsFeesInfoSchema,h as PerpsFundingIntervalSchema,Ea as PerpsFundingRateSchema,k as PerpsInstrumentCategory,v as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,na as PerpsInstrumentSchema,j as PerpsInstrumentType,u as PerpsInstrumentTypeSchema,r as PerpsInternalTransferDirection,C as PerpsInternalTransferDirectionSchema,f as PerpsInternalTransferIdSchema,la as PerpsInternalTransferSchema,s as PerpsKlineInterval,D as PerpsKlineIntervalSchema,Q as PerpsMarginSummarySchema,b as PerpsOrderIdSchema,Ta as PerpsOrderSchema,Ka as PerpsOrderStatus,Ma as PerpsOrderStatusSchema,Wa as PerpsOrderUpdateSchema,t as PerpsPnlInterval,E as PerpsPnlIntervalSchema,_ as PerpsPnlPointSchema,P as PerpsPortfolioPositionSchema,R as PerpsPortfolioSchema,Pa as PerpsPostOrderAckSchema,aa as PerpsProxyKeySchema,Ba as PerpsPublicTradeSchema,Ca as PerpsPublicTradeUpdateSchema,ma as PerpsRiskTierSchema,l as PerpsSide,w as PerpsSideSchema,ta as PerpsStatisticSchema,va as PerpsStatisticUpdateSchema,ra as PerpsTickerEntrySchema,pa as PerpsTickerSchema,m as PerpsTimeInForce,x as PerpsTimeInForceSchema,n as PerpsTpSlKind,y as PerpsTpSlKindSchema,La as PerpsTpSlOrderFieldsSchema,o as PerpsTpSlScope,z as PerpsTpSlScopeSchema,d as PerpsTradeIdSchema,G as PerpsTxHashSchema,Sa as PerpsUpdateLeverageResultSchema,ja as PerpsWithdrawResponseSchema,e as PerpsWithdrawalIdSchema,ha as PerpsWithdrawalSchema,q as PerpsWithdrawalStatus,B as PerpsWithdrawalStatusSchema,ka as PerpsWithdrawalUpdateSchema,K as decimalString,J as perpsBaseUnits,I as perpsDecimal}from'../chunk-2VUWIHOR.js';import'../chunk-D6QJEBYH.js';//# sourceMappingURL=index.js.map
1
+ export{X as FetchPerpsAccountConfigResponseSchema,O as FetchPerpsAccountStatsResponseSchema,M as FetchPerpsBalancesResponseSchema,Ka as FetchPerpsCandlesResponseSchema,Ja as FetchPerpsFeesResponseSchema,Fa as FetchPerpsFundingHistoryResponseSchema,oa as FetchPerpsInstrumentsResponseSchema,Wa as FetchPerpsOpenOrdersResponseSchema,Va as FetchPerpsOrdersResponseSchema,S as FetchPerpsPortfolioResponseSchema,ua as FetchPerpsStatisticsResponseSchema,qa as FetchPerpsTickersResponseSchema,Da as FetchPerpsTradesResponseSchema,fa as ListPerpsDepositsResponseSchema,Z as ListPerpsEquityHistoryResponseSchema,Za as ListPerpsFillsResponseSchema,U as ListPerpsFundingPaymentsResponseSchema,$ as ListPerpsPnlHistoryResponseSchema,ia as ListPerpsWithdrawalsResponseSchema,W as PerpsAccountConfigSchema,Ya as PerpsAccountFillSchema,_a as PerpsAccountFillUpdateSchema,V as PerpsAccountFundingPaymentEntrySchema,T as PerpsAccountFundingPaymentSchema,N as PerpsAccountStatsSchema,F as PerpsAssetSchema,L as PerpsBalanceSchema,za as PerpsBboSchema,Aa as PerpsBboUpdateSchema,wa as PerpsBookLevelSchema,xa as PerpsBookSchema,ya as PerpsBookUpdateSchema,Sa as PerpsCancelAllOrdersResponseSchema,Ra as PerpsCancelOrderResultSchema,sa as PerpsCandleSchema,c as PerpsClientOrderIdSchema,Pa as PerpsCommandAckSchema,Oa as PerpsCommandStatusSchema,ca as PerpsCreateProxyResponseSchema,ba as PerpsCredentialsResponseSchema,H as PerpsDataResponseSchema,i as PerpsDecimalInputSchema,da as PerpsDeleteProxyResponseSchema,ea as PerpsDepositSchema,p as PerpsDepositStatus,A as PerpsDepositStatusSchema,ga as PerpsDepositUpdateSchema,g as PerpsEntityIdSchema,Y as PerpsEquityPointSchema,Ha as PerpsFeeScheduleEntrySchema,Ga as PerpsFeeTierSchema,Ia as PerpsFeesInfoSchema,h as PerpsFundingIntervalSchema,Ea as PerpsFundingRateSchema,k as PerpsInstrumentCategory,v as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,na as PerpsInstrumentSchema,j as PerpsInstrumentType,u as PerpsInstrumentTypeSchema,r as PerpsInternalTransferDirection,C as PerpsInternalTransferDirectionSchema,f as PerpsInternalTransferIdSchema,la as PerpsInternalTransferSchema,s as PerpsKlineInterval,D as PerpsKlineIntervalSchema,q as PerpsKnownWithdrawalStatus,Q as PerpsMarginSummarySchema,b as PerpsOrderIdSchema,Ua as PerpsOrderSchema,La as PerpsOrderStatus,Na as PerpsOrderStatusSchema,Xa as PerpsOrderUpdateSchema,t as PerpsPnlInterval,E as PerpsPnlIntervalSchema,_ as PerpsPnlPointSchema,P as PerpsPortfolioPositionSchema,R as PerpsPortfolioSchema,Qa as PerpsPostOrderAckSchema,aa as PerpsProxyKeySchema,Ba as PerpsPublicTradeSchema,Ca as PerpsPublicTradeUpdateSchema,ma as PerpsRiskTierSchema,l as PerpsSide,w as PerpsSideSchema,ta as PerpsStatisticSchema,va as PerpsStatisticUpdateSchema,ra as PerpsTickerEntrySchema,pa as PerpsTickerSchema,m as PerpsTimeInForce,x as PerpsTimeInForceSchema,n as PerpsTpSlKind,y as PerpsTpSlKindSchema,Ma as PerpsTpSlOrderFieldsSchema,o as PerpsTpSlScope,z as PerpsTpSlScopeSchema,d as PerpsTradeIdSchema,G as PerpsTxHashSchema,Ta as PerpsUpdateLeverageResultSchema,ja as PerpsWithdrawResponseSchema,e as PerpsWithdrawalIdSchema,ha as PerpsWithdrawalSchema,B as PerpsWithdrawalStatusSchema,ka as PerpsWithdrawalUpdateSchema,K as decimalString,J as perpsBaseUnits,I as perpsDecimal}from'../chunk-N4P2EGRL.js';import'../chunk-QTXFNR2Y.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import {$,Ga,Ha}from'../chunk-D6QJEBYH.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:$.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:$.optional(),paymentToken:$.optional(),refundReceiver:$.optional(),relay:$.optional(),relayHub:$.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:$,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:$,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:$,signature:z.string().min(1),signatureParams:y,to:$,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:$,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:$}),S=z.object({depositWalletParams:x,from:$,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:$,type:z.literal("WALLET")}),g=z.object({from:$,metadata:z.string().optional(),to:$,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Ha.nullish().transform(a=>a??null),transactionID:Ga}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Ha]).transform(a=>a===""?null:a),transaction_id:Ga}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
1
+ import {aa,Ia,Ja}from'../chunk-QTXFNR2Y.js';import {z}from'zod';var i=(n=>(n.SAFE="SAFE",n.PROXY="PROXY",n.SAFE_CREATE="SAFE-CREATE",n.WALLET="WALLET",n.WALLET_CREATE="WALLET-CREATE",n))(i||{}),D=z.enum(i),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),c=(o=>(o.STATE_NEW="STATE_NEW",o.STATE_EXECUTED="STATE_EXECUTED",o.STATE_MINED="STATE_MINED",o.STATE_CONFIRMED="STATE_CONFIRMED",o.STATE_INVALID="STATE_INVALID",o.STATE_FAILED="STATE_FAILED",o))(c||{}),m=z.enum(c),y=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:aa.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:aa.optional(),paymentToken:aa.optional(),refundReceiver:aa.optional(),relay:aa.optional(),relayHub:aa.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),d=z.object({address:aa,nonce:z.string().min(1)}),R=z.object({data:z.string().min(1),from:aa,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:aa,signature:z.string().min(1),signatureParams:y,to:aa,type:u,value:z.string().optional()}),T=z.object({data:z.string().min(1),target:aa,value:z.string().min(1)}),x=z.object({calls:z.array(T).min(1),deadline:z.string().min(1),depositWallet:aa}),S=z.object({depositWalletParams:x,from:aa,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:aa,type:z.literal("WALLET")}),g=z.object({from:aa,metadata:z.string().optional(),to:aa,type:z.literal("WALLET-CREATE")}),W=z.union([R,S,g]),f=z.object({state:m,transactionHash:Ja.nullish().transform(a=>a??null),transactionID:Ia}).transform(({transactionHash:a,transactionID:s,...r})=>({...r,transactionHash:a??null,transactionId:s})),L=z.object({deployed:z.boolean()}),_=z.object({error_msg:z.string().nullish(),state:m,transaction_hash:z.union([z.literal(""),Ja]).transform(a=>a===""?null:a),transaction_id:Ia}).transform(({error_msg:a,transaction_hash:s,transaction_id:r,...E})=>({...E,errorMsg:a??null,transactionHash:s??null,transactionId:r}));export{T as DepositWalletCallSchema,x as DepositWalletParamsSchema,_ as GaslessTransactionSchema,L as RelayerDeployedResponseSchema,g as RelayerDepositWalletCreateRequestSchema,S as RelayerDepositWalletExecuteRequestSchema,d as RelayerExecuteParamsSchema,W as RelayerExecuteRequestSchema,f as RelayerExecuteResponseSchema,R as RelayerLegacyExecuteRequestSchema,c as RelayerTransactionState,i as RelayerTransactionType,D as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/relayer/transaction.ts"],"names":["RelayerTransactionType","RelayerTransactionTypeSchema","z","RelayerLegacyTransactionTypeSchema","RelayerTransactionState","RelayerTransactionStateSchema","RelayerSignatureParamsSchema","EvmAddressSchema","RelayerExecuteParamsSchema","RelayerLegacyExecuteRequestSchema","DepositWalletCallSchema","DepositWalletParamsSchema","RelayerDepositWalletExecuteRequestSchema","RelayerDepositWalletCreateRequestSchema","RelayerExecuteRequestSchema","RelayerExecuteResponseSchema","TxHashSchema","value","TransactionIdSchema","transactionHash","transactionID","rest","RelayerDeployedResponseSchema","GaslessTransactionSchema","error_msg","transaction_hash","transaction_id"],"mappings":"+DAGO,IAAKA,OACVA,CAAAA,CAAA,IAAA,CAAO,MAAA,CACPA,CAAAA,CAAA,KAAA,CAAQ,OAAA,CACRA,EAAA,WAAA,CAAc,aAAA,CACdA,EAAA,MAAA,CAAS,QAAA,CACTA,EAAA,aAAA,CAAgB,eAAA,CALNA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAQCC,CAAAA,CAA+BC,CAAAA,CAAE,KAAKF,CAAsB,CAAA,CAEnEG,EAAqCD,CAAAA,CAAE,IAAA,CAAK,CAChD,OAAA,CACA,MAAA,CACA,aACF,CAAC,CAAA,CAEWE,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,EAAA,SAAA,CAAY,WAAA,CACZA,EAAA,cAAA,CAAiB,gBAAA,CACjBA,EAAA,WAAA,CAAc,aAAA,CACdA,CAAAA,CAAA,eAAA,CAAkB,iBAAA,CAClBA,CAAAA,CAAA,cAAgB,eAAA,CAChBA,CAAAA,CAAA,aAAe,cAAA,CANLA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,IASNC,CAAAA,CAAgCH,CAAAA,CAAE,IAAA,CAAKE,CAAuB,CAAA,CAE9DE,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CAAAA,CACzC,OAAO,CACN,KAAA,CAAOG,EACP,eAAA,CAAiBW,EAAAA,CAAa,SAAQ,CAAE,SAAA,CAAWC,CAAAA,EAAUA,CAAAA,EAAS,IAAI,CAAA,CAC1E,cAAeC,EACjB,CAAC,EACA,SAAA,CAAU,CAAC,CAAE,eAAA,CAAAC,CAAAA,CAAiB,aAAA,CAAAC,CAAAA,CAAe,GAAGC,CAAK,KAAO,CAC3D,GAAGA,EACH,eAAA,CAAiBF,CAAAA,EAAmB,KACpC,aAAA,CAAeC,CACjB,CAAA,CAAE,CAAA,CAMSE,CAAAA,CAAgCpB,CAAAA,CAAE,OAAO,CACpD,QAAA,CAAUA,CAAAA,CAAE,OAAA,EACd,CAAC,EAMYqB,CAAAA,CAA2BrB,CAAAA,CACrC,MAAA,CAAO,CACN,SAAA,CAAWA,CAAAA,CAAE,QAAO,CAAE,OAAA,GACtB,KAAA,CAAOG,CAAAA,CACP,iBAAkBH,CAAAA,CACf,KAAA,CAAM,CAACA,CAAAA,CAAE,OAAA,CAAQ,EAAE,EAAGc,EAAY,CAAC,EACnC,SAAA,CAAWC,CAAAA,EAAWA,IAAU,EAAA,CAAK,IAAA,CAAOA,CAAM,CAAA,CACrD,cAAA,CAAgBC,EAClB,CAAC,CAAA,CACA,SAAA,CAAU,CAAC,CAAE,SAAA,CAAAM,EAAW,gBAAA,CAAAC,CAAAA,CAAkB,cAAA,CAAAC,CAAAA,CAAgB,GAAGL,CAAK,KAAO,CACxE,GAAGA,CAAAA,CACH,QAAA,CAAUG,CAAAA,EAAa,IAAA,CACvB,gBAAiBC,CAAAA,EAAoB,IAAA,CACrC,aAAA,CAAeC,CACjB,CAAA,CAAE","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport { EvmAddressSchema, TransactionIdSchema, TxHashSchema } from '../shared';\n\nexport enum RelayerTransactionType {\n SAFE = 'SAFE',\n PROXY = 'PROXY',\n SAFE_CREATE = 'SAFE-CREATE',\n WALLET = 'WALLET',\n WALLET_CREATE = 'WALLET-CREATE',\n}\n\nexport const RelayerTransactionTypeSchema = z.enum(RelayerTransactionType);\n\nconst RelayerLegacyTransactionTypeSchema = z.enum([\n RelayerTransactionType.PROXY,\n RelayerTransactionType.SAFE,\n RelayerTransactionType.SAFE_CREATE,\n]);\n\nexport enum RelayerTransactionState {\n STATE_NEW = 'STATE_NEW',\n STATE_EXECUTED = 'STATE_EXECUTED',\n STATE_MINED = 'STATE_MINED',\n STATE_CONFIRMED = 'STATE_CONFIRMED',\n STATE_INVALID = 'STATE_INVALID',\n STATE_FAILED = 'STATE_FAILED',\n}\n\nconst RelayerTransactionStateSchema = z.enum(RelayerTransactionState);\n\nconst RelayerSignatureParamsSchema = z.object({\n baseGas: z.string().optional(),\n gasLimit: z.string().optional(),\n gasPrice: z.string().optional(),\n gasToken: EvmAddressSchema.optional(),\n operation: z.string().optional(),\n payment: z.string().optional(),\n paymentReceiver: EvmAddressSchema.optional(),\n paymentToken: EvmAddressSchema.optional(),\n refundReceiver: EvmAddressSchema.optional(),\n relay: EvmAddressSchema.optional(),\n relayHub: EvmAddressSchema.optional(),\n relayerFee: z.string().optional(),\n safeTxnGas: z.string().optional(),\n});\n\nexport const RelayerExecuteParamsSchema = z.object({\n address: EvmAddressSchema,\n nonce: z.string().min(1),\n});\n\nexport type RelayerExecuteParams = z.output<typeof RelayerExecuteParamsSchema>;\n\nexport const RelayerLegacyExecuteRequestSchema = z.object({\n data: z.string().min(1),\n from: EvmAddressSchema,\n metadata: z.string().optional(),\n nonce: z.string().min(1).optional(),\n proxyWallet: EvmAddressSchema,\n signature: z.string().min(1),\n signatureParams: RelayerSignatureParamsSchema,\n to: EvmAddressSchema,\n type: RelayerLegacyTransactionTypeSchema,\n value: z.string().optional(),\n});\n\nexport type RelayerLegacyExecuteRequest = z.input<\n typeof RelayerLegacyExecuteRequestSchema\n>;\n\nexport const DepositWalletCallSchema = z.object({\n data: z.string().min(1),\n target: EvmAddressSchema,\n value: z.string().min(1),\n});\n\nexport type DepositWalletCall = z.input<typeof DepositWalletCallSchema>;\n\nexport const DepositWalletParamsSchema = z.object({\n calls: z.array(DepositWalletCallSchema).min(1),\n deadline: z.string().min(1),\n depositWallet: EvmAddressSchema,\n});\n\nexport type DepositWalletParams = z.input<typeof DepositWalletParamsSchema>;\n\nexport const RelayerDepositWalletExecuteRequestSchema = z.object({\n depositWalletParams: DepositWalletParamsSchema,\n from: EvmAddressSchema,\n metadata: z.string().optional(),\n nonce: z.string().min(1),\n signature: z.string().min(1),\n to: EvmAddressSchema,\n type: z.literal(RelayerTransactionType.WALLET),\n});\n\nexport type RelayerDepositWalletExecuteRequest = z.input<\n typeof RelayerDepositWalletExecuteRequestSchema\n>;\n\nexport const RelayerDepositWalletCreateRequestSchema = z.object({\n from: EvmAddressSchema,\n metadata: z.string().optional(),\n to: EvmAddressSchema,\n type: z.literal(RelayerTransactionType.WALLET_CREATE),\n});\n\nexport type RelayerDepositWalletCreateRequest = z.input<\n typeof RelayerDepositWalletCreateRequestSchema\n>;\n\nexport const RelayerExecuteRequestSchema = z.union([\n RelayerLegacyExecuteRequestSchema,\n RelayerDepositWalletExecuteRequestSchema,\n RelayerDepositWalletCreateRequestSchema,\n]);\n\nexport type RelayerExecuteRequest = z.input<typeof RelayerExecuteRequestSchema>;\n\nexport const RelayerExecuteResponseSchema = z\n .object({\n state: RelayerTransactionStateSchema,\n transactionHash: TxHashSchema.nullish().transform((value) => value ?? null),\n transactionID: TransactionIdSchema,\n })\n .transform(({ transactionHash, transactionID, ...rest }) => ({\n ...rest,\n transactionHash: transactionHash ?? null,\n transactionId: transactionID,\n }));\n\nexport type RelayerExecuteResponse = z.output<\n typeof RelayerExecuteResponseSchema\n>;\n\nexport const RelayerDeployedResponseSchema = z.object({\n deployed: z.boolean(),\n});\n\nexport type RelayerDeployedResponse = z.output<\n typeof RelayerDeployedResponseSchema\n>;\n\nexport const GaslessTransactionSchema = z\n .object({\n error_msg: z.string().nullish(),\n state: RelayerTransactionStateSchema,\n transaction_hash: z\n .union([z.literal(''), TxHashSchema])\n .transform((value) => (value === '' ? null : value)),\n transaction_id: TransactionIdSchema,\n })\n .transform(({ error_msg, transaction_hash, transaction_id, ...rest }) => ({\n ...rest,\n errorMsg: error_msg ?? null,\n transactionHash: transaction_hash ?? null,\n transactionId: transaction_id,\n }));\n\nexport type GaslessTransaction = z.output<typeof GaslessTransactionSchema>;\n"]}
1
+ {"version":3,"sources":["../../src/relayer/transaction.ts"],"names":["RelayerTransactionType","RelayerTransactionTypeSchema","z","RelayerLegacyTransactionTypeSchema","RelayerTransactionState","RelayerTransactionStateSchema","RelayerSignatureParamsSchema","EvmAddressSchema","RelayerExecuteParamsSchema","RelayerLegacyExecuteRequestSchema","DepositWalletCallSchema","DepositWalletParamsSchema","RelayerDepositWalletExecuteRequestSchema","RelayerDepositWalletCreateRequestSchema","RelayerExecuteRequestSchema","RelayerExecuteResponseSchema","TxHashSchema","value","TransactionIdSchema","transactionHash","transactionID","rest","RelayerDeployedResponseSchema","GaslessTransactionSchema","error_msg","transaction_hash","transaction_id"],"mappings":"gEAGO,IAAKA,OACVA,CAAAA,CAAA,IAAA,CAAO,MAAA,CACPA,CAAAA,CAAA,KAAA,CAAQ,OAAA,CACRA,EAAA,WAAA,CAAc,aAAA,CACdA,EAAA,MAAA,CAAS,QAAA,CACTA,EAAA,aAAA,CAAgB,eAAA,CALNA,CAAAA,CAAAA,EAAAA,CAAAA,EAAA,EAAA,CAAA,CAQCC,CAAAA,CAA+BC,CAAAA,CAAE,KAAKF,CAAsB,CAAA,CAEnEG,EAAqCD,CAAAA,CAAE,IAAA,CAAK,CAChD,OAAA,CACA,MAAA,CACA,aACF,CAAC,CAAA,CAEWE,CAAAA,CAAAA,CAAAA,CAAAA,GACVA,EAAA,SAAA,CAAY,WAAA,CACZA,EAAA,cAAA,CAAiB,gBAAA,CACjBA,EAAA,WAAA,CAAc,aAAA,CACdA,CAAAA,CAAA,eAAA,CAAkB,iBAAA,CAClBA,CAAAA,CAAA,cAAgB,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ddressSchema, TransactionIdSchema, TxHashSchema } from '../shared';\n\nexport enum RelayerTransactionType {\n SAFE = 'SAFE',\n PROXY = 'PROXY',\n SAFE_CREATE = 'SAFE-CREATE',\n WALLET = 'WALLET',\n WALLET_CREATE = 'WALLET-CREATE',\n}\n\nexport const RelayerTransactionTypeSchema = z.enum(RelayerTransactionType);\n\nconst RelayerLegacyTransactionTypeSchema = z.enum([\n RelayerTransactionType.PROXY,\n RelayerTransactionType.SAFE,\n RelayerTransactionType.SAFE_CREATE,\n]);\n\nexport enum RelayerTransactionState {\n STATE_NEW = 'STATE_NEW',\n STATE_EXECUTED = 'STATE_EXECUTED',\n STATE_MINED = 'STATE_MINED',\n STATE_CONFIRMED = 'STATE_CONFIRMED',\n STATE_INVALID = 'STATE_INVALID',\n STATE_FAILED = 'STATE_FAILED',\n}\n\nconst RelayerTransactionStateSchema = z.enum(RelayerTransactionState);\n\nconst RelayerSignatureParamsSchema = z.object({\n baseGas: z.string().optional(),\n gasLimit: z.string().optional(),\n gasPrice: z.string().optional(),\n gasToken: EvmAddressSchema.optional(),\n operation: z.string().optional(),\n payment: z.string().optional(),\n paymentReceiver: EvmAddressSchema.optional(),\n paymentToken: EvmAddressSchema.optional(),\n refundReceiver: EvmAddressSchema.optional(),\n relay: EvmAddressSchema.optional(),\n relayHub: EvmAddressSchema.optional(),\n relayerFee: z.string().optional(),\n safeTxnGas: z.string().optional(),\n});\n\nexport const RelayerExecuteParamsSchema = z.object({\n address: EvmAddressSchema,\n nonce: z.string().min(1),\n});\n\nexport type RelayerExecuteParams = z.output<typeof RelayerExecuteParamsSchema>;\n\nexport const RelayerLegacyExecuteRequestSchema = z.object({\n data: z.string().min(1),\n from: EvmAddressSchema,\n metadata: z.string().optional(),\n nonce: z.string().min(1).optional(),\n proxyWallet: EvmAddressSchema,\n signature: z.string().min(1),\n signatureParams: RelayerSignatureParamsSchema,\n to: EvmAddressSchema,\n type: RelayerLegacyTransactionTypeSchema,\n value: z.string().optional(),\n});\n\nexport type RelayerLegacyExecuteRequest = z.input<\n typeof RelayerLegacyExecuteRequestSchema\n>;\n\nexport const DepositWalletCallSchema = z.object({\n data: z.string().min(1),\n target: EvmAddressSchema,\n value: z.string().min(1),\n});\n\nexport type DepositWalletCall = z.input<typeof DepositWalletCallSchema>;\n\nexport const DepositWalletParamsSchema = z.object({\n calls: z.array(DepositWalletCallSchema).min(1),\n deadline: z.string().min(1),\n depositWallet: EvmAddressSchema,\n});\n\nexport type DepositWalletParams = z.input<typeof DepositWalletParamsSchema>;\n\nexport const RelayerDepositWalletExecuteRequestSchema = z.object({\n depositWalletParams: DepositWalletParamsSchema,\n from: EvmAddressSchema,\n metadata: z.string().optional(),\n nonce: z.string().min(1),\n signature: z.string().min(1),\n to: EvmAddressSchema,\n type: z.literal(RelayerTransactionType.WALLET),\n});\n\nexport type RelayerDepositWalletExecuteRequest = z.input<\n typeof RelayerDepositWalletExecuteRequestSchema\n>;\n\nexport const RelayerDepositWalletCreateRequestSchema = z.object({\n from: EvmAddressSchema,\n metadata: z.string().optional(),\n to: EvmAddressSchema,\n type: z.literal(RelayerTransactionType.WALLET_CREATE),\n});\n\nexport type RelayerDepositWalletCreateRequest = z.input<\n typeof RelayerDepositWalletCreateRequestSchema\n>;\n\nexport const RelayerExecuteRequestSchema = z.union([\n RelayerLegacyExecuteRequestSchema,\n RelayerDepositWalletExecuteRequestSchema,\n RelayerDepositWalletCreateRequestSchema,\n]);\n\nexport type RelayerExecuteRequest = z.input<typeof RelayerExecuteRequestSchema>;\n\nexport const RelayerExecuteResponseSchema = z\n .object({\n state: RelayerTransactionStateSchema,\n transactionHash: TxHashSchema.nullish().transform((value) => value ?? null),\n transactionID: TransactionIdSchema,\n })\n .transform(({ transactionHash, transactionID, ...rest }) => ({\n ...rest,\n transactionHash: transactionHash ?? null,\n transactionId: transactionID,\n }));\n\nexport type RelayerExecuteResponse = z.output<\n typeof RelayerExecuteResponseSchema\n>;\n\nexport const RelayerDeployedResponseSchema = z.object({\n deployed: z.boolean(),\n});\n\nexport type RelayerDeployedResponse = z.output<\n typeof RelayerDeployedResponseSchema\n>;\n\nexport const GaslessTransactionSchema = z\n .object({\n error_msg: z.string().nullish(),\n state: RelayerTransactionStateSchema,\n transaction_hash: z\n .union([z.literal(''), TxHashSchema])\n .transform((value) => (value === '' ? null : value)),\n transaction_id: TransactionIdSchema,\n })\n .transform(({ error_msg, transaction_hash, transaction_id, ...rest }) => ({\n ...rest,\n errorMsg: error_msg ?? null,\n transactionHash: transaction_hash ?? null,\n transactionId: transaction_id,\n }));\n\nexport type GaslessTransaction = z.output<typeof GaslessTransactionSchema>;\n"]}
@@ -1,17 +1,9 @@
1
- import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
1
+ import { TokenId, DecimalString, EpochMilliseconds, CtfConditionId, IsoDateTimeString, OrderSide, OrderType, TradeStatus, BaseUnits, CommentId, CommentParentEntityType, EventId, SeriesId, ImageOptimizationId } from '../index.js';
2
2
  import { z } from 'zod';
3
- import { P as PerpsInstrumentId, Q as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, T as PerpsOrderId, j as PerpsSide, a2 as PerpsTimeInForce, W as PerpsOrderStatus, a4 as PerpsTpSlKind, a8 as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsWithdrawalStatus } from '../orders-mGd3XVG1.js';
3
+ import { P as PerpsInstrumentId, Q as PerpsKlineInterval, b as PerpsDepositStatus, i as PerpsTradeId, T as PerpsOrderId, j as PerpsSide, a2 as PerpsTimeInForce, W as PerpsOrderStatus, a4 as PerpsTpSlKind, a8 as PerpsTpSlScope, c as PerpsWithdrawalId, d as PerpsKnownWithdrawalStatus } from '../orders-ClcuI-yo.js';
4
4
  import * as _polymarket_types from '@polymarket/types';
5
5
  import { R as ReactionType } from '../comment-C-jBbhp7.js';
6
6
 
7
- declare enum TradeStatus {
8
- Matched = "TRADE_STATUS_MATCHED",
9
- MatchedNotBroadcasted = "TRADE_STATUS_MATCHED_NOT_BROADCASTED",
10
- Mined = "TRADE_STATUS_MINED",
11
- Confirmed = "TRADE_STATUS_CONFIRMED",
12
- Retrying = "TRADE_STATUS_RETRYING",
13
- Failed = "TRADE_STATUS_FAILED"
14
- }
15
7
  declare enum UserOrderStatus {
16
8
  Live = "LIVE",
17
9
  Matched = "MATCHED",
@@ -2895,7 +2887,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2895
2887
  asset: z.ZodString;
2896
2888
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
2897
2889
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
2898
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
2890
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
2899
2891
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
2900
2892
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
2901
2893
  }, z.core.$strip>, z.ZodTransform<{
@@ -2903,7 +2895,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2903
2895
  asset: string;
2904
2896
  amount: BaseUnits;
2905
2897
  fee: DecimalString;
2906
- status: PerpsWithdrawalStatus;
2898
+ status: PerpsKnownWithdrawalStatus | (string & {});
2907
2899
  to: _polymarket_types.EvmAddress;
2908
2900
  hash: _polymarket_types.TxHash | undefined;
2909
2901
  }, {
@@ -2911,7 +2903,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2911
2903
  asset: string;
2912
2904
  amount: BaseUnits;
2913
2905
  fee: DecimalString;
2914
- status: PerpsWithdrawalStatus;
2906
+ status: PerpsKnownWithdrawalStatus | (string & {});
2915
2907
  to: _polymarket_types.EvmAddress;
2916
2908
  hash?: _polymarket_types.TxHash | undefined;
2917
2909
  }>>;
@@ -2925,7 +2917,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2925
2917
  asset: string;
2926
2918
  amount: BaseUnits;
2927
2919
  fee: DecimalString;
2928
- status: PerpsWithdrawalStatus;
2920
+ status: PerpsKnownWithdrawalStatus | (string & {});
2929
2921
  to: _polymarket_types.EvmAddress;
2930
2922
  hash: _polymarket_types.TxHash | undefined;
2931
2923
  };
@@ -2938,7 +2930,7 @@ declare const PerpsWithdrawalUpdateEventSchema: z.ZodPipe<z.ZodObject<{
2938
2930
  asset: string;
2939
2931
  amount: BaseUnits;
2940
2932
  fee: DecimalString;
2941
- status: PerpsWithdrawalStatus;
2933
+ status: PerpsKnownWithdrawalStatus | (string & {});
2942
2934
  to: _polymarket_types.EvmAddress;
2943
2935
  hash: _polymarket_types.TxHash | undefined;
2944
2936
  };
@@ -3548,7 +3540,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3548
3540
  asset: z.ZodString;
3549
3541
  amount: z.ZodPipe<z.ZodString, z.ZodTransform<BaseUnits, string>>;
3550
3542
  fee: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
3551
- status: z.ZodEnum<typeof PerpsWithdrawalStatus>;
3543
+ status: z.ZodPipe<z.ZodString, z.ZodTransform<PerpsKnownWithdrawalStatus | (string & {}), string>>;
3552
3544
  to: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
3553
3545
  hash: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.TxHash, string>>>>;
3554
3546
  }, z.core.$strip>, z.ZodTransform<{
@@ -3556,7 +3548,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3556
3548
  asset: string;
3557
3549
  amount: BaseUnits;
3558
3550
  fee: DecimalString;
3559
- status: PerpsWithdrawalStatus;
3551
+ status: PerpsKnownWithdrawalStatus | (string & {});
3560
3552
  to: _polymarket_types.EvmAddress;
3561
3553
  hash: _polymarket_types.TxHash | undefined;
3562
3554
  }, {
@@ -3564,7 +3556,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3564
3556
  asset: string;
3565
3557
  amount: BaseUnits;
3566
3558
  fee: DecimalString;
3567
- status: PerpsWithdrawalStatus;
3559
+ status: PerpsKnownWithdrawalStatus | (string & {});
3568
3560
  to: _polymarket_types.EvmAddress;
3569
3561
  hash?: _polymarket_types.TxHash | undefined;
3570
3562
  }>>;
@@ -3578,7 +3570,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3578
3570
  asset: string;
3579
3571
  amount: BaseUnits;
3580
3572
  fee: DecimalString;
3581
- status: PerpsWithdrawalStatus;
3573
+ status: PerpsKnownWithdrawalStatus | (string & {});
3582
3574
  to: _polymarket_types.EvmAddress;
3583
3575
  hash: _polymarket_types.TxHash | undefined;
3584
3576
  };
@@ -3591,7 +3583,7 @@ declare const PerpsSessionUpdateEventSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
3591
3583
  asset: string;
3592
3584
  amount: BaseUnits;
3593
3585
  fee: DecimalString;
3594
- status: PerpsWithdrawalStatus;
3586
+ status: PerpsKnownWithdrawalStatus | (string & {});
3595
3587
  to: _polymarket_types.EvmAddress;
3596
3588
  hash: _polymarket_types.TxHash | undefined;
3597
3589
  };