@proton/wrap-constants 0.2.131 → 0.2.132
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 +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
- package/src/parsers/dex.ts +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -7064,7 +7064,7 @@ declare const postSubmitOrderParser: z.ZodObject<{
|
|
|
7064
7064
|
serialized_tx_hex: string;
|
|
7065
7065
|
}>;
|
|
7066
7066
|
declare type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
7067
|
-
declare const
|
|
7067
|
+
declare const postSubmitOrderResponseParser: z.ZodObject<{
|
|
7068
7068
|
sync: z.ZodNumber;
|
|
7069
7069
|
data: z.ZodObject<{
|
|
7070
7070
|
trx_id: z.ZodString;
|
|
@@ -7122,7 +7122,7 @@ declare const submitOrderResponseParser: z.ZodObject<{
|
|
|
7122
7122
|
};
|
|
7123
7123
|
sync: number;
|
|
7124
7124
|
}>;
|
|
7125
|
-
declare type
|
|
7125
|
+
declare type PostSubmitOrderResponse = z.infer<typeof postSubmitOrderResponseParser>;
|
|
7126
7126
|
/**
|
|
7127
7127
|
* Serialize Order
|
|
7128
7128
|
*/
|
|
@@ -7206,7 +7206,7 @@ declare const postSerializeOrderParser: z.ZodObject<{
|
|
|
7206
7206
|
};
|
|
7207
7207
|
}>;
|
|
7208
7208
|
declare type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
7209
|
-
declare const
|
|
7209
|
+
declare const postSerializeOrderResponseParser: z.ZodObject<{
|
|
7210
7210
|
data: z.ZodObject<{
|
|
7211
7211
|
serialized_tx_hex: z.ZodString;
|
|
7212
7212
|
digest_hex: z.ZodString;
|
|
@@ -7228,7 +7228,7 @@ declare const serializeOrderResponseParser: z.ZodObject<{
|
|
|
7228
7228
|
digest_hex: string;
|
|
7229
7229
|
};
|
|
7230
7230
|
}>;
|
|
7231
|
-
declare type
|
|
7231
|
+
declare type PostSerializeOrderResponse = z.infer<typeof postSerializeOrderResponseParser>;
|
|
7232
7232
|
/**
|
|
7233
7233
|
* Depth
|
|
7234
7234
|
*/
|
|
@@ -12171,4 +12171,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
|
12171
12171
|
}) => boolean;
|
|
12172
12172
|
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
12173
12173
|
|
|
12174
|
-
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, 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, ILink, INode, ITopics, Leaderboard, LoginAccountParamsV3, Market, MetalTransaction, Networks, OHLCV, OpenOrder, OrderHistory, OrderLog, OtcOrderResponse, OtcQuoteBody, OtcQuoteResponse, Pool, PoolTable, PostSerializeOrder, PostSubmitOrder, Providers, Rate, RawPool, Referral, ReferralTotal,
|
|
12174
|
+
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, 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, 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, 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, getLeaderboardParser, getLeaderboardResponseParser, getMarketsResponseParser, getOhlcvParser, getOhlcvResponseParser, getOpenOrdersParser, getOpenOrdersResponseParser, getOrderHistoryParser, getOrderHistoryResponseParser, getOrderLifecycleParser, getOrderLifecycleResponseParser, getReferralTotalsParser, getReferralTotalsResponseParser, getReferralsParser, getReferralsResponseParser, getSyncResponseParser, getTradeHistoryParser, getTradeHistoryResponseParser, getTradesParser, getTradesResponseParser, historyActionParser, historyPartialParser, historyTransactionParser, 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, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
package/dist/index.js
CHANGED
|
@@ -120,16 +120,16 @@ __export(src_exports, {
|
|
|
120
120
|
otcQuoteBodyParser: () => otcQuoteBodyParser,
|
|
121
121
|
otcQuoteResponseParser: () => otcQuoteResponseParser,
|
|
122
122
|
postSerializeOrderParser: () => postSerializeOrderParser,
|
|
123
|
+
postSerializeOrderResponseParser: () => postSerializeOrderResponseParser,
|
|
123
124
|
postSubmitOrderParser: () => postSubmitOrderParser,
|
|
125
|
+
postSubmitOrderResponseParser: () => postSubmitOrderResponseParser,
|
|
124
126
|
protonExplorerTxUrl: () => protonExplorerTxUrl,
|
|
125
127
|
rateParser: () => rateParser,
|
|
126
128
|
receiptParser: () => receiptParser,
|
|
127
129
|
refferalParser: () => refferalParser,
|
|
128
130
|
refferalTotalParser: () => refferalTotalParser,
|
|
129
|
-
serializeOrderResponseParser: () => serializeOrderResponseParser,
|
|
130
131
|
similarChains: () => similarChains,
|
|
131
132
|
singleActionTransactionParser: () => singleActionTransactionParser,
|
|
132
|
-
submitOrderResponseParser: () => submitOrderResponseParser,
|
|
133
133
|
syncParser: () => syncParser,
|
|
134
134
|
traceParser: () => traceParser,
|
|
135
135
|
tradeLogParser: () => tradeLogParser,
|
|
@@ -2032,7 +2032,7 @@ var postSubmitOrderParser = z11.object({
|
|
|
2032
2032
|
serialized_tx_hex: z11.string(),
|
|
2033
2033
|
signatures: z11.array(z11.string())
|
|
2034
2034
|
});
|
|
2035
|
-
var
|
|
2035
|
+
var postSubmitOrderResponseParser = z11.object({
|
|
2036
2036
|
sync: z11.number(),
|
|
2037
2037
|
data: z11.object({
|
|
2038
2038
|
trx_id: z11.string(),
|
|
@@ -2058,7 +2058,7 @@ var postSerializeOrderParser = z11.object({
|
|
|
2058
2058
|
)
|
|
2059
2059
|
})
|
|
2060
2060
|
});
|
|
2061
|
-
var
|
|
2061
|
+
var postSerializeOrderResponseParser = z11.object({
|
|
2062
2062
|
data: z11.object({
|
|
2063
2063
|
serialized_tx_hex: z11.string(),
|
|
2064
2064
|
digest_hex: z11.string()
|
|
@@ -4150,16 +4150,16 @@ var applyDiscountToFee = (fee, staked) => {
|
|
|
4150
4150
|
otcQuoteBodyParser,
|
|
4151
4151
|
otcQuoteResponseParser,
|
|
4152
4152
|
postSerializeOrderParser,
|
|
4153
|
+
postSerializeOrderResponseParser,
|
|
4153
4154
|
postSubmitOrderParser,
|
|
4155
|
+
postSubmitOrderResponseParser,
|
|
4154
4156
|
protonExplorerTxUrl,
|
|
4155
4157
|
rateParser,
|
|
4156
4158
|
receiptParser,
|
|
4157
4159
|
refferalParser,
|
|
4158
4160
|
refferalTotalParser,
|
|
4159
|
-
serializeOrderResponseParser,
|
|
4160
4161
|
similarChains,
|
|
4161
4162
|
singleActionTransactionParser,
|
|
4162
|
-
submitOrderResponseParser,
|
|
4163
4163
|
syncParser,
|
|
4164
4164
|
traceParser,
|
|
4165
4165
|
tradeLogParser,
|
package/dist/index.mjs
CHANGED
|
@@ -1884,7 +1884,7 @@ var postSubmitOrderParser = z11.object({
|
|
|
1884
1884
|
serialized_tx_hex: z11.string(),
|
|
1885
1885
|
signatures: z11.array(z11.string())
|
|
1886
1886
|
});
|
|
1887
|
-
var
|
|
1887
|
+
var postSubmitOrderResponseParser = z11.object({
|
|
1888
1888
|
sync: z11.number(),
|
|
1889
1889
|
data: z11.object({
|
|
1890
1890
|
trx_id: z11.string(),
|
|
@@ -1910,7 +1910,7 @@ var postSerializeOrderParser = z11.object({
|
|
|
1910
1910
|
)
|
|
1911
1911
|
})
|
|
1912
1912
|
});
|
|
1913
|
-
var
|
|
1913
|
+
var postSerializeOrderResponseParser = z11.object({
|
|
1914
1914
|
data: z11.object({
|
|
1915
1915
|
serialized_tx_hex: z11.string(),
|
|
1916
1916
|
digest_hex: z11.string()
|
|
@@ -4001,16 +4001,16 @@ export {
|
|
|
4001
4001
|
otcQuoteBodyParser,
|
|
4002
4002
|
otcQuoteResponseParser,
|
|
4003
4003
|
postSerializeOrderParser,
|
|
4004
|
+
postSerializeOrderResponseParser,
|
|
4004
4005
|
postSubmitOrderParser,
|
|
4006
|
+
postSubmitOrderResponseParser,
|
|
4005
4007
|
protonExplorerTxUrl,
|
|
4006
4008
|
rateParser,
|
|
4007
4009
|
receiptParser,
|
|
4008
4010
|
refferalParser,
|
|
4009
4011
|
refferalTotalParser,
|
|
4010
|
-
serializeOrderResponseParser,
|
|
4011
4012
|
similarChains,
|
|
4012
4013
|
singleActionTransactionParser,
|
|
4013
|
-
submitOrderResponseParser,
|
|
4014
4014
|
syncParser,
|
|
4015
4015
|
traceParser,
|
|
4016
4016
|
tradeLogParser,
|
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.132",
|
|
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": "d06eb0bdf47755fad088a8a7c80a298d933e510d"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -194,7 +194,7 @@ export const postSubmitOrderParser = z.object({
|
|
|
194
194
|
});
|
|
195
195
|
export type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
196
196
|
|
|
197
|
-
export const
|
|
197
|
+
export const postSubmitOrderResponseParser = z.object({
|
|
198
198
|
sync: z.number(),
|
|
199
199
|
data: z.object({
|
|
200
200
|
trx_id: z.string(),
|
|
@@ -208,7 +208,7 @@ export const submitOrderResponseParser = z.object({
|
|
|
208
208
|
),
|
|
209
209
|
}),
|
|
210
210
|
});
|
|
211
|
-
export type
|
|
211
|
+
export type PostSubmitOrderResponse = z.infer<typeof postSubmitOrderResponseParser>;
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Serialize Order
|
|
@@ -228,14 +228,14 @@ export const postSerializeOrderParser = z.object({
|
|
|
228
228
|
|
|
229
229
|
export type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
230
230
|
|
|
231
|
-
export const
|
|
231
|
+
export const postSerializeOrderResponseParser = z.object({
|
|
232
232
|
data: z.object({
|
|
233
233
|
serialized_tx_hex: z.string(),
|
|
234
234
|
digest_hex: z.string(),
|
|
235
235
|
}),
|
|
236
236
|
});
|
|
237
|
-
export type
|
|
238
|
-
typeof
|
|
237
|
+
export type PostSerializeOrderResponse = z.infer<
|
|
238
|
+
typeof postSerializeOrderResponseParser
|
|
239
239
|
>;
|
|
240
240
|
|
|
241
241
|
/**
|