@proton/wrap-constants 0.2.153 → 0.2.155
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 +22 -2
- package/dist/index.js +54 -51
- package/dist/index.mjs +53 -51
- package/package.json +2 -2
- package/src/coins.ts +44 -44
- package/src/parsers/dex.ts +10 -8
package/dist/index.d.ts
CHANGED
|
@@ -11802,6 +11802,26 @@ declare type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersRes
|
|
|
11802
11802
|
/**
|
|
11803
11803
|
* Open orders Balances
|
|
11804
11804
|
*/
|
|
11805
|
+
declare const marketOpenOrdersBalanceParser: 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 MarketOpenOrdersBalance = z.infer<typeof marketOpenOrdersBalanceParser>;
|
|
11805
11825
|
declare const getOpenOrdersBalancesResponseParser: z.ZodObject<{
|
|
11806
11826
|
sync: z.ZodNumber;
|
|
11807
11827
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -11842,7 +11862,7 @@ declare const getOpenOrdersBalancesResponseParser: z.ZodObject<{
|
|
|
11842
11862
|
}[];
|
|
11843
11863
|
sync: number;
|
|
11844
11864
|
}>;
|
|
11845
|
-
declare type GetOpenOrdersBalancesResponse = z.
|
|
11865
|
+
declare type GetOpenOrdersBalancesResponse = z.infer<typeof getOpenOrdersBalancesResponseParser>;
|
|
11846
11866
|
/**
|
|
11847
11867
|
* Basic Types
|
|
11848
11868
|
*/
|
|
@@ -12889,4 +12909,4 @@ declare const isInputInvalid: (data: string, value: string | number, pool: {
|
|
|
12889
12909
|
}) => boolean;
|
|
12890
12910
|
declare const applyDiscountToFee: (fee: number, staked: number) => number;
|
|
12891
12911
|
|
|
12892
|
-
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 };
|
|
12912
|
+
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, MarketOpenOrdersBalance, 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, marketOpenOrdersBalanceParser, 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
|
@@ -111,6 +111,7 @@ __export(src_exports, {
|
|
|
111
111
|
leaderboardParser: () => leaderboardParser,
|
|
112
112
|
logStatus: () => logStatus,
|
|
113
113
|
loginAccountParamsV3Parser: () => loginAccountParamsV3Parser,
|
|
114
|
+
marketOpenOrdersBalanceParser: () => marketOpenOrdersBalanceParser,
|
|
114
115
|
marketParser: () => marketParser,
|
|
115
116
|
median: () => median,
|
|
116
117
|
metalTransactionParser: () => metalTransactionParser,
|
|
@@ -576,7 +577,7 @@ var initializeCoins = (protonChain) => {
|
|
|
576
577
|
},
|
|
577
578
|
{
|
|
578
579
|
allowSwap: false,
|
|
579
|
-
allowBridge:
|
|
580
|
+
allowBridge: false,
|
|
580
581
|
allowLend: false,
|
|
581
582
|
allowBorrow: false,
|
|
582
583
|
name: "TrueUSD",
|
|
@@ -586,16 +587,16 @@ var initializeCoins = (protonChain) => {
|
|
|
586
587
|
xtokenContract: "xtokens",
|
|
587
588
|
wallets: [
|
|
588
589
|
...IS_MAINNET ? [
|
|
589
|
-
{
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
590
|
+
// {
|
|
591
|
+
// wallet: "TUSD",
|
|
592
|
+
// symbol: "TUSD",
|
|
593
|
+
// chain: Chains.EthereumMainnet,
|
|
594
|
+
// network: Networks.ERC20,
|
|
595
|
+
// precision: 18,
|
|
596
|
+
// contract: "0x0000000000085D4780B73119B644AE5ECD22B376",
|
|
597
|
+
// provider: Providers.FIREBLOCKS,
|
|
598
|
+
// hasWithdrawMemo: false,
|
|
599
|
+
// },
|
|
599
600
|
] : []
|
|
600
601
|
],
|
|
601
602
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
@@ -772,8 +773,8 @@ var initializeCoins = (protonChain) => {
|
|
|
772
773
|
unifiedCryptoassetId: ""
|
|
773
774
|
},
|
|
774
775
|
{
|
|
775
|
-
allowSwap:
|
|
776
|
-
allowBridge:
|
|
776
|
+
allowSwap: false,
|
|
777
|
+
allowBridge: false,
|
|
777
778
|
allowLend: false,
|
|
778
779
|
allowBorrow: false,
|
|
779
780
|
name: "Uniswap",
|
|
@@ -783,28 +784,28 @@ var initializeCoins = (protonChain) => {
|
|
|
783
784
|
xtokenContract: "xtokens",
|
|
784
785
|
wallets: [
|
|
785
786
|
...IS_MAINNET ? [
|
|
786
|
-
{
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
}
|
|
787
|
+
// {
|
|
788
|
+
// wallet: "UNI",
|
|
789
|
+
// symbol: "UNI",
|
|
790
|
+
// chain: Chains.EthereumMainnet,
|
|
791
|
+
// network: Networks.ERC20,
|
|
792
|
+
// precision: 18,
|
|
793
|
+
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
794
|
+
// provider: Providers.FIREBLOCKS,
|
|
795
|
+
// hasWithdrawMemo: false,
|
|
796
|
+
// },
|
|
796
797
|
] : [],
|
|
797
798
|
...IS_TESTNET ? [
|
|
798
|
-
{
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
799
|
+
// {
|
|
800
|
+
// wallet: "UNI",
|
|
801
|
+
// symbol: "UNI",
|
|
802
|
+
// chain: Chains.EthereumRopsten,
|
|
803
|
+
// network: Networks.Ropsten,
|
|
804
|
+
// precision: 18,
|
|
805
|
+
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
806
|
+
// provider: Providers.FIREBLOCKS,
|
|
807
|
+
// hasWithdrawMemo: false,
|
|
808
|
+
// },
|
|
808
809
|
] : []
|
|
809
810
|
],
|
|
810
811
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
@@ -1060,7 +1061,7 @@ var initializeCoins = (protonChain) => {
|
|
|
1060
1061
|
},
|
|
1061
1062
|
{
|
|
1062
1063
|
allowSwap: true,
|
|
1063
|
-
allowBridge:
|
|
1064
|
+
allowBridge: false,
|
|
1064
1065
|
allowLend: false,
|
|
1065
1066
|
allowBorrow: false,
|
|
1066
1067
|
name: "Binance Coin",
|
|
@@ -1070,16 +1071,16 @@ var initializeCoins = (protonChain) => {
|
|
|
1070
1071
|
xtokenContract: "xtokens",
|
|
1071
1072
|
wallets: [
|
|
1072
1073
|
...IS_MAINNET ? [
|
|
1073
|
-
{
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
}
|
|
1074
|
+
// {
|
|
1075
|
+
// wallet: "BNB",
|
|
1076
|
+
// symbol: "BNB",
|
|
1077
|
+
// chain: Chains.BinanceBEP20,
|
|
1078
|
+
// network: Networks.BEP20,
|
|
1079
|
+
// precision: 18,
|
|
1080
|
+
// contract: undefined,
|
|
1081
|
+
// provider: Providers.FIREBLOCKS,
|
|
1082
|
+
// hasWithdrawMemo: false,
|
|
1083
|
+
// },
|
|
1083
1084
|
] : []
|
|
1084
1085
|
],
|
|
1085
1086
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
@@ -2394,15 +2395,16 @@ var getHistoryTransfersResponseParser = z11.object({
|
|
|
2394
2395
|
last_irreversible_block_num: z11.number(),
|
|
2395
2396
|
data: z11.array(historyTransferParser)
|
|
2396
2397
|
});
|
|
2398
|
+
var marketOpenOrdersBalanceParser = z11.object({
|
|
2399
|
+
market_id: z11.number(),
|
|
2400
|
+
bid_token_quantity: z11.number(),
|
|
2401
|
+
bid_token: z11.string(),
|
|
2402
|
+
ask_token_quantity: z11.number(),
|
|
2403
|
+
ask_token: z11.string()
|
|
2404
|
+
});
|
|
2397
2405
|
var getOpenOrdersBalancesResponseParser = z11.object({
|
|
2398
2406
|
sync: z11.number(),
|
|
2399
|
-
data: z11.array(
|
|
2400
|
-
market_id: z11.number(),
|
|
2401
|
-
bid_token_quantity: z11.number(),
|
|
2402
|
-
bid_token: z11.string(),
|
|
2403
|
-
ask_token_quantity: z11.number(),
|
|
2404
|
-
ask_token: z11.string()
|
|
2405
|
-
}))
|
|
2407
|
+
data: z11.array(marketOpenOrdersBalanceParser)
|
|
2406
2408
|
});
|
|
2407
2409
|
var orderType = /* @__PURE__ */ ((orderType2) => {
|
|
2408
2410
|
orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
|
|
@@ -4187,6 +4189,7 @@ var applyDiscountToFee = (fee, staked) => {
|
|
|
4187
4189
|
leaderboardParser,
|
|
4188
4190
|
logStatus,
|
|
4189
4191
|
loginAccountParamsV3Parser,
|
|
4192
|
+
marketOpenOrdersBalanceParser,
|
|
4190
4193
|
marketParser,
|
|
4191
4194
|
median,
|
|
4192
4195
|
metalTransactionParser,
|
package/dist/index.mjs
CHANGED
|
@@ -423,7 +423,7 @@ var initializeCoins = (protonChain) => {
|
|
|
423
423
|
},
|
|
424
424
|
{
|
|
425
425
|
allowSwap: false,
|
|
426
|
-
allowBridge:
|
|
426
|
+
allowBridge: false,
|
|
427
427
|
allowLend: false,
|
|
428
428
|
allowBorrow: false,
|
|
429
429
|
name: "TrueUSD",
|
|
@@ -433,16 +433,16 @@ var initializeCoins = (protonChain) => {
|
|
|
433
433
|
xtokenContract: "xtokens",
|
|
434
434
|
wallets: [
|
|
435
435
|
...IS_MAINNET ? [
|
|
436
|
-
{
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
436
|
+
// {
|
|
437
|
+
// wallet: "TUSD",
|
|
438
|
+
// symbol: "TUSD",
|
|
439
|
+
// chain: Chains.EthereumMainnet,
|
|
440
|
+
// network: Networks.ERC20,
|
|
441
|
+
// precision: 18,
|
|
442
|
+
// contract: "0x0000000000085D4780B73119B644AE5ECD22B376",
|
|
443
|
+
// provider: Providers.FIREBLOCKS,
|
|
444
|
+
// hasWithdrawMemo: false,
|
|
445
|
+
// },
|
|
446
446
|
] : []
|
|
447
447
|
],
|
|
448
448
|
image: "https://www.proton.org/images/tokens/xtokensXTUSD.png",
|
|
@@ -619,8 +619,8 @@ var initializeCoins = (protonChain) => {
|
|
|
619
619
|
unifiedCryptoassetId: ""
|
|
620
620
|
},
|
|
621
621
|
{
|
|
622
|
-
allowSwap:
|
|
623
|
-
allowBridge:
|
|
622
|
+
allowSwap: false,
|
|
623
|
+
allowBridge: false,
|
|
624
624
|
allowLend: false,
|
|
625
625
|
allowBorrow: false,
|
|
626
626
|
name: "Uniswap",
|
|
@@ -630,28 +630,28 @@ var initializeCoins = (protonChain) => {
|
|
|
630
630
|
xtokenContract: "xtokens",
|
|
631
631
|
wallets: [
|
|
632
632
|
...IS_MAINNET ? [
|
|
633
|
-
{
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
}
|
|
633
|
+
// {
|
|
634
|
+
// wallet: "UNI",
|
|
635
|
+
// symbol: "UNI",
|
|
636
|
+
// chain: Chains.EthereumMainnet,
|
|
637
|
+
// network: Networks.ERC20,
|
|
638
|
+
// precision: 18,
|
|
639
|
+
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
640
|
+
// provider: Providers.FIREBLOCKS,
|
|
641
|
+
// hasWithdrawMemo: false,
|
|
642
|
+
// },
|
|
643
643
|
] : [],
|
|
644
644
|
...IS_TESTNET ? [
|
|
645
|
-
{
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
}
|
|
645
|
+
// {
|
|
646
|
+
// wallet: "UNI",
|
|
647
|
+
// symbol: "UNI",
|
|
648
|
+
// chain: Chains.EthereumRopsten,
|
|
649
|
+
// network: Networks.Ropsten,
|
|
650
|
+
// precision: 18,
|
|
651
|
+
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
652
|
+
// provider: Providers.FIREBLOCKS,
|
|
653
|
+
// hasWithdrawMemo: false,
|
|
654
|
+
// },
|
|
655
655
|
] : []
|
|
656
656
|
],
|
|
657
657
|
image: "https://www.proton.org/images/tokens/xtokensXUNI.png",
|
|
@@ -907,7 +907,7 @@ var initializeCoins = (protonChain) => {
|
|
|
907
907
|
},
|
|
908
908
|
{
|
|
909
909
|
allowSwap: true,
|
|
910
|
-
allowBridge:
|
|
910
|
+
allowBridge: false,
|
|
911
911
|
allowLend: false,
|
|
912
912
|
allowBorrow: false,
|
|
913
913
|
name: "Binance Coin",
|
|
@@ -917,16 +917,16 @@ var initializeCoins = (protonChain) => {
|
|
|
917
917
|
xtokenContract: "xtokens",
|
|
918
918
|
wallets: [
|
|
919
919
|
...IS_MAINNET ? [
|
|
920
|
-
{
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
}
|
|
920
|
+
// {
|
|
921
|
+
// wallet: "BNB",
|
|
922
|
+
// symbol: "BNB",
|
|
923
|
+
// chain: Chains.BinanceBEP20,
|
|
924
|
+
// network: Networks.BEP20,
|
|
925
|
+
// precision: 18,
|
|
926
|
+
// contract: undefined,
|
|
927
|
+
// provider: Providers.FIREBLOCKS,
|
|
928
|
+
// hasWithdrawMemo: false,
|
|
929
|
+
// },
|
|
930
930
|
] : []
|
|
931
931
|
],
|
|
932
932
|
image: "https://www.proton.org/images/tokens/xtokensXBNB.png",
|
|
@@ -2241,15 +2241,16 @@ var getHistoryTransfersResponseParser = z11.object({
|
|
|
2241
2241
|
last_irreversible_block_num: z11.number(),
|
|
2242
2242
|
data: z11.array(historyTransferParser)
|
|
2243
2243
|
});
|
|
2244
|
+
var marketOpenOrdersBalanceParser = 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 getOpenOrdersBalancesResponseParser = z11.object({
|
|
2245
2252
|
sync: z11.number(),
|
|
2246
|
-
data: z11.array(
|
|
2247
|
-
market_id: z11.number(),
|
|
2248
|
-
bid_token_quantity: z11.number(),
|
|
2249
|
-
bid_token: z11.string(),
|
|
2250
|
-
ask_token_quantity: z11.number(),
|
|
2251
|
-
ask_token: z11.string()
|
|
2252
|
-
}))
|
|
2253
|
+
data: z11.array(marketOpenOrdersBalanceParser)
|
|
2253
2254
|
});
|
|
2254
2255
|
var orderType = /* @__PURE__ */ ((orderType2) => {
|
|
2255
2256
|
orderType2[orderType2["ORDERBOOK"] = 0] = "ORDERBOOK";
|
|
@@ -4033,6 +4034,7 @@ export {
|
|
|
4033
4034
|
leaderboardParser,
|
|
4034
4035
|
logStatus,
|
|
4035
4036
|
loginAccountParamsV3Parser,
|
|
4037
|
+
marketOpenOrdersBalanceParser,
|
|
4036
4038
|
marketParser,
|
|
4037
4039
|
median,
|
|
4038
4040
|
metalTransactionParser,
|
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.155",
|
|
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": "fbd7ebfeb48d7a49be2a6791d04653b7e69e8e5c"
|
|
44
44
|
}
|
package/src/coins.ts
CHANGED
|
@@ -525,7 +525,7 @@ export const initializeCoins = (
|
|
|
525
525
|
},
|
|
526
526
|
{
|
|
527
527
|
allowSwap: false,
|
|
528
|
-
allowBridge:
|
|
528
|
+
allowBridge: false,
|
|
529
529
|
allowLend: false,
|
|
530
530
|
allowBorrow: false,
|
|
531
531
|
name: "TrueUSD",
|
|
@@ -536,16 +536,16 @@ export const initializeCoins = (
|
|
|
536
536
|
wallets: [
|
|
537
537
|
...(IS_MAINNET
|
|
538
538
|
? [
|
|
539
|
-
{
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
},
|
|
539
|
+
// {
|
|
540
|
+
// wallet: "TUSD",
|
|
541
|
+
// symbol: "TUSD",
|
|
542
|
+
// chain: Chains.EthereumMainnet,
|
|
543
|
+
// network: Networks.ERC20,
|
|
544
|
+
// precision: 18,
|
|
545
|
+
// contract: "0x0000000000085D4780B73119B644AE5ECD22B376",
|
|
546
|
+
// provider: Providers.FIREBLOCKS,
|
|
547
|
+
// hasWithdrawMemo: false,
|
|
548
|
+
// },
|
|
549
549
|
]
|
|
550
550
|
: []),
|
|
551
551
|
],
|
|
@@ -738,8 +738,8 @@ export const initializeCoins = (
|
|
|
738
738
|
unifiedCryptoassetId: "",
|
|
739
739
|
},
|
|
740
740
|
{
|
|
741
|
-
allowSwap:
|
|
742
|
-
allowBridge:
|
|
741
|
+
allowSwap: false,
|
|
742
|
+
allowBridge: false,
|
|
743
743
|
allowLend: false,
|
|
744
744
|
allowBorrow: false,
|
|
745
745
|
name: "Uniswap",
|
|
@@ -750,30 +750,30 @@ export const initializeCoins = (
|
|
|
750
750
|
wallets: [
|
|
751
751
|
...(IS_MAINNET
|
|
752
752
|
? [
|
|
753
|
-
{
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
},
|
|
753
|
+
// {
|
|
754
|
+
// wallet: "UNI",
|
|
755
|
+
// symbol: "UNI",
|
|
756
|
+
// chain: Chains.EthereumMainnet,
|
|
757
|
+
// network: Networks.ERC20,
|
|
758
|
+
// precision: 18,
|
|
759
|
+
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
760
|
+
// provider: Providers.FIREBLOCKS,
|
|
761
|
+
// hasWithdrawMemo: false,
|
|
762
|
+
// },
|
|
763
763
|
]
|
|
764
764
|
: []),
|
|
765
765
|
...(IS_TESTNET
|
|
766
766
|
? [
|
|
767
|
-
{
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
},
|
|
767
|
+
// {
|
|
768
|
+
// wallet: "UNI",
|
|
769
|
+
// symbol: "UNI",
|
|
770
|
+
// chain: Chains.EthereumRopsten,
|
|
771
|
+
// network: Networks.Ropsten,
|
|
772
|
+
// precision: 18,
|
|
773
|
+
// contract: "0x1F9840A85D5AF5BF1D1762F925BDADDC4201F984",
|
|
774
|
+
// provider: Providers.FIREBLOCKS,
|
|
775
|
+
// hasWithdrawMemo: false,
|
|
776
|
+
// },
|
|
777
777
|
]
|
|
778
778
|
: []),
|
|
779
779
|
],
|
|
@@ -1051,7 +1051,7 @@ export const initializeCoins = (
|
|
|
1051
1051
|
},
|
|
1052
1052
|
{
|
|
1053
1053
|
allowSwap: true,
|
|
1054
|
-
allowBridge:
|
|
1054
|
+
allowBridge: false,
|
|
1055
1055
|
allowLend: false,
|
|
1056
1056
|
allowBorrow: false,
|
|
1057
1057
|
name: "Binance Coin",
|
|
@@ -1062,16 +1062,16 @@ export const initializeCoins = (
|
|
|
1062
1062
|
wallets: [
|
|
1063
1063
|
...(IS_MAINNET
|
|
1064
1064
|
? [
|
|
1065
|
-
{
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
},
|
|
1065
|
+
// {
|
|
1066
|
+
// wallet: "BNB",
|
|
1067
|
+
// symbol: "BNB",
|
|
1068
|
+
// chain: Chains.BinanceBEP20,
|
|
1069
|
+
// network: Networks.BEP20,
|
|
1070
|
+
// precision: 18,
|
|
1071
|
+
// contract: undefined,
|
|
1072
|
+
// provider: Providers.FIREBLOCKS,
|
|
1073
|
+
// hasWithdrawMemo: false,
|
|
1074
|
+
// },
|
|
1075
1075
|
]
|
|
1076
1076
|
: []),
|
|
1077
1077
|
],
|
package/src/parsers/dex.ts
CHANGED
|
@@ -702,18 +702,20 @@ export type GetHistoryTransfersResponse = z.infer<typeof getHistoryTransfersResp
|
|
|
702
702
|
/**
|
|
703
703
|
* Open orders Balances
|
|
704
704
|
*/
|
|
705
|
+
export const marketOpenOrdersBalanceParser = 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
|
+
export type MarketOpenOrdersBalance = z.infer<typeof marketOpenOrdersBalanceParser>;
|
|
705
713
|
export const getOpenOrdersBalancesResponseParser = z.object({
|
|
706
714
|
sync: z.number(),
|
|
707
|
-
data: z.array(
|
|
708
|
-
market_id: z.number(),
|
|
709
|
-
bid_token_quantity: z.number(),
|
|
710
|
-
bid_token: z.string(),
|
|
711
|
-
ask_token_quantity: z.number(),
|
|
712
|
-
ask_token: z.string(),
|
|
713
|
-
}))
|
|
715
|
+
data: z.array(marketOpenOrdersBalanceParser)
|
|
714
716
|
});
|
|
715
717
|
|
|
716
|
-
export type GetOpenOrdersBalancesResponse = z.
|
|
718
|
+
export type GetOpenOrdersBalancesResponse = z.infer<typeof getOpenOrdersBalancesResponseParser>;
|
|
717
719
|
|
|
718
720
|
/**
|
|
719
721
|
* Basic Types
|