All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Bump
@metamask/controller-utilsfrom^12.0.0to^12.2.0(#8774, #9058, #9083) - Bump
@metamask/profile-sync-controllerfrom^28.0.2to^28.1.1(#8783, #8912) - Bump
@metamask/base-data-servicefrom^0.1.2to^0.1.3(#8799)
- Bump
@metamask/messengerfrom^1.1.1to^1.2.0(#8632) - Bump
@metamask/base-data-servicefrom^0.1.1to^0.1.2(#8755) - Bump
@metamask/controller-utilsfrom^11.20.0to^12.0.0(#8755)
- Add
SocialService.fetchPositionByIdmethod exposingGET /v1/traders/position/:positionId, returning a singlePositionby ID (#8602)
- Add
positionIdfield toPositiontype andPositionStructvalidation schema (#8576)
- BREAKING:
SocialService.follow,SocialService.unfollow, andSocialController.followTrader,SocialController.unfollowTraderno longer accept anaddressOrUidoption. The caller is identified server-side from the JWTsubclaim carried in theAuthorizationheader. (#8520) - BREAKING:
SocialService.fetchFollowingandSocialController.updateFollowingnow take no arguments (previously{ addressOrUid }). (#8520) - BREAKING: Remove
FetchFollowingOptionstype export (no longer needed). (#8520) SocialServicenow callsPUT /v1/users/me/follows,DELETE /v1/users/me/follows, andGET /v1/users/me/following(previously/v1/users/:addressOrUid/...). (#8520)
- chore: Format changelogs with Oxfmt (#8442)
- BREAKING:
SocialServiceMessengernow requiresAuthenticationController:getBearerTokenas an allowed action — all consumers must provide this action via messenger delegation - All
SocialServiceAPI requests now include a JWT bearer token in theAuthorizationheader, obtained viaAuthenticationController:getBearerToken(#8485)
- Add optional
tokenImageUrlfield toPositiontype andPositionStructvalidation schema (#8448) - Add optional
medianHoldMinutesfield toTraderStatstype andTraderStatsStructvalidation schema (#8448) - Add
intentand optionalcategoryfields toTradetype (#8410) - Export
TradeStructsuperstruct schema; deriveTradetype viaInfer(#8410) - Narrow
directionto'buy' | 'sell'andintentto'enter' | 'exit'onTradetype (#8410) - Add
followingProfileIdstoSocialControllerState— stores Clicker profile IDs alongside existingfollowingAddresses(#8459)
- Bump
@metamask/messengerfrom^1.1.0to^1.1.1(#8373) - Bump
@metamask/base-controllerfrom^9.0.1to^9.1.0(#8457)
- Fix
fetchClosedPositionsusing v2 URL instead of v1, which caused 404 errors since the closed positions endpoint only exists on v1 (#8448)
- Initial release (#8321, #8335, #8337)
- Add
SocialServicedata service wrapping social-api endpoints with superstruct response validation- Add methods
fetchLeaderboard,fetchTraderProfile,fetchOpenPositions,fetchClosedPositions,fetchFollowers,fetchFollowing,follow,unfollow
- Add methods
- Add
SocialControllerextendingBaseControllerwith messenger actions for state managementupdateLeaderboard— fetches leaderboard and persists entries to statefollowTrader— follows traders and updates following addresses in stateunfollowTrader— unfollows traders and removes addresses from stateupdateFollowing— fetches following list and replaces addresses in state
- Add