@agg-build/hooks 4.0.0 → 4.4.0
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/README.md +38 -15
- package/dist/{chunk-AZYAQIZB.mjs → chunk-IHMZHA2W.mjs} +1 -1
- package/dist/{chunk-SC6X5TL4.mjs → chunk-LVOL27OZ.mjs} +338 -49
- package/dist/{chunk-BR6NZSXN.mjs → chunk-O4RM4KKO.mjs} +1 -1
- package/dist/deposit.js +54 -5
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +472 -4
- package/dist/index.d.ts +472 -4
- package/dist/index.js +1013 -80
- package/dist/index.mjs +654 -21
- package/dist/withdraw.js +54 -5
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
package/dist/deposit.js
CHANGED
|
@@ -171,7 +171,8 @@ var enUsLabels = {
|
|
|
171
171
|
limitless: "Limitless",
|
|
172
172
|
probable: "Probable",
|
|
173
173
|
myriad: "Myriad",
|
|
174
|
-
hyperliquid: "Hyperliquid"
|
|
174
|
+
hyperliquid: "Hyperliquid",
|
|
175
|
+
novig: "Novig"
|
|
175
176
|
},
|
|
176
177
|
auth: {
|
|
177
178
|
connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
|
|
@@ -452,7 +453,7 @@ var enUsLabels = {
|
|
|
452
453
|
userProfile: {
|
|
453
454
|
tabs: {
|
|
454
455
|
positions: "Positions",
|
|
455
|
-
openOrders: "Open orders",
|
|
456
|
+
openOrders: "Open limit orders",
|
|
456
457
|
activity: "Activity"
|
|
457
458
|
},
|
|
458
459
|
balance: {
|
|
@@ -555,6 +556,7 @@ var enUsLabels = {
|
|
|
555
556
|
goodTilCanceled: "Good 'til canceled",
|
|
556
557
|
expired: "Expired",
|
|
557
558
|
cancel: "Cancel",
|
|
559
|
+
pending: "Pending",
|
|
558
560
|
cancelOrderAria: (orderId) => `Cancel order ${orderId}`,
|
|
559
561
|
loading: "Loading open orders",
|
|
560
562
|
loadingMore: "Loading more open orders",
|
|
@@ -633,7 +635,19 @@ var enUsLabels = {
|
|
|
633
635
|
volumeSuffix: "Vol.",
|
|
634
636
|
marketSelectPlaceholder: "Select market",
|
|
635
637
|
marketSelectSearchPlaceholder: "Search markets...",
|
|
636
|
-
marketSelectEmpty: "No markets found"
|
|
638
|
+
marketSelectEmpty: "No markets found",
|
|
639
|
+
moreMarkets: "More",
|
|
640
|
+
liveMarket: "Live"
|
|
641
|
+
},
|
|
642
|
+
sportsLive: {
|
|
643
|
+
scoreAria: (firstName, firstScore, secondName, secondScore, status) => `${firstName} ${firstScore}, ${secondName} ${secondScore}, ${status}`,
|
|
644
|
+
scheduled: "Scheduled",
|
|
645
|
+
live: "Live",
|
|
646
|
+
paused: "Paused",
|
|
647
|
+
finished: "Final",
|
|
648
|
+
cancelled: "Cancelled",
|
|
649
|
+
postponed: "Postponed",
|
|
650
|
+
unknown: "Status unavailable"
|
|
637
651
|
},
|
|
638
652
|
settlementSummary: {
|
|
639
653
|
title: "Settlement differences",
|
|
@@ -680,6 +694,7 @@ var enUsLabels = {
|
|
|
680
694
|
showOutcomeAria: (label) => `Show ${label} outcome`,
|
|
681
695
|
viewResolved: "View resolved",
|
|
682
696
|
hideResolved: "Hide resolved",
|
|
697
|
+
resolvingBadge: "Resolving",
|
|
683
698
|
resolvingTitle: "Resolving market\u2026",
|
|
684
699
|
resolvingDescription: "This market has closed. We're waiting for final settlement data and will update the result once it's confirmed on-chain.",
|
|
685
700
|
volumeUnavailable: "Volume unavailable",
|
|
@@ -760,7 +775,9 @@ var enUsLabels = {
|
|
|
760
775
|
orderDisabledNoOutcome: "Select an outcome to place an order.",
|
|
761
776
|
orderDisabledNoEvent: "No event selected.",
|
|
762
777
|
insufficientBalance: "Insufficient balance",
|
|
763
|
-
|
|
778
|
+
insufficientBalanceDetails: "Insufficient balance details",
|
|
779
|
+
lowLiquidityWarning: "Your avg. price is higher than the market price due to your order size and available market liquidity.",
|
|
780
|
+
lowLiquiditySellWarning: "Your avg. price is lower than the market price due to your order size and available market liquidity.",
|
|
764
781
|
refreshQuote: "Refresh Quote",
|
|
765
782
|
confirmOrder: "Confirm Order",
|
|
766
783
|
withdrawSubmitted: "Withdrawal submitted",
|
|
@@ -836,6 +853,12 @@ var enUsLabels = {
|
|
|
836
853
|
limitPrice: "Limit price",
|
|
837
854
|
limitPriceInputAria: "Limit price in cents",
|
|
838
855
|
limitPriceInvalid: "Limit price must be greater than 0 and less than 100.",
|
|
856
|
+
limitPriceAdjusted: (venueLabels, tickSizeCents, originalPriceLabel, side, adjustedPriceLabel) => {
|
|
857
|
+
const venues = venueLabels.length <= 1 ? venueLabels.join("") : venueLabels.length === 2 ? `${venueLabels[0]} and ${venueLabels[1]}` : `${venueLabels.slice(0, -1).join(", ")} and ${venueLabels[venueLabels.length - 1]}`;
|
|
858
|
+
const increment = tickSizeCents === 1 ? "whole cents" : `${tickSizeCents.toLocaleString("en-US", { maximumFractionDigits: 4 })}\xA2 increments`;
|
|
859
|
+
const direction = side === "buy" ? "down" : "up";
|
|
860
|
+
return `${venues} price in ${increment}, so your ${originalPriceLabel} ${side} rounds ${direction} to ${adjustedPriceLabel}`;
|
|
861
|
+
},
|
|
839
862
|
limitPriceDecreaseAria: "Decrease limit price",
|
|
840
863
|
limitPriceIncreaseAria: "Increase limit price",
|
|
841
864
|
expiration: "Expiration",
|
|
@@ -879,9 +902,23 @@ var enUsLabels = {
|
|
|
879
902
|
updatingRoute: "Updating route\u2026",
|
|
880
903
|
refreshingQuotes: "Refreshing quotes\u2026",
|
|
881
904
|
checkingBalance: "Checking balance",
|
|
905
|
+
executingOrder: "Executing order...",
|
|
882
906
|
submittingOrderProgress: "Submitting order...",
|
|
907
|
+
executionOrderSubmitted: "Order submitted",
|
|
883
908
|
orderSubmittedProgress: (orderId) => `Order #${orderId.replace(/^#/, "")} submitted`,
|
|
884
909
|
executingOnVenue: (venueLabel) => `Executing on ${venueLabel}...`,
|
|
910
|
+
venueOrder: (venueLabel) => `${venueLabel} order`,
|
|
911
|
+
settingUpBridge: "Setting up bridging...",
|
|
912
|
+
bridgeSetupComplete: "Bridge setup complete",
|
|
913
|
+
bridgingFundsProgress: "Bridging funds...",
|
|
914
|
+
bridgeComplete: "Bridge complete",
|
|
915
|
+
bridgingFunds: (amount, sourceChain, destinationChain, tokenSymbol = "USDC") => `Bridging ${amount} ${tokenSymbol} from ${sourceChain} to ${destinationChain}...`,
|
|
916
|
+
fundsBridged: (amount, sourceChain, destinationChain, tokenSymbol = "USDC") => `Bridged ${amount} ${tokenSymbol} from ${sourceChain} to ${destinationChain}`,
|
|
917
|
+
depositingFunds: (amount, tokenSymbol, destinationChain) => `Depositing ${amount} ${tokenSymbol} to ${destinationChain}...`,
|
|
918
|
+
fundsDeposited: (amount, tokenSymbol, destinationChain) => `Deposited ${amount} ${tokenSymbol} to ${destinationChain}`,
|
|
919
|
+
fillingOnVenue: (venueLabel) => `Filling on ${venueLabel}...`,
|
|
920
|
+
venueFilledAtPriceWithAmount: (venueLabel, amountLabel, priceLabel) => `${venueLabel} filled ${amountLabel} at ${priceLabel}`,
|
|
921
|
+
executionShares: (value) => `${value} shares`,
|
|
885
922
|
confirmTransactionInWallet: "Confirm the transaction in your wallet",
|
|
886
923
|
executionConfirmed: "Execution confirmed",
|
|
887
924
|
orderSuccessTitle: "Order placed",
|
|
@@ -889,7 +926,7 @@ var enUsLabels = {
|
|
|
889
926
|
orderFailureTitle: "Order failed",
|
|
890
927
|
orderFailureDescription: (message) => message || "Something went wrong. Please try again.",
|
|
891
928
|
orderDone: "Done",
|
|
892
|
-
orderNewTrade: "New
|
|
929
|
+
orderNewTrade: "New trade",
|
|
893
930
|
orderShare: "Share",
|
|
894
931
|
orderRetry: "Try again",
|
|
895
932
|
orderContinue: "Continue",
|
|
@@ -902,12 +939,20 @@ var enUsLabels = {
|
|
|
902
939
|
orderSummaryAvgPrice: "Avg. price",
|
|
903
940
|
orderSummaryEstCost: "Est. cost",
|
|
904
941
|
orderSummaryVenue: "Venue",
|
|
942
|
+
orderAmountFilled: "Amount filled",
|
|
943
|
+
orderAmountFilledOf: (requestedAmount) => `of ${requestedAmount}`,
|
|
944
|
+
orderPayout: "Payout",
|
|
945
|
+
orderFullyFilled: "Order fully filled",
|
|
946
|
+
orderPartiallyFilled: "Order partially filled",
|
|
947
|
+
orderAveragePrice: (priceLabel) => `avg. ${priceLabel}`,
|
|
905
948
|
orderComplete: "Order complete",
|
|
906
949
|
orderFilledAtPrice: (venueLabel, priceLabel) => `${venueLabel} order filled at ${priceLabel}`,
|
|
907
950
|
orderFilledAtPriceWithAmount: (venueLabel, priceLabel, amountLabel) => `${venueLabel} order filled at ${priceLabel} (${amountLabel})`,
|
|
908
951
|
orderPartiallyFilledAtPriceWithAmount: (venueLabel, priceLabel, amountLabel) => `${venueLabel} order partially filled at ${priceLabel} (${amountLabel})`,
|
|
909
952
|
orderSkip: "Skip",
|
|
910
953
|
orderRetryRemaining: "Retry remaining",
|
|
954
|
+
orderTryRemaining: (remainingLabel) => `Try remaining ${remainingLabel}`,
|
|
955
|
+
orderClose: "Close",
|
|
911
956
|
resolvedEarningsTitle: "Your Earnings",
|
|
912
957
|
resolvedResolutionDateLabel: "Resolution date",
|
|
913
958
|
resolvedSharesLabel: "Shares",
|
|
@@ -916,6 +961,7 @@ var enUsLabels = {
|
|
|
916
961
|
boughtOutcomeAtPrice: (label, priceLabel) => `Bought ${label} at ${priceLabel}`,
|
|
917
962
|
soldOutcomeAtPrice: (label, priceLabel) => `Sold ${label} at ${priceLabel}`,
|
|
918
963
|
potentialReturnBonus: (value) => `+${value} Better Payout`,
|
|
964
|
+
potentialReturnBetter: (value) => `+${value} Better`,
|
|
919
965
|
withSmartRouting: "with Smart Routing",
|
|
920
966
|
buy: "Buy",
|
|
921
967
|
sell: "Sell",
|
|
@@ -1060,6 +1106,9 @@ var enUsLabels = {
|
|
|
1060
1106
|
resolvedOutcome: (label) => `Resolved: ${label}`,
|
|
1061
1107
|
marketDetailsAriaByDate: (dateLabel) => `Market details for ${dateLabel}`,
|
|
1062
1108
|
marketDetailsAriaByQuestion: (question) => `Market details for ${question}`,
|
|
1109
|
+
recurringCountdownAria: (countdown) => `Current market ends in ${countdown}`,
|
|
1110
|
+
goToLive: "Go to live",
|
|
1111
|
+
liveMarketUnavailable: "A live market is not available yet",
|
|
1063
1112
|
sports: {
|
|
1064
1113
|
summaryAria: "Sports event summary",
|
|
1065
1114
|
sectionTabsAria: "Sports market sections",
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O4RM4KKO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
__async,
|
|
7
7
|
useAggAuthState,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useDepositAddresses,
|
|
12
12
|
useOptionalAggClient,
|
|
13
13
|
useSyncBalances
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LVOL27OZ.mjs";
|
|
15
15
|
|
|
16
16
|
// src/deposit/normalize-wallet-error.ts
|
|
17
17
|
function normalizeWalletError(error, supportedChains) {
|