1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/app/scripts/lib
Ariella Vu 058c571fab
Fix Sign-in With Ethereum (SIWE) metametric, add tests, and clean RPC method middleware event logic (#18008)
* rpc middleware: update comment

* rpc middleware: use errorCodes const

* rpc middleware: only create event props once

* rpc middleware: rn properties -> eventProperties

* rpc middleware: use TransactionStatus const

* rpc middleware: use const for ui_customizations

* rpc middleware: no need to push null eventProp
- also removes === null check which makes this logic a bit more robust

* rpc middleware: rn METRIC..OPTIONS -> METRIC..OPT

* clean: add consistency

* rpc middleware: refactor let msgParams

* lint: rm unused METAMETRIC_KEY

* fix test: do not pass ui_customizations: null

* rpc middleware test: consolidate tests

* rpc middleware: fix siwe event
.push returns length of mutated array

* rpc middleware test: add siwe test

* rpc middleware test: rm redudant set
2023-03-29 15:25:01 -03:00
..
ens-ipfs
middleware Convert Transaction constants to typescript (#17149) 2023-01-18 08:47:29 -06:00
migrator
rpc-method-middleware feat: add the ConsenSys zkEVM (Linea) as a default network (#17875) 2023-03-21 13:58:38 -02:30
segment
account-tracker.js Fix/use etherjs specific imports (#15461) 2023-01-24 08:10:36 -06:00
account-tracker.test.js Upgrading the Import Account modal (#17763) 2023-03-06 09:48:28 -08:00
cleanErrorStack.js
cleanErrorStack.test.js
ComposableObservableStore.js
ComposableObservableStore.test.js
createDupeReqFilterMiddleware.js
createDupeReqFilterMiddleware.test.js
createLoggerMiddleware.js
createMetamaskMiddleware.js Update eth-json-rpc-middleware from v9 to v10 (#17591) 2023-02-27 13:19:08 -03:30
createMetaRPCHandler.js
createMetaRPCHandler.test.js
createOnboardingMiddleware.js
createOriginMiddleware.js
createRPCMethodTrackingMiddleware.js Fix Sign-in With Ethereum (SIWE) metametric, add tests, and clean RPC method middleware event logic (#18008) 2023-03-29 15:25:01 -03:00
createRPCMethodTrackingMiddleware.test.js Fix Sign-in With Ethereum (SIWE) metametric, add tests, and clean RPC method middleware event logic (#18008) 2023-03-29 15:25:01 -03:00
createStreamSink.js
createTabIdMiddleware.js
decrypt-message-manager.js Use async/await instead of Promise.resolve (#16221) 2023-01-20 14:20:18 -06:00
encryption-public-key-manager.js Use async/await instead of Promise.resolve (#16221) 2023-01-20 14:20:18 -06:00
extractEthjsErrorMessage.js
get-first-preferred-lang-code.js
getObjStructure.js
local-store.js Convert app//scripts/lib/util.js to typescript (#17330) 2023-01-23 10:18:22 -06:00
local-store.test.js
metaRPCClientFactory.js
metaRPCClientFactory.test.js
network-store.js
notification-manager.js fix(17855): persist popup when sw is restarted (#17855) 2023-03-02 16:50:00 +00:00
notification-manager.test.ts fix(17855): persist popup when sw is restarted (#17855) 2023-03-02 16:50:00 +00:00
security-provider-helpers.js OpenSea security provider metrics (#17688) 2023-03-23 14:01:51 -03:00
seed-phrase-verifier.js Refactor KeyringTypes constant (#17490) 2023-03-21 12:13:22 -02:30
seed-phrase-verifier.test.js Refactor KeyringTypes constant (#17490) 2023-03-21 12:13:22 -02:30
sentry-filter-events.ts
setupSentry.js Add desktop support (#17683) 2023-02-20 17:13:12 +00:00
setupSentry.test.js
stream-utils.js
util.test.js Convert Transaction constants to typescript (#17149) 2023-01-18 08:47:29 -06:00
util.ts Convert app//scripts/lib/util.js to typescript (#17330) 2023-01-23 10:18:22 -06:00