@agg-build/hooks 1.2.11 → 1.2.12
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/{chunk-553OI6M2.mjs → chunk-2C7JR5OH.mjs} +106 -16
- package/dist/{chunk-JWPZNCGY.mjs → chunk-R6VANZRA.mjs} +1 -1
- package/dist/{chunk-CWEJLBYY.mjs → chunk-V34QGQBO.mjs} +1 -1
- package/dist/deposit.js +77 -1
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +137 -2
- package/dist/index.d.ts +137 -2
- package/dist/index.js +120 -23
- package/dist/index.mjs +19 -10
- package/dist/withdraw.js +77 -1
- package/dist/withdraw.mjs +2 -2
- package/package.json +1 -1
package/dist/withdraw.js
CHANGED
|
@@ -403,6 +403,15 @@ var enUsLabels = {
|
|
|
403
403
|
eventList: {
|
|
404
404
|
matchedTab: "Matched",
|
|
405
405
|
allTab: "All",
|
|
406
|
+
sortByLabel: "Sort by",
|
|
407
|
+
sortBy24hVolume: "24h volume",
|
|
408
|
+
sortByTopArbitrage: "Top arbitrage",
|
|
409
|
+
sortByTotalVolume: "Total volume",
|
|
410
|
+
sortByEndingSoon: "Ending soon",
|
|
411
|
+
subcategoriesLabel: "Subcategories",
|
|
412
|
+
subcategoriesAll: "All",
|
|
413
|
+
subcategoriesOpenAria: "Open subcategories",
|
|
414
|
+
subcategoriesCloseAria: "Close subcategories",
|
|
406
415
|
loading: (title) => `Loading ${title}`,
|
|
407
416
|
tabsAria: (title) => `${title} tabs`,
|
|
408
417
|
emptyAria: "No events found",
|
|
@@ -590,6 +599,18 @@ var enUsLabels = {
|
|
|
590
599
|
noOrderbooks: "No live orderbooks are available for this market right now.",
|
|
591
600
|
quoteUnavailable: "Quote temporarily unavailable. Please try again.",
|
|
592
601
|
quoteBalanceMismatch: "Quote balance mismatch. Try a different amount.",
|
|
602
|
+
serviceTemporarilyUnavailable: "Service temporarily unavailable. Please try again in a moment.",
|
|
603
|
+
orderDeadlineExpiredBeforeSubmission: "Order deadline expired before submission. Please try again.",
|
|
604
|
+
sellNoOnchainPosition: "You don't currently hold any on-chain shares of this outcome. If you just sold or redeemed elsewhere, your position display will refresh shortly \u2014 try again after that.",
|
|
605
|
+
venueQuoteUnfillable: "The venue couldn't fill this order at the quoted price right now. Try a smaller size, a higher slippage tolerance, or wait a moment and re-quote.",
|
|
606
|
+
venueMinOrderSize: "Order size is below the venue minimum. Try a larger amount.",
|
|
607
|
+
sourceBalanceChanged: "Your balance changed since the quote. Refresh and try again, or pick a smaller amount.",
|
|
608
|
+
venueMarketResolved: "This market just resolved. Pick a different market or wait for the next round.",
|
|
609
|
+
dflowWalletUnverified: "Your Solana wallet needs to be verified with dFlow before you can trade Kalshi markets. Verify at https://dflow.net/proof, then try again.",
|
|
610
|
+
venueNoQuotePath: "No active quote path for this market right now. Try a different size, or wait a moment and re-quote.",
|
|
611
|
+
solanaBlockhashExpired: "Solana transaction expired before submission. Please re-quote and try again.",
|
|
612
|
+
venueRateLimited: "The venue is rate-limiting requests right now. Please wait a moment and try again.",
|
|
613
|
+
serviceBlockedOrder: "Something on our side blocked this order. Please contact support if it keeps happening \u2014 retrying with the same quote will hit the same issue.",
|
|
593
614
|
selectedVenueUnavailable: "The venue you selected is no longer available on this route. Review the updated options and try again.",
|
|
594
615
|
engineUnavailable: "The routing engine is temporarily unavailable. Please try again in a moment.",
|
|
595
616
|
insufficientInputAmount: "Trade amount is too small to cover bridging and execution costs. Increase your spend or deposit funds on the destination chain.",
|
|
@@ -603,6 +624,7 @@ var enUsLabels = {
|
|
|
603
624
|
deposit: "Deposit",
|
|
604
625
|
kycRequired: "Verify to trade Kalshi",
|
|
605
626
|
kycNotVerifiedTooltip: "You have not been verified yet",
|
|
627
|
+
kycVerify: "Verify Identity",
|
|
606
628
|
kycVerifyModalTitle: "Verify Your Identity",
|
|
607
629
|
kycVerifyModalDescription: "To start trading on Kalshi, you'll need to complete identity verification through dFlow. It only takes a few minutes and helps us stay compliant with regulations.",
|
|
608
630
|
kycStartVerification: "Start Verification",
|
|
@@ -616,6 +638,7 @@ var enUsLabels = {
|
|
|
616
638
|
splitOrderDescription: "We split your order for the best price:",
|
|
617
639
|
viewAllRoutes: (count) => `View all (${count})`,
|
|
618
640
|
venueUnavailableInRegion: "Unavailable in your region",
|
|
641
|
+
verified: "Verified",
|
|
619
642
|
platformFee: "0% platform fees",
|
|
620
643
|
estimatedFees: "Estimated fees",
|
|
621
644
|
estimatedFeesTooltipAria: "Estimated fees breakdown",
|
|
@@ -807,6 +830,57 @@ var enUsLabels = {
|
|
|
807
830
|
header: {
|
|
808
831
|
bannerAria: "Site header",
|
|
809
832
|
logoAria: "Home"
|
|
833
|
+
},
|
|
834
|
+
notifications: {
|
|
835
|
+
order: {
|
|
836
|
+
filledTitle: "Order filled",
|
|
837
|
+
filledMessage: ({ venueLabel, sideLabel, amountLabel, priceLabel }) => {
|
|
838
|
+
const action = sideLabel ? `${sideLabel} filled` : "Filled";
|
|
839
|
+
const amount = amountLabel ? ` ${amountLabel}` : "";
|
|
840
|
+
const price = priceLabel ? ` at ${priceLabel}` : "";
|
|
841
|
+
const venue = venueLabel ? ` on ${venueLabel}` : "";
|
|
842
|
+
return `${action}${amount}${price}${venue}`.trim();
|
|
843
|
+
},
|
|
844
|
+
partialFilledTitle: "Order partially filled",
|
|
845
|
+
partialFilledMessage: ({ venueLabel, sideLabel, amountLabel, priceLabel }) => {
|
|
846
|
+
const action = sideLabel ? `${sideLabel} partially filled` : "Partially filled";
|
|
847
|
+
const amount = amountLabel ? ` ${amountLabel}` : "";
|
|
848
|
+
const price = priceLabel ? ` at ${priceLabel}` : "";
|
|
849
|
+
const venue = venueLabel ? ` on ${venueLabel}` : "";
|
|
850
|
+
return `${action}${amount}${price}${venue}`.trim();
|
|
851
|
+
},
|
|
852
|
+
failedTitle: "Order failed",
|
|
853
|
+
failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your order could not be completed. Please try again."
|
|
854
|
+
},
|
|
855
|
+
deposit: {
|
|
856
|
+
completedTitle: "Deposit complete",
|
|
857
|
+
completedMessage: ({ amountLabel, tokenLabel }) => {
|
|
858
|
+
if (amountLabel && tokenLabel) return `${amountLabel} ${tokenLabel} added to your balance.`;
|
|
859
|
+
if (tokenLabel) return `Your ${tokenLabel} has been added to your balance.`;
|
|
860
|
+
return "Your funds have been added to your balance.";
|
|
861
|
+
},
|
|
862
|
+
failedTitle: "Deposit failed",
|
|
863
|
+
failedMessage: ({ amountLabel, tokenLabel }) => {
|
|
864
|
+
const what = amountLabel && tokenLabel ? `${amountLabel} ${tokenLabel}` : "deposit";
|
|
865
|
+
return `We couldn't complete your ${what}.`;
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
withdrawal: {
|
|
869
|
+
completedTitle: "Withdrawal complete",
|
|
870
|
+
completedMessage: ({ amountLabel, tokenLabel }) => {
|
|
871
|
+
if (amountLabel && tokenLabel) return `${amountLabel} ${tokenLabel} sent to your wallet.`;
|
|
872
|
+
if (tokenLabel) return `Your ${tokenLabel} has been sent to your wallet.`;
|
|
873
|
+
return "Your withdrawal has been sent to your wallet.";
|
|
874
|
+
},
|
|
875
|
+
partialTitle: "Withdrawal partially completed",
|
|
876
|
+
partialMessage: ({ amountLabel, tokenLabel }) => {
|
|
877
|
+
if (amountLabel && tokenLabel)
|
|
878
|
+
return `Part of your ${tokenLabel} was sent. The remainder was returned to your balance.`;
|
|
879
|
+
return "Part of your withdrawal was sent. The remainder was returned to your balance.";
|
|
880
|
+
},
|
|
881
|
+
failedTitle: "Withdrawal failed",
|
|
882
|
+
failedMessage: (errorReason) => errorReason && errorReason.length > 0 ? errorReason : "Your funds have been returned to your balance."
|
|
883
|
+
}
|
|
810
884
|
}
|
|
811
885
|
};
|
|
812
886
|
var defaultAggUiLabelsByLocale = {
|
|
@@ -877,7 +951,9 @@ var defaultAggUiConfig = {
|
|
|
877
951
|
enableAnimations: true,
|
|
878
952
|
enableLiveUpdates: true,
|
|
879
953
|
showFeesBreakdown: false,
|
|
880
|
-
enableGradients: false
|
|
954
|
+
enableGradients: false,
|
|
955
|
+
enableVenueEventDiscoveryFilters: false,
|
|
956
|
+
enableNotifications: true
|
|
881
957
|
},
|
|
882
958
|
market: {
|
|
883
959
|
arbitrageThreshold: 0
|
package/dist/withdraw.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
useWithdrawEstimate,
|
|
3
3
|
useWithdrawFlow,
|
|
4
4
|
useWithdrawalLifecycle
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V34QGQBO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useDepositAddresses,
|
|
8
8
|
useManagedBalances,
|
|
9
9
|
useWithdrawManaged
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2C7JR5OH.mjs";
|
|
11
11
|
export {
|
|
12
12
|
useDepositAddresses,
|
|
13
13
|
useManagedBalances,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agg-build/hooks",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.12",
|
|
4
4
|
"description": "React hooks and providers for the AGG prediction market aggregator. Wraps @agg-build/sdk with TanStack Query, shared session state, and live WebSocket data.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|