Releases: MetaMask/smart-transactions-controller
Releases · MetaMask/smart-transactions-controller
16.0.0
15.1.0
15.0.0
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
- The following packages have been removed as dependencies, and added as peer dependencies:
- 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
Changed
- BREAKING Update
@metamask/polling-controller
from^8.0.0
to^11.0.0
(#448)startPollingByNetworkClientId
has been renamed tostartPolling
, accepting aSmartTransactionsControllerPollingInput
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
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