Skip to content

73.0.0

Choose a tag to compare

@github-actions github-actions released this 25 Aug 13:07
· 5191 commits to main since this release
6381bb8

@metamask/transaction-controller 9.0.0

Added

  • Add baseFeePerGas to transaction metadata (#1590)
  • Add txReceipt to transaction metadata (#1592)
  • Add initApprovals method to generate approval requests from unapproved transactions (#1575)
  • Add dappSuggestedGasFees to transaction metadata (#1617)
  • Add optional incomingTransactions constructor arguments (#1579)
    • apiKey
    • includeTokenTransfers
    • isEnabled
    • updateTransactions
  • Add incoming transaction methods (#1579)
    • startIncomingTransactionPolling
    • stopIncomingTransactionPolling
    • updateIncomingTransactions
  • Add requireApproval option to addTransaction method options (#1580)
  • Add address argument to wipeTransactions method (#1573)

Changed

  • BREAKING: Add required getSelectedAddress callback argument to constructor (#1579)
  • BREAKING: Add isSupportedNetwork method to RemoteTransactionSource interface (#1579)
  • BREAKING: Move all but first argument to options bag in addTransaction method (#1576)
  • BREAKING: Update properties of RemoteTransactionSourceRequest type (#1579)
    • The fromBlock property has changed from string to number
    • The networkType property has been removed
    • This type is intended mainly for internal use, so it's likely this change doesn't affect most projects

Removed

  • BREAKING: Remove fetchAll method (#1579)
    • This method was used to fetch transaction history from Etherscan
    • This is now handled automatically by the controller on each new block, if polling is enabled
    • Polling can be enabled or disabled by calling startIncomingTransactionPolling or stopIncomingTransactionPolling respectively
    • An immediate update can be requested by calling updateIncomingTransactions
    • The new constructor parameter incomingTransactions.isEnabled acts as an override to disable this functionality based on a client preference for example
  • BREAKING: Remove prepareUnsignedEthTx and getCommonConfiguration methods (#1581)
    • These methods were intended mainly for internal use, so it's likely this change doesn't affect most projects