Skip to content

Commit

Permalink
fix: @metamask/smart-transactions-controller@^10.0.1->^10.1.1 (#25030)
Browse files Browse the repository at this point in the history
This effectively relates to two separate fixes for issues with polling
behavior.

-
https://github.com/MetaMask/smart-transactions-controller/releases/tag/v10.1.1

[![Open in GitHub
Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MetaMask/metamask-extension/pull/25030?quickstart=1)

- Follow-up to and aligns with #24861
- #24913

-
MetaMask/smart-transactions-controller@v10.0.1...v10.1.1
- MetaMask/smart-transactions-controller#347
- MetaMask/smart-transactions-controller#339
- MetaMask/smart-transactions-controller#342

- [x] I’ve followed [MetaMask Coding
Standards](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-extension/blob/develop/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.

- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
  • Loading branch information
legobeat authored and danjm committed Jun 13, 2024
1 parent 3464aea commit 18ec699
Show file tree
Hide file tree
Showing 7 changed files with 1,010 additions and 238 deletions.
211 changes: 170 additions & 41 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,8 @@
},
"packages": {
"@metamask/eth-json-rpc-filters>@metamask/eth-query": true,
"@metamask/eth-json-rpc-filters>@metamask/json-rpc-engine": true,
"@metamask/name-controller>async-mutex": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/safe-event-emitter": true,
"pify": true
}
Expand All @@ -995,6 +995,13 @@
"watchify>xtend": true
}
},
"@metamask/eth-json-rpc-filters>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/eth-json-rpc-middleware": {
"globals": {
"URL": true,
Expand All @@ -1004,17 +1011,24 @@
"packages": {
"@metamask/eth-json-rpc-middleware>safe-stable-stringify": true,
"@metamask/eth-sig-util": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/utils": true,
"pify": true,
"sass-loader>klona": true
}
},
"@metamask/eth-json-rpc-middleware>@metamask/eth-json-rpc-provider": {
"@metamask/eth-json-rpc-middleware>@metamask/eth-block-tracker": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/safe-event-emitter": true
"@metamask/eth-query>json-rpc-random-id": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true,
"pify": true
}
},
"@metamask/eth-keyring-controller": {
Expand Down Expand Up @@ -1672,9 +1686,9 @@
"@metamask/network-controller>@metamask/base-controller": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/network-controller>@metamask/eth-json-rpc-provider": true,
"@metamask/network-controller>@metamask/json-rpc-engine": true,
"@metamask/network-controller>@metamask/swappable-obj-proxy": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/utils": true,
"browserify>assert": true,
"uuid": true
Expand All @@ -1693,26 +1707,32 @@
"setTimeout": true
},
"packages": {
"@metamask/eth-json-rpc-middleware>@metamask/eth-json-rpc-provider": true,
"@metamask/providers>@metamask/json-rpc-engine": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/json-rpc-engine": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/utils": true,
"node-fetch": true
}
},
"@metamask/network-controller>@metamask/eth-json-rpc-provider": {
"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/eth-json-rpc-provider": {
"packages": {
"@metamask/network-controller>@metamask/json-rpc-engine": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/json-rpc-engine": true,
"@metamask/safe-event-emitter": true
}
},
"@metamask/network-controller>@metamask/json-rpc-engine": {
"@metamask/network-controller>@metamask/eth-json-rpc-infura>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/network-controller>@metamask/eth-json-rpc-provider": {
"packages": {
"@metamask/safe-event-emitter": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true
}
},
"@metamask/notification-controller>nanoid": {
"globals": {
"crypto.getRandomValues": true
Expand Down Expand Up @@ -1748,9 +1768,9 @@
"packages": {
"@metamask/controller-utils": true,
"@metamask/permission-controller>@metamask/base-controller": true,
"@metamask/permission-controller>@metamask/json-rpc-engine": true,
"@metamask/permission-controller>nanoid": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/utils": true,
"deep-freeze-strict": true,
"immer": true
Expand All @@ -1764,13 +1784,6 @@
"immer": true
}
},
"@metamask/permission-controller>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/permission-controller>nanoid": {
"globals": {
"crypto.getRandomValues": true
Expand Down Expand Up @@ -1860,13 +1873,6 @@
"ethereumjs-util>ethereum-cryptography>hash.js": true
}
},
"@metamask/providers>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/providers>@metamask/rpc-errors": {
"packages": {
"@metamask/utils": true,
Expand All @@ -1877,8 +1883,8 @@
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/queued-request-controller>@metamask/base-controller": true,
"@metamask/queued-request-controller>@metamask/json-rpc-engine": true,
"@metamask/selected-network-controller": true,
"@metamask/snaps-controllers>@metamask/json-rpc-engine": true,
"@metamask/utils": true
}
},
Expand All @@ -1890,13 +1896,6 @@
"immer": true
}
},
"@metamask/queued-request-controller>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/rpc-methods-flask>nanoid": {
"globals": {
"crypto.getRandomValues": true
Expand Down Expand Up @@ -1989,11 +1988,11 @@
},
"packages": {
"@ethersproject/abi>@ethersproject/bytes": true,
"@metamask/controller-utils": true,
"@metamask/eth-query": true,
"@metamask/gas-fee-controller>@metamask/polling-controller": true,
"@metamask/smart-transactions-controller>@ethereumjs/tx": true,
"@metamask/smart-transactions-controller>@ethereumjs/util": true,
"@metamask/smart-transactions-controller>@metamask/controller-utils": true,
"@metamask/smart-transactions-controller>@metamask/polling-controller": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller": true,
"@metamask/smart-transactions-controller>bignumber.js": true,
"browserify>buffer": true,
Expand Down Expand Up @@ -2050,11 +2049,99 @@
"immer": true
}
},
"@metamask/smart-transactions-controller>@metamask/controller-utils": {
"globals": {
"URL": true,
"console.error": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/controller-utils>@spruceid/siwe-parser": true,
"@metamask/ethjs>@metamask/ethjs-unit": true,
"@metamask/smart-transactions-controller>@metamask/controller-utils>@ethereumjs/util": true,
"@metamask/utils": true,
"bn.js": true,
"browserify>buffer": true,
"eslint>fast-deep-equal": true,
"eth-ens-namehash": true
}
},
"@metamask/smart-transactions-controller>@metamask/controller-utils>@ethereumjs/util": {
"globals": {
"console.warn": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>@ethereumjs/util>micro-ftch": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true,
"webpack>events": true
}
},
"@metamask/smart-transactions-controller>@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/smart-transactions-controller>@metamask/network-controller": {
"globals": {
"URL": true,
"btoa": true,
"fetch": true,
"setTimeout": true
},
"packages": {
"@metamask/eth-json-rpc-middleware": true,
"@metamask/eth-json-rpc-middleware>@metamask/eth-block-tracker": true,
"@metamask/eth-query": true,
"@metamask/network-controller>@metamask/eth-json-rpc-infura": true,
"@metamask/network-controller>@metamask/swappable-obj-proxy": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/smart-transactions-controller>@metamask/base-controller": true,
"@metamask/smart-transactions-controller>@metamask/controller-utils": true,
"@metamask/smart-transactions-controller>@metamask/network-controller>@metamask/eth-json-rpc-provider": true,
"@metamask/smart-transactions-controller>@metamask/network-controller>@metamask/json-rpc-engine": true,
"@metamask/utils": true,
"browserify>assert": true,
"uuid": true
}
},
"@metamask/smart-transactions-controller>@metamask/network-controller>@metamask/eth-json-rpc-provider": {
"packages": {
"@metamask/safe-event-emitter": true,
"@metamask/smart-transactions-controller>@metamask/network-controller>@metamask/json-rpc-engine": true
}
},
"@metamask/smart-transactions-controller>@metamask/network-controller>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/smart-transactions-controller>@metamask/network-controller>async-mutex": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"@trezor/connect-web>tslib": true
}
},
"@metamask/smart-transactions-controller>@metamask/polling-controller": {
"globals": {
"clearTimeout": true,
"console.error": true,
"setTimeout": true
},
"packages": {
"@metamask/smart-transactions-controller>@metamask/base-controller": true,
"@metamask/snaps-utils>fast-json-stable-stringify": true,
"uuid": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller": {
"globals": {
"clearTimeout": true,
Expand All @@ -2067,18 +2154,18 @@
"@ethersproject/abi": true,
"@ethersproject/contracts": true,
"@ethersproject/providers": true,
"@metamask/controller-utils": true,
"@metamask/eth-query": true,
"@metamask/gas-fee-controller": true,
"@metamask/metamask-eth-abis": true,
"@metamask/name-controller>async-mutex": true,
"@metamask/network-controller": true,
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/smart-transactions-controller>@metamask/base-controller": true,
"@metamask/smart-transactions-controller>@metamask/controller-utils": true,
"@metamask/smart-transactions-controller>@metamask/network-controller": true,
"@metamask/smart-transactions-controller>@metamask/network-controller>async-mutex": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/gas-fee-controller": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>eth-method-registry": true,
"@metamask/transaction-controller>nonce-tracker": true,
"@metamask/utils": true,
"bn.js": true,
"browserify>buffer": true,
Expand Down Expand Up @@ -2111,6 +2198,37 @@
"webpack>events": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/gas-fee-controller": {
"globals": {
"clearInterval": true,
"console.error": true,
"setInterval": true
},
"packages": {
"@metamask/eth-query": true,
"@metamask/smart-transactions-controller>@metamask/controller-utils": true,
"@metamask/smart-transactions-controller>@metamask/polling-controller": true,
"bn.js": true,
"browserify>buffer": true,
"uuid": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker": {
"packages": {
"@ethersproject/providers": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex": true,
"browserify>assert": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@metamask/nonce-tracker>async-mutex": {
"globals": {
"clearTimeout": true,
"setTimeout": true
},
"packages": {
"@trezor/connect-web>tslib": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller>eth-method-registry": {
"packages": {
"@metamask/smart-transactions-controller>@metamask/transaction-controller>eth-method-registry>@metamask/ethjs-contract": true,
Expand Down Expand Up @@ -2174,6 +2292,13 @@
"crypto.getRandomValues": true
}
},
"@metamask/snaps-controllers>@metamask/json-rpc-engine": {
"packages": {
"@metamask/providers>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/snaps-controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
Expand Down Expand Up @@ -2518,6 +2643,10 @@
}
},
"@segment/loosely-validate-event": {
"globals": {
"console.log": true,
"uffer.byteLength": true
},
"packages": {
"@segment/loosely-validate-event>component-type": true,
"@segment/loosely-validate-event>join-component": true,
Expand Down
Loading

0 comments on commit 18ec699

Please sign in to comment.