- Sends
User-Agent: hedginxyz-sdk/<version>on every Manager API request, so Hedgin can see which SDK version each key runs. - Prints one
console.warnper client when the API’sx-hedge-sdk-latestresponse header names a newer release, with the upgrade command. Nothing updates on its own. - Adds
HedgeVault, a depositor client that reads vaults and positions from chain and builds deposit and withdrawal requests locally. It needs no API key.
- The signing policy caps the total priority fee, not the price per compute unit. It refuses a transaction whose price × compute unit limit exceeds
maxPriorityFeeLamports, which defaults to 0.001 SOL (DEFAULT_MAX_PRIORITY_FEE_LAMPORTS, the app’s automatic-fee budget). A priced transaction with no compute unit limit counts as 1.4M CU. - Fixes refusals such as
Priority fee 102853 microLamports/CU is above the capon swaps whose total fee was well inside the budget. maxComputeUnitPriceMicroLamportsis now an optional extra cap, unset by default.DEFAULT_MAX_COMPUTE_UNIT_PRICE_MICROLAMPORTSrises to500_000n.
- Adds request approval:
approvalRequiredonvault/initializeandvault/update, and thedeposit/approve,withdrawal/approve,deposit/reject, andwithdrawal/rejectactions. - Adds child vaults:
escrow/create,escrow/fund,escrow/defund,escrow/transfer, andescrow/close. A confirmedescrow/createreports the new child ascreated.child. - Adds
minOutAmounttojupiter/swap, andoutputMint,minOut,followUpMinOut, andseparateSwaptodlmm/zap-out.dlmm/removezaps when givenslippageBps. - Vault summaries carry optional
approvalRequired,parent, andchildCount. Vault detail carriesshareSymbol. Requests carryawaitingApprovaland a newfrozenstate.
- Adds optional
outputMinttodlmm/zap-outso you can receive either pool token. It defaults to the vault’s deposit token. - Fixes signing for Jupiter swaps that require Pump.fun AMM account setup. The manager pays the account’s rent.
- Adds the
phoenix/tpslaction, which replaces or removes a market’s take-profit and stop-loss. getVaultaccepts a response that omitsunmanagedHoldings. A missing list means unknown, not empty.
- First tagged release, published to npm as
@hedginxyz/sdk. - Parses DLMM limit orders as the
dlmm_limit_orderstrategy type, with thedlmm/limit-order/placeanddlmm/limit-order/cancelactions. - Adds
tpSlanddisarmTpSltophoenix/order. - Lists a strategy type the SDK does not know as
unreadableinstead of failing the whole read. - Includes
jupiter/sweep, bin ranges ondlmm/addanddlmm/remove,dlmm/flip, Phoenix and vault admin actions, token lookup, and the unit and price-to-bin helpers.
