Skip to content

Latest commit

 

History

History
235 lines (143 loc) · 10.6 KB

File metadata and controls

235 lines (143 loc) · 10.6 KB

Changelog

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.

Changed

  • Bump @metamask/superstruct from ^3.3.0 to ^3.4.0 (#577)

Added

  • Add keyring_resolveAccountAddress dispatch to v2 handleKeyringRequest (#585)

Changed

  • Bump @metamask/superstruct from ^3.1.0 to ^3.3.0 (#580)

Added

  • Supports new KeyringSnapRpc (v2) in handleKeyringRequest (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_listAccountTransactions and keyring_listAccountAssets, forwarding them to getAccountTransactions and getAccountAssets respectively.

Changed

  • Update v1 handleKeyringRequest to accept KeyringSnapRpc instead of Keyring (#582)

Changed

  • Bump @metamask/keyring-utils from ^3.2.0 to ^3.3.1 (#544, #546)

Fixed

  • Use KeyringRpc instead of Keyring (v2) in handleKeyringRequest (#561)
    • Snaps do not need to implement the full Keyring (v2) interface, this one is meant to be used in the "client-world".
    • KeyringRpc is a subset of Keyring which only exposes the method that can be used through onKeyringRequest (keyring_* requests).

Fixed

  • Workaround Browserify subpath export for /v2 (#516)

Added

  • Add handleKeyringRequestV2 function for dispatching keyring v2 JSON-RPC requests (#408)

Changed

  • BREAKING: Move and rename handleKeyringRequestV2 to the ./v2 module (#513)
    • handleKeyringRequestV2 is now handleKeyringRequest from @metamask/keyring-snap-sdk/v2.
  • BREAKING: Bump @metamask/keyring-api from ^22.0.0 to ^23.0.0 (#515)
  • Bump @metamask/utils from ^11.1.0 to ^11.11.0 (#489, #483)

Changed

  • BREAKING: Bump @metamask/keyring-api from ^21.0.0 to ^22.0.0 (#482)
  • Bump @metamask/snaps-sdk from ^10.4.0 to ^11.0.0 (#486)

Fixed

  • Throw RPC errors with proper error codes (#469)

Added

  • Add keyring_createAccounts method 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.

Changed

  • Bump @metamask/keyring-api from ^21.2.0 to ^21.4.0 (#460)
  • Bump @metamask/snaps-sdk from ^9.0.0 to ^10.4.0 (#422, #461)

Changed

  • Bump @metamask/keyring-api from ^21.1.0 to ^21.2.0 (#395)

Added

  • Add getSelectedAccounts helper (#387)
    • This helper can be used to get the currently selected accounts for this Snap.

Changed

  • Bump @metamask/keyring-api from ^21.0.0 to ^21.1.0 (#388)

Changed

  • BREAKING: Bump @metamask/keyring-api from ^20.0.0 to ^21.0.0 (#355, #356)

Changed

  • BREAKING: Bump @metamask/keyring-api from ^19.0.0 to ^20.0.0 (#347)
    • Add generic account type.

Changed

  • BREAKING: Bump @metamask/keyring-api from ^18.0.0 to ^19.0.0 (#317)
    • The KeyringAccount.options field is now partially typed.
  • Bump @metamask/snaps-sdk dependency from ^6.16.0 to ^9.0.0 (#273, #304)

Changed

  • BREAKING: Make @metamask/keyring-api@^18.0.0 a peer dependency (#290, #291)

Added

  • Add support of discoverAccounts keyring method (#266)

Changed

  • Use event payload type for emitSnapKeyringEvent (#203)
  • Bump @metamask/keyring-api from ^17.2.0 to ^17.4.0 (#263, #269)

Added

  • Add UNIX timestamp helpers getCurrentUnixTimestamp and toUnixTimestamp (#236)

Changed

  • Bump @metamask/keyring-api from ^17.0.0 to ^17.2.0 (#212, #220)
  • Use ts-bridge/cli@0.6.3 (#214)
    • This new version fixes a bug regarding some missing exports.

Changed

  • BREAKING: Bump @metamask/providers peer dependency from ^18.3.1 to ^19.0.0 (#177)
  • Bump @metamask/keyring-api from ^16.1.0 to ^17.0.0 (#192)
  • Bump @metamask/snaps-sdk dependency from ^6.7.0 to ^6.16.0 (#177)

Changed

  • Bump @metamask/keyring-api from ^16.0.0 to ^16.1.0 (#176)

Changed

  • Bump @metamask/keyring-api from ^14.0.0 to ^16.0.0 (#172, #160)
  • Bump @metamask/utils from ^11.0.1 to ^11.1.0 (#167)

Added

  • Add support of listAccountAssets keyring method (#148)

Changed

  • BREAKING: Bump @metamask/keyring-api from ^12.0.0 to ^13.0.0 (#101)
    • This change was not properly reported as breaking on the 1.1.0.
    • KeyringAccount has a new required field (scopes) and is part of the public API.

Changed

  • Bump @metamask/keyring-api from ^12.0.0 to ^13.0.0 (#101)

Changed

  • Use ts-bridge/cli@0.6.1 (#118)
    • This new version fixes a bug with CJS re-exports.
  • Initial release (#24)