@agg-build/hooks 4.0.0 → 4.0.1

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.
Files changed (2) hide show
  1. package/README.md +8 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -278,8 +278,7 @@ function LinkPartnerAccount({
278
278
 
279
279
  | Hook | Description |
280
280
  | ------------------------------- | -------------------------------------------------------------- |
281
- | `useQuoteManaged(options?)` | Request a managed execution quote (2-min TTL) |
282
- | `useExecuteManaged(options?)` | Execute a previously quoted managed trade |
281
+ | `useExecuteManaged(options?)` | Fill a quote from `useSmartRoute` — see note below |
283
282
  | `useValidateManaged(options?)` | Pre-validate balances/bridge without quoting |
284
283
  | `useWithdrawManaged(options?)` | Withdraw from managed wallets |
285
284
  | `useSyncBalances(options?)` | Trigger on-chain balance sync |
@@ -287,6 +286,13 @@ function LinkPartnerAccount({
287
286
  | `useRedeem()` | Claim winnings from resolved markets |
288
287
  | `useRedeemEligibleCount()` | Count of positions eligible to redeem |
289
288
 
289
+ To quote and fill, take the quote from `useSmartRoute` and pass its `quoteId` to
290
+ `useExecuteManaged`.
291
+
292
+ > **Removed in v4.** `useQuoteManaged` was deleted — it wrapped
293
+ > `client.quoteManaged()`, whose endpoint (`POST /execution/quote`) does not
294
+ > exist on the API, so the call only ever returned 404.
295
+
290
296
  ### Deposits (subpath)
291
297
 
292
298
  Import from `@agg-build/hooks/deposit` to keep wallet-heavy hooks out of your main bundle:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agg-build/hooks",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
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",
@@ -83,7 +83,7 @@
83
83
  "react": "^18.0.0 || ^19.0.0",
84
84
  "viem": "^2.0.0",
85
85
  "wagmi": "^3.0.0 || ^2.0.0",
86
- "@agg-build/sdk": "^4.0.0"
86
+ "@agg-build/sdk": "^4.0.1"
87
87
  },
88
88
  "peerDependenciesMeta": {
89
89
  "@solana/wallet-adapter-react": {