Skip to content

Releases: MetaMask/smart-transactions-controller

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)

10.2.0

17 Jul 13:04
64d98a5
Compare
Choose a tag to compare

Changed

  • Update metrics, so events work even for non-swaps transactions (#374)
  • Update @metamask/transaction-controller from 32.0.0 to 34.0.0 (#371)
  • Update braces from 3.0.2 to 3.0.3 and remove the --immutable-cache flag in a build file (#367)

10.1.6

13 Jun 13:53
0c58dc9
Compare
Choose a tag to compare

Changed

  • Update @metamask/transaction-controller from 29.1.0 to 32.0.0 (#348)

10.1.5

12 Jun 15:38
6bb9b12
Compare
Choose a tag to compare

Changed

  • Update @metamask/polling-controller from 6.0.2 to 8.0.0 (#352)

10.1.4

12 Jun 14:57
d9ff76a
Compare
Choose a tag to compare

Changed

  • Update @metamask/network-controller from 18.1.1 to 19.0.0 (#349)
  • Update @metamask/base-controller from 5.0.2 to 6.0.0 (#351)

10.1.3

11 Jun 16:03
62e9c3f
Compare
Choose a tag to compare

Changed

  • Update jest from v26 to v29, ts-jest from v26 to v29 and nock from v13 to v14 (#325)