Releases: MetaMask/smart-transactions-controller
Releases · MetaMask/smart-transactions-controller
13.1.0
13.0.0
Changed
- BREAKING: Updated
SmartTransactionsController
to inherit fromStaticIntervalPollingController
instead ofStaticIntervalPollingControllerV1
(#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 amessenger
option (with the corresponding typeSmartTransactionsControllerMessenger
now available).- The constructor no longer accepts
onNetworkStateChange
; instead, it subscribes toNetworkController: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 withSmartTransactionsControllerOptions
. - Added and exported the following types:
SmartTransactionsControllerMessenger
,SmartTransactionsControllerState
,SmartTransactionsControllerGetStateAction
,SmartTransactionsControllerActions
,SmartTransactionsControllerStateChangeEvent
,SmartTransactionsControllerSmartTransactionEvent
, andSmartTransactionsControllerEvents
.
- The constructor for