Skip to content

Releases: MetaMask/smart-transactions-controller

16.0.0

19 Dec 10:57
c71af84
Compare
Choose a tag to compare

Changed

  • BREAKING Update @metamask/transaction-controller peer dependency from ^38.0.0 to ^42.0.0 (#482)

Removed

  • BREAKING Remove exports for AllowedActions and AllowedEvents types (#482)

15.1.0

16 Dec 15:59
8da8f78
Compare
Choose a tag to compare

Changed

  • Update constants.ts to add a BSC url for smart transactions (#483)

Removed

  • Remove unnecessary events dependency (#473)

15.0.0

27 Nov 11:24
b50c80c
Compare
Choose a tag to compare

Changed

  • BREAKING: Recategorize controllers as peer dependencies (#472)
    • The following packages have been removed as dependencies, and added as peer dependencies:
      • @metamask/network-controller@^22.0.0
      • @metamask/transaction-controller@^38.0.0
    • Note that these versions have also been updated
      • @metamask/network-controller updated from v21.1.0 to v22.0.0 (#471)
      • @metamask/transaction-controller updated from v37.3.0 to v38.0.0 (#471)
  • Update @metamask/polling-controller from v11.0.0 to v12.0.0 (#471)
  • Remove test-helpers from build (#459)
  • Bump @metamask/eth-json-rpc-provider from ^4.1.0 to ^4.1.6 (#460)

14.0.0

22 Oct 13:41
57b88e2
Compare
Choose a tag to compare

Changed

  • BREAKING Update @metamask/polling-controller from ^8.0.0 to ^11.0.0 (#448)
    • startPollingByNetworkClientId has been renamed to startPolling, accepting a SmartTransactionsControllerPollingInput object instead of a string as argument.
  • Update @metamask/transaction-controller from ^34.0.0 to ^37.3.0 (#446)
  • Update @metamask/base-controller from ^6.0.0 to ^7.0.1 (#448)
  • Update @metamask/network-controller from ^20.0.0 to ^21.1.0 (#447)

13.2.0

08 Oct 16:01
98d9a3e
Compare
Choose a tag to compare

Added

  • Add metrics events for Receive and Request (#429)
    • Add ReceiveRequest variant to MetaMetricsEvents enum
    • Add Navigation variant to MetaMetricsEventCategory enum

13.1.0

24 Sep 12:13
1c65b76
Compare
Choose a tag to compare

Changed

  • Emit a new "smartTransactionConfirmationDone" event (#424)
  • Use a new API (Sentinel) for a health check (#411)

13.0.0

03 Sep 12:13
fe50903
Compare
Choose a tag to compare

Changed

  • BREAKING: Updated SmartTransactionsController to inherit from StaticIntervalPollingController instead of StaticIntervalPollingControllerV1 (#397).
    • The constructor for SmartTransactionsController now accepts a single options object instead of three separate arguments, with configuration options merged into this object.
    • SmartTransactionsController now requires a messenger option (with the corresponding type SmartTransactionsControllerMessenger now available).
    • The constructor no longer accepts onNetworkStateChange; instead, it subscribes to NetworkController:stateChange.
    • The getNetworkClientById argument has been removed from the constructor and is now accessed through the messenger.
    • The controller no longer subscribes to its own events; this is now managed via the messenger.
    • Event emission is no longer handled by EventEmitter; the messenger is now used for emitting events.
    • The SmartTransactionsControllerConfig type has been removed and replaced with SmartTransactionsControllerOptions.
    • Added and exported the following types: SmartTransactionsControllerMessenger, SmartTransactionsControllerState, SmartTransactionsControllerGetStateAction, SmartTransactionsControllerActions, SmartTransactionsControllerStateChangeEvent, SmartTransactionsControllerSmartTransactionEvent, and SmartTransactionsControllerEvents.

12.0.1

22 Aug 17:52
fbebe90
Compare
Choose a tag to compare

Fixed

  • Fix issue where this.ethQuery is sometimes unexpectedly undefined (#405)
  • Remove code that is no longer needed to ensure unique smart transactions (#404)

12.0.0

02 Aug 11:54
f605be4
Compare
Choose a tag to compare

Changed

  • Upgrade @metamask/network-controller from 19.0.0 to 20.0.0 (#395)
  • BREAKING: Removed providerConfig from state and provider object from constructor parameters. Instead provider object will be used from selected network client. (#395)

11.0.0

24 Jul 14:41
5f597cd
Compare
Choose a tag to compare

Changed

  • adapt to eip-1193 provider changes (#384)
  • BREAKING: Save new event props to a newly created smart transaction, use both properties and sensitiveProperties for events. (#386)(#390)