Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump @metamask/smart-transactions-controller version #17120

Merged
merged 4 commits into from
Jan 12, 2023

Conversation

adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Jan 10, 2023

Explanation

Bumps @metamask/smart-transactions-controller version to v3.1.0 - a version which replace use of full @metamask/controllers repo with packages from @metamask/core-monorepo. This change allows us to reduce our unused code burden since @metamask/controllers was bringing lots of code we don't currently use into our bundle (the controllers version of KeyringController, with many additional dependencies, as one example).

Bundle size reduced by .8MB :
Screenshot 2023-01-12 at 10 46 17 AM

This change should entail no functional changes.

@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot
Copy link
Collaborator

Builds ready [8fbf098]
Page Load Metrics (1558 ± 263 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint962009293495238
domContentLoaded117835121547548263
load117835131558548263
domInteractive117835121547548263
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -790364 bytes
  • ui: 2803 bytes
  • common: -2803 bytes

@adonesky1 adonesky1 changed the title bump smart-transactions-controller version bump @metamask/smart-transactions-controller version Jan 12, 2023
this.networkController.store.subscribe((networkState) => {
const modifiedNetworkState = {
...networkState,
providerConfig: {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the smart-transaction-controller types the networkState using a type from @metamask/network-controller (from @metamask/core-monorepo) that was recently updated to expect property providerConfig in place of provider: https://github.com/MetaMask/core/blob/main/packages/network-controller/CHANGELOG.md?plain=1#L11

@adonesky1 adonesky1 merged commit e0ff039 into develop Jan 12, 2023
@adonesky1 adonesky1 deleted the bump-smart-transaction-controller-version branch January 12, 2023 18:57
@github-actions github-actions bot locked and limited conversation to collaborators Jan 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants