@polymarket/bindings 0.10.0 → 0.12.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/chunk-2FRDSBWY.js +2 -0
- package/dist/chunk-2FRDSBWY.js.map +1 -0
- package/dist/{chunk-RGWF46B7.js → chunk-3IZ4N7C2.js} +2 -2
- package/dist/{chunk-RGWF46B7.js.map → chunk-3IZ4N7C2.js.map} +1 -1
- package/dist/chunk-DAWT25YZ.js +2 -0
- package/dist/chunk-DAWT25YZ.js.map +1 -0
- package/dist/clob/index.d.ts +15 -10
- package/dist/clob/index.js +1 -1
- package/dist/clob/index.js.map +1 -1
- package/dist/combos/index.js +1 -1
- package/dist/{comment-C-jBbhp7.d.ts → comment-CKJIqOZS.d.ts} +372 -2
- package/dist/data/index.d.ts +41 -11
- package/dist/data/index.js +1 -1
- package/dist/data/index.js.map +1 -1
- package/dist/gamma/index.d.ts +16 -1
- package/dist/gamma/index.js +1 -1
- package/dist/gamma/index.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +1 -1
- package/dist/{orders-CAELACaR.d.ts → orders-BMW5PN-Q.d.ts} +654 -37
- package/dist/perps/index.d.ts +74 -8
- package/dist/perps/index.js +1 -1
- package/dist/perps/index.js.map +1 -1
- package/dist/relayer/index.js +1 -1
- package/dist/subscriptions/index.d.ts +646 -43
- package/dist/subscriptions/index.js +1 -1
- package/dist/subscriptions/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-NILFT6EF.js +0 -2
- package/dist/chunk-NILFT6EF.js.map +0 -1
- package/dist/chunk-V3FFOW6W.js +0 -2
- package/dist/chunk-V3FFOW6W.js.map +0 -1
package/dist/perps/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _polymarket_types from '@polymarket/types';
|
|
2
|
-
import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsFundingPaymentId, c as PerpsDepositStatus, d as
|
|
3
|
-
export { F as FetchPerpsOpenOrdersResponseSchema,
|
|
2
|
+
import { P as PerpsInstrumentId, a as PerpsEntityId, b as PerpsFundingPaymentId, c as PerpsDepositStatus, d as PerpsInternalTransferId, e as PerpsKnownInternalTransferType, f as PerpsInternalTransferDirection, g as PerpsWithdrawalId, h as PerpsKnownWithdrawalStatus, i as PerpsInstrumentType, j as PerpsInstrumentCategory, k as PerpsTradeId, l as PerpsSide } from '../orders-BMW5PN-Q.js';
|
|
3
|
+
export { F as FetchPerpsBuilderApprovalsResponseSchema, m as FetchPerpsOpenOrdersResponseSchema, n as FetchPerpsOrdersResponseSchema, o as FetchPerpsUnreadNotificationsCountResponseSchema, L as ListPerpsBuilderEarningsResponseSchema, p as ListPerpsFillsResponseSchema, q as ListPerpsNotificationsResponseSchema, M as MarkPerpsNotificationsReadResponseSchema, r as PerpsAccountFill, s as PerpsAccountFillSchema, t as PerpsAccountFillUpdateSchema, u as PerpsAssetSchema, v as PerpsBuilderApproval, w as PerpsBuilderApprovalSchema, x as PerpsBuilderEarning, y as PerpsBuilderEarningId, z as PerpsBuilderEarningIdSchema, A as PerpsBuilderEarningSchema, B as PerpsBuilderEarningsAsset, C as PerpsBuilderEarningsAssetSchema, D as PerpsBuilderEarningsSnapshot, E as PerpsBuilderEarningsSnapshotSchema, G as PerpsBuilderEarningsSummary, H as PerpsBuilderEarningsSummarySchema, I as PerpsBuilderStatus, J as PerpsBuilderStatusSchema, K as PerpsBuilderTerms, N as PerpsBuilderTermsSchema, O as PerpsCancelAllOrdersResponse, Q as PerpsCancelAllOrdersResponseSchema, R as PerpsCancelOrderErrorCode, S as PerpsCancelOrderErrorCodeSchema, T as PerpsCancelOrderResult, U as PerpsCancelOrderResultSchema, V as PerpsClientOrderId, W as PerpsClientOrderIdSchema, X as PerpsCommandAck, Y as PerpsCommandAckSchema, Z as PerpsCommandStatusSchema, _ as PerpsCredentials, $ as PerpsDataResponseSchema, a0 as PerpsDecimal, a1 as PerpsDecimalInput, a2 as PerpsDecimalInputSchema, a3 as PerpsDepositAmount, a4 as PerpsDepositStatusSchema, a5 as PerpsEntityIdSchema, a6 as PerpsFundingInterval, a7 as PerpsFundingIntervalSchema, a8 as PerpsFundingPaymentIdSchema, a9 as PerpsInstrumentCategorySchema, aa as PerpsInstrumentIdSchema, ab as PerpsInstrumentTypeSchema, ac as PerpsInternalTransferDirectionSchema, ad as PerpsInternalTransferIdSchema, ae as PerpsInternalTransferType, af as PerpsInternalTransferTypeSchema, ag as PerpsKlineInterval, ah as PerpsKlineIntervalSchema, ai as PerpsKnownCancelOrderErrorCode, aj as PerpsLimitOrderCanceledNotification, ak as PerpsLimitOrderCanceledNotificationSchema, al as PerpsLiquidationWarningNotification, am as PerpsLiquidationWarningNotificationSchema, an as PerpsLiquidityRole, ao as PerpsMarginType, ap as PerpsMarginTypeSchema, aq as PerpsNotification, ar as PerpsNotificationEntry, as as PerpsNotificationEntrySchema, at as PerpsNotificationId, au as PerpsNotificationIdSchema, av as PerpsNotificationOrderType, aw as PerpsNotificationOrderTypeSchema, ax as PerpsNotificationSchema, ay as PerpsNotificationType, az as PerpsNotificationTypeSchema, aA as PerpsOrder, aB as PerpsOrderId, aC as PerpsOrderIdSchema, aD as PerpsOrderSchema, aE as PerpsOrderStatus, aF as PerpsOrderStatusSchema, aG as PerpsOrderUpdateSchema, aH as PerpsPnlInterval, aI as PerpsPnlIntervalSchema, aJ as PerpsPositionChangeNotification, aK as PerpsPositionChangeNotificationSchema, aL as PerpsPositionClosedNotification, aM as PerpsPositionClosedNotificationSchema, aN as PerpsPositionLiquidatedNotification, aO as PerpsPositionLiquidatedNotificationSchema, aP as PerpsPostOrderAck, aQ as PerpsPostOrderAckSchema, aR as PerpsSideSchema, aS as PerpsSortDirection, aT as PerpsSortDirectionSchema, aU as PerpsTimeInForce, aV as PerpsTimeInForceSchema, aW as PerpsTpSlKind, aX as PerpsTpSlKindSchema, aY as PerpsTpSlOrderFields, aZ as PerpsTpSlOrderFieldsSchema, a_ as PerpsTpSlScope, a$ as PerpsTpSlScopeSchema, b0 as PerpsTradeIdSchema, b1 as PerpsTxHash, b2 as PerpsTxHashSchema, b3 as PerpsUpdateLeverageResult, b4 as PerpsUpdateLeverageResultSchema, b5 as PerpsWithdrawalAmount, b6 as PerpsWithdrawalIdSchema, b7 as PerpsWithdrawalStatus, b8 as PerpsWithdrawalStatusSchema, b9 as decimalString, ba as perpsBaseUnits, bb as perpsDecimal } from '../orders-BMW5PN-Q.js';
|
|
4
4
|
import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
|
|
@@ -922,19 +922,85 @@ declare const PerpsWithdrawalUpdateSchema: z.ZodPipe<z.ZodObject<{
|
|
|
922
922
|
/**
|
|
923
923
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
924
924
|
*/
|
|
925
|
-
declare const PerpsInternalTransferSchema: z.ZodObject<{
|
|
926
|
-
|
|
925
|
+
declare const PerpsInternalTransferSchema: z.ZodPipe<z.ZodObject<{
|
|
926
|
+
transfer_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
|
|
927
|
+
type: z.ZodPipe<z.ZodString, z.ZodTransform<(string & {}) | PerpsKnownInternalTransferType, string>>;
|
|
927
928
|
asset: z.ZodString;
|
|
928
|
-
amount: z.ZodPipe<z.ZodString, z.ZodTransform<
|
|
929
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
929
930
|
direction: z.ZodEnum<typeof PerpsInternalTransferDirection>;
|
|
930
931
|
counterparty: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
931
932
|
label: z.ZodOptional<z.ZodString>;
|
|
932
|
-
|
|
933
|
-
}, z.core.$strip
|
|
933
|
+
created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
934
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
935
|
+
transferId: PerpsInternalTransferId;
|
|
936
|
+
type: (string & {}) | PerpsKnownInternalTransferType;
|
|
937
|
+
asset: string;
|
|
938
|
+
amount: DecimalString;
|
|
939
|
+
direction: PerpsInternalTransferDirection;
|
|
940
|
+
counterparty: _polymarket_types.EvmAddress;
|
|
941
|
+
label: string | undefined;
|
|
942
|
+
createdTimestamp: EpochMilliseconds;
|
|
943
|
+
}, {
|
|
944
|
+
transfer_id: PerpsInternalTransferId;
|
|
945
|
+
type: (string & {}) | PerpsKnownInternalTransferType;
|
|
946
|
+
asset: string;
|
|
947
|
+
amount: DecimalString;
|
|
948
|
+
direction: PerpsInternalTransferDirection;
|
|
949
|
+
counterparty: _polymarket_types.EvmAddress;
|
|
950
|
+
created_timestamp: EpochMilliseconds;
|
|
951
|
+
label?: string | undefined;
|
|
952
|
+
}>>;
|
|
934
953
|
/**
|
|
935
954
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
936
955
|
*/
|
|
937
956
|
type PerpsInternalTransfer = z.infer<typeof PerpsInternalTransferSchema>;
|
|
957
|
+
/**
|
|
958
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
959
|
+
*/
|
|
960
|
+
declare const ListPerpsInternalTransfersResponseSchema: z.ZodObject<{
|
|
961
|
+
data: z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
962
|
+
transfer_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
|
|
963
|
+
type: z.ZodPipe<z.ZodString, z.ZodTransform<(string & {}) | PerpsKnownInternalTransferType, string>>;
|
|
964
|
+
asset: z.ZodString;
|
|
965
|
+
amount: z.ZodPipe<z.ZodString, z.ZodTransform<DecimalString, string>>;
|
|
966
|
+
direction: z.ZodEnum<typeof PerpsInternalTransferDirection>;
|
|
967
|
+
counterparty: z.ZodPipe<z.ZodString, z.ZodTransform<_polymarket_types.EvmAddress, string>>;
|
|
968
|
+
label: z.ZodOptional<z.ZodString>;
|
|
969
|
+
created_timestamp: z.ZodPipe<z.ZodNumber, z.ZodTransform<EpochMilliseconds, number>>;
|
|
970
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
971
|
+
transferId: PerpsInternalTransferId;
|
|
972
|
+
type: (string & {}) | PerpsKnownInternalTransferType;
|
|
973
|
+
asset: string;
|
|
974
|
+
amount: DecimalString;
|
|
975
|
+
direction: PerpsInternalTransferDirection;
|
|
976
|
+
counterparty: _polymarket_types.EvmAddress;
|
|
977
|
+
label: string | undefined;
|
|
978
|
+
createdTimestamp: EpochMilliseconds;
|
|
979
|
+
}, {
|
|
980
|
+
transfer_id: PerpsInternalTransferId;
|
|
981
|
+
type: (string & {}) | PerpsKnownInternalTransferType;
|
|
982
|
+
asset: string;
|
|
983
|
+
amount: DecimalString;
|
|
984
|
+
direction: PerpsInternalTransferDirection;
|
|
985
|
+
counterparty: _polymarket_types.EvmAddress;
|
|
986
|
+
created_timestamp: EpochMilliseconds;
|
|
987
|
+
label?: string | undefined;
|
|
988
|
+
}>>>;
|
|
989
|
+
more: z.ZodBoolean;
|
|
990
|
+
}, z.core.$strip>;
|
|
991
|
+
/**
|
|
992
|
+
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
993
|
+
*/
|
|
994
|
+
declare const PerpsInternalTransferResponseSchema: z.ZodPipe<z.ZodObject<{
|
|
995
|
+
status: z.ZodLiteral<"ok">;
|
|
996
|
+
transfer_id: z.ZodPipe<z.ZodNumber, z.ZodTransform<PerpsInternalTransferId, number>>;
|
|
997
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
998
|
+
status: "ok";
|
|
999
|
+
transferId: PerpsInternalTransferId;
|
|
1000
|
+
}, {
|
|
1001
|
+
status: "ok";
|
|
1002
|
+
transfer_id: PerpsInternalTransferId;
|
|
1003
|
+
}>>;
|
|
938
1004
|
|
|
939
1005
|
/**
|
|
940
1006
|
* @experimental This API may change in a breaking way in any release, including patch releases.
|
|
@@ -1824,4 +1890,4 @@ declare const FetchPerpsCandlesResponseSchema: z.ZodObject<{
|
|
|
1824
1890
|
more: z.ZodBoolean;
|
|
1825
1891
|
}, z.core.$strip>;
|
|
1826
1892
|
|
|
1827
|
-
export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsAutoCancelStatusResponseSchema, 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 PerpsAutoCancelResponse, PerpsAutoCancelResponseSchema, type PerpsAutoCancelStatus, PerpsAutoCancelStatusSchema, 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, PerpsFundingPaymentId, 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 };
|
|
1893
|
+
export { FetchPerpsAccountConfigResponseSchema, FetchPerpsAccountStatsResponseSchema, FetchPerpsAutoCancelStatusResponseSchema, FetchPerpsBalancesResponseSchema, FetchPerpsCandlesResponseSchema, FetchPerpsFeesResponseSchema, FetchPerpsFundingHistoryResponseSchema, FetchPerpsInstrumentsResponseSchema, FetchPerpsPortfolioResponseSchema, FetchPerpsStatisticsResponseSchema, FetchPerpsTickersResponseSchema, FetchPerpsTradesResponseSchema, ListPerpsDepositsResponseSchema, ListPerpsEquityHistoryResponseSchema, ListPerpsFundingPaymentsResponseSchema, ListPerpsInternalTransfersResponseSchema, ListPerpsPnlHistoryResponseSchema, ListPerpsWithdrawalsResponseSchema, type PerpsAccountConfig, PerpsAccountConfigSchema, type PerpsAccountFundingPayment, PerpsAccountFundingPaymentEntrySchema, PerpsAccountFundingPaymentSchema, type PerpsAccountStats, PerpsAccountStatsSchema, type PerpsAutoCancelResponse, PerpsAutoCancelResponseSchema, type PerpsAutoCancelStatus, PerpsAutoCancelStatusSchema, 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, PerpsFundingPaymentId, type PerpsFundingRate, PerpsFundingRateSchema, type PerpsInstrument, PerpsInstrumentCategory, PerpsInstrumentId, PerpsInstrumentSchema, PerpsInstrumentType, type PerpsInternalTransfer, PerpsInternalTransferDirection, PerpsInternalTransferId, PerpsInternalTransferResponseSchema, PerpsInternalTransferSchema, PerpsKnownInternalTransferType, 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 };
|
package/dist/perps/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{ca as FetchPerpsAccountConfigResponseSchema,V as FetchPerpsAccountStatsResponseSchema,T as FetchPerpsBalancesResponseSchema,oa as FetchPerpsBuilderApprovalsResponseSchema,bb as FetchPerpsCandlesResponseSchema,ab as FetchPerpsFeesResponseSchema,Ya as FetchPerpsFundingHistoryResponseSchema,Ha as FetchPerpsInstrumentsResponseSchema,Fb as FetchPerpsOpenOrdersResponseSchema,Eb as FetchPerpsOrdersResponseSchema,Z as FetchPerpsPortfolioResponseSchema,Na as FetchPerpsStatisticsResponseSchema,Ja as FetchPerpsTickersResponseSchema,Wa as FetchPerpsTradesResponseSchema,qb as FetchPerpsUnreadNotificationsCountResponseSchema,sa as ListPerpsBuilderEarningsResponseSchema,wa as ListPerpsDepositsResponseSchema,ea as ListPerpsEquityHistoryResponseSchema,Ib as ListPerpsFillsResponseSchema,$ as ListPerpsFundingPaymentsResponseSchema,Da as ListPerpsInternalTransfersResponseSchema,pb as ListPerpsNotificationsResponseSchema,ga as ListPerpsPnlHistoryResponseSchema,za as ListPerpsWithdrawalsResponseSchema,rb as MarkPerpsNotificationsReadResponseSchema,ba as PerpsAccountConfigSchema,Hb as PerpsAccountFillSchema,Jb as PerpsAccountFillUpdateSchema,aa as PerpsAccountFundingPaymentEntrySchema,_ as PerpsAccountFundingPaymentSchema,U as PerpsAccountStatsSchema,M as PerpsAssetSchema,S as PerpsBalanceSchema,Sa as PerpsBboSchema,Ta as PerpsBboUpdateSchema,Pa as PerpsBookLevelSchema,Qa as PerpsBookSchema,Ra as PerpsBookUpdateSchema,na as PerpsBuilderApprovalSchema,e as PerpsBuilderEarningIdSchema,qa as PerpsBuilderEarningSchema,ta as PerpsBuilderEarningsAssetSchema,ra as PerpsBuilderEarningsSnapshotSchema,ua as PerpsBuilderEarningsSummarySchema,ma as PerpsBuilderStatusSchema,la as PerpsBuilderTermsSchema,Bb as PerpsCancelAllOrdersResponseSchema,xb as PerpsCancelOrderErrorCodeSchema,Ab as PerpsCancelOrderResultSchema,La as PerpsCandleSchema,c as PerpsClientOrderIdSchema,yb as PerpsCommandAckSchema,vb as PerpsCommandStatusSchema,ja as PerpsCreateProxyResponseSchema,ia as PerpsCredentialsResponseSchema,O as PerpsDataResponseSchema,l as PerpsDecimalInputSchema,ka as PerpsDeleteProxyResponseSchema,va as PerpsDepositSchema,s as PerpsDepositStatus,F as PerpsDepositStatusSchema,xa as PerpsDepositUpdateSchema,j as PerpsEntityIdSchema,da as PerpsEquityPointSchema,_a as PerpsFeeScheduleEntrySchema,Za as PerpsFeeTierSchema,$a as PerpsFeesInfoSchema,k as PerpsFundingIntervalSchema,g as PerpsFundingPaymentIdSchema,Xa as PerpsFundingRateSchema,n as PerpsInstrumentCategory,A as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,Ga as PerpsInstrumentSchema,m as PerpsInstrumentType,z as PerpsInstrumentTypeSchema,v as PerpsInternalTransferDirection,I as PerpsInternalTransferDirectionSchema,i as PerpsInternalTransferIdSchema,Ea as PerpsInternalTransferResponseSchema,Ca as PerpsInternalTransferSchema,H as PerpsInternalTransferTypeSchema,w as PerpsKlineInterval,J as PerpsKlineIntervalSchema,wb as PerpsKnownCancelOrderErrorCode,u as PerpsKnownInternalTransferType,t as PerpsKnownWithdrawalStatus,kb as PerpsLimitOrderCanceledNotificationSchema,lb as PerpsLiquidationWarningNotificationSchema,pa as PerpsLiquidityRole,X as PerpsMarginSummarySchema,gb as PerpsMarginType,hb as PerpsMarginTypeSchema,ob as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,eb as PerpsNotificationOrderType,fb as PerpsNotificationOrderTypeSchema,nb as PerpsNotificationSchema,cb as PerpsNotificationType,db as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,Db as PerpsOrderSchema,sb as PerpsOrderStatus,ub as PerpsOrderStatusSchema,Gb as PerpsOrderUpdateSchema,x as PerpsPnlInterval,K as PerpsPnlIntervalSchema,fa as PerpsPnlPointSchema,W as PerpsPortfolioPositionSchema,Y as PerpsPortfolioSchema,ib as PerpsPositionChangeNotificationSchema,jb as PerpsPositionClosedNotificationSchema,mb as PerpsPositionLiquidatedNotificationSchema,zb as PerpsPostOrderAckSchema,ha as PerpsProxyKeySchema,Ua as PerpsPublicTradeSchema,Va as PerpsPublicTradeUpdateSchema,Fa as PerpsRiskTierSchema,o as PerpsSide,B as PerpsSideSchema,y as PerpsSortDirection,L as PerpsSortDirectionSchema,Ma as PerpsStatisticSchema,Oa as PerpsStatisticUpdateSchema,Ka as PerpsTickerEntrySchema,Ia as PerpsTickerSchema,p as PerpsTimeInForce,C as PerpsTimeInForceSchema,q as PerpsTpSlKind,D as PerpsTpSlKindSchema,tb as PerpsTpSlOrderFieldsSchema,r as PerpsTpSlScope,E as PerpsTpSlScopeSchema,f as PerpsTradeIdSchema,N as PerpsTxHashSchema,Cb as PerpsUpdateLeverageResultSchema,Aa as PerpsWithdrawResponseSchema,h as PerpsWithdrawalIdSchema,ya as PerpsWithdrawalSchema,G as PerpsWithdrawalStatusSchema,Ba as PerpsWithdrawalUpdateSchema,R as decimalString,Q as perpsBaseUnits,P as perpsDecimal}from'../chunk-DAWT25YZ.js';import {u,da}from'../chunk-3IZ4N7C2.js';import {z}from'zod';var n=z.number().int().transform(e=>e===0?null:u(e)),Ot=z.object({status:z.literal("ok"),deadline:n}),p=z.object({deadline:n,triggered:z.number().int().nonnegative(),daily_limit:z.number().int().nonnegative(),next_reset:da}).transform(e=>({deadline:e.deadline,triggered:e.triggered,dailyLimit:e.daily_limit,nextReset:e.next_reset})),Qt=p;export{Qt as FetchPerpsAutoCancelStatusResponseSchema,Ot as PerpsAutoCancelResponseSchema,p as PerpsAutoCancelStatusSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/perps/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/perps/auto-cancel.ts"],"names":["AutoCancelDeadlineSchema","z","value","toEpochMilliseconds","PerpsAutoCancelResponseSchema","PerpsAutoCancelStatusSchema","EpochMillisecondsSchema","status","FetchPerpsAutoCancelStatusResponseSchema"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/perps/auto-cancel.ts"],"names":["AutoCancelDeadlineSchema","z","value","toEpochMilliseconds","PerpsAutoCancelResponseSchema","PerpsAutoCancelStatusSchema","EpochMillisecondsSchema","status","FetchPerpsAutoCancelStatusResponseSchema"],"mappings":"yoJAIA,IAAMA,EAA2BC,CAAAA,CAC9B,MAAA,EAAO,CACP,GAAA,GACA,SAAA,CAAWC,CAAAA,EAAWA,CAAAA,GAAU,CAAA,CAAI,KAAOC,CAAAA,CAAoBD,CAAK,CAAE,CAAA,CAS5DE,GAAgCH,CAAAA,CAAE,MAAA,CAAO,CACpD,MAAA,CAAQA,EAAE,OAAA,CAAQ,IAAI,CAAA,CACtB,QAAA,CAAUD,CACZ,CAAC,CAAA,CAeYK,CAAAA,CAA8BJ,CAAAA,CACxC,OAAO,CACN,QAAA,CAAUD,CAAAA,CACV,SAAA,CAAWC,EAAE,MAAA,EAAO,CAAE,GAAA,EAAI,CAAE,aAAY,CACxC,WAAA,CAAaA,CAAAA,CAAE,MAAA,GAAS,GAAA,EAAI,CAAE,WAAA,EAAY,CAC1C,WAAYK,EACd,CAAC,CAAA,CACA,SAAA,CAAWC,IAAY,CACtB,QAAA,CAAUA,CAAAA,CAAO,QAAA,CACjB,UAAWA,CAAAA,CAAO,SAAA,CAClB,UAAA,CAAYA,CAAAA,CAAO,YACnB,SAAA,CAAWA,CAAAA,CAAO,UACpB,CAAA,CAAE,EAUSC,EAAAA,CACXH","file":"index.js","sourcesContent":["import { z } from 'zod';\nimport { EpochMillisecondsSchema, toEpochMilliseconds } from '../shared';\n\n// The API reports an unarmed schedule as `deadline: 0`.\nconst AutoCancelDeadlineSchema = z\n .number()\n .int()\n .transform((value) => (value === 0 ? null : toEpochMilliseconds(value)));\n\n/**\n * Acknowledgement for a Perps auto-cancel update. `deadline` echoes the armed\n * cancellation time in Unix milliseconds, or `null` when the schedule was\n * disarmed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const PerpsAutoCancelResponseSchema = z.object({\n status: z.literal('ok'),\n deadline: AutoCancelDeadlineSchema,\n});\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport type PerpsAutoCancelResponse = z.infer<\n typeof PerpsAutoCancelResponseSchema\n>;\n\n/**\n * Current auto-cancel state for an account. `deadline` is `null` when no\n * schedule is armed.\n *\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const PerpsAutoCancelStatusSchema = z\n .object({\n deadline: AutoCancelDeadlineSchema,\n triggered: z.number().int().nonnegative(),\n daily_limit: z.number().int().nonnegative(),\n next_reset: EpochMillisecondsSchema,\n })\n .transform((status) => ({\n deadline: status.deadline,\n triggered: status.triggered,\n dailyLimit: status.daily_limit,\n nextReset: status.next_reset,\n }));\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport type PerpsAutoCancelStatus = z.infer<typeof PerpsAutoCancelStatusSchema>;\n\n/**\n * @experimental This API may change in a breaking way in any release, including patch releases.\n */\nexport const FetchPerpsAutoCancelStatusResponseSchema =\n PerpsAutoCancelStatusSchema;\n"]}
|
package/dist/relayer/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {Ma,Na,ca}from'../chunk-
|
|
1
|
+
import {Ma,Na,ca}from'../chunk-3IZ4N7C2.js';import {z}from'zod';var E=(t=>(t.SUBMITTED="SUBMITTED",t.REGISTRY_PENDING="REGISTRY_PENDING",t.REGISTERED="REGISTERED",t.FAILED="FAILED",t.SUPERSEDED="SUPERSEDED",t.REPAIR_REQUIRED="REPAIR_REQUIRED",t))(E||{}),f=z.object({status:z.enum(E),transactionHash:Na.nullish().transform(o=>o??null),transactionId:Ma}),c=(t=>(t.PENDING="PENDING",t.FENCED="FENCED",t.SWEPT="SWEPT",t.CHAIN_SUBMITTED="CHAIN_SUBMITTED",t.CONFIRMED="CONFIRMED",t.FAILED="FAILED",t))(c||{}),L=z.object({status:z.enum(c),transactionId:Ma});var m=(s=>(s.SAFE="SAFE",s.PROXY="PROXY",s.SAFE_CREATE="SAFE-CREATE",s.WALLET="WALLET",s.WALLET_CREATE="WALLET-CREATE",s))(m||{}),C=z.enum(m),u=z.enum(["PROXY","SAFE","SAFE-CREATE"]),R=(t=>(t.STATE_NEW="STATE_NEW",t.STATE_EXECUTED="STATE_EXECUTED",t.STATE_MINED="STATE_MINED",t.STATE_CONFIRMED="STATE_CONFIRMED",t.STATE_INVALID="STATE_INVALID",t.STATE_FAILED="STATE_FAILED",t))(R||{}),T=z.enum(R),x=z.object({baseGas:z.string().optional(),gasLimit:z.string().optional(),gasPrice:z.string().optional(),gasToken:ca.optional(),operation:z.string().optional(),payment:z.string().optional(),paymentReceiver:ca.optional(),paymentToken:ca.optional(),refundReceiver:ca.optional(),relay:ca.optional(),relayHub:ca.optional(),relayerFee:z.string().optional(),safeTxnGas:z.string().optional()}),N=z.object({address:ca,nonce:z.string().min(1)}),D=z.object({data:z.string().min(1),from:ca,metadata:z.string().optional(),nonce:z.string().min(1).optional(),proxyWallet:ca,signature:z.string().min(1),signatureParams:x,to:ca,type:u,value:z.string().optional()}),I=z.object({data:z.string().min(1),target:ca,value:z.string().min(1)}),h=z.object({calls:z.array(I).min(1),deadline:z.string().min(1),depositWallet:ca}),A=z.object({depositWalletParams:h,from:ca,metadata:z.string().optional(),nonce:z.string().min(1),signature:z.string().min(1),to:ca,type:z.literal("WALLET")}),S=z.object({from:ca,metadata:z.string().optional(),to:ca,type:z.literal("WALLET-CREATE")}),F=z.union([D,A,S]),b=z.object({state:T,transactionHash:Na.nullish().transform(o=>o??null),transactionID:Ma}).transform(({transactionHash:o,transactionID:l,...i})=>({...i,transactionHash:o??null,transactionId:l})),G=z.object({deployed:z.boolean()}),j=z.object({error_msg:z.string().nullish(),state:T,transaction_hash:z.union([z.literal(""),Na]).transform(o=>o===""?null:o),transaction_id:Ma}).transform(({error_msg:o,transaction_hash:l,transaction_id:i,...y})=>({...y,errorMsg:o??null,transactionHash:l??null,transactionId:i}));export{I as DepositWalletCallSchema,h as DepositWalletParamsSchema,j as GaslessTransactionSchema,f as RelayerAuthorizeSessionSignerResponseSchema,E as RelayerAuthorizeSessionSignerStatus,G as RelayerDeployedResponseSchema,S as RelayerDepositWalletCreateRequestSchema,A as RelayerDepositWalletExecuteRequestSchema,N as RelayerExecuteParamsSchema,F as RelayerExecuteRequestSchema,b as RelayerExecuteResponseSchema,D as RelayerLegacyExecuteRequestSchema,L as RelayerRevokeSessionSignerResponseSchema,c as RelayerRevokeSessionSignerStatus,R as RelayerTransactionState,m as RelayerTransactionType,C as RelayerTransactionTypeSchema};//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|