@proton/wrap-constants 0.2.102 → 0.2.103

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 CHANGED
@@ -8112,6 +8112,26 @@ declare type GetLeaderboardResponseParser = z.infer<typeof getLeaderboardRespons
8112
8112
  /**
8113
8113
  * History
8114
8114
  */
8115
+ declare const dbHistoryTransactionParser: z.ZodObject<{
8116
+ seq: z.ZodString;
8117
+ block_num: z.ZodString;
8118
+ block_time: z.ZodString;
8119
+ trx_id: z.ZodString;
8120
+ trace: z.ZodType<Buffer, z.ZodTypeDef, Buffer>;
8121
+ }, "strip", z.ZodTypeAny, {
8122
+ block_num: string;
8123
+ block_time: string;
8124
+ seq: string;
8125
+ trx_id: string;
8126
+ trace: Buffer;
8127
+ }, {
8128
+ block_num: string;
8129
+ block_time: string;
8130
+ seq: string;
8131
+ trx_id: string;
8132
+ trace: Buffer;
8133
+ }>;
8134
+ declare type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
8115
8135
  declare const historyPartialParser: z.ZodObject<{
8116
8136
  expiration: z.ZodObject<{
8117
8137
  utc_seconds: z.ZodString;
@@ -11253,4 +11273,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
11253
11273
  }) => boolean;
11254
11274
  declare const applyDiscountToFee: (fee: number, staked: number) => number;
11255
11275
 
11256
- export { Address, Authorization, Authorizations, BloksRate, BloksRates, Chains, Coin, CoinWallet, CurrencyStat, CurrencyStats, Daily, DbMarket, DepositBody, Depth, ExchangeRate, ExchangeRates, ExtendedAsset, ExtendedAssetParser, ExtendedToken, ExtendedTokenWithRate, FEE_FACTOR, GenerateAddressBody, GenerateAddressResponse, GenerateAuth, GenerateAuthBaseAction, GetDailyResponseParser, GetDepth, GetDepthResponse, GetHistoryTransaction, GetLeaderboard, GetLeaderboardResponseParser, GetMarketsResponse, GetOHLCV, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsResponseParser, GetReferrals, GetReferralsResponseParser, GetSyncResponse, GetTradeHistory, GetTradeHistoryResponse, GetTrades, GetTradesResponseParser, Graph, HistoryAccountRamDelta, HistoryAct, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OrderHistory, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, Providers, Rate, RawPool, Referral, ReferralTotal, SerializeOrderParser, SerializeOrderResponse, Status, SubmitOrderParser, SubmitOrderResponse, Sync, TOPICS, Trade, 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, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryTransactionResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyPartialParser, historyTransactionParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, metalTransactionParser, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, serializeOrderParser, serializeOrderResponseParser, similarChains, singleActionTransactionParser, submitOrderParser, submitOrderResponseParser, syncParser, traceParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
11276
+ 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, GetDailyResponseParser, GetDepth, GetDepthResponse, GetHistoryTransaction, GetLeaderboard, GetLeaderboardResponseParser, GetMarketsResponse, GetOHLCV, GetOHLCVResponse, GetOpenOrders, GetOpenOrdersResponse, GetOrderHistory, GetOrderHistoryResponse, GetOrderLifecycle, GetOrderLifecycleResponse, GetReferralTotals, GetReferralTotalsResponseParser, GetReferrals, GetReferralsResponseParser, GetSyncResponse, GetTradeHistory, GetTradeHistoryResponse, GetTrades, GetTradesResponseParser, Graph, HistoryAccountRamDelta, HistoryAct, HistoryActionTrace, HistoryPartial, HistoryReceipt, HistoryTrace, HistoryTransaction, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OrderHistory, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, Providers, Rate, RawPool, Referral, ReferralTotal, SerializeOrderParser, SerializeOrderResponse, Status, SubmitOrderParser, SubmitOrderResponse, Sync, TOPICS, Trade, 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, depositBodyParser, depthParser, exchangeRateParser, exchangeRatesParser, explorerLinkByChain, fillType, generateAddressBodyParser, generateAddressResponse, generateAuthParser, getDailyResponseParser, getDepthParser, getDepthResponseParser, getHistoryTransactionResponseParser, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyPartialParser, historyTransactionParser, initializeCoins, initializeConstants, isInputInvalid, isSameToken, leaderboardParser, logStatus, loginAccountParamsV3Parser, marketParser, median, metalTransactionParser, ohlcvParser, orderHistoryParser, orderSide, orderType, otcOrderResponseParser, otcQuoteBodyParser, otcQuoteResponseParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, serializeOrderParser, serializeOrderResponseParser, similarChains, singleActionTransactionParser, submitOrderParser, submitOrderResponseParser, syncParser, traceParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
package/dist/index.js CHANGED
@@ -60,6 +60,7 @@ __export(src_exports, {
60
60
  compute_transfer_curve: () => compute_transfer_curve,
61
61
  createAbstractAuthParser: () => createAbstractAuthParser,
62
62
  dailyParser: () => dailyParser,
63
+ dbHistoryTransactionParser: () => dbHistoryTransactionParser,
63
64
  depositBodyParser: () => depositBodyParser,
64
65
  depthParser: () => depthParser,
65
66
  exchangeRateParser: () => exchangeRateParser,
@@ -2147,6 +2148,13 @@ var getLeaderboardResponseParser = z11.object({
2147
2148
  sync: z11.number(),
2148
2149
  data: z11.array(leaderboardParser)
2149
2150
  });
2151
+ var dbHistoryTransactionParser = z11.object({
2152
+ seq: z11.string(),
2153
+ block_num: z11.string(),
2154
+ block_time: z11.string(),
2155
+ trx_id: z11.string(),
2156
+ trace: z11.instanceof(Buffer)
2157
+ });
2150
2158
  var historyPartialParser = z11.object({
2151
2159
  expiration: z11.object({ utc_seconds: z11.string() }),
2152
2160
  ref_block_num: z11.string(),
@@ -3950,6 +3958,7 @@ var applyDiscountToFee = (fee, staked) => {
3950
3958
  compute_transfer_curve,
3951
3959
  createAbstractAuthParser,
3952
3960
  dailyParser,
3961
+ dbHistoryTransactionParser,
3953
3962
  depositBodyParser,
3954
3963
  depthParser,
3955
3964
  exchangeRateParser,
package/dist/index.mjs CHANGED
@@ -2007,6 +2007,13 @@ var getLeaderboardResponseParser = z11.object({
2007
2007
  sync: z11.number(),
2008
2008
  data: z11.array(leaderboardParser)
2009
2009
  });
2010
+ var dbHistoryTransactionParser = z11.object({
2011
+ seq: z11.string(),
2012
+ block_num: z11.string(),
2013
+ block_time: z11.string(),
2014
+ trx_id: z11.string(),
2015
+ trace: z11.instanceof(Buffer)
2016
+ });
2010
2017
  var historyPartialParser = z11.object({
2011
2018
  expiration: z11.object({ utc_seconds: z11.string() }),
2012
2019
  ref_block_num: z11.string(),
@@ -3809,6 +3816,7 @@ export {
3809
3816
  compute_transfer_curve,
3810
3817
  createAbstractAuthParser,
3811
3818
  dailyParser,
3819
+ dbHistoryTransactionParser,
3812
3820
  depositBodyParser,
3813
3821
  depthParser,
3814
3822
  exchangeRateParser,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.2.102",
8
+ "version": "0.2.103",
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": "1e11fe9dbcf8b663fc4e48645207d9bb2743f0bb"
43
+ "gitHead": "cf79df739ffbaed9f08eb78eccb88903a688fb67"
44
44
  }
@@ -410,6 +410,15 @@ export type GetLeaderboardResponseParser = z.infer<
410
410
  /**
411
411
  * History
412
412
  */
413
+ export const dbHistoryTransactionParser = z.object({
414
+ seq: z.string(),
415
+ block_num: z.string(),
416
+ block_time: z.string(),
417
+ trx_id: z.string(),
418
+ trace: z.instanceof(Buffer),
419
+ });
420
+ export type DbHistoryTransaction = z.infer<typeof dbHistoryTransactionParser>;
421
+
413
422
  export const historyPartialParser = z.object({
414
423
  expiration: z.object({ utc_seconds: z.string() }),
415
424
  ref_block_num: z.string(),