v11.2.0
What's Changed
- feat: SIWE authentication helpers:
OpenSeaAuthclass withauthenticate,getValidToken, andrevoke, plusauthTokenandauthBaseUrloptions inOpenSeaAPIConfigfor wallet-authenticated endpoints (#415) - feat:
OpenSeaOAuthOAuth 2.1 helper (authorization-code + PKCE, device authorization grant, refresh, and revoke) for keyless login, with adecodeJwtPayloadutility (#475) - feat: wallet trading P&L methods on
OpenSeaAPI:getWalletPnl,getWalletClosedPositions, andgetWalletTokenTransfers(#468) - feat: scope constants
OPENSEA_SCOPES,OpenSeaScope, andALL_SCOPES, derived from the OpenAPI spec'sAuthScopeschema 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
amountbefore callingparseUnitsin_getPriceParameters, so a missing amount raises the intended validation error (#485) - fix: reject
cancelOrdersbatches 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
Chainvalue (#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
amountbeforeparseUnits: thanks @Sertug17 (#1974) - Reject mixed-protocol
cancelOrdersbatches: thanks @Nexory (#1976)
Full Changelog: ProjectOpenSea/opensea-devtools@sdk-v11.1.1...sdk-v11.2.0