@polymarket/bindings 0.2.0 → 0.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 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';
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-CTqTKxTR.js';
3
+ export { F as FetchPerpsOpenOrdersResponseSchema, k as FetchPerpsOrdersResponseSchema, l as FetchPerpsUnreadNotificationsCountResponseSchema, L as ListPerpsFillsResponseSchema, m as ListPerpsNotificationsResponseSchema, M as MarkPerpsNotificationsReadResponseSchema, n as PerpsAccountFill, o as PerpsAccountFillSchema, p as PerpsAccountFillUpdateSchema, q as PerpsAssetSchema, r as PerpsCancelAllOrdersResponse, s as PerpsCancelAllOrdersResponseSchema, t as PerpsCancelOrderResult, u as PerpsCancelOrderResultSchema, v as PerpsClientOrderId, w as PerpsClientOrderIdSchema, x as PerpsCommandAck, y as PerpsCommandAckSchema, z as PerpsCommandStatusSchema, A as PerpsCredentials, B as PerpsDataResponseSchema, C as PerpsDecimal, D as PerpsDecimalInput, E as PerpsDecimalInputSchema, G as PerpsDepositAmount, H as PerpsDepositStatusSchema, I as PerpsEntityIdSchema, J as PerpsFundingInterval, K as PerpsFundingIntervalSchema, N as PerpsInstrumentCategorySchema, O as PerpsInstrumentIdSchema, Q as PerpsInstrumentTypeSchema, R as PerpsInternalTransferDirectionSchema, S as PerpsInternalTransferIdSchema, T as PerpsKlineInterval, U as PerpsKlineIntervalSchema, V as PerpsLimitOrderCanceledNotification, W as PerpsLimitOrderCanceledNotificationSchema, X as PerpsLiquidationWarningNotification, Y as PerpsLiquidationWarningNotificationSchema, Z as PerpsMarginType, _ as PerpsMarginTypeSchema, $ as PerpsNotification, a0 as PerpsNotificationEntry, a1 as PerpsNotificationEntrySchema, a2 as PerpsNotificationId, a3 as PerpsNotificationIdSchema, a4 as PerpsNotificationOrderType, a5 as PerpsNotificationOrderTypeSchema, a6 as PerpsNotificationSchema, a7 as PerpsNotificationType, a8 as PerpsNotificationTypeSchema, a9 as PerpsOrder, aa as PerpsOrderId, ab as PerpsOrderIdSchema, ac as PerpsOrderSchema, ad as PerpsOrderStatus, ae as PerpsOrderStatusSchema, af as PerpsOrderUpdateSchema, ag as PerpsPnlInterval, ah as PerpsPnlIntervalSchema, ai as PerpsPositionChangeNotification, aj as PerpsPositionChangeNotificationSchema, ak as PerpsPositionClosedNotification, al as PerpsPositionClosedNotificationSchema, am as PerpsPositionLiquidatedNotification, an as PerpsPositionLiquidatedNotificationSchema, ao as PerpsPostOrderAck, ap as PerpsPostOrderAckSchema, aq as PerpsSideSchema, ar as PerpsSortDirection, as as PerpsSortDirectionSchema, at as PerpsTimeInForce, au as PerpsTimeInForceSchema, av as PerpsTpSlKind, aw as PerpsTpSlKindSchema, ax as PerpsTpSlOrderFields, ay as PerpsTpSlOrderFieldsSchema, az as PerpsTpSlScope, aA as PerpsTpSlScopeSchema, aB as PerpsTradeIdSchema, aC as PerpsTxHash, aD as PerpsTxHashSchema, aE as PerpsUpdateLeverageResult, aF as PerpsUpdateLeverageResultSchema, aG as PerpsWithdrawalAmount, aH as PerpsWithdrawalIdSchema, aI as PerpsWithdrawalStatus, aJ as PerpsWithdrawalStatusSchema, aK as decimalString, aL as perpsBaseUnits, aM as perpsDecimal } from '../orders-CTqTKxTR.js';
4
4
  import { DecimalString, EpochMilliseconds, BaseUnits } from '../index.js';
5
5
  import { z } from 'zod';
6
6
 
@@ -1,2 +1,2 @@
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
1
+ export{_ as FetchPerpsAccountConfigResponseSchema,R as FetchPerpsAccountStatsResponseSchema,P as FetchPerpsBalancesResponseSchema,Na as FetchPerpsCandlesResponseSchema,Ma as FetchPerpsFeesResponseSchema,Ia as FetchPerpsFundingHistoryResponseSchema,ra as FetchPerpsInstrumentsResponseSchema,nb as FetchPerpsOpenOrdersResponseSchema,mb as FetchPerpsOrdersResponseSchema,V as FetchPerpsPortfolioResponseSchema,xa as FetchPerpsStatisticsResponseSchema,ta as FetchPerpsTickersResponseSchema,Ga as FetchPerpsTradesResponseSchema,ab as FetchPerpsUnreadNotificationsCountResponseSchema,ia as ListPerpsDepositsResponseSchema,aa as ListPerpsEquityHistoryResponseSchema,qb as ListPerpsFillsResponseSchema,X as ListPerpsFundingPaymentsResponseSchema,$a as ListPerpsNotificationsResponseSchema,ca as ListPerpsPnlHistoryResponseSchema,la as ListPerpsWithdrawalsResponseSchema,bb as MarkPerpsNotificationsReadResponseSchema,Z as PerpsAccountConfigSchema,pb as PerpsAccountFillSchema,rb as PerpsAccountFillUpdateSchema,Y as PerpsAccountFundingPaymentEntrySchema,W as PerpsAccountFundingPaymentSchema,Q as PerpsAccountStatsSchema,I as PerpsAssetSchema,O as PerpsBalanceSchema,Ca as PerpsBboSchema,Da as PerpsBboUpdateSchema,za as PerpsBookLevelSchema,Aa as PerpsBookSchema,Ba as PerpsBookUpdateSchema,jb as PerpsCancelAllOrdersResponseSchema,ib as PerpsCancelOrderResultSchema,va as PerpsCandleSchema,c as PerpsClientOrderIdSchema,gb as PerpsCommandAckSchema,fb as PerpsCommandStatusSchema,fa as PerpsCreateProxyResponseSchema,ea as PerpsCredentialsResponseSchema,K as PerpsDataResponseSchema,j as PerpsDecimalInputSchema,ga as PerpsDeleteProxyResponseSchema,ha as PerpsDepositSchema,q as PerpsDepositStatus,C as PerpsDepositStatusSchema,ja as PerpsDepositUpdateSchema,h as PerpsEntityIdSchema,$ as PerpsEquityPointSchema,Ka as PerpsFeeScheduleEntrySchema,Ja as PerpsFeeTierSchema,La as PerpsFeesInfoSchema,i as PerpsFundingIntervalSchema,Ha as PerpsFundingRateSchema,l as PerpsInstrumentCategory,x as PerpsInstrumentCategorySchema,a as PerpsInstrumentIdSchema,qa as PerpsInstrumentSchema,k as PerpsInstrumentType,w as PerpsInstrumentTypeSchema,s as PerpsInternalTransferDirection,E as PerpsInternalTransferDirectionSchema,g as PerpsInternalTransferIdSchema,oa as PerpsInternalTransferSchema,t as PerpsKlineInterval,F as PerpsKlineIntervalSchema,r as PerpsKnownWithdrawalStatus,Wa as PerpsLimitOrderCanceledNotificationSchema,Xa as PerpsLiquidationWarningNotificationSchema,T as PerpsMarginSummarySchema,Sa as PerpsMarginType,Ta as PerpsMarginTypeSchema,_a as PerpsNotificationEntrySchema,d as PerpsNotificationIdSchema,Qa as PerpsNotificationOrderType,Ra as PerpsNotificationOrderTypeSchema,Za as PerpsNotificationSchema,Oa as PerpsNotificationType,Pa as PerpsNotificationTypeSchema,b as PerpsOrderIdSchema,lb as PerpsOrderSchema,cb as PerpsOrderStatus,eb as PerpsOrderStatusSchema,ob as PerpsOrderUpdateSchema,u as PerpsPnlInterval,G as PerpsPnlIntervalSchema,ba as PerpsPnlPointSchema,S as PerpsPortfolioPositionSchema,U as PerpsPortfolioSchema,Ua as PerpsPositionChangeNotificationSchema,Va as PerpsPositionClosedNotificationSchema,Ya as PerpsPositionLiquidatedNotificationSchema,hb as PerpsPostOrderAckSchema,da as PerpsProxyKeySchema,Ea as PerpsPublicTradeSchema,Fa as PerpsPublicTradeUpdateSchema,pa as PerpsRiskTierSchema,m as PerpsSide,y as PerpsSideSchema,v as PerpsSortDirection,H as PerpsSortDirectionSchema,wa as PerpsStatisticSchema,ya as PerpsStatisticUpdateSchema,ua as PerpsTickerEntrySchema,sa as PerpsTickerSchema,n as PerpsTimeInForce,z as PerpsTimeInForceSchema,o as PerpsTpSlKind,A as PerpsTpSlKindSchema,db as PerpsTpSlOrderFieldsSchema,p as PerpsTpSlScope,B as PerpsTpSlScopeSchema,e as PerpsTradeIdSchema,J as PerpsTxHashSchema,kb as PerpsUpdateLeverageResultSchema,ma as PerpsWithdrawResponseSchema,f as PerpsWithdrawalIdSchema,ka as PerpsWithdrawalSchema,D as PerpsWithdrawalStatusSchema,na as PerpsWithdrawalUpdateSchema,N as decimalString,M as perpsBaseUnits,L as perpsDecimal}from'../chunk-BVFKAX4O.js';import'../chunk-6TO35A2S.js';//# sourceMappingURL=index.js.map
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
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
1
+ import {aa,Ja,Ka}from'../chunk-6TO35A2S.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:Ka.nullish().transform(a=>a??null),transactionID:Ja}).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(""),Ka]).transform(a=>a===""?null:a),transaction_id:Ja}).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