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/superstructfrom^3.3.0to^3.4.0(#577)
- Add
keyring_resolveAccountAddressdispatch to v2handleKeyringRequest(#585)
- Bump
@metamask/superstructfrom^3.1.0to^3.3.0(#580)
- Supports new
KeyringSnapRpc(v2) inhandleKeyringRequest(v2) (#582)- Handles the four snap-specific methods (
keyring_setSelectedAccounts,keyring_getAccountTransactions,keyring_getAccountAssets,keyring_getAccountBalances) in addition to all core v2 methods. - Includes backwards-compatible dispatch for the deprecated v1 method names
keyring_listAccountTransactionsandkeyring_listAccountAssets, forwarding them togetAccountTransactionsandgetAccountAssetsrespectively.
- Handles the four snap-specific methods (
- Update v1
handleKeyringRequestto acceptKeyringSnapRpcinstead ofKeyring(#582)
- Use
KeyringRpcinstead ofKeyring(v2) inhandleKeyringRequest(#561)- Snaps do not need to implement the full
Keyring(v2) interface, this one is meant to be used in the "client-world". KeyringRpcis a subset ofKeyringwhich only exposes the method that can be used throughonKeyringRequest(keyring_*requests).
- Snaps do not need to implement the full
- Workaround Browserify subpath export for
/v2(#516)
- Add
handleKeyringRequestV2function for dispatching keyring v2 JSON-RPC requests (#408)
- BREAKING: Move and rename
handleKeyringRequestV2to the./v2module (#513)handleKeyringRequestV2is nowhandleKeyringRequestfrom@metamask/keyring-snap-sdk/v2.
- BREAKING: Bump
@metamask/keyring-apifrom^22.0.0to^23.0.0(#515) - Bump
@metamask/utilsfrom^11.1.0to^11.11.0(#489, #483)
- BREAKING: Bump
@metamask/keyring-apifrom^21.0.0to^22.0.0(#482) - Bump
@metamask/snaps-sdkfrom^10.4.0to^11.0.0(#486)
- Throw RPC errors with proper error codes (#469)
- Add
keyring_createAccountsmethod to RPC dispatcher (#448)- This method SHOULD NOT use
notify:accountCreated. - Accounts returned by this method are will be automatically added to the internal keyring state.
- This method SHOULD NOT use
- Bump
@metamask/keyring-apifrom^21.2.0to^21.4.0(#460) - Bump
@metamask/snaps-sdkfrom^9.0.0to^10.4.0(#422, #461)
- Bump
@metamask/keyring-apifrom^21.1.0to^21.2.0(#395)
- Add
getSelectedAccountshelper (#387)- This helper can be used to get the currently selected accounts for this Snap.
- Bump
@metamask/keyring-apifrom^21.0.0to^21.1.0(#388)
- BREAKING: Bump
@metamask/keyring-apifrom^19.0.0to^20.0.0(#347)- Add generic account type.
- BREAKING: Bump
@metamask/keyring-apifrom^18.0.0to^19.0.0(#317)- The
KeyringAccount.optionsfield is now partially typed.
- The
- Bump
@metamask/snaps-sdkdependency from^6.16.0to^9.0.0(#273, #304)
- Add support of
discoverAccountskeyring method (#266)
- Use event payload type for
emitSnapKeyringEvent(#203) - Bump
@metamask/keyring-apifrom^17.2.0to^17.4.0(#263, #269)
- Add UNIX timestamp helpers
getCurrentUnixTimestampandtoUnixTimestamp(#236)
- Bump
@metamask/keyring-apifrom^17.0.0to^17.2.0(#212, #220) - Use
ts-bridge/cli@0.6.3(#214)- This new version fixes a bug regarding some missing exports.
- BREAKING: Bump
@metamask/providerspeer dependency from^18.3.1to^19.0.0(#177) - Bump
@metamask/keyring-apifrom^16.1.0to^17.0.0(#192) - Bump
@metamask/snaps-sdkdependency from^6.7.0to^6.16.0(#177)
- Bump
@metamask/keyring-apifrom^16.0.0to^16.1.0(#176)
- Bump
@metamask/keyring-apifrom^14.0.0to^16.0.0(#172, #160) - Bump
@metamask/utilsfrom^11.0.1to^11.1.0(#167)
- Add support of
listAccountAssetskeyring method (#148)
- BREAKING: Bump
@metamask/keyring-apifrom^12.0.0to^13.0.0(#101)- This change was not properly reported as breaking on the
1.1.0. KeyringAccounthas a new required field (scopes) and is part of the public API.
- This change was not properly reported as breaking on the
- Bump
@metamask/keyring-apifrom^12.0.0to^13.0.0(#101)