Skip to content

v11.2.0

Choose a tag to compare

@ryanio ryanio released this 06 Jul 21:07

What's Changed

  • feat: SIWE authentication helpers: OpenSeaAuth class with authenticate, getValidToken, and revoke, plus authToken and authBaseUrl options in OpenSeaAPIConfig for wallet-authenticated endpoints (#415)
  • feat: OpenSeaOAuth OAuth 2.1 helper (authorization-code + PKCE, device authorization grant, refresh, and revoke) for keyless login, with a decodeJwtPayload utility (#475)
  • feat: wallet trading P&L methods on OpenSeaAPI: getWalletPnl, getWalletClosedPositions, and getWalletTokenTransfers (#468)
  • feat: scope constants OPENSEA_SCOPES, OpenSeaScope, and ALL_SCOPES, derived from the OpenAPI spec's AuthScope schema with compile-time assertions that fail the build on drift
  • feat: add Chain.Robinhood (#483)
  • fix: add the missing Soneium and AnimeChain payment-token mappings. Solana and Hyperliquid now fail fast with clear unsupported-chain errors instead of crashing (#482)
  • fix: validate amount before calling parseUnits in _getPriceParameters, so a missing amount raises the intended validation error (#485)
  • fix: reject cancelOrders batches that mix protocol addresses instead of silently cancelling only one protocol's orders (#485)
  • chore: add chain-helper drift guards. The payment-token switches are exhaustively type-checked, and a runtime test covers every Chain value (#482, #485)

Community Contributions

  • Soneium/AnimeChain payment-token gap, and the earlier Solana/Hyperliquid report that prompted the new drift guards: thanks @Sertug17 (#1977, #1975, #1973)
  • Validate amount before parseUnits: thanks @Sertug17 (#1974)
  • Reject mixed-protocol cancelOrders batches: thanks @Nexory (#1976)

Full Changelog: ProjectOpenSea/opensea-devtools@sdk-v11.1.1...sdk-v11.2.0