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/keyring-controllerfrom^25.1.1to^25.2.0(#8363) - Bump
@metamask/profile-sync-controllerfrom^28.0.1to^28.0.2(#8325) - Bump
@metamask/controller-utilsfrom^11.19.0to^11.20.0(#8344) - Bump
@metamask/messengerfrom^1.0.0to^1.1.1(#8364, #8373) - Bump
@metamask/base-controllerfrom^9.0.1to^9.1.0(#8457)
- Expose all public
ClaimsControllermethods through its messenger (#8219)- The following actions are now available:
ClaimsController:fetchClaimsConfigurationsClaimsController:getSubmitClaimConfigClaimsController:generateClaimSignatureClaimsController:getClaimsClaimsController:saveOrUpdateClaimDraftClaimsController:getClaimDraftsClaimsController:deleteClaimDraftClaimsController:deleteAllClaimDraftsClaimsController:clearState
- Corresponding action types are now exported (e.g.
ClaimsControllerGetClaimsAction)
- The following actions are now available:
- Bump
@metamask/base-controllerfrom^9.0.0to^9.0.1(#8317) - Bump
@metamask/messengerfrom^0.3.0to^1.0.0(#8317) - Update dependencies (#8236, #8317)
- Add
@metamask/keyring-controller^25.1.1 - Add
@metamask/profile-sync-controller^28.0.1
- Add
- Fix type of actions union within
ClaimsControllerMessengerandClaimsServiceMessengernot to beany(#8236)- This was fixed by the addition of the dependencies above.
- Bump
@metamask/profile-sync-controllerfrom^27.0.0to^28.0.0(#7849, #8162) - Bump
@metamask/controller-utilsfrom^11.18.0to^11.19.0(#7995)
- Added new public method,
clearStateto clear/reset the claims controller state. (#7780)
- Bump
@metamask/controller-utilsfrom^11.17.0to^11.18.0(#7583)
- Replaced global
consolelogs withModuleLogger. (#7569)
- Capture claims error and report to sentry using
Messenger.captureExceptionmethod from@metamask/messenger. (#7553)
- Upgrade
@metamask/utilsfrom^11.8.1to^11.9.0(#7511) - Bump
@metamask/controller-utilsfrom^11.16.0to^11.17.0(#7534)
- Added
updatedAtfield to the claims draft. (#7523)
- Added claims draft to controller and persist in the state as
drafts. (#7456) - Added public methods (CRUD) with relate to the
ClaimDraft. (#7456)
- Bump
@metamask/controller-utilsfrom^11.15.0to^11.16.0(#7202)
- Added new public method,
fetchClaimsConfigurationsto fetch the claims configuration from the Claims backend. (#7109) - Added new states fields,
claimsConfigurationsto the controller state. (#7109)validSubmissionWindowDays- number of days the claim is valid for submission.supportedNetworks- supported networks for the claim submission.
- Exported
CreateClaimRequestandSubmitClaimConfigtypes from the controller. (#7109)
- Added new
@metamask/claims-controllerpackage to handle shield subscription claims logics. (#7072) - Implementation of
ClaimsController. (#7072)getSubmitClaimConfig: Generate configurations required for the claim submission.generateClaimSignature: Generate signature for the claim submission.
- Implementation of Data-Service,
ClaimsService. (#7072)getClaims: fetch list of users' claims from the backend.getClaimById: fetch single claim by id.generateMessageForClaimSignature: generate message to sign for the claim signature.verifyClaimSignature: verify claim signature produced by user.