Changelog
All notable changes to the TypeScript SDK (propamm) are documented here.
[1.2.2] - 2026-07-01
Added
- The
swapandswapAndWaitfunctions now attach a hardcoded per-function gas limit and skip node gas estimation, which can under-shoot when execution takes a heavier branch than it simulated. Override the gas limit per call with the newSwapOptions.gasLimit. PropAmmRouter.gasLimitFor(opts?)returns the gas limit a swap will attach for the given options (the explicitgasLimit, else the per-function default) — for previewing the maximum network fee without sending.
[1.2.1] - 2026-06-25
Fixed
- State-override quotes now pin the simulated
block.timestampto the beacon slot's canonical block time (genesis + slot*12) instead of the frame's emit time, falling back to the emit time when no slot is present. Venues validateblock.timestampagainst the state they pushed, which is keyed to the slot. (#61)
[1.2.0] - 2026-06-25
Added
- Browser / injected wallet support:
ContractClient.fromClientsaccepts prebuilt viem public and wallet clients (e.g. wagmi'susePublicClient/useWalletClient), so swaps can be signed by a browser wallet instead of a raw private key. (#56)
Changed
- Breaking: the
ContractClientconstructor is now private. Build a client from an RPC URL with the newContractClient.fromRpcstatic method instead ofnew ContractClient(...). (#56)
[1.1.0] - 2026-06-24
Added
- Price levels: subscribe to maker price-level updates and apply them to quotes via
PriceLevelsWsSource(WebSocket) orPriceLevelsRpcSource(RPC), plus thePriceLevelscontainer and related utilities. (#51)
[1.0.0] - 2026-06-18
Added
- Initial release. Core surface for interacting with the
PropAMMRouter:- Router actions:
quote,swap,waitForSwap,approve,allowance, and view helpers. - State overrides: apply fresh pAMM state to quotes via
OverridesWsSource(WebSocket) orOverridesRpcSource(RPC), plus utilities. - Shared helpers and types.
- Router actions: