@proton/wrap-constants 0.2.151 → 0.2.152
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.d.ts +24 -1
- package/dist/index.js +9 -0
- package/dist/index.mjs +8 -0
- package/package.json +2 -2
- package/src/parsers/dex.ts +13 -0
package/dist/index.d.ts
CHANGED
|
@@ -11799,6 +11799,29 @@ declare const getHistoryTransfersResponseParser: z.ZodObject<{
|
|
|
11799
11799
|
last_irreversible_block_num: number;
|
|
11800
11800
|
}>;
|
|
11801
11801
|
declare type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
|
|
11802
|
+
/**
|
|
11803
|
+
* Open orders Balances
|
|
11804
|
+
*/
|
|
11805
|
+
declare const getOpenOrdersBalancesResponseParser: z.ZodObject<{
|
|
11806
|
+
market_id: z.ZodNumber;
|
|
11807
|
+
bid_token_quantity: z.ZodNumber;
|
|
11808
|
+
bid_token: z.ZodString;
|
|
11809
|
+
ask_token_quantity: z.ZodNumber;
|
|
11810
|
+
ask_token: z.ZodString;
|
|
11811
|
+
}, "strip", z.ZodTypeAny, {
|
|
11812
|
+
market_id: number;
|
|
11813
|
+
bid_token: string;
|
|
11814
|
+
ask_token: string;
|
|
11815
|
+
bid_token_quantity: number;
|
|
11816
|
+
ask_token_quantity: number;
|
|
11817
|
+
}, {
|
|
11818
|
+
market_id: number;
|
|
11819
|
+
bid_token: string;
|
|
11820
|
+
ask_token: string;
|
|
11821
|
+
bid_token_quantity: number;
|
|
11822
|
+
ask_token_quantity: number;
|
|
11823
|
+
}>;
|
|
11824
|
+
declare type GetOpenOrdersBalancesResponse = z.input<typeof getOpenOrdersBalancesResponseParser>;
|
|
11802
11825
|
/**
|
|
11803
11826
|
* Basic Types
|
|
11804
11827
|
*/
|
|
@@ -12845,4 +12868,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
|
12845
12868
|
}) => boolean;
|
|
12846
12869
|
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
12847
12870
|
|
|
12848
|
-
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbHistoryTransaction, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponse, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryActions, GetHistoryActionsParsed, GetHistoryActionsResponse, GetHistoryTransactionResponse, GetHistoryTransfers, GetHistoryTransfersParsed, GetHistoryTransfersResponse, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponse, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponse, GetReferrals, GetReferralsParsed, GetReferralsResponse, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponse, Graph, HistoryAccountRamDelta, HistoryAct, HistoryAction, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, HistoryTransfer, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, PostSerializeOrder, PostSerializeOrderResponse, PostSubmitOrder, PostSubmitOrderResponse, Providers, Rate, RawPool, Referral, ReferralTotal, SortDirection, Status, Sync, TOPICS, Trade, TradeLog, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, Wallet, WithdrawBody, WithdrawBodyBaseAction, WithdrawHistoryMetalResponse, WithdrawHistoryMetalSwap, WithdrawMetalResponse, WithdrawalFeeQuote, Wrap, WrapSetConf, WrapStart, accountParser, accountRamDeltaParser, actParser, actionTraceParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, dbHistoryTransactionParser, dbMarketParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryActionsParser, getHistoryActionsResponseParser, getHistoryTransactionResponseParser, getHistoryTransfersParser, getHistoryTransfersResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, historyTransferParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderLogParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, postSerializeOrderParser, postSerializeOrderResponseParser, postSubmitOrderParser, postSubmitOrderResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, similarChains, singleActionTransactionParser, sortDirectionEnum, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
|
12871
|
+
export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbHistoryTransaction, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponse, GetDepth, GetDepthParsed, GetDepthResponse, GetHistoryActions, GetHistoryActionsParsed, GetHistoryActionsResponse, GetHistoryTransactionResponse, GetHistoryTransfers, GetHistoryTransfersParsed, GetHistoryTransfersResponse, GetLeaderboard, GetLeaderboardParsed, GetLeaderboardResponse, GetMarketsResponse, GetOHLCV, GetOHLCVParsed, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersBalancesResponse, GetOpenOrdersParsed, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryParsed, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleParsed, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsParsed, GetReferralTotalsResponse, GetReferrals, GetReferralsParsed, GetReferralsResponse, GetSyncResponse, GetTradeHistory, GetTradeHistoryParsed, GetTradeHistoryResponse, GetTrades, GetTradesParsed, GetTradesResponse, Graph, HistoryAccountRamDelta, HistoryAct, HistoryAction, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, HistoryTransfer, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, PostSerializeOrder, PostSerializeOrderResponse, PostSubmitOrder, PostSubmitOrderResponse, Providers, Rate, RawPool, Referral, ReferralTotal, SortDirection, Status, Sync, TOPICS, Trade, TradeLog, Type, WRAP_AUTH_ACTION, WRAP_CONTRACT, Wallet, WithdrawBody, WithdrawBodyBaseAction, WithdrawHistoryMetalResponse, WithdrawHistoryMetalSwap, WithdrawMetalResponse, WithdrawalFeeQuote, Wrap, WrapSetConf, WrapStart, accountParser, accountRamDeltaParser, actParser, actionTraceParser, addressParser, applyDiscountToFee, authorizationParser, authorizationsParser, baseActionParser, baseActionSerializedParser, bloksRatesParser, compute_liquidity, compute_transfer, compute_transfer_curve, createAbstractAuthParser, dailyParser, dbHistoryTransactionParser, dbMarketParser, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryActionsParser, getHistoryActionsResponseParser, getHistoryTransactionResponseParser, getHistoryTransfersParser, getHistoryTransfersResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersBalancesResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, historyTransferParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, metalTransactionParser, ohlcvParser, openOrderParser, orderHistoryParser, orderLogParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, postSerializeOrderParser, postSerializeOrderResponseParser, postSubmitOrderParser, postSubmitOrderResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, similarChains, singleActionTransactionParser, sortDirectionEnum, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
package/dist/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __export(src_exports, {
|
|
|
84
84
|
getMarketsResponseParser: () => getMarketsResponseParser,
|
|
85
85
|
getOhlcvParser: () => getOhlcvParser,
|
|
86
86
|
getOhlcvResponseParser: () => getOhlcvResponseParser,
|
|
87
|
+
getOpenOrdersBalancesResponseParser: () => getOpenOrdersBalancesResponseParser,
|
|
87
88
|
getOpenOrdersParser: () => getOpenOrdersParser,
|
|
88
89
|
getOpenOrdersResponseParser: () => getOpenOrdersResponseParser,
|
|
89
90
|
getOrderHistoryParser: () => getOrderHistoryParser,
|
|
@@ -2393,6 +2394,13 @@ var getHistoryTransfersResponseParser = z11.object({
|
|
|
2393
2394
|
last_irreversible_block_num: z11.number(),
|
|
2394
2395
|
data: z11.array(historyTransferParser)
|
|
2395
2396
|
});
|
|
2397
|
+
var getOpenOrdersBalancesResponseParser = z11.object({
|
|
2398
|
+
market_id: z11.number(),
|
|
2399
|
+
bid_token_quantity: z11.number(),
|
|
2400
|
+
bid_token: z11.string(),
|
|
2401
|
+
ask_token_quantity: z11.number(),
|
|
2402
|
+
ask_token: z11.string()
|
|
2403
|
+
});
|
|
2396
2404
|
var orderType = /* @__PURE__ */ ((orderType2) => {
|
|
2397
2405
|
orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
|
|
2398
2406
|
orderType2[orderType2["LIMIT"] = 1] = "LIMIT";
|
|
@@ -4149,6 +4157,7 @@ var applyDiscountToFee = (fee, staked) => {
|
|
|
4149
4157
|
getMarketsResponseParser,
|
|
4150
4158
|
getOhlcvParser,
|
|
4151
4159
|
getOhlcvResponseParser,
|
|
4160
|
+
getOpenOrdersBalancesResponseParser,
|
|
4152
4161
|
getOpenOrdersParser,
|
|
4153
4162
|
getOpenOrdersResponseParser,
|
|
4154
4163
|
getOrderHistoryParser,
|
package/dist/index.mjs
CHANGED
|
@@ -2241,6 +2241,13 @@ var getHistoryTransfersResponseParser = z11.object({
|
|
|
2241
2241
|
last_irreversible_block_num: z11.number(),
|
|
2242
2242
|
data: z11.array(historyTransferParser)
|
|
2243
2243
|
});
|
|
2244
|
+
var getOpenOrdersBalancesResponseParser = z11.object({
|
|
2245
|
+
market_id: z11.number(),
|
|
2246
|
+
bid_token_quantity: z11.number(),
|
|
2247
|
+
bid_token: z11.string(),
|
|
2248
|
+
ask_token_quantity: z11.number(),
|
|
2249
|
+
ask_token: z11.string()
|
|
2250
|
+
});
|
|
2244
2251
|
var orderType = /* @__PURE__ */ ((orderType2) => {
|
|
2245
2252
|
orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
|
|
2246
2253
|
orderType2[orderType2["LIMIT"] = 1] = "LIMIT";
|
|
@@ -3996,6 +4003,7 @@ export {
|
|
|
3996
4003
|
getMarketsResponseParser,
|
|
3997
4004
|
getOhlcvParser,
|
|
3998
4005
|
getOhlcvResponseParser,
|
|
4006
|
+
getOpenOrdersBalancesResponseParser,
|
|
3999
4007
|
getOpenOrdersParser,
|
|
4000
4008
|
getOpenOrdersResponseParser,
|
|
4001
4009
|
getOrderHistoryParser,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.2.
|
|
8
|
+
"version": "0.2.152",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"main": "dist/index.js",
|
|
11
11
|
"typings": "dist/index.d.ts",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"resolutions": {
|
|
41
41
|
"typescript": "4.5"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "729f483865d51e1c0b10bf25590b0b9f59327076"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -699,6 +699,19 @@ export const getHistoryTransfersResponseParser = z.object({
|
|
|
699
699
|
});
|
|
700
700
|
export type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResponseParser>;
|
|
701
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Open orders Balances
|
|
704
|
+
*/
|
|
705
|
+
export const getOpenOrdersBalancesResponseParser = z.object({
|
|
706
|
+
market_id: z.number(),
|
|
707
|
+
bid_token_quantity: z.number(),
|
|
708
|
+
bid_token: z.string(),
|
|
709
|
+
ask_token_quantity: z.number(),
|
|
710
|
+
ask_token: z.string(),
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
export type GetOpenOrdersBalancesResponse = z.input<typeof getOpenOrdersBalancesResponseParser>;
|
|
714
|
+
|
|
702
715
|
/**
|
|
703
716
|
* Basic Types
|
|
704
717
|
*/
|