@agg-build/hooks 4.17.0 → 4.18.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/dist/{chunk-FX7UHERV.mjs → chunk-5B2F3GMC.mjs} +1 -1
- package/dist/{chunk-7J4DFAKD.mjs → chunk-ESDA4NZI.mjs} +693 -611
- package/dist/{chunk-O5D5ISR3.mjs → chunk-SBGLJDPJ.mjs} +1 -1
- package/dist/deposit.js +134 -9
- package/dist/deposit.mjs +2 -2
- package/dist/index.d.mts +988 -31
- package/dist/index.d.ts +988 -31
- package/dist/index.js +2457 -1286
- package/dist/index.mjs +1462 -385
- package/dist/withdraw.d.mts +5 -0
- package/dist/withdraw.d.ts +5 -0
- package/dist/withdraw.js +138 -12
- package/dist/withdraw.mjs +2 -2
- package/package.json +2 -2
package/dist/deposit.js
CHANGED
|
@@ -158,6 +158,10 @@ var enUsLabels = {
|
|
|
158
158
|
lineChartAria: "Line chart",
|
|
159
159
|
candlestickChartAria: "Candlestick chart",
|
|
160
160
|
lineChartSeriesSwitchAria: "Chart series switch",
|
|
161
|
+
chartSources: (historyVenue, liquidityVenue) => `History: ${historyVenue} \xB7 Resting liquidity: ${liquidityVenue != null ? liquidityVenue : "all venues"}`,
|
|
162
|
+
chartBidLiquidity: (amount) => `Bid ${amount}`,
|
|
163
|
+
chartAskLiquidity: (amount) => `Ask ${amount}`,
|
|
164
|
+
chartEmpty: "No price history in this range",
|
|
161
165
|
lineChartSeriesOptionAria: (seriesLabel) => `Show ${seriesLabel} series`,
|
|
162
166
|
chartTypeSwitchAria: "Chart type switch",
|
|
163
167
|
lineChartType: "Line",
|
|
@@ -169,12 +173,14 @@ var enUsLabels = {
|
|
|
169
173
|
opinion: "Opinion",
|
|
170
174
|
predict: "Predict",
|
|
171
175
|
pred: "PRED",
|
|
176
|
+
tiprun: "Tip Run",
|
|
172
177
|
limitless: "Limitless",
|
|
173
178
|
probable: "Probable",
|
|
174
179
|
myriad: "Myriad",
|
|
175
180
|
hyperliquid: "Hyperliquid",
|
|
176
181
|
novig: "Novig",
|
|
177
|
-
prophetx: "ProphetX"
|
|
182
|
+
prophetx: "ProphetX",
|
|
183
|
+
betdex: "BETDEX"
|
|
178
184
|
},
|
|
179
185
|
auth: {
|
|
180
186
|
connect: (connectorName) => connectorName ? `Sign in with ${connectorName}` : "Sign in",
|
|
@@ -459,16 +465,80 @@ var enUsLabels = {
|
|
|
459
465
|
activity: "Activity"
|
|
460
466
|
},
|
|
461
467
|
balance: {
|
|
462
|
-
availableBalance: "
|
|
468
|
+
availableBalance: "Balance",
|
|
463
469
|
manage: "Manage",
|
|
464
470
|
reservedForOpenOrders: (amount) => `${amount} reserved for open orders`,
|
|
465
471
|
positionsValue: "Positions Value",
|
|
466
472
|
kalshiBalance: "Kalshi Balance",
|
|
467
473
|
balanceByNetwork: "Balance by network",
|
|
474
|
+
venueAccount: "Venue account",
|
|
475
|
+
balanceUnavailable: "Balance unavailable",
|
|
468
476
|
paperModeNetwork: "Paper",
|
|
469
477
|
paperModeWarning: "Paper mode is enabled. These are simulated funds for paper trading.",
|
|
470
478
|
networkTooltipDescription: "Funds are stored across networks. We handle routing automatically, but keeping funds on the right network enables faster trades and lower fees. When depositing, you can choose your preferred network."
|
|
471
479
|
},
|
|
480
|
+
hostedBetdex: {
|
|
481
|
+
deposit: "Deposit USDC",
|
|
482
|
+
depositInstructions: {
|
|
483
|
+
production: "Send USDC on Solana to this BETDEX account address.",
|
|
484
|
+
sandbox: "This is a sandbox account. Use sandbox test funds only."
|
|
485
|
+
},
|
|
486
|
+
depositAddress: "BETDEX Solana deposit address",
|
|
487
|
+
transferUnavailable: "This transfer is temporarily unavailable. Check its status before trying again.",
|
|
488
|
+
withdraw: "Withdraw USDC",
|
|
489
|
+
withdrawalAmount: "Amount (USDC)",
|
|
490
|
+
withdrawalDestination: "Your Solana wallet address",
|
|
491
|
+
withdrawalSubmit: "Withdraw from BETDEX",
|
|
492
|
+
withdrawalCheck: "Check withdrawal",
|
|
493
|
+
withdrawalRetry: "Retry the same withdrawal",
|
|
494
|
+
withdrawalNew: "New withdrawal",
|
|
495
|
+
withdrawalUnknown: "The response was not confirmed. Your request is saved; retrying checks the same withdrawal.",
|
|
496
|
+
withdrawalStatuses: {
|
|
497
|
+
processing: "Withdrawal is processing.",
|
|
498
|
+
confirmed: "Withdrawal confirmed.",
|
|
499
|
+
failed: "Withdrawal failed. Funds are available again.",
|
|
500
|
+
flagged: "Withdrawal needs review. Funds remain reserved.",
|
|
501
|
+
review_required: "Withdrawal needs review. Funds remain reserved."
|
|
502
|
+
},
|
|
503
|
+
title: "BETDEX account",
|
|
504
|
+
description: "USDC held with BETDEX, separate from your connected wallets.",
|
|
505
|
+
sandbox: "Sandbox \xB7 simulated funds",
|
|
506
|
+
createAccount: "Set up BETDEX account",
|
|
507
|
+
checkSetup: "Check account setup",
|
|
508
|
+
provisioning: "Account setup is processing. Check again for confirmation.",
|
|
509
|
+
suspended: "This BETDEX account is suspended.",
|
|
510
|
+
unavailable: "BETDEX balance is temporarily unavailable.",
|
|
511
|
+
provisioningUnavailable: "BETDEX account setup is currently unavailable.",
|
|
512
|
+
total: "Total balance",
|
|
513
|
+
available: "Available to trade",
|
|
514
|
+
reserved: "Reserved for open orders",
|
|
515
|
+
refresh: "Refresh account",
|
|
516
|
+
creationFailed: "We could not confirm account setup. Refresh to check its status before trying again.",
|
|
517
|
+
showActivity: "Show account activity",
|
|
518
|
+
hideActivity: "Hide account activity",
|
|
519
|
+
activityTitle: "BETDEX account activity",
|
|
520
|
+
activityDescription: "Observed ledger entries, not spendable balances or per-order fees. A ledger entry alone does not confirm a withdrawal's completion.",
|
|
521
|
+
activityEmpty: "No account activity on this page.",
|
|
522
|
+
activityUnavailable: "BETDEX account activity is temporarily unavailable.",
|
|
523
|
+
activityPrevious: "Previous activity page",
|
|
524
|
+
activityNext: "Next activity page",
|
|
525
|
+
activityRefresh: "Refresh activity",
|
|
526
|
+
activityCodes: {
|
|
527
|
+
Deposit: "Deposit",
|
|
528
|
+
Withdrawal: "Withdrawal",
|
|
529
|
+
TradeCreation: "Trade created",
|
|
530
|
+
TradeVoid: "Trade voided",
|
|
531
|
+
TradeWin: "Trade payout",
|
|
532
|
+
WalletToWallet: "Wallet transfer",
|
|
533
|
+
Commission: "Commission",
|
|
534
|
+
MarketPositionVoid: "Position voided",
|
|
535
|
+
MarketPositionPayout: "Position payout",
|
|
536
|
+
MarketPositionRefund: "Position refund",
|
|
537
|
+
ManualDebit: "Manual debit",
|
|
538
|
+
ManualCredit: "Manual credit",
|
|
539
|
+
SettlementResidual: "Settlement adjustment"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
472
542
|
activity: {
|
|
473
543
|
depositType: "Deposit",
|
|
474
544
|
redeemType: "Claim",
|
|
@@ -555,6 +625,9 @@ var enUsLabels = {
|
|
|
555
625
|
filledShort: "Filled",
|
|
556
626
|
totalShort: "Total",
|
|
557
627
|
expirationHeader: "Expiration",
|
|
628
|
+
buy: "Buy",
|
|
629
|
+
sell: "Sell",
|
|
630
|
+
nowPrefix: "now",
|
|
558
631
|
goodTilCanceled: "Good 'til canceled",
|
|
559
632
|
expired: "Expired",
|
|
560
633
|
cancel: "Cancel",
|
|
@@ -619,6 +692,17 @@ var enUsLabels = {
|
|
|
619
692
|
priceGap: "Price Gap"
|
|
620
693
|
},
|
|
621
694
|
eventItemDetails: {
|
|
695
|
+
chartLegend: "Markets on chart",
|
|
696
|
+
selectChartMarkets: "Select a line above to show its history",
|
|
697
|
+
marketHistoryUnavailable: "History unavailable",
|
|
698
|
+
comparisonSource: (venue) => `${venue} \xB7 Outcome probabilities \xB7 Click a line to show or hide it`,
|
|
699
|
+
comparisonSeriesCount: (shown, total) => `Showing ${shown} of ${total} series`,
|
|
700
|
+
comparisonSeriesPage: (page, total) => `Page ${page} of ${total}`,
|
|
701
|
+
comparisonSeriesBudget: (limit) => `Up to ${limit} series are live at once. Change pages to compare others; your selected outcome stays visible.`,
|
|
702
|
+
comparisonPreviousSeries: "Previous series",
|
|
703
|
+
comparisonNextSeries: "Next series",
|
|
704
|
+
comparisonSelectedSeries: "Selected",
|
|
705
|
+
comparisonHiddenSeries: "Hidden",
|
|
622
706
|
loading: "Loading market details",
|
|
623
707
|
unavailableAria: "Market details unavailable",
|
|
624
708
|
unavailableTitle: "Market details unavailable",
|
|
@@ -724,6 +808,7 @@ var enUsLabels = {
|
|
|
724
808
|
settlementCriticalDifferenceLabel: "Critical",
|
|
725
809
|
settlementValueUnavailable: "Not provided",
|
|
726
810
|
settlementLoading: "Loading settlement",
|
|
811
|
+
settlementDetailsLoadError: "Settlement details could not be loaded.",
|
|
727
812
|
settlementDetailsAria: (venueLabel) => `${venueLabel} settlement details`,
|
|
728
813
|
settlementShowMoreAria: (ctaLabel, venueLabel) => `${ctaLabel} for ${venueLabel}`,
|
|
729
814
|
settlementDescriptionLabel: "Description",
|
|
@@ -745,6 +830,9 @@ var enUsLabels = {
|
|
|
745
830
|
maximumFractionDigits: 2
|
|
746
831
|
})}\xA2 avg. price`,
|
|
747
832
|
balance: (value) => `Balance ${value}`,
|
|
833
|
+
betdexBalance: (value) => `BETDEX balance ${value}`,
|
|
834
|
+
betdexBalanceUnavailable: "BETDEX balance unavailable",
|
|
835
|
+
manageBetdexAccount: "Manage BETDEX account",
|
|
748
836
|
shares: (value) => `${value.toLocaleString("en-US", {
|
|
749
837
|
minimumFractionDigits: Number.isInteger(value) ? 0 : 1,
|
|
750
838
|
maximumFractionDigits: 2
|
|
@@ -861,7 +949,12 @@ var enUsLabels = {
|
|
|
861
949
|
error: "We couldn't confirm your verification."
|
|
862
950
|
}
|
|
863
951
|
},
|
|
864
|
-
connectKalshi: "Connect to trade
|
|
952
|
+
connectKalshi: "Connect Kalshi to trade",
|
|
953
|
+
connectProphetx: "Connect ProphetX to trade",
|
|
954
|
+
manageProphetx: "Manage ProphetX connection",
|
|
955
|
+
prophetxFundingNotice: "Manage funds on ProphetX",
|
|
956
|
+
prophetxSettlementNotice: "This position settles on ProphetX",
|
|
957
|
+
requiresKalshiAccount: "Requires Kalshi account",
|
|
865
958
|
tradingAccessVenues: "Venues",
|
|
866
959
|
tradingAccessAvailable: "Available",
|
|
867
960
|
tradingAccessAddKalshiAccount: "Add Kalshi Account",
|
|
@@ -909,6 +1002,7 @@ var enUsLabels = {
|
|
|
909
1002
|
verified: "Verified",
|
|
910
1003
|
platformFee: "0% platform fees",
|
|
911
1004
|
estimatedFees: "Estimated fees",
|
|
1005
|
+
betdexSettlementFeeNotice: "BETDEX charges 1% of net profit per market at settlement, not per fill. The final fee depends on all positions in that market.",
|
|
912
1006
|
executionReserve: "Execution reserve",
|
|
913
1007
|
executionReserveTooltipAria: "Why funds are reserved",
|
|
914
1008
|
executionReserveDescription: "Held for price movement or possible venue charges, not a confirmed fee. Unused funds are returned after execution.",
|
|
@@ -972,6 +1066,11 @@ var enUsLabels = {
|
|
|
972
1066
|
orderFullyFilled: "Order fully filled",
|
|
973
1067
|
orderPartiallyFilled: "Order partially filled",
|
|
974
1068
|
orderAveragePrice: (priceLabel) => `avg. ${priceLabel}`,
|
|
1069
|
+
orderAmount: "Order amount",
|
|
1070
|
+
orderLimitPrice: (priceLabel) => `limit ${priceLabel}`,
|
|
1071
|
+
limitVenueOrder: (venueLabel) => `${venueLabel} limit order`,
|
|
1072
|
+
limitOrderSubmitting: "Submitting limit order...",
|
|
1073
|
+
limitOrderSubmitted: "Limit order submitted",
|
|
975
1074
|
orderComplete: "Order complete",
|
|
976
1075
|
orderFilledAtPrice: (venueLabel, priceLabel) => `${venueLabel} order filled at ${priceLabel}`,
|
|
977
1076
|
orderFilledAtPriceWithAmount: (venueLabel, priceLabel, amountLabel) => `${venueLabel} order filled at ${priceLabel} (${amountLabel})`,
|
|
@@ -1054,6 +1153,22 @@ var enUsLabels = {
|
|
|
1054
1153
|
cancel: "Cancel",
|
|
1055
1154
|
fallbackError: "Signature declined. Please try again."
|
|
1056
1155
|
},
|
|
1156
|
+
connectProphetxModal: {
|
|
1157
|
+
disconnect: "Disconnect ProphetX",
|
|
1158
|
+
disconnecting: "Disconnecting\u2026",
|
|
1159
|
+
disconnectError: "Could not disconnect ProphetX. Finish any open orders and try again.",
|
|
1160
|
+
title: "Connect ProphetX Account",
|
|
1161
|
+
description: "Add your ProphetX access key and secret key to trade with your existing account.",
|
|
1162
|
+
fundingNotice: "Trades use your ProphetX balance. Deposits, withdrawals, and transfers are managed on ProphetX, outside AGG.",
|
|
1163
|
+
instructions: "Create an API key in your ProphetX account settings",
|
|
1164
|
+
accessKey: "Access key",
|
|
1165
|
+
secretKey: "Secret key",
|
|
1166
|
+
verify: "Verify connection",
|
|
1167
|
+
verifying: "Verifying\u2026",
|
|
1168
|
+
error: "Could not connect to ProphetX. Check your credentials and try again.",
|
|
1169
|
+
connected: "Your ProphetX account is connected.",
|
|
1170
|
+
done: "Done"
|
|
1171
|
+
},
|
|
1057
1172
|
connectKalshiModal: {
|
|
1058
1173
|
ariaLabel: "Connect Kalshi Account",
|
|
1059
1174
|
title: "Connect Kalshi Account",
|
|
@@ -1087,11 +1202,6 @@ var enUsLabels = {
|
|
|
1087
1202
|
privateKeyLabel: "Private Key",
|
|
1088
1203
|
privateKeyPlaceholder: "-----BEGIN PRIVATE KEY-----\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASC..."
|
|
1089
1204
|
},
|
|
1090
|
-
help: {
|
|
1091
|
-
label: "Having trouble?",
|
|
1092
|
-
docsLinkLabel: "View Kalshi docs",
|
|
1093
|
-
tutorialLinkLabel: "Watch tutorial video"
|
|
1094
|
-
},
|
|
1095
1205
|
actions: {
|
|
1096
1206
|
cancel: "Cancel",
|
|
1097
1207
|
verifyConnection: "Verify Connection"
|
|
@@ -1105,6 +1215,20 @@ var enUsLabels = {
|
|
|
1105
1215
|
}
|
|
1106
1216
|
},
|
|
1107
1217
|
eventMarketPage: {
|
|
1218
|
+
loadMoreMarkets: "Load more markets",
|
|
1219
|
+
loadingMoreMarkets: "Loading markets\u2026",
|
|
1220
|
+
openOrders: {
|
|
1221
|
+
title: "Open orders",
|
|
1222
|
+
limitPriceHeader: "Limit price",
|
|
1223
|
+
filledHeader: "Filled",
|
|
1224
|
+
totalHeader: "Total",
|
|
1225
|
+
expirationHeader: "Expiration",
|
|
1226
|
+
// Abbreviated forms for the stacked mobile card.
|
|
1227
|
+
limitShort: "Limit",
|
|
1228
|
+
filledShort: "Filled",
|
|
1229
|
+
totalShort: "Tot.",
|
|
1230
|
+
expirationShort: "Exp."
|
|
1231
|
+
},
|
|
1108
1232
|
unavailableAria: "Event market page unavailable",
|
|
1109
1233
|
unavailableTitle: "Something went wrong",
|
|
1110
1234
|
unavailableDescription: "We're having trouble loading this event right now.\nTry refreshing or check back later.",
|
|
@@ -1392,7 +1516,7 @@ var AggBalanceContext = (0, import_react2.createContext)(null);
|
|
|
1392
1516
|
// src/execution/query-keys.ts
|
|
1393
1517
|
var executionKeys = {
|
|
1394
1518
|
all: () => ["execution"],
|
|
1395
|
-
balances: (mode) => mode ? ["execution", "balances", mode] : ["execution", "balances"],
|
|
1519
|
+
balances: (mode, custody) => custody && custody !== "managed" ? ["execution", "balances", mode != null ? mode : "live", custody] : mode ? ["execution", "balances", mode] : ["execution", "balances"],
|
|
1396
1520
|
positions: (cursor, limit, status, mode) => mode ? ["execution", "positions", cursor != null ? cursor : null, limit != null ? limit : null, status != null ? status : null, mode] : ["execution", "positions", cursor != null ? cursor : null, limit != null ? limit : null, status != null ? status : null],
|
|
1397
1521
|
positionsPrefix: () => ["execution", "positions"],
|
|
1398
1522
|
claimablePositionsCount: () => ["execution", "positions", "claimable-count"],
|
|
@@ -1438,6 +1562,7 @@ var invalidateBalanceQueries = (queryClient, options) => {
|
|
|
1438
1562
|
queryKey: balanceQueryKeys.venuePrefix(),
|
|
1439
1563
|
refetchType
|
|
1440
1564
|
});
|
|
1565
|
+
queryClient.invalidateQueries({ queryKey: ["agg", "hosted-venue-account"], refetchType });
|
|
1441
1566
|
};
|
|
1442
1567
|
var invalidatePositionQueries = (queryClient, options) => {
|
|
1443
1568
|
var _a;
|
package/dist/deposit.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useRampQuotes,
|
|
3
3
|
useRampSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SBGLJDPJ.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-ESDA4NZI.mjs";
|
|
15
15
|
|
|
16
16
|
// src/deposit/normalize-wallet-error.ts
|
|
17
17
|
function normalizeWalletError(error, supportedChains) {
|