From ca596c2f6d9ec13a1334c36291e62c52963db6db Mon Sep 17 00:00:00 2001 From: Matthew Walsh Date: Thu, 24 Aug 2023 15:27:00 +0100 Subject: [PATCH 1/4] Release 73.0.0 --- package.json | 2 +- packages/transaction-controller/CHANGELOG.md | 16 +++++++++++++++- packages/transaction-controller/package.json | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 381b97a545f..d61af936339 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/core-monorepo", - "version": "72.0.0", + "version": "73.0.0", "private": true, "description": "Monorepo for packages shared between MetaMask clients", "repository": { diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index a2d6e49e55d..96fec36547f 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -6,6 +6,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [9.0.0] +### Uncategorized +- Publish preview builds to NPM instead of GitHub ([#1622](https://github.com/MetaMask/core/pull/1622)) +- Add baseFeePerGas to transaction state ([#1590](https://github.com/MetaMask/core/pull/1590)) +- Persist txReceipt on txMeta for confirmed txs ([#1592](https://github.com/MetaMask/core/pull/1592)) +- Use block tracker to poll incoming transactions ([#1579](https://github.com/MetaMask/core/pull/1579)) +- Minimise public API of Tx controller ([#1581](https://github.com/MetaMask/core/pull/1581)) +- Add `requireApproval` option to `addTransaction` method option bag ([#1580](https://github.com/MetaMask/core/pull/1580)) +- Adds support re-create approval requests based on unapprovedTx when client restarts ([#1575](https://github.com/MetaMask/core/pull/1575)) +- Add options bag to `addTransaction` public API method ([#1576](https://github.com/MetaMask/core/pull/1576)) +- Adds a support of wiping transactions with specific address on current chain ([#1573](https://github.com/MetaMask/core/pull/1573)) +- Chainid network configs ([#1571](https://github.com/MetaMask/core/pull/1571)) + ## [8.0.1] ### Changed - Replace `eth-query` ^2.1.2 with `@metamask/eth-query` ^3.0.1 ([#1546](https://github.com/MetaMask/core/pull/1546)) @@ -98,7 +111,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 All changes listed after this point were applied to this package following the monorepo conversion. -[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@8.0.1...HEAD +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@9.0.0...HEAD +[9.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@8.0.1...@metamask/transaction-controller@9.0.0 [8.0.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@8.0.0...@metamask/transaction-controller@8.0.1 [8.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@7.1.0...@metamask/transaction-controller@8.0.0 [7.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@7.0.0...@metamask/transaction-controller@7.1.0 diff --git a/packages/transaction-controller/package.json b/packages/transaction-controller/package.json index efb9aba78d0..33f44535ac8 100644 --- a/packages/transaction-controller/package.json +++ b/packages/transaction-controller/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/transaction-controller", - "version": "8.0.1", + "version": "9.0.0", "description": "Stores transactions alongside their periodically updated statuses and manages interactions such as approval and cancellation", "keywords": [ "MetaMask", From 0c73e423c8802233f6b366de18821bb1c2a1dab8 Mon Sep 17 00:00:00 2001 From: Matthew Walsh Date: Thu, 24 Aug 2023 15:48:54 +0100 Subject: [PATCH 2/4] Update changelog --- packages/transaction-controller/CHANGELOG.md | 36 ++++++++++++++------ 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 96fec36547f..47a75fd092e 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -7,17 +7,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] ## [9.0.0] -### Uncategorized -- Publish preview builds to NPM instead of GitHub ([#1622](https://github.com/MetaMask/core/pull/1622)) -- Add baseFeePerGas to transaction state ([#1590](https://github.com/MetaMask/core/pull/1590)) -- Persist txReceipt on txMeta for confirmed txs ([#1592](https://github.com/MetaMask/core/pull/1592)) -- Use block tracker to poll incoming transactions ([#1579](https://github.com/MetaMask/core/pull/1579)) -- Minimise public API of Tx controller ([#1581](https://github.com/MetaMask/core/pull/1581)) -- Add `requireApproval` option to `addTransaction` method option bag ([#1580](https://github.com/MetaMask/core/pull/1580)) -- Adds support re-create approval requests based on unapprovedTx when client restarts ([#1575](https://github.com/MetaMask/core/pull/1575)) -- Add options bag to `addTransaction` public API method ([#1576](https://github.com/MetaMask/core/pull/1576)) -- Adds a support of wiping transactions with specific address on current chain ([#1573](https://github.com/MetaMask/core/pull/1573)) -- Chainid network configs ([#1571](https://github.com/MetaMask/core/pull/1571)) +### Added +- **BREAKING**: Add required `getSelectedAddress` callback argument to constructor ([#1579](https://github.com/MetaMask/core/pull/1579)) +- **BREAKING**: Add `isSupportedNetwork` method to `RemoteTransactionSource` interface ([#1579](https://github.com/MetaMask/core/pull/1579)) +- Add `baseFeePerGas` to transaction metadata ([#1590](https://github.com/MetaMask/core/pull/1590)) +- Add `txReceipt` to transaction metadata ([#1592](https://github.com/MetaMask/core/pull/1592)) +- Add `initApprovals` method to generate approval requests from unapproved transactions ([#1575](https://github.com/MetaMask/core/pull/1575)) +- Add optional `incomingTransactions` constructor arguments ([#1579](https://github.com/MetaMask/core/pull/1579)) + - `apiKey` + - `includeTokenTransfers` + - `isEnabled` + - `updateTransactions` +- Add incoming transaction methods ([#1579](https://github.com/MetaMask/core/pull/1579)) + - `startIncomingTransactionPolling` + - `stopIncomingTransactionPolling` + - `updateIncomingTransactions` +- Add `requireApproval` option to `addTransaction` method options ([#1580](https://github.com/MetaMask/core/pull/1580)) +- Add `address` argument to `wipeTransactions` method ([#1573](https://github.com/MetaMask/core/pull/1573)) + +### Changed +- **BREAKING**: Move all but first argument to options bag in `addTransaction` method ([#1576](https://github.com/MetaMask/core/pull/1576)) +- **BREAKING**: Update `fromBlock` and `limit` types in `RemoteTransactionSourceRequest` ([#1579](https://github.com/MetaMask/core/pull/1579)) + +### Removed +- **BREAKING**: Remove `fetchAll` method ([#1579](https://github.com/MetaMask/core/pull/1579)) +- **BREAKING**: Remove `prepareUnsignedEthTx` and `getCommonConfiguration` methods ([#1581](https://github.com/MetaMask/core/pull/1581)) ## [8.0.1] ### Changed From a62aefa26f823e2a65efe6ec350384eeec02f71a Mon Sep 17 00:00:00 2001 From: Matthew Walsh Date: Fri, 25 Aug 2023 11:47:39 +0100 Subject: [PATCH 3/4] Update changelog --- packages/transaction-controller/CHANGELOG.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index 47a75fd092e..facdd550293 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -8,8 +8,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [9.0.0] ### Added -- **BREAKING**: Add required `getSelectedAddress` callback argument to constructor ([#1579](https://github.com/MetaMask/core/pull/1579)) -- **BREAKING**: Add `isSupportedNetwork` method to `RemoteTransactionSource` interface ([#1579](https://github.com/MetaMask/core/pull/1579)) - Add `baseFeePerGas` to transaction metadata ([#1590](https://github.com/MetaMask/core/pull/1590)) - Add `txReceipt` to transaction metadata ([#1592](https://github.com/MetaMask/core/pull/1592)) - Add `initApprovals` method to generate approval requests from unapproved transactions ([#1575](https://github.com/MetaMask/core/pull/1575)) @@ -26,12 +24,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `address` argument to `wipeTransactions` method ([#1573](https://github.com/MetaMask/core/pull/1573)) ### Changed +- **BREAKING**: Add required `getSelectedAddress` callback argument to constructor ([#1579](https://github.com/MetaMask/core/pull/1579)) +- **BREAKING**: Add `isSupportedNetwork` method to `RemoteTransactionSource` interface ([#1579](https://github.com/MetaMask/core/pull/1579)) - **BREAKING**: Move all but first argument to options bag in `addTransaction` method ([#1576](https://github.com/MetaMask/core/pull/1576)) -- **BREAKING**: Update `fromBlock` and `limit` types in `RemoteTransactionSourceRequest` ([#1579](https://github.com/MetaMask/core/pull/1579)) +- **BREAKING**: Update properties of `RemoteTransactionSourceRequest` type ([#1579](https://github.com/MetaMask/core/pull/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](https://github.com/MetaMask/core/pull/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](https://github.com/MetaMask/core/pull/1581)) + - These methods were intended mainly for internal use, so it's likely this change doesn't affect most projects ## [8.0.1] ### Changed From c0b62ed5075dd5c51db0367929b307ece73ef2a0 Mon Sep 17 00:00:00 2001 From: Matthew Walsh Date: Fri, 25 Aug 2023 11:51:45 +0100 Subject: [PATCH 4/4] Update changelog --- packages/transaction-controller/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/transaction-controller/CHANGELOG.md b/packages/transaction-controller/CHANGELOG.md index facdd550293..19dd4ebd780 100644 --- a/packages/transaction-controller/CHANGELOG.md +++ b/packages/transaction-controller/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `baseFeePerGas` to transaction metadata ([#1590](https://github.com/MetaMask/core/pull/1590)) - Add `txReceipt` to transaction metadata ([#1592](https://github.com/MetaMask/core/pull/1592)) - Add `initApprovals` method to generate approval requests from unapproved transactions ([#1575](https://github.com/MetaMask/core/pull/1575)) +- Add `dappSuggestedGasFees` to transaction metadata ([#1617](https://github.com/MetaMask/core/pull/1617)) - Add optional `incomingTransactions` constructor arguments ([#1579](https://github.com/MetaMask/core/pull/1579)) - `apiKey` - `includeTokenTransfers`