@proton/wrap-constants 0.2.129 → 0.2.131
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 +11 -12
- package/dist/index.js +6 -6
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
- package/src/parsers/dex.ts +10 -14
package/dist/index.d.ts
CHANGED
|
@@ -7053,7 +7053,7 @@ declare type GetOrderLifecycleResponse = z.infer<typeof getOrderLifecycleRespons
|
|
|
7053
7053
|
/**
|
|
7054
7054
|
* Submit Order
|
|
7055
7055
|
*/
|
|
7056
|
-
declare const
|
|
7056
|
+
declare const postSubmitOrderParser: z.ZodObject<{
|
|
7057
7057
|
serialized_tx_hex: z.ZodString;
|
|
7058
7058
|
signatures: z.ZodArray<z.ZodString, "many">;
|
|
7059
7059
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7063,7 +7063,7 @@ declare const submitOrderParser: z.ZodObject<{
|
|
|
7063
7063
|
signatures: string[];
|
|
7064
7064
|
serialized_tx_hex: string;
|
|
7065
7065
|
}>;
|
|
7066
|
-
declare type
|
|
7066
|
+
declare type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
7067
7067
|
declare const submitOrderResponseParser: z.ZodObject<{
|
|
7068
7068
|
sync: z.ZodNumber;
|
|
7069
7069
|
data: z.ZodObject<{
|
|
@@ -7126,7 +7126,7 @@ declare type SubmitOrderResponse = z.infer<typeof submitOrderResponseParser>;
|
|
|
7126
7126
|
/**
|
|
7127
7127
|
* Serialize Order
|
|
7128
7128
|
*/
|
|
7129
|
-
declare const
|
|
7129
|
+
declare const postSerializeOrderParser: z.ZodObject<{
|
|
7130
7130
|
transaction: z.ZodObject<{
|
|
7131
7131
|
actions: z.ZodArray<z.ZodObject<{
|
|
7132
7132
|
account: z.ZodString;
|
|
@@ -7205,7 +7205,7 @@ declare const serializeOrderParser: z.ZodObject<{
|
|
|
7205
7205
|
}[];
|
|
7206
7206
|
};
|
|
7207
7207
|
}>;
|
|
7208
|
-
declare type
|
|
7208
|
+
declare type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
7209
7209
|
declare const serializeOrderResponseParser: z.ZodObject<{
|
|
7210
7210
|
data: z.ZodObject<{
|
|
7211
7211
|
serialized_tx_hex: z.ZodString;
|
|
@@ -7455,7 +7455,7 @@ declare const getDailyResponseParser: z.ZodObject<{
|
|
|
7455
7455
|
}[];
|
|
7456
7456
|
sync: number;
|
|
7457
7457
|
}>;
|
|
7458
|
-
declare type
|
|
7458
|
+
declare type GetDailyResponse = z.infer<typeof getDailyResponseParser>;
|
|
7459
7459
|
/**
|
|
7460
7460
|
* Markets
|
|
7461
7461
|
*/
|
|
@@ -8003,7 +8003,7 @@ declare const getTradesResponseParser: z.ZodObject<{
|
|
|
8003
8003
|
}[];
|
|
8004
8004
|
sync: number;
|
|
8005
8005
|
}>;
|
|
8006
|
-
declare type
|
|
8006
|
+
declare type GetTradesResponse = z.infer<typeof getTradesResponseParser>;
|
|
8007
8007
|
declare const getTradeHistoryParser: z.ZodObject<{
|
|
8008
8008
|
account: z.ZodString;
|
|
8009
8009
|
symbol: z.ZodOptional<z.ZodString>;
|
|
@@ -8279,7 +8279,7 @@ declare const getReferralTotalsResponseParser: z.ZodObject<{
|
|
|
8279
8279
|
}[];
|
|
8280
8280
|
sync: number;
|
|
8281
8281
|
}>;
|
|
8282
|
-
declare type
|
|
8282
|
+
declare type GetReferralTotalsResponse = z.infer<typeof getReferralTotalsResponseParser>;
|
|
8283
8283
|
/**
|
|
8284
8284
|
* Referrals
|
|
8285
8285
|
*/
|
|
@@ -8320,7 +8320,7 @@ declare const getReferralsResponseParser: z.ZodObject<{
|
|
|
8320
8320
|
}[];
|
|
8321
8321
|
sync: number;
|
|
8322
8322
|
}>;
|
|
8323
|
-
declare type
|
|
8323
|
+
declare type GetReferralsResponse = z.infer<typeof getReferralsResponseParser>;
|
|
8324
8324
|
/**
|
|
8325
8325
|
* Leaderboard
|
|
8326
8326
|
*/
|
|
@@ -8375,7 +8375,7 @@ declare const getLeaderboardResponseParser: z.ZodObject<{
|
|
|
8375
8375
|
}[];
|
|
8376
8376
|
sync: number;
|
|
8377
8377
|
}>;
|
|
8378
|
-
declare type
|
|
8378
|
+
declare type GetLeaderboardResponse = z.infer<typeof getLeaderboardResponseParser>;
|
|
8379
8379
|
/**
|
|
8380
8380
|
* History Transaction
|
|
8381
8381
|
*/
|
|
@@ -10480,8 +10480,7 @@ declare const getHistoryTransactionResponseParser: z.ZodObject<{
|
|
|
10480
10480
|
};
|
|
10481
10481
|
} | null;
|
|
10482
10482
|
}>;
|
|
10483
|
-
declare type
|
|
10484
|
-
declare type GetHistoryTransactionParsed = z.output<typeof getHistoryTransactionResponseParser>;
|
|
10483
|
+
declare type GetHistoryTransactionResponse = z.input<typeof getHistoryTransactionResponseParser>;
|
|
10485
10484
|
/**
|
|
10486
10485
|
* History Actions
|
|
10487
10486
|
*/
|
|
@@ -12172,4 +12171,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
|
12172
12171
|
}) => boolean;
|
|
12173
12172
|
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
12174
12173
|
|
|
12175
|
-
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,
|
|
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, SerializeOrderResponse, Status, SubmitOrderResponse, 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, postSubmitOrderParser, protonExplorerTxUrl, rateParser, receiptParser, refferalParser, refferalTotalParser, serializeOrderResponseParser, similarChains, singleActionTransactionParser, submitOrderResponseParser, syncParser, traceParser, tradeLogParser, tradeParser, webauthActionParser, withdrawBodyParser, withdrawHistoryMetalResponseParser, withdrawHistoryMetalSwapParser, withdrawMetalResponseParser, withdrawalFeeQuoteParser, wrapParser, wrapSetConfParser, wrapStartParser };
|
package/dist/index.js
CHANGED
|
@@ -119,16 +119,16 @@ __export(src_exports, {
|
|
|
119
119
|
otcOrderResponseParser: () => otcOrderResponseParser,
|
|
120
120
|
otcQuoteBodyParser: () => otcQuoteBodyParser,
|
|
121
121
|
otcQuoteResponseParser: () => otcQuoteResponseParser,
|
|
122
|
+
postSerializeOrderParser: () => postSerializeOrderParser,
|
|
123
|
+
postSubmitOrderParser: () => postSubmitOrderParser,
|
|
122
124
|
protonExplorerTxUrl: () => protonExplorerTxUrl,
|
|
123
125
|
rateParser: () => rateParser,
|
|
124
126
|
receiptParser: () => receiptParser,
|
|
125
127
|
refferalParser: () => refferalParser,
|
|
126
128
|
refferalTotalParser: () => refferalTotalParser,
|
|
127
|
-
serializeOrderParser: () => serializeOrderParser,
|
|
128
129
|
serializeOrderResponseParser: () => serializeOrderResponseParser,
|
|
129
130
|
similarChains: () => similarChains,
|
|
130
131
|
singleActionTransactionParser: () => singleActionTransactionParser,
|
|
131
|
-
submitOrderParser: () => submitOrderParser,
|
|
132
132
|
submitOrderResponseParser: () => submitOrderResponseParser,
|
|
133
133
|
syncParser: () => syncParser,
|
|
134
134
|
traceParser: () => traceParser,
|
|
@@ -2028,7 +2028,7 @@ var getOrderLifecycleResponseParser = z11.object({
|
|
|
2028
2028
|
sync: z11.number(),
|
|
2029
2029
|
data: z11.array(orderHistoryParser)
|
|
2030
2030
|
});
|
|
2031
|
-
var
|
|
2031
|
+
var postSubmitOrderParser = z11.object({
|
|
2032
2032
|
serialized_tx_hex: z11.string(),
|
|
2033
2033
|
signatures: z11.array(z11.string())
|
|
2034
2034
|
});
|
|
@@ -2046,7 +2046,7 @@ var submitOrderResponseParser = z11.object({
|
|
|
2046
2046
|
)
|
|
2047
2047
|
})
|
|
2048
2048
|
});
|
|
2049
|
-
var
|
|
2049
|
+
var postSerializeOrderParser = z11.object({
|
|
2050
2050
|
transaction: z11.object({
|
|
2051
2051
|
actions: z11.array(
|
|
2052
2052
|
z11.object({
|
|
@@ -4149,16 +4149,16 @@ var applyDiscountToFee = (fee, staked) => {
|
|
|
4149
4149
|
otcOrderResponseParser,
|
|
4150
4150
|
otcQuoteBodyParser,
|
|
4151
4151
|
otcQuoteResponseParser,
|
|
4152
|
+
postSerializeOrderParser,
|
|
4153
|
+
postSubmitOrderParser,
|
|
4152
4154
|
protonExplorerTxUrl,
|
|
4153
4155
|
rateParser,
|
|
4154
4156
|
receiptParser,
|
|
4155
4157
|
refferalParser,
|
|
4156
4158
|
refferalTotalParser,
|
|
4157
|
-
serializeOrderParser,
|
|
4158
4159
|
serializeOrderResponseParser,
|
|
4159
4160
|
similarChains,
|
|
4160
4161
|
singleActionTransactionParser,
|
|
4161
|
-
submitOrderParser,
|
|
4162
4162
|
submitOrderResponseParser,
|
|
4163
4163
|
syncParser,
|
|
4164
4164
|
traceParser,
|
package/dist/index.mjs
CHANGED
|
@@ -1880,7 +1880,7 @@ var getOrderLifecycleResponseParser = z11.object({
|
|
|
1880
1880
|
sync: z11.number(),
|
|
1881
1881
|
data: z11.array(orderHistoryParser)
|
|
1882
1882
|
});
|
|
1883
|
-
var
|
|
1883
|
+
var postSubmitOrderParser = z11.object({
|
|
1884
1884
|
serialized_tx_hex: z11.string(),
|
|
1885
1885
|
signatures: z11.array(z11.string())
|
|
1886
1886
|
});
|
|
@@ -1898,7 +1898,7 @@ var submitOrderResponseParser = z11.object({
|
|
|
1898
1898
|
)
|
|
1899
1899
|
})
|
|
1900
1900
|
});
|
|
1901
|
-
var
|
|
1901
|
+
var postSerializeOrderParser = z11.object({
|
|
1902
1902
|
transaction: z11.object({
|
|
1903
1903
|
actions: z11.array(
|
|
1904
1904
|
z11.object({
|
|
@@ -4000,16 +4000,16 @@ export {
|
|
|
4000
4000
|
otcOrderResponseParser,
|
|
4001
4001
|
otcQuoteBodyParser,
|
|
4002
4002
|
otcQuoteResponseParser,
|
|
4003
|
+
postSerializeOrderParser,
|
|
4004
|
+
postSubmitOrderParser,
|
|
4003
4005
|
protonExplorerTxUrl,
|
|
4004
4006
|
rateParser,
|
|
4005
4007
|
receiptParser,
|
|
4006
4008
|
refferalParser,
|
|
4007
4009
|
refferalTotalParser,
|
|
4008
|
-
serializeOrderParser,
|
|
4009
4010
|
serializeOrderResponseParser,
|
|
4010
4011
|
similarChains,
|
|
4011
4012
|
singleActionTransactionParser,
|
|
4012
|
-
submitOrderParser,
|
|
4013
4013
|
submitOrderResponseParser,
|
|
4014
4014
|
syncParser,
|
|
4015
4015
|
traceParser,
|
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.131",
|
|
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": "26f8d0aae59a2150375b964e342403432c631d71"
|
|
44
44
|
}
|
package/src/parsers/dex.ts
CHANGED
|
@@ -188,11 +188,11 @@ export type GetOrderLifecycleResponse = z.infer<
|
|
|
188
188
|
/**
|
|
189
189
|
* Submit Order
|
|
190
190
|
*/
|
|
191
|
-
export const
|
|
191
|
+
export const postSubmitOrderParser = z.object({
|
|
192
192
|
serialized_tx_hex: z.string(),
|
|
193
193
|
signatures: z.array(z.string()),
|
|
194
194
|
});
|
|
195
|
-
export type
|
|
195
|
+
export type PostSubmitOrder = z.infer<typeof postSubmitOrderParser>;
|
|
196
196
|
|
|
197
197
|
export const submitOrderResponseParser = z.object({
|
|
198
198
|
sync: z.number(),
|
|
@@ -213,7 +213,7 @@ export type SubmitOrderResponse = z.infer<typeof submitOrderResponseParser>;
|
|
|
213
213
|
/**
|
|
214
214
|
* Serialize Order
|
|
215
215
|
*/
|
|
216
|
-
export const
|
|
216
|
+
export const postSerializeOrderParser = z.object({
|
|
217
217
|
transaction: z.object({
|
|
218
218
|
actions: z.array(
|
|
219
219
|
z.object({
|
|
@@ -226,7 +226,7 @@ export const serializeOrderParser = z.object({
|
|
|
226
226
|
}),
|
|
227
227
|
});
|
|
228
228
|
|
|
229
|
-
export type
|
|
229
|
+
export type PostSerializeOrder = z.infer<typeof postSerializeOrderParser>;
|
|
230
230
|
|
|
231
231
|
export const serializeOrderResponseParser = z.object({
|
|
232
232
|
data: z.object({
|
|
@@ -286,7 +286,7 @@ export const getDailyResponseParser = z.object({
|
|
|
286
286
|
sync: z.number(),
|
|
287
287
|
data: z.array(dailyParser),
|
|
288
288
|
});
|
|
289
|
-
export type
|
|
289
|
+
export type GetDailyResponse = z.infer<typeof getDailyResponseParser>;
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
292
|
* Markets
|
|
@@ -404,7 +404,7 @@ export const getTradesResponseParser = z.object({
|
|
|
404
404
|
sync: z.number(),
|
|
405
405
|
data: z.array(tradeParser),
|
|
406
406
|
});
|
|
407
|
-
export type
|
|
407
|
+
export type GetTradesResponse = z.infer<typeof getTradesResponseParser>;
|
|
408
408
|
|
|
409
409
|
export const getTradeHistoryParser = z.object({
|
|
410
410
|
account: z.string(),
|
|
@@ -469,7 +469,7 @@ export const getReferralTotalsResponseParser = z.object({
|
|
|
469
469
|
sync: z.number(),
|
|
470
470
|
data: z.array(refferalTotalParser),
|
|
471
471
|
});
|
|
472
|
-
export type
|
|
472
|
+
export type GetReferralTotalsResponse = z.infer<
|
|
473
473
|
typeof getReferralTotalsResponseParser
|
|
474
474
|
>;
|
|
475
475
|
|
|
@@ -491,7 +491,7 @@ export const getReferralsResponseParser = z.object({
|
|
|
491
491
|
sync: z.number(),
|
|
492
492
|
data: z.array(refferalParser),
|
|
493
493
|
});
|
|
494
|
-
export type
|
|
494
|
+
export type GetReferralsResponse = z.infer<
|
|
495
495
|
typeof getReferralsResponseParser
|
|
496
496
|
>;
|
|
497
497
|
|
|
@@ -516,7 +516,7 @@ export const getLeaderboardResponseParser = z.object({
|
|
|
516
516
|
sync: z.number(),
|
|
517
517
|
data: z.array(leaderboardParser),
|
|
518
518
|
});
|
|
519
|
-
export type
|
|
519
|
+
export type GetLeaderboardResponse = z.infer<
|
|
520
520
|
typeof getLeaderboardResponseParser
|
|
521
521
|
>;
|
|
522
522
|
|
|
@@ -615,13 +615,9 @@ export type HistoryTransaction = z.infer<typeof historyTransactionParser>;
|
|
|
615
615
|
export const getHistoryTransactionResponseParser = z.object({
|
|
616
616
|
data: historyTransactionParser.nullable(),
|
|
617
617
|
});
|
|
618
|
-
export type
|
|
618
|
+
export type GetHistoryTransactionResponse = z.input<
|
|
619
619
|
typeof getHistoryTransactionResponseParser
|
|
620
620
|
>;
|
|
621
|
-
export type GetHistoryTransactionParsed = z.output<
|
|
622
|
-
typeof getHistoryTransactionResponseParser
|
|
623
|
-
>;
|
|
624
|
-
|
|
625
621
|
|
|
626
622
|
/**
|
|
627
623
|
* History Actions
|