Skip to content

Commit

Permalink
Merge branch 'develop' into brian/asset-controller-39
Browse files Browse the repository at this point in the history
  • Loading branch information
bergeron authored Oct 24, 2024
2 parents 04ea3d6 + da377be commit cf66072
Show file tree
Hide file tree
Showing 72 changed files with 3,837 additions and 1,970 deletions.
3 changes: 3 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ module.exports = {
config.resolve.alias['@ethereumjs/util'] = require.resolve(
'../ui/__mocks__/ethereumjs-util.js',
);
config.resolve.alias['./useNftCollectionsMetadata'] = require.resolve(
'../ui/__mocks__/useNftCollectionsMetadata.js',
);
config.resolve.fallback = {
child_process: false,
constants: false,
Expand Down
2 changes: 1 addition & 1 deletion development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ or `https://api.segment.io/v1/batch` respectively.
2. To display Sentry logs, include `DEBUG=metamask:sentry:*` in `.metamaskrc`.
3. To display more verbose logs if not in a developer build, include `METAMASK_DEBUG=true` in `.metamaskrc`.
3. To display more verbose logs if not in a developer build, include `METAMASK_DEBUG=1` in `.metamaskrc`.
4. Ensure metrics are enabled during onboarding or via `Settings > Security & privacy > Participate in MetaMetrics`.
Expand Down
135 changes: 77 additions & 58 deletions lavamoat/browserify/beta/policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,19 @@
"console.warn": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>@ethereumjs/util>@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
}
},
"@ethereumjs/tx>@ethereumjs/util>@ethereumjs/rlp": {
"globals": {
"TextEncoder": true
}
},
"@ethereumjs/tx>@ethereumjs/util>micro-ftch": {
"globals": {
"Headers": true,
Expand Down Expand Up @@ -370,9 +375,9 @@
"@ethereumjs/tx": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring": true,
"@keystonehq/metamask-airgapped-keyring>rlp": true,
"@metamask/obs-store": true,
"browserify>buffer": true,
"ethereumjs-util>rlp": true,
"uuid": true,
"webpack>events": true
}
Expand All @@ -382,16 +387,15 @@
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@keystonehq/bc-ur-registry-eth": true,
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": true,
"@metamask/eth-trezor-keyring>hdkey": true,
"browserify>buffer": true,
"eth-lattice-keyring>rlp": true,
"uuid": true
}
},
"@keystonehq/metamask-airgapped-keyring>rlp": {
"packages": {
"bn.js": true,
"browserify>buffer": true
"@keystonehq/metamask-airgapped-keyring>@keystonehq/base-eth-keyring>rlp": {
"globals": {
"TextEncoder": true
}
},
"@lavamoat/lavadome-react": {
Expand Down Expand Up @@ -807,26 +811,13 @@
"console.error": true
},
"packages": {
"@metamask/eth-json-rpc-filters>@metamask/json-rpc-engine": true,
"@metamask/eth-query": true,
"@metamask/json-rpc-engine": true,
"@metamask/name-controller>async-mutex": true,
"@metamask/safe-event-emitter": true,
"pify": true
}
},
"@metamask/eth-json-rpc-filters>@metamask/json-rpc-engine": {
"packages": {
"@metamask/eth-json-rpc-filters>@metamask/json-rpc-engine>@metamask/rpc-errors": true,
"@metamask/safe-event-emitter": true,
"@metamask/utils": true
}
},
"@metamask/eth-json-rpc-filters>@metamask/json-rpc-engine>@metamask/rpc-errors": {
"packages": {
"@metamask/rpc-errors>fast-safe-stringify": true,
"@metamask/utils": true
}
},
"@metamask/eth-json-rpc-middleware": {
"globals": {
"URL": true,
Expand Down Expand Up @@ -866,14 +857,19 @@
},
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"@metamask/eth-ledger-bridge-keyring>@ethereumjs/rlp": true,
"@metamask/eth-sig-util": true,
"@metamask/eth-trezor-keyring>hdkey": true,
"browserify>buffer": true,
"webpack>events": true
}
},
"@metamask/eth-ledger-bridge-keyring>@ethereumjs/rlp": {
"globals": {
"TextEncoder": true
}
},
"@metamask/eth-query": {
"packages": {
"@metamask/eth-query>json-rpc-random-id": true,
Expand Down Expand Up @@ -1356,18 +1352,12 @@
"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util": {
"packages": {
"@metamask/keyring-controller>ethereumjs-wallet>ethereum-cryptography": true,
"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": true,
"bn.js": true,
"browserify>assert": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true,
"ethereumjs-util>create-hash": true
}
},
"@metamask/keyring-controller>ethereumjs-wallet>ethereumjs-util>rlp": {
"packages": {
"bn.js": true,
"browserify>buffer": true
"ethereumjs-util>create-hash": true,
"ethereumjs-util>rlp": true
}
},
"@metamask/logging-controller": {
Expand Down Expand Up @@ -2342,8 +2332,8 @@
"packages": {
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/smart-transactions-controller>@ethereumjs/tx>@ethereumjs/common": true,
"@metamask/smart-transactions-controller>@ethereumjs/tx>@ethereumjs/rlp": true,
"@metamask/smart-transactions-controller>@ethereumjs/util": true
"@metamask/smart-transactions-controller>@ethereumjs/util": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp": true
}
},
"@metamask/smart-transactions-controller>@ethereumjs/tx>@ethereumjs/common": {
Expand All @@ -2352,27 +2342,17 @@
"webpack>events": true
}
},
"@metamask/smart-transactions-controller>@ethereumjs/tx>@ethereumjs/rlp": {
"globals": {
"TextEncoder": true
}
},
"@metamask/smart-transactions-controller>@ethereumjs/util": {
"globals": {
"console.warn": true,
"fetch": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/smart-transactions-controller>@ethereumjs/util>@ethereumjs/rlp": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp": true,
"webpack>events": true
}
},
"@metamask/smart-transactions-controller>@ethereumjs/util>@ethereumjs/rlp": {
"globals": {
"TextEncoder": true
}
},
"@metamask/smart-transactions-controller>@metamask/base-controller": {
"globals": {
"setTimeout": true
Expand Down Expand Up @@ -2422,21 +2402,26 @@
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx": {
"packages": {
"@ethereumjs/tx>@ethereumjs/common": true,
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx>@ethereumjs/rlp": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx>@ethereumjs/rlp": {
"globals": {
"TextEncoder": true
}
},
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/util": {
"globals": {
"console.warn": true
},
"packages": {
"@ethereumjs/tx>@ethereumjs/rlp": true,
"@ethereumjs/tx>@ethereumjs/util>micro-ftch": true,
"@ethereumjs/tx>ethereum-cryptography": true,
"@metamask/smart-transactions-controller>@metamask/transaction-controller>@ethereumjs/tx>@ethereumjs/rlp": true,
"browserify>buffer": true,
"browserify>insert-module-globals>is-buffer": true,
"webpack>events": true
Expand Down Expand Up @@ -4026,7 +4011,6 @@
"setTimeout": true
},
"packages": {
"@ethereumjs/tx": true,
"@ethereumjs/tx>@ethereumjs/common>crc-32": true,
"@ethersproject/abi": true,
"@metamask/eth-sig-util": true,
Expand All @@ -4036,23 +4020,51 @@
"bn.js": true,
"browserify>buffer": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": true,
"eth-lattice-keyring>gridplus-sdk>aes-js": 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>bs58check": true,
"eth-lattice-keyring>gridplus-sdk>secp256k1": true,
"eth-lattice-keyring>gridplus-sdk>uuid": true,
"eth-lattice-keyring>rlp": true,
"ethereumjs-util>ethereum-cryptography>bs58check": true,
"ethers>@ethersproject/sha2>hash.js": true,
"lodash": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/common": {
"packages": {
"@ethereumjs/tx>@ethereumjs/common>crc-32": true,
"@ethereumjs/tx>@ethereumjs/util": true,
"browserify>buffer": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/util": true,
"webpack>events": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp": {
"globals": {
"TextEncoder": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx": {
"packages": {
"@ethereumjs/tx>ethereum-cryptography": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/common": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/util": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/common": {
"packages": {
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/util": true,
"webpack>events": true
}
},
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/tx>@ethereumjs/util": {
"globals": {
"console.warn": true,
"fetch": true
},
"packages": {
"@ethereumjs/tx>ethereum-cryptography": true,
"eth-lattice-keyring>gridplus-sdk>@ethereumjs/rlp": true,
"webpack>events": true
}
},
Expand All @@ -4067,11 +4079,6 @@
"define": true
}
},
"eth-lattice-keyring>gridplus-sdk>bitwise": {
"packages": {
"browserify>buffer": true
}
},
"eth-lattice-keyring>gridplus-sdk>borc": {
"globals": {
"console": true
Expand All @@ -4093,7 +4100,19 @@
"globals": {
"URL": true,
"URLSearchParams": true,
"location": true
"location": true,
"navigator": true
}
},
"eth-lattice-keyring>gridplus-sdk>bs58check": {
"packages": {
"@noble/hashes": true,
"eth-lattice-keyring>gridplus-sdk>bs58check>bs58": true
}
},
"eth-lattice-keyring>gridplus-sdk>bs58check>bs58": {
"packages": {
"eth-lattice-keyring>gridplus-sdk>bs58check>bs58>base-x": true
}
},
"eth-lattice-keyring>gridplus-sdk>secp256k1": {
Expand Down
Loading

0 comments on commit cf66072

Please sign in to comment.