Skip to content

Commit

Permalink
Merge branch 'develop' into snaps-skunkworks@0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikBolding committed Aug 26, 2022
2 parents aba16b4 + fe78890 commit 1c9c5f8
Show file tree
Hide file tree
Showing 20 changed files with 1,782 additions and 412 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [10.18.4]
### Changed
- Update `eth-lattice-keyring` to v0.10.0 which itself updates `gridplus-sdk` ([#15261](https://github.com/MetaMask/metamask-extension/pull/15261))
- `eth-lattice-keyring` changes: ([GridPlus/eth-lattice-keyring@v0.7.3...v0.10.0])(https://github.com/GridPlus/eth-lattice-keyring/compare/v0.7.3...v0.10.0)
- `gridplus-sdk` changes: ([GridPlus/gridplus-sdk@v1.2.3...v2.2.4])(https://github.com/GridPlus/gridplus-sdk/compare/v1.2.3...v2.2.4)
- Update `eth-lattice-keyring` to v0.11.0 ([#15490](https://github.com/MetaMask/metamask-extension/pull/15490)). See changes [GridPlus/eth-lattice-keyring@v0.10.0...v0.11.0](https://github.com/GridPlus/eth-lattice-keyring/compare/v0.10.0...v0.11.0)
- Improve ERC721 Send screen by parsing the `tokenId` and refactor `useAssetDetails` hook to avoid unnecessary network calls ([#15304](https://github.com/MetaMask/metamask-extension/pull/15304))

### Fixed
- Fix GDrive incompatibility with the Extension by stop injecting provider on docs.google.com ([#15459](https://github.com/MetaMask/metamask-extension/pull/15459))
- Fix default currency symbol for `wallet_addEthereumChain` + improve warnings for data that doesn't match our validation expectations ([#15201](https://github.com/MetaMask/metamask-extension/pull/15201))
- Fix block explorer link on custom networks for the cases when link is invalid or left empty ([#13870](https://github.com/MetaMask/metamask-extension/pull/13870))
- Fix signature parsing errors re-surfaced due to 4byte function signature directory being down, by removing the directory([#15300](https://github.com/MetaMask/metamask-extension/pull/15300))
- Fix intermitent failure when performing a Send tx in non-EIP-1559 networks (like Optimism) by setting the `gasPrice` ([#15628](https://github.com/MetaMask/metamask-extension/pull/15628))

## [10.18.3]
### Fixed
- Prevent confirm screen from showing method name from contract registry for transactions created within MetaMask ([#15472](https://github.com/MetaMask/metamask-extension/pull/15472))
Expand Down Expand Up @@ -3107,7 +3122,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Uncategorized
- Added the ability to restore accounts from seed words.

[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.18.3...HEAD
[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v10.18.4...HEAD
[10.18.4]: https://github.com/MetaMask/metamask-extension/compare/v10.18.3...v10.18.4
[10.18.3]: https://github.com/MetaMask/metamask-extension/compare/v10.18.2...v10.18.3
[10.18.2]: https://github.com/MetaMask/metamask-extension/compare/v10.18.1...v10.18.2
[10.18.1]: https://github.com/MetaMask/metamask-extension/compare/v10.18.0...v10.18.1
Expand Down
9 changes: 8 additions & 1 deletion app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const METAMASK_DEBUG = process.env.METAMASK_DEBUG;
const METAMASK_ENVIRONMENT = process.env.METAMASK_ENVIRONMENT;
const SENTRY_DSN_DEV = process.env.SENTRY_DSN_DEV;
const METAMASK_BUILD_TYPE = process.env.METAMASK_BUILD_TYPE;
const IN_TEST = process.env.IN_TEST;
/* eslint-enable prefer-destructuring */

// This describes the subset of Redux state attached to errors sent to Sentry
Expand Down Expand Up @@ -71,7 +72,13 @@ export const SENTRY_STATE = {
export default function setupSentry({ release, getState }) {
if (!release) {
throw new Error('Missing release');
} else if (METAMASK_DEBUG) {
} else if (METAMASK_DEBUG && !IN_TEST) {
/**
* Workaround until the following issue is resolved
* https://github.com/MetaMask/metamask-extension/issues/15691
* The IN_TEST condition allows the e2e tests to run with both
* yarn start:test and yarn build:test
*/
return undefined;
}

Expand Down
130 changes: 109 additions & 21 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4175,6 +4175,15 @@
"string.prototype.matchall>has-symbols": true
}
},
"enzyme>object-inspect": {
"globals": {
"HTMLElement": true,
"WeakRef": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"eslint>optionator>fast-levenshtein": {
"globals": {
"Intl": true,
Expand Down Expand Up @@ -4463,31 +4472,44 @@
},
"eth-lattice-keyring>gridplus-sdk": {
"globals": {
"ActiveXObject": true,
"AggregateError": true,
"Buffer": true,
"DO_NOT_EXPORT_CRC": true,
"FinalizationRegistry": true,
"HTMLElement": true,
"TextEncoder": true,
"URL": true,
"URLSearchParams": true,
"WeakRef": true,
"XMLHttpRequest": true,
"btoa": true,
"clearTimeout": true,
"console": true,
"crypto": true,
"define": true,
"document": true,
"intToBuffer": true,
"location": true,
"msCrypto": true,
"__values": true,
"console.log": true,
"console.warn": true,
"setTimeout": true
},
"packages": {
"3box>ethers>elliptic": true,
"@ethereumjs/common": true,
"@ethereumjs/common>crc-32": true,
"@ethereumjs/tx": true,
"bn.js": true,
"browserify>buffer": true,
"browserify>process": true
"browserify>process": true,
"eth-lattice-keyring>gridplus-sdk>bech32": true,
"eth-lattice-keyring>gridplus-sdk>bignumber.js": true,
"eth-lattice-keyring>gridplus-sdk>bitwise": true,
"eth-lattice-keyring>gridplus-sdk>borc": true,
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": true,
"eth-lattice-keyring>gridplus-sdk>rlp": true,
"eth-lattice-keyring>gridplus-sdk>secp256k1": true,
"eth-lattice-keyring>gridplus-sdk>superagent": true,
"ethereumjs-wallet>aes-js": true,
"ethereumjs-wallet>bs58check": true,
"ethers>@ethersproject/abi": true,
"ethers>@ethersproject/keccak256>js-sha3": true,
"ethers>@ethersproject/sha2>hash.js": true,
"lodash": true
}
},
"eth-lattice-keyring>gridplus-sdk>bignumber.js": {
"globals": {
"crypto": true,
"define": true
}
},
"eth-lattice-keyring>gridplus-sdk>bitwise": {
"packages": {
"browserify>buffer": true
}
},
"eth-lattice-keyring>gridplus-sdk>borc": {
Expand All @@ -4507,6 +4529,60 @@
"define": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": {
"globals": {
"intToBuffer": true
},
"packages": {
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>bn.js": true,
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>buffer": true,
"ethers>@ethersproject/keccak256>js-sha3": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>bn.js": {
"globals": {
"Buffer": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>buffer": {
"globals": {
"console": true
},
"packages": {
"base64-js": true,
"browserify>buffer>ieee754": true
}
},
"eth-lattice-keyring>gridplus-sdk>rlp": {
"globals": {
"TextEncoder": true
}
},
"eth-lattice-keyring>gridplus-sdk>secp256k1": {
"packages": {
"3box>ethers>elliptic": true
}
},
"eth-lattice-keyring>gridplus-sdk>superagent": {
"globals": {
"XMLHttpRequest": true,
"btoa": true,
"clearTimeout": true,
"console.error": true,
"console.warn": true,
"setTimeout": true
},
"packages": {
"browserify>browser-resolve": true,
"browserify>process": true,
"eth-rpc-errors>fast-safe-stringify": true,
"nock>qs": true,
"pubnub>superagent>component-emitter": true
}
},
"eth-lattice-keyring>rlp": {
"globals": {
"TextEncoder": true
Expand Down Expand Up @@ -5594,6 +5670,11 @@
"enzyme>is-regex>has-tostringtag": true
}
},
"nock>qs": {
"packages": {
"string.prototype.matchall>side-channel": true
}
},
"node-fetch": {
"globals": {
"Headers": true,
Expand Down Expand Up @@ -6190,6 +6271,13 @@
"string.prototype.matchall>call-bind": true
}
},
"string.prototype.matchall>side-channel": {
"packages": {
"enzyme>object-inspect": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"stylelint>write-file-atomic>typedarray-to-buffer": {
"packages": {
"browserify>buffer": true,
Expand Down
130 changes: 109 additions & 21 deletions lavamoat/browserify/flask/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4755,6 +4755,15 @@
"string.prototype.matchall>has-symbols": true
}
},
"enzyme>object-inspect": {
"globals": {
"HTMLElement": true,
"WeakRef": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"eslint>optionator>fast-levenshtein": {
"globals": {
"Intl": true,
Expand Down Expand Up @@ -5043,31 +5052,44 @@
},
"eth-lattice-keyring>gridplus-sdk": {
"globals": {
"ActiveXObject": true,
"AggregateError": true,
"Buffer": true,
"DO_NOT_EXPORT_CRC": true,
"FinalizationRegistry": true,
"HTMLElement": true,
"TextEncoder": true,
"URL": true,
"URLSearchParams": true,
"WeakRef": true,
"XMLHttpRequest": true,
"btoa": true,
"clearTimeout": true,
"console": true,
"crypto": true,
"define": true,
"document": true,
"intToBuffer": true,
"location": true,
"msCrypto": true,
"__values": true,
"console.log": true,
"console.warn": true,
"setTimeout": true
},
"packages": {
"3box>ethers>elliptic": true,
"@ethereumjs/common": true,
"@ethereumjs/common>crc-32": true,
"@ethereumjs/tx": true,
"bn.js": true,
"browserify>buffer": true,
"browserify>process": true
"browserify>process": true,
"eth-lattice-keyring>gridplus-sdk>bech32": true,
"eth-lattice-keyring>gridplus-sdk>bignumber.js": true,
"eth-lattice-keyring>gridplus-sdk>bitwise": true,
"eth-lattice-keyring>gridplus-sdk>borc": true,
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": true,
"eth-lattice-keyring>gridplus-sdk>rlp": true,
"eth-lattice-keyring>gridplus-sdk>secp256k1": true,
"eth-lattice-keyring>gridplus-sdk>superagent": true,
"ethereumjs-wallet>aes-js": true,
"ethereumjs-wallet>bs58check": true,
"ethers>@ethersproject/abi": true,
"ethers>@ethersproject/keccak256>js-sha3": true,
"ethers>@ethersproject/sha2>hash.js": true,
"lodash": true
}
},
"eth-lattice-keyring>gridplus-sdk>bignumber.js": {
"globals": {
"crypto": true,
"define": true
}
},
"eth-lattice-keyring>gridplus-sdk>bitwise": {
"packages": {
"browserify>buffer": true
}
},
"eth-lattice-keyring>gridplus-sdk>borc": {
Expand All @@ -5087,6 +5109,60 @@
"define": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser": {
"globals": {
"intToBuffer": true
},
"packages": {
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>bn.js": true,
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>buffer": true,
"ethers>@ethersproject/keccak256>js-sha3": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>bn.js": {
"globals": {
"Buffer": true
},
"packages": {
"browserify>browser-resolve": true
}
},
"eth-lattice-keyring>gridplus-sdk>eth-eip712-util-browser>buffer": {
"globals": {
"console": true
},
"packages": {
"base64-js": true,
"browserify>buffer>ieee754": true
}
},
"eth-lattice-keyring>gridplus-sdk>rlp": {
"globals": {
"TextEncoder": true
}
},
"eth-lattice-keyring>gridplus-sdk>secp256k1": {
"packages": {
"3box>ethers>elliptic": true
}
},
"eth-lattice-keyring>gridplus-sdk>superagent": {
"globals": {
"XMLHttpRequest": true,
"btoa": true,
"clearTimeout": true,
"console.error": true,
"console.warn": true,
"setTimeout": true
},
"packages": {
"browserify>browser-resolve": true,
"browserify>process": true,
"eth-rpc-errors>fast-safe-stringify": true,
"nock>qs": true,
"pubnub>superagent>component-emitter": true
}
},
"eth-lattice-keyring>rlp": {
"globals": {
"TextEncoder": true
Expand Down Expand Up @@ -6194,6 +6270,11 @@
"enzyme>is-regex>has-tostringtag": true
}
},
"nock>qs": {
"packages": {
"string.prototype.matchall>side-channel": true
}
},
"node-fetch": {
"globals": {
"Headers": true,
Expand Down Expand Up @@ -6802,6 +6883,13 @@
"string.prototype.matchall>call-bind": true
}
},
"string.prototype.matchall>side-channel": {
"packages": {
"enzyme>object-inspect": true,
"string.prototype.matchall>call-bind": true,
"string.prototype.matchall>get-intrinsic": true
}
},
"stylelint>autoprefixer>browserslist": {
"packages": {
"browserify>browser-resolve": true,
Expand Down

0 comments on commit 1c9c5f8

Please sign in to comment.