diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 9e5b4b2504c0..f4484f20763d 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -1979,6 +1979,7 @@ "globals": { "TextEncoder": true, "URL": true, + "console.error": true, "fetch": true }, "packages": { diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 9e5b4b2504c0..f4484f20763d 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -1979,6 +1979,7 @@ "globals": { "TextEncoder": true, "URL": true, + "console.error": true, "fetch": true }, "packages": { diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 9e5b4b2504c0..f4484f20763d 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -1979,6 +1979,7 @@ "globals": { "TextEncoder": true, "URL": true, + "console.error": true, "fetch": true }, "packages": { diff --git a/lavamoat/browserify/mmi/policy.json b/lavamoat/browserify/mmi/policy.json index a83eef0c7332..026e9c44a2c2 100644 --- a/lavamoat/browserify/mmi/policy.json +++ b/lavamoat/browserify/mmi/policy.json @@ -2071,6 +2071,7 @@ "globals": { "TextEncoder": true, "URL": true, + "console.error": true, "fetch": true }, "packages": { diff --git a/package.json b/package.json index a4201803eb4c..4dd1dd5fcac4 100644 --- a/package.json +++ b/package.json @@ -326,7 +326,7 @@ "@metamask/obs-store": "^9.0.0", "@metamask/permission-controller": "^10.0.0", "@metamask/permission-log-controller": "^2.0.1", - "@metamask/phishing-controller": "^12.0.1", + "@metamask/phishing-controller": "^12.3.0", "@metamask/post-message-stream": "^8.0.0", "@metamask/ppom-validator": "0.35.1", "@metamask/preinstalled-example-snap": "^0.2.0", diff --git a/test/e2e/constants.ts b/test/e2e/constants.ts index c3957cb6fbbf..8bf39d261bcb 100644 --- a/test/e2e/constants.ts +++ b/test/e2e/constants.ts @@ -41,6 +41,7 @@ export const DEFAULT_GANACHE_ETH_BALANCE_DEC = '25'; /* Dapp host addresses and URL*/ export const DAPP_HOST_ADDRESS = '127.0.0.1:8080'; +export const DAPP_URL_LOCALHOST = 'http://localhost:8080'; export const DAPP_URL = `http://${DAPP_HOST_ADDRESS}`; export const DAPP_ONE_URL = 'http://127.0.0.1:8081'; diff --git a/test/e2e/fixture-builder.js b/test/e2e/fixture-builder.js index 81b985a13fa6..4d7e1873bff4 100644 --- a/test/e2e/fixture-builder.js +++ b/test/e2e/fixture-builder.js @@ -13,6 +13,7 @@ const { CHAIN_IDS } = require('../../shared/constants/network'); const { SMART_CONTRACTS } = require('./seeder/smart-contracts'); const { DAPP_URL, + DAPP_URL_LOCALHOST, DAPP_ONE_URL, DEFAULT_FIXTURE_ACCOUNT, ERC_4337_ACCOUNT, @@ -448,12 +449,13 @@ class FixtureBuilder { withPermissionControllerConnectedToTestDapp({ restrictReturnedAccounts = true, account = '', + useLocalhostHostname = false, } = {}) { const selectedAccount = account || DEFAULT_FIXTURE_ACCOUNT; return this.withPermissionController({ subjects: { - [DAPP_URL]: { - origin: DAPP_URL, + [useLocalhostHostname ? DAPP_URL_LOCALHOST : DAPP_URL]: { + origin: useLocalhostHostname ? DAPP_URL_LOCALHOST : DAPP_URL, permissions: { eth_accounts: { id: 'ZaqPEWxyhNCJYACFw93jE', diff --git a/test/e2e/mock-cdn/cdn-config-res-headers.json b/test/e2e/mock-cdn/cdn-config-res-headers.json index 7b0e37a92449..02096db176b3 100644 --- a/test/e2e/mock-cdn/cdn-config-res-headers.json +++ b/test/e2e/mock-cdn/cdn-config-res-headers.json @@ -1,3 +1,4 @@ { - "Etag": "bb28e40153ff052671b8ad835d368d89" + "Content-Type": "text/plain", + "Etag": "\"db8ccd7f11424082a7cea67466129aed\"" } diff --git a/test/e2e/mock-cdn/cdn-config.txt b/test/e2e/mock-cdn/cdn-config.txt index b05273585ff5..edd8280e3a8e 100644 Binary files a/test/e2e/mock-cdn/cdn-config.txt and b/test/e2e/mock-cdn/cdn-config.txt differ diff --git a/test/e2e/mock-cdn/cdn-stale-diff-res-headers.json b/test/e2e/mock-cdn/cdn-stale-diff-res-headers.json index b3c558ff1cdd..0fb0ec0f7d89 100644 --- a/test/e2e/mock-cdn/cdn-stale-diff-res-headers.json +++ b/test/e2e/mock-cdn/cdn-stale-diff-res-headers.json @@ -1,3 +1,4 @@ { - "Etag": "W/\"ece7f5f533b8978063633ea5b1f8a0fc\"" + "Content-Type": "text/plain", + "Etag": "W/\"5ae8a43f84ccd89e8ddc79b1dfed0035\"" } diff --git a/test/e2e/mock-cdn/cdn-stale-diff.txt b/test/e2e/mock-cdn/cdn-stale-diff.txt index 02e2bae35ce5..44eb67f85fa4 100644 Binary files a/test/e2e/mock-cdn/cdn-stale-diff.txt and b/test/e2e/mock-cdn/cdn-stale-diff.txt differ diff --git a/test/e2e/mock-cdn/cdn-stale-res-headers.json b/test/e2e/mock-cdn/cdn-stale-res-headers.json index bb2df028661c..b9f7bf79559f 100644 --- a/test/e2e/mock-cdn/cdn-stale-res-headers.json +++ b/test/e2e/mock-cdn/cdn-stale-res-headers.json @@ -1,3 +1,4 @@ { - "Etag": "W/\"b89ab99b0801b5d64acb27893a2b31ca\"" + "Content-Type": "text/plain", + "Etag": "W/\"ab6bc9d599f83e04ae71f6ea957414f0\"" } diff --git a/test/e2e/mock-cdn/cdn-stale.txt b/test/e2e/mock-cdn/cdn-stale.txt index 39e3f2b9ea1b..42efc2a8ba97 100644 Binary files a/test/e2e/mock-cdn/cdn-stale.txt and b/test/e2e/mock-cdn/cdn-stale.txt differ diff --git a/test/e2e/mock-cdn/ppom-version-headers.json b/test/e2e/mock-cdn/ppom-version-headers.json index a29a05e8c360..ad50d161d1dd 100644 --- a/test/e2e/mock-cdn/ppom-version-headers.json +++ b/test/e2e/mock-cdn/ppom-version-headers.json @@ -1,3 +1,3 @@ { - "Etag": "W/\"9f5df4118b061a89ac013422f809de72\"" + "Etag": "W/\"7aa74f7c18a5cb2601e4fc6afcadc9cc\"" } diff --git a/test/e2e/mock-cdn/ppom-version.json b/test/e2e/mock-cdn/ppom-version.json index e06e6705218b..b529f71a0f1c 100644 --- a/test/e2e/mock-cdn/ppom-version.json +++ b/test/e2e/mock-cdn/ppom-version.json @@ -1,302 +1,512 @@ [ - { - "name": "stale", - "chainId": "0x144", - "version": "0.0.11", - "checksum": "b4731bb258fec747bf9394d4c21096dd27d498e6ada6c1a871d0407f63f9c2d3", - "signature": "49fa6b11db8114a4520343544d829753c0eedd156f15c168dd8e31a8ddc25c10c16d9203bdd5d0872610a805d7e37a26b79bf399d1c2d5037f6ebd02ac6d0306", - "hashSignature": "7a7d72a4214317738b3b91c3245a8ef8ac0f5bac247c369212c79db763ef78b1a5001f892edf41c2b619f28c326541ecd76e9bbe7db444a6d2898ab408832507", - "filePath": "stale/0x144/0.0.11", - "timestamp": "2024-03-06T11:05:22.120889" - }, - { - "name": "stale_diff", - "chainId": "0x144", - "version": "0.0.77", - "checksum": "69b726f5ae8567cd566c6bf30dea3692ffb159d1d61dcdf081298c7023635be9", - "signature": "5a5110480d0d63e35900a1e5e09d253f644a1b481c3461e0ffc8dc614dca67838cc7051e304e23ad8cf9e2b74b9e129724253da4f1239140d8474d59400b7502", - "hashSignature": "846d71a01cc094b1940cdedba0cf1e5b2d324eaca41a55d9825f759f67572f43fcc2d29bd894f66d906eebae0fe49922db5d02948748880e9ecb7a884a17b901", - "filePath": "stale_diff/0x144/0.0.77", - "timestamp": "2024-03-10T11:34:07.732508" - }, - { - "name": "config", - "chainId": "0x144", - "version": "0.0.77", - "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", - "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", - "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0x144/0.0.77", - "timestamp": "2024-03-10T11:34:07.732733" - }, { "name": "stale", "chainId": "0x38", - "version": "0.0.38", - "checksum": "99776fbf3527ad357f0772a48585750aa9dfe3ff006a4eb8788ca5cde3dfa6e9", - "signature": "e592080cca99f769f602d94b774fe7905c9e53e9be3f2bc172c0bfd9d0a641083fb735add7cfe5734d3252e217ca63a0b4fbcde6b4376c0ee6a21ce9d07ee700", - "hashSignature": "def291f8e687284afec51cfe8e4ebd9f260078f4ac0804742c31f7444a6d7ba055ab485d227707826761d8c97cba1f6bc08cb5e8fb7e9fb5fdcf1aa8190cc901", - "filePath": "stale/0x38/0.0.38", - "timestamp": "2024-03-20T21:00:30.533909" + "version": "0.0.66", + "checksum": "939cfdb932942bc70f9073fd28bbfc40d1d3d5852d83818995e9e22043c2f43f", + "signature": "8ff3884b8fd03330fc507bb71fdf979d3cdce74dc99b75e23a32e7c3df0a8ca938f6f32193690d96f97801d1aad220fcf7a2c9d4ff4e3244c4fb004cea183a02", + "hashSignature": "0076f738508122fce625dfbf5adb5f5068de6484a8bec018d0b6ce9f5818b528a42ef34905e91b30e7864384b3199058a85ef26f0a6a753127eeddad07293f0b", + "filePath": "stale/0x38/0.0.66", + "timestamp": "2024-10-27T12:35:14.835435" }, { "name": "stale", "chainId": "0x1", - "version": "0.0.52", - "checksum": "20c1449b660f32d7c8e03b0170c79878879cd9ba40fd84374bb7d86cd82a8e6b", - "signature": "9d5f4e433156ddaec3d34361b3bef4c0147c464e6810c6d5c45a0b179227f97d8ed03bc847330eb7d529cc4b5320a8a3602522820d2b44ec2928c227ed7cb700", - "hashSignature": "fd98b80b18a774c64f8bc3a48cbbd1fdd948af320dd14e229c1c2587c5ca6199cb7782989f3edc783e1534b8db2bd758b83898c12899aaf43cf319f112a07e05", - "filePath": "stale/0x1/0.0.52", - "timestamp": "2024-03-20T21:00:43.282213" + "version": "0.0.80", + "checksum": "f1750994bf1daa849d8e65b4ebfb3aca09aee65dc96343ddf96ccf9036392a10", + "signature": "1f72981666b660d281b9a92810da45ddef5828240084309fdb8dcc47ce5cdcb38a4369b18fa55331c3dddf39a47bacd9595bb868eca6fc795f11536b8adb1b08", + "hashSignature": "37fff50fd8eaf56d6a7bdc755a8dd13fc654dc9271214cdf419276ecf06b457416f17b8e76640598a3e7a3345eba3df990ddbbfbd974937912901063f22be106", + "filePath": "stale/0x1/0.0.80", + "timestamp": "2024-10-27T12:35:35.786460" }, { "name": "stale", "chainId": "0x89", - "version": "0.0.38", - "checksum": "b484bd673cd5eec0724fb22c36ba39c9ccc9721401be07fb273f27ec020bfb4a", - "signature": "7392aeb07bba7034fffe308e316f424c48bf868051b655114b63cb36038d4495d190c8daadf33b815bee9bced838aadcf2eb49cbf177d6ab38ae97b6475f7f03", - "hashSignature": "48b8e01132ffdbdd01439dd0e1d8c443bb4c2b88c29d1b9132bb107b0890d246ea73fd55ac2be3bdd0b4922400f5930d3335aafadd2141b6049f1caa1ec59d00", - "filePath": "stale/0x89/0.0.38", - "timestamp": "2024-03-20T21:00:56.806406" + "version": "0.0.66", + "checksum": "ec799a6a914e3c471edaa0d2d7a6676c32c8cd2bdb00c9ef23f6075595a39e8f", + "signature": "3718817a7eee0c190888e1046346ad865497f0785c8ff0f93fee32bb1a67a0d93890ebcf08cc2930237095b1296ff2a885d8ad6e25ac3b0803d8a879db19d10f", + "hashSignature": "00b5b427d6618c2c7b8a603e95c126715489119611266ba7c33f9cc6d3a15b86617bf11c629534d49500329eda6bc3576c688163ea838cdc48caa41921d7610b", + "filePath": "stale/0x89/0.0.66", + "timestamp": "2024-10-27T12:35:55.378375" }, { "name": "stale", "chainId": "0xa", - "version": "0.0.38", - "checksum": "7408b4f44e86e19025549c3e165f7d528f856ed3473a6efddf3d2577251d3544", - "signature": "fd0e9a82564802155a6bc13f34363dddc99ca2a3468e3f0e7b00360ee5008f6f2a30dd47771b69352fa1c4323deae756c46fc03508dc39ccccda3fb8678d7f09", - "hashSignature": "9aab8ca37a8cf0797d55c0b655e280e527751a9739766e8d2edd6c45b18dabe09f0ee66518f59a4112b45e74d5c047af7b39380a0e3f700a41d1680f24b6ad06", - "filePath": "stale/0xa/0.0.38", - "timestamp": "2024-03-20T21:01:06.639827" + "version": "0.0.66", + "checksum": "5ca4a3f1fdd546e8c5ab7553db92892bccc8e143956a922e3080455b7368ed74", + "signature": "9fd80cfb4103e55f9848ecb751596a81faba3528b3ca881f379c1919564ea8ba7ca196025dd068b8ea1aa431d61dad79a2f5edd61f8f9edd2da3fa21b4e7a902", + "hashSignature": "b5aa4508c58cbee23e8d44ca8024e4a72329de93807135c937cf8ce85ab1e8d49a8a0a6cfffaf3734a3a79ea9a57fa9448fab79987d41d58a315aeab5b7f0404", + "filePath": "stale/0xa/0.0.66", + "timestamp": "2024-10-27T12:36:13.196098" }, { "name": "stale", "chainId": "0xa4b1", - "version": "0.0.38", - "checksum": "642573df1c81669619be1bda27c1659bb730a201824f0470495d38c08acabd70", - "signature": "4d8b6c51d8f9205ce173cde3dab150ad6653f48dc2ca59c3f1beb5e574430404f8b9c03f701dc9160a56f93a35560cd57b49edef6e3f65ea71ea6bfbf21c2b0b", - "hashSignature": "4e07a1c1b15353e2a5f2c7bd35525f47cd9405f740a89a2faa5ea7096edc7278a272aed383341eaee413673a45cd8d6e042fd784493cafee2699fe01229a0b04", - "filePath": "stale/0xa4b1/0.0.38", - "timestamp": "2024-03-20T21:01:16.670454" + "version": "0.0.66", + "checksum": "878a437412a4399852866cf6f6237e1438b29d3e199ee07365541bfe0e292474", + "signature": "88a9aa564a2bc74929767aca6e3f9c118beb95790d8abb909f6bdb14a1ef83030adca0a030be5cc200fca01ea48f717c5d128deb552320a8fd7c6a1063d55c0c", + "hashSignature": "9e66daf2ecb7d0f31eeba688fe36b3a31e2076f956e9a8da30d619063905364fc61901111c70b3adc01234ecd60873edacd03e49c0f553b14ddc90686c6f350a", + "filePath": "stale/0xa4b1/0.0.66", + "timestamp": "2024-10-27T12:36:31.787509" }, { "name": "stale", "chainId": "0xa86a", - "version": "0.0.38", - "checksum": "94982df19575b44a03f3f620bb75fb673b35535e6fede1e542dfbc2166984e5c", - "signature": "d59c6d65721e7003b83870af71152559c5170fff2c81b073faf3618c344063079d2551d5d2dcd310af58a840120aa6dc1e8eba2d83c7a6eb1fd61e58999b900f", - "hashSignature": "22c6d339c1957909b68922c31c015852175e494b6db191b2d1e52612c492ec22d25dfe111eb8cd99131ae245b36aa9f9dfa989cc4d437940893c0c8d2157580a", - "filePath": "stale/0xa86a/0.0.38", - "timestamp": "2024-03-20T21:01:28.762015" + "version": "0.0.66", + "checksum": "936bb4a00c2d272fe165193dbfce43ff93a08a833607caa941079938164441c0", + "signature": "45080ba868da6561104baaf6fb6fe6b1f33c8d5c616cbb469cd09eec03bb77b55705593458d24c4dadfb08f3c4d25ba91884ded6cd2964c4f3aa97620e8f9401", + "hashSignature": "a956eb9ce828f4a3b4b3ba9bf758650a26a19f583dec81eaf69324491e4ed506f71358aced8c60f6d00fe0cb7ff4ae85395ab234cd763556b43fe66da4cd8409", + "filePath": "stale/0xa86a/0.0.66", + "timestamp": "2024-10-27T12:36:50.561386" }, { "name": "stale", "chainId": "0xe708", - "version": "0.0.28", - "checksum": "a05a57016325ea3fd2663ec61e2d2a28fff07c7cc1fd653fb0d38867b4a40b6c", - "signature": "079268869c98b0552129a9aaadb08dd4ff2cc828344365eab8bdb579f6f204cc51515d4eacc034f18fab2df64c82f7d84bec668e80a10e5b4e389eabbf8b3e03", - "hashSignature": "175b783790515ccd4446cd17c44c4877fd48a54b51d0da44fc7f861eedad275f87c425f6dcf9a1e6061c0d56eafe118e6332ce3dedf9ed4ae6951a016a392600", - "filePath": "stale/0xe708/0.0.28", - "timestamp": "2024-03-20T21:01:38.871229" + "version": "0.0.56", + "checksum": "5c04ebb4f2b6866f4bd8975bcd9b47a9ebeff17905ef0dfc3f09dcf6d91e7013", + "signature": "84a5528810b64f7e5eea57e0f831e07d2e72c3b2f2f1b694275660669bbe551f4dfe040d5de5a2f0434c4950c4cb76147c727f1bcbd299d5e687adc111c1a80d", + "hashSignature": "944cd65df550f83e9eb227d3b98c0d28cc0b415afba755106f3da85c72cde4acdfdd0d37e72b9bc261791d270cf66dd6fa5e6b463bcbf28239ff032d0edd1105", + "filePath": "stale/0xe708/0.0.56", + "timestamp": "2024-10-27T12:37:32.069927" }, { "name": "stale", "chainId": "0x2105", - "version": "0.0.16", - "checksum": "d92e7360c8504e6be5b124ba6f53030b286d64ccb050252589324ea49060ef60", - "signature": "85c7c0ad4a293e64738c722e3fe52d7d59c35c7d6cb306c54797767664aa7e47fbc9f52b4dfdf25495fe4e22acf399feacabbc8a2b9dd4eb0a0e8855ee9af607", - "hashSignature": "c93d06cea4f28a602c7871e0b946b528835900aac603187c877153dbc31aceb7fe6cdb17e03558718e62b7a001cc71aef4508098a808bc83b889e91d0fda0501", - "filePath": "stale/0x2105/0.0.16", - "timestamp": "2024-03-20T21:01:47.120043" + "version": "0.0.44", + "checksum": "254ba4141c822fda5e1fad71eb16b8280af420ed3fea70c9865d619014e2e036", + "signature": "c291aa42392ca17df1c26c301631d8be2e0d69ce3e63cf131153007b4a4f3d59b8629458b36ac1a73a5a9f129b0a1edf2861eba97c1415c5a7cb2eea5e847b03", + "hashSignature": "9eea3aa55dbbfeeadc35449781f19f3e7f52e97015d7767951c96be629a3a6f03487a87ba1993fc724f414e40bca6a4fa4f19a838328d87004214dc48f246301", + "filePath": "stale/0x2105/0.0.44", + "timestamp": "2024-10-27T12:37:11.181669" }, { "name": "stale", "chainId": "0xaa36a7", - "version": "0.0.5", - "checksum": "fa8f9b03fb688da8dc98c0e38f49f05ca1a644609742d7e2b37373d4fa56b961", - "signature": "a9473d0b8659be8332f7b2e04c530bdef5f52a24c5aeb8cdbbe8ed83daa50e97878cebd4db0280b715d8c9a4c23390e30edf2bda990a699b52dbb3514ac2e805", - "hashSignature": "a8ef8f5ccff133430cf2a660c6a9522c674cc62aade0326d71063b5d43480d05c31780cbc027e2eda281e29cf0f3b94188c9584e5e92ba21d91b9ae27056040d", - "filePath": "stale/0xaa36a7/0.0.5", - "timestamp": "2024-03-20T21:01:55.297706" + "version": "0.0.33", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0xaa36a7/0.0.33", + "timestamp": "2024-10-27T12:37:51.369806" + }, + { + "name": "stale", + "chainId": "0xcc", + "version": "0.0.26", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0xcc/0.0.26", + "timestamp": "2024-10-27T12:38:12.484316" + }, + { + "name": "stale", + "chainId": "0x0", + "version": "0.0.20", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x0/0.0.20", + "timestamp": "2024-10-27T12:38:30.230565" + }, + { + "name": "stale", + "chainId": "0x144", + "version": "0.0.33", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x144/0.0.33", + "timestamp": "2024-10-27T12:38:50.380511" + }, + { + "name": "stale", + "chainId": "0x82750", + "version": "0.0.21", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x82750/0.0.21", + "timestamp": "2024-10-27T12:39:09.335209" + }, + { + "name": "stale", + "chainId": "0x1b58", + "version": "0.0.21", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x1b58/0.0.21", + "timestamp": "2024-10-27T12:39:26.466030" + }, + { + "name": "stale", + "chainId": "0x138d5", + "version": "0.0.21", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x138d5/0.0.21", + "timestamp": "2024-10-27T12:39:42.956981" }, { "name": "stale_diff", "chainId": "0x38", - "version": "0.0.217", - "checksum": "5a73bfc69701257e3e56a8d4b47d0f17888aaa5a615ce383ad5119d6766d9133", - "signature": "59f489f4680ce4782f68e3c00a011346a366d6bd1b2e5d3de5147680317fe40d05160ffd4976b021ad89c20bc3ef4b4212a0ce70d3859dd281bdeded42204a05", - "hashSignature": "85a82f9d2adf7dd9c9a186ab936c84a71d79818f4612d8410c04670396d62118b313f9914da17bc8299c8617dcd301a38e2dafe086943f1d5eca4622a466e50c", - "filePath": "stale_diff/0x38/0.0.217", - "timestamp": "2024-03-21T12:13:14.798558" + "version": "0.0.482", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x38/0.0.482", + "timestamp": "2024-10-27T12:49:57.410484" }, { "name": "config", "chainId": "0x38", - "version": "0.0.217", - "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", - "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", - "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0x38/0.0.217", - "timestamp": "2024-03-21T12:13:14.798803" + "version": "0.0.482", + "checksum": "e29783f8be2392ee395055382aa7b19a78564f99915bb749492577712c18c6f0", + "signature": "0e4e28c1e10d8e0243fd6009787dc5742a76cc5460c2565459094aa112fe2cbddb62001b8d5771ed75e836d842f87baf2a8bdc099003797ebc6c7a80079f4701", + "hashSignature": "ac2ba4a855e4e271f1ce7f4f6b67ac1b10a56378ab3f31a638aff4d5f5ccccc9385d976eec2fb304427810995ed22bd755adac62d15d4fcf6fd4934ee3883d00", + "filePath": "config/0x38/0.0.482", + "timestamp": "2024-10-27T12:49:57.410737" }, { "name": "stale_diff", "chainId": "0x1", - "version": "0.0.260", - "checksum": "fdfde4e2d19c7cbfc307924ee49b277888bfe644dadcf2dc646e4828739adda0", - "signature": "e54483a98adf96e5f16134400a2bb7dc23693de2509a878c50e6fd0ff531f1c13e2f8fdeb58e63f5e47c2497ae5dd8c904c7456456e05bad37758a40d356710f", - "hashSignature": "7f047374e55203d2e0e52257fa9b8fa2c455e27a01f131956063156335476bd0c925a8f60506820861b4a18335835bdddf1be99486aa45df331514d72b22aa0c", - "filePath": "stale_diff/0x1/0.0.260", - "timestamp": "2024-03-21T12:13:18.827919" + "version": "0.0.525", + "checksum": "ae3059765d220e8cda72aa43638916b9baac84f264a39a1d147a5b144378df62", + "signature": "3ed03cfa8bee704816a9ceb270fda86d7b007f0fe510d6acc40f96b15819c114fbd768d8845d75ab803c981eb151b4b0a24af705a27e1f96381bdc6dc5e3b50f", + "hashSignature": "9394bc16a948ab41ee74c0270a900092cbb8707fe72d3576fd75f0b87c698089c0a10b45a20ea47691a90cee427e605f81838b87424291902a9b54fec19e0709", + "filePath": "stale_diff/0x1/0.0.525", + "timestamp": "2024-10-27T12:50:03.871663" }, { "name": "config", "chainId": "0x1", - "version": "0.0.260", - "checksum": "29771bc6544e0d66898eb727ed1b4db478b33e8e45be560de84880c2433ebca2", - "signature": "1a501372b5bd9ac95accd6bf8caeec08425f3e826f100e3ca9df1dff8a861d713207e387676ed64df920ac4682888da76bde534157d71ec270e28e66b033290e", - "hashSignature": "a1cb93bea92cfbe79dd2d9023e0f7b748f0f370c97f2eabdb00a215b39dcac7a32614aa2729dcefe2a7c57a6bce78c934187a3ea443944b13b4da2fa7ee5ac0a", - "filePath": "config/0x1/0.0.260", - "timestamp": "2024-03-21T12:13:18.828225" + "version": "0.0.525", + "checksum": "abe69e1c8f6084d26b1d556bb3ae4919628ac4bf3b468bea95e3c14254bdf290", + "signature": "52ffaf9e1a543f8164ea93558467f7f4e02c15650daf92f1a1e374848c53b91dcca96037fd6d7bd63b13e7fcf88a1bcc9fe7c7915d8d6949bd153e6bf6b1a403", + "hashSignature": "83c1edb28635049e4c99d8610782506818ef071de95df49f9242f229991924b4ea829782b0ac125de3f763fc7415baaebf3732a920fb4d01861e1fdd5cb86207", + "filePath": "config/0x1/0.0.525", + "timestamp": "2024-10-27T12:50:03.871914" }, { "name": "stale_diff", "chainId": "0x89", - "version": "0.0.216", - "checksum": "d38399d82b0615fbada643872c7dfc7debf183cc1634d643ce608f8c8ffc5d20", - "signature": "89506ef81561309831f4a27cac0d330c8d14607fd646906391c73fccecb4b399931b81e29c2358747414fccee9cb774d936c8d32d8b55f3f3f0adca750f8e805", - "hashSignature": "72cdb5e05f4b1da1ed80140457e7d130beaf8eb6be864847e01befecc6bd619db5ff924578d4b127f82548766ee4b7ac49256026b2012f923fceb0bef0e6300e", - "filePath": "stale_diff/0x89/0.0.216", - "timestamp": "2024-03-21T12:13:22.608506" + "version": "0.0.481", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x89/0.0.481", + "timestamp": "2024-10-27T12:50:09.561729" }, { "name": "config", "chainId": "0x89", - "version": "0.0.216", - "checksum": "d75160f71081e7fe387344f51fb48251b8e7a91e7690be97ee845967494dfd86", - "signature": "78a82de98e2ac84c47d392296625679504f327263b3ace3b96686be3a443b76a0ae4e5cfb38962d3024e73250fe8479b423af21cc28b09defbc20f0285d60e04", - "hashSignature": "16840dddb6f35de35dd57159056217d947d7bc242cedc60eff3ccad664ed952f2287f19ee6a0413c929299afcd04447c217494c9bb2c433879f6c2ea66e69c03", - "filePath": "config/0x89/0.0.216", - "timestamp": "2024-03-21T12:13:22.608797" + "version": "0.0.481", + "checksum": "eb3b41ae8c3bbf9595dcded8e1b9090c8ed2427e236375652f6fd701c6e134b4", + "signature": "79552c7fa525e05c9c086fe8d8ecb49375be796176877e17332fa1137d4c653f224873bdac2b6fd4fe63fcfe6d404778684116e98fdb0563f63ae1efcfafe60d", + "hashSignature": "9c8a84e430578290eceea60ba7dec3695e0cfd343f7ac3e2667c8634afa3dd65d6ec25b112ac8260dbe3e6bc9e00ba906c4212975652354b1423f6ee0ec7b20e", + "filePath": "config/0x89/0.0.481", + "timestamp": "2024-10-27T12:50:09.561989" }, { "name": "stale_diff", "chainId": "0xa", - "version": "0.0.216", - "checksum": "4d44ce4c9c9e8b12ee5cc696b21f6409429d9f55cdc703c5acf799836c80ad8a", - "signature": "679813ccd33b254e88c19421e95a93e16c1db4fa473b8f9a510df7fe9ca56c7c0f21b303660d2e1175b1dc47c40aaa4fa989e710cfc2a432ad65cb7d0a522c0a", - "hashSignature": "ab86ad1046968599d8d85e0417e504c05f8bd87051ab4edee46a7946699f21e827bce2093dc94aee7f6746bb25413f819b4ca19950022fa0f8ed80efde0d2902", - "filePath": "stale_diff/0xa/0.0.216", - "timestamp": "2024-03-21T12:13:26.693599" + "version": "0.0.481", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0xa/0.0.481", + "timestamp": "2024-10-27T12:50:15.189820" }, { "name": "config", "chainId": "0xa", - "version": "0.0.216", - "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", - "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", - "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0xa/0.0.216", - "timestamp": "2024-03-21T12:13:26.693846" + "version": "0.0.481", + "checksum": "eb3b41ae8c3bbf9595dcded8e1b9090c8ed2427e236375652f6fd701c6e134b4", + "signature": "79552c7fa525e05c9c086fe8d8ecb49375be796176877e17332fa1137d4c653f224873bdac2b6fd4fe63fcfe6d404778684116e98fdb0563f63ae1efcfafe60d", + "hashSignature": "9c8a84e430578290eceea60ba7dec3695e0cfd343f7ac3e2667c8634afa3dd65d6ec25b112ac8260dbe3e6bc9e00ba906c4212975652354b1423f6ee0ec7b20e", + "filePath": "config/0xa/0.0.481", + "timestamp": "2024-10-27T12:50:15.190077" }, { "name": "stale_diff", "chainId": "0xa4b1", - "version": "0.0.216", - "checksum": "837ea3eef03c7a5a9975e5435581d6d051c5b4bd9a60e726ab044c8f7d911c7c", - "signature": "1c8252591e29761981ca792e2fb5e8c611906a7a136f8ac09e5fe0290ac3106cf425f0d38bc579739f09dba6ea4b9de50a77202f6d11e6b24e1f4d242af83603", - "hashSignature": "ffb5d7f443682e36b2928bccfe8919ecfb591b2cbf8cda82440332aec5927d39a3521c93fb7a39db20516a70a5dc101fddbc4548dabd1ee221fc754ca4c5040c", - "filePath": "stale_diff/0xa4b1/0.0.216", - "timestamp": "2024-03-21T12:13:31.844985" + "version": "0.0.481", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0xa4b1/0.0.481", + "timestamp": "2024-10-27T12:50:21.791169" }, { "name": "config", "chainId": "0xa4b1", - "version": "0.0.216", - "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", - "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", - "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0xa4b1/0.0.216", - "timestamp": "2024-03-21T12:13:31.845230" + "version": "0.0.481", + "checksum": "eb3b41ae8c3bbf9595dcded8e1b9090c8ed2427e236375652f6fd701c6e134b4", + "signature": "79552c7fa525e05c9c086fe8d8ecb49375be796176877e17332fa1137d4c653f224873bdac2b6fd4fe63fcfe6d404778684116e98fdb0563f63ae1efcfafe60d", + "hashSignature": "9c8a84e430578290eceea60ba7dec3695e0cfd343f7ac3e2667c8634afa3dd65d6ec25b112ac8260dbe3e6bc9e00ba906c4212975652354b1423f6ee0ec7b20e", + "filePath": "config/0xa4b1/0.0.481", + "timestamp": "2024-10-27T12:50:21.791427" }, { "name": "stale_diff", "chainId": "0xa86a", - "version": "0.0.216", - "checksum": "a4b8a87b84c93d03c1e51e83046edcda608be70d32924bad82aa3f93a0633f0c", - "signature": "be4cf087a3491184a4702cb9d4368775df68651735e050e2f2b16845376b87986ed24b00cde91a0d1a5739ddde513d9c9e97949b26ce96cb71b657c7e4d24a04", - "hashSignature": "0a74a14fa27289d347db514bfd11d2edb281cc6cf1bd7917705430dd7b4d97b245daa78bdcc07b74bd519619518432c7658d9c3e17b7def5e948655c9222f606", - "filePath": "stale_diff/0xa86a/0.0.216", - "timestamp": "2024-03-21T12:13:36.520723" + "version": "0.0.481", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0xa86a/0.0.481", + "timestamp": "2024-10-27T12:50:27.602732" }, { "name": "config", "chainId": "0xa86a", - "version": "0.0.216", + "version": "0.0.481", "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0xa86a/0.0.216", - "timestamp": "2024-03-21T12:13:36.520972" + "filePath": "config/0xa86a/0.0.481", + "timestamp": "2024-10-27T12:50:27.602991" }, { "name": "stale_diff", "chainId": "0xe708", - "version": "0.0.170", - "checksum": "79ed396331e95cfb34b5e14fce09b23c2059d78ada026cc38dc8f1119b793cee", - "signature": "8ae4be3b31e45eab20c4c0a177cd68ccba4293f790702392da02f840398e8da3525e69fb129c3c600c28c6dd773abfbe368a9b02c37076e82a67a906fc712e09", - "hashSignature": "9b3bacc5d3e9c50e711b8b0fd9e50dde38cc93c0fcde468efe8cac03e3b3b3fe818cfa105029b0fcac8ecc9c03c4c4833ad5da0fce9ed2b80e9d762640a2410b", - "filePath": "stale_diff/0xe708/0.0.170", - "timestamp": "2024-03-21T12:13:41.925924" + "version": "0.0.435", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0xe708/0.0.435", + "timestamp": "2024-10-27T12:50:39.077328" }, { "name": "config", "chainId": "0xe708", - "version": "0.0.170", + "version": "0.0.435", "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0xe708/0.0.170", - "timestamp": "2024-03-21T12:13:41.926309" + "filePath": "config/0xe708/0.0.435", + "timestamp": "2024-10-27T12:50:39.077595" }, { "name": "stale_diff", "chainId": "0x2105", - "version": "0.0.105", - "checksum": "e9135ad2c08b3b0349db7e2decb871598251680d81c320718ac59de91b0cfcc8", - "signature": "e47d5f9afdd1c0557cdc020692d80bc844477c8407392ab860ce8b1efb95e2c303695699d6a464dfe071685d87990bbfceb1ab166bffff795c883444543b9404", - "hashSignature": "58224a7946eea888848a9305189c080f4eab04aca4be0bd69b08a799c7cb3c8595dcd354e021fccfd4c304465d94819dd1978e8dd898938d1391dfb508735e08", - "filePath": "stale_diff/0x2105/0.0.105", - "timestamp": "2024-03-21T12:13:47.580538" + "version": "0.0.370", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x2105/0.0.370", + "timestamp": "2024-10-27T12:50:33.715820" }, { "name": "config", "chainId": "0x2105", - "version": "0.0.105", + "version": "0.0.370", + "checksum": "eb3b41ae8c3bbf9595dcded8e1b9090c8ed2427e236375652f6fd701c6e134b4", + "signature": "79552c7fa525e05c9c086fe8d8ecb49375be796176877e17332fa1137d4c653f224873bdac2b6fd4fe63fcfe6d404778684116e98fdb0563f63ae1efcfafe60d", + "hashSignature": "9c8a84e430578290eceea60ba7dec3695e0cfd343f7ac3e2667c8634afa3dd65d6ec25b112ac8260dbe3e6bc9e00ba906c4212975652354b1423f6ee0ec7b20e", + "filePath": "config/0x2105/0.0.370", + "timestamp": "2024-10-27T12:50:33.716077" + }, + { + "name": "stale_diff", + "chainId": "0xaa36a7", + "version": "0.0.289", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0xaa36a7/0.0.289", + "timestamp": "2024-10-27T12:50:44.187191" + }, + { + "name": "config", + "chainId": "0xaa36a7", + "version": "0.0.289", "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0x2105/0.0.105", - "timestamp": "2024-03-21T12:13:47.580833" + "filePath": "config/0xaa36a7/0.0.289", + "timestamp": "2024-10-27T12:50:44.187491" }, { "name": "stale_diff", - "chainId": "0xaa36a7", - "version": "0.0.24", - "checksum": "501048a17060b390dd5f6d3556dfae356299f2e1761170c5e77f71ae304b38a5", - "signature": "453422760071953f014675c10e7b540474847a7901d078aa892c1ea6cde2f669209772042b73573943cb3b123ae4ea4c48b3bda285a13262ec93e4acffe51e07", - "hashSignature": "4e1a3c0e259dfa4ee5bdfc9580a3d53c817229bb076b2ff90ad63cf7db5444073e1257a27f8be0cce7825f8824fe6a3f698c77f4f24d156b52d019bec155460c", - "filePath": "stale_diff/0xaa36a7/0.0.24", - "timestamp": "2024-03-21T12:13:51.767514" + "chainId": "0xcc", + "version": "0.0.238", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0xcc/0.0.238", + "timestamp": "2024-10-27T12:50:49.423599" }, { "name": "config", - "chainId": "0xaa36a7", - "version": "0.0.24", + "chainId": "0xcc", + "version": "0.0.238", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0xcc/0.0.238", + "timestamp": "2024-10-27T12:50:49.423903" + }, + { + "name": "stale_diff", + "chainId": "0x0", + "version": "0.0.179", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x0/0.0.179", + "timestamp": "2024-10-27T12:50:57.113651" + }, + { + "name": "config", + "chainId": "0x0", + "version": "0.0.179", "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", - "filePath": "config/0xaa36a7/0.0.24", - "timestamp": "2024-03-21T12:13:51.767758" + "filePath": "config/0x0/0.0.179", + "timestamp": "2024-10-27T12:50:57.113910" + }, + { + "name": "stale_diff", + "chainId": "0x144", + "version": "0.0.258", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x144/0.0.258", + "timestamp": "2024-10-27T12:51:10.842031" + }, + { + "name": "config", + "chainId": "0x144", + "version": "0.0.258", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0x144/0.0.258", + "timestamp": "2024-10-27T12:51:10.842292" + }, + { + "name": "stale_diff", + "chainId": "0x82750", + "version": "0.0.180", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x82750/0.0.180", + "timestamp": "2024-10-27T12:51:16.756456" + }, + { + "name": "config", + "chainId": "0x82750", + "version": "0.0.180", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0x82750/0.0.180", + "timestamp": "2024-10-27T12:51:16.756829" + }, + { + "name": "stale_diff", + "chainId": "0x1b58", + "version": "0.0.180", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x1b58/0.0.180", + "timestamp": "2024-10-27T12:51:23.355191" + }, + { + "name": "config", + "chainId": "0x1b58", + "version": "0.0.180", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0x1b58/0.0.180", + "timestamp": "2024-10-27T12:51:23.355470" + }, + { + "name": "stale_diff", + "chainId": "0x138d5", + "version": "0.0.180", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x138d5/0.0.180", + "timestamp": "2024-10-27T12:51:29.701505" + }, + { + "name": "config", + "chainId": "0x138d5", + "version": "0.0.180", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0x138d5/0.0.180", + "timestamp": "2024-10-27T12:51:29.701771" + }, + { + "name": "stale", + "chainId": "0x1b6e6", + "version": "0.0.13", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x1b6e6/0.0.13", + "timestamp": "2024-10-27T12:40:16.522556" + }, + { + "name": "stale_diff", + "chainId": "0x1b6e6", + "version": "0.0.114", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x1b6e6/0.0.114", + "timestamp": "2024-10-27T12:51:43.249992" + }, + { + "name": "config", + "chainId": "0x1b6e6", + "version": "0.0.114", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0x1b6e6/0.0.114", + "timestamp": "2024-10-27T12:51:43.250277" + }, + { + "name": "stale_diff", + "chainId": "0x138d4", + "version": "0.0.75", + "checksum": "3bab009ec87420bb6de56069cb3b76614c891688beb233bfe408aa60757478fb", + "signature": "481f19700f7399df4eefc8162e0229ea2a81fbfcbd6c327fac4ad79aaa7ac3aa8215b36bbdc74986c008cd60ffec428aa7ea04cd166faad938e1f9f4cef4b804", + "hashSignature": "f4991d29cefb09343ed5b3332416e2bab7428499373ea4bb0f6dd9bc1955eed33f80f383f70350a74ccddbea07e52eb4a144559626214a6c0f8c726b28be2f03", + "filePath": "stale_diff/0x138d4/0.0.75", + "timestamp": "2024-10-27T12:51:36.220430" + }, + { + "name": "config", + "chainId": "0x138d4", + "version": "0.0.75", + "checksum": "3e1772693c4e2fa91ae00c4b79d546f36e97525daa60baab372c145e979e19f4", + "signature": "f56c9387e07892aceb1018db6dc7e32cce0528c131b6ac1822e12e87dd43d40fdb9f3e17a9c6d7fd25a095e000db19acaf3f93c42142c48f35b06f07998f0f0e", + "hashSignature": "ae3fbbe3f87e48e537e9c1c9601fa5706ed72145250e5f4a2d7a4902d59e2c770c7c1ef88bde15505fa6bcbf24f85ef1b5ad48b76447a3479f7f7a462f082302", + "filePath": "config/0x138d4/0.0.75", + "timestamp": "2024-10-27T12:51:36.220693" + }, + { + "name": "stale", + "chainId": "0x138d4", + "version": "0.0.7", + "checksum": "f01b489470ec41ece8b65ee23e2b092e77046eb9f21a54a9c39ef2399ecc721f", + "signature": "cf94226430160273f94699041b56e9edfc603023ba4b653cf9c555a9f21065078774e1d554eae602d4a5e7bba02e0a76047a42e9a0a89acb1c2069a28c9f6f02", + "hashSignature": "939dd7022011d78cfd935ce88ca041660df72480ce8d9ec84a66066e54e030eb4abb2beadaad8ead4db192c1d0558ac1faa6703b8dda2101481accaf5f6f3005", + "filePath": "stale/0x138d4/0.0.7", + "timestamp": "2024-10-27T12:40:00.249463" } ] diff --git a/test/e2e/mock-cdn/update-mock-cdn-files.js b/test/e2e/mock-cdn/update-mock-cdn-files.js index 5fa2d7cc51a5..139c60c23cef 100644 --- a/test/e2e/mock-cdn/update-mock-cdn-files.js +++ b/test/e2e/mock-cdn/update-mock-cdn-files.js @@ -65,6 +65,11 @@ async function updateMockCdnFiles() { const { mainnetConfigVersion, mainnetStaleVersion, mainnetStaleDiffVersion } = await getFileVersions(); + // Function to create header object with Etag and Content-Type + const createHeaderObject = (etag) => ({ + Etag: etag, + 'Content-Type': 'text/plain', + }); // updating cdn-config-res-headers.json file const configResponse = await fetch( `${PPOM_CONFIG_URL}${mainnetConfigVersion}`, @@ -76,7 +81,7 @@ async function updateMockCdnFiles() { const configHeaders = configResponse.headers; const etagConfig = configHeaders.get('etag'); - const etagConfigObject = { Etag: etagConfig }; + const etagConfigObject = createHeaderObject(etagConfig); writeFileSync( `${MOCK_CDN_FOLDER_URL}cdn-config-res-headers.json`, @@ -91,7 +96,7 @@ async function updateMockCdnFiles() { const staleHeaders = staleResponse.headers; const etagStale = staleHeaders.get('etag'); - const etagStaleObject = { Etag: etagStale }; + const etagStaleObject = createHeaderObject(etagStale); writeFileSync( `${MOCK_CDN_FOLDER_URL}cdn-stale-res-headers.json`, @@ -109,7 +114,7 @@ async function updateMockCdnFiles() { const staleDiffHeaders = staleDiffResponse.headers; const etagStaleDiff = staleDiffHeaders.get('etag'); - const etagStaleDiffObject = { Etag: etagStaleDiff }; + const etagStaleDiffObject = createHeaderObject(etagStaleDiff); writeFileSync( `${MOCK_CDN_FOLDER_URL}cdn-stale-diff-res-headers.json`, diff --git a/test/e2e/tests/ppom/ppom-blockaid-alert-erc20-transfer.spec.js b/test/e2e/tests/ppom/ppom-blockaid-alert-erc20-transfer.spec.js index 4122695dfb50..01d90da9324c 100644 --- a/test/e2e/tests/ppom/ppom-blockaid-alert-erc20-transfer.spec.js +++ b/test/e2e/tests/ppom/ppom-blockaid-alert-erc20-transfer.spec.js @@ -1,17 +1,13 @@ -const { strict: assert } = require('assert'); const FixtureBuilder = require('../../fixture-builder'); const { WINDOW_TITLES, defaultGanacheOptions, - openDapp, unlockWallet, withFixtures, } = require('../../helpers'); const { mockServerJsonRpc } = require('./mocks/mock-server-json-rpc'); -const bannerAlertSelector = '[data-testid="security-provider-banner-alert"]'; - const selectedAddress = '0x5cfe73b6021e818b776b421b1c4db2474086a7e1'; const selectedAddressWithoutPrefix = '5cfe73b6021e818b776b421b1c4db2474086a7e1'; @@ -161,14 +157,17 @@ async function mockInfura(mockServer) { } describe('PPOM Blockaid Alert - Malicious ERC20 Transfer @no-mmi', function () { - // eslint-disable-next-line mocha/no-skipped-tests - it.skip('should show banner alert', async function () { + it('should show banner alert', async function () { + // we need to use localhost instead of the ip + // see issue: https://github.com/MetaMask/MetaMask-planning/issues/3560 await withFixtures( { dapp: true, fixtures: new FixtureBuilder() .withNetworkControllerOnMainnet() - .withPermissionControllerConnectedToTestDapp() + .withPermissionControllerConnectedToTestDapp({ + useLocalhostHostname: true, + }) .withPreferencesController({ securityAlertsEnabled: true, }) @@ -181,10 +180,10 @@ describe('PPOM Blockaid Alert - Malicious ERC20 Transfer @no-mmi', function () { async ({ driver }) => { const expectedTitle = 'This is a deceptive request'; const expectedDescription = - 'If you approve this request, you might lose your assets.'; + 'If you approve this request, a third party known for scams will take all your assets.'; await unlockWallet(driver); - await openDapp(driver); + await driver.openNewPage('http://localhost:8080'); // Click TestDapp button to send JSON-RPC request await driver.clickElement('#maliciousERC20TransferButton'); @@ -195,20 +194,15 @@ describe('PPOM Blockaid Alert - Malicious ERC20 Transfer @no-mmi', function () { await driver.assertElementNotPresent('.loading-indicator'); - const bannerAlertFoundByTitle = await driver.findElement({ - css: bannerAlertSelector, + await driver.waitForSelector({ + css: '.mm-text--body-lg-medium', text: expectedTitle, }); - const bannerAlertText = await bannerAlertFoundByTitle.getText(); - assert( - bannerAlertFoundByTitle, - `Banner alert not found. Expected Title: ${expectedTitle} \nExpected reason: transfer_farming\n`, - ); - assert( - bannerAlertText.includes(expectedDescription), - `Unexpected banner alert description. Expected: ${expectedDescription} \nExpected reason: transfer_farming\n`, - ); + await driver.waitForSelector({ + css: '.mm-text--body-md', + text: expectedDescription, + }); }, ); }); diff --git a/test/e2e/tests/ppom/ppom-blockaid-alert-simple-send.spec.js b/test/e2e/tests/ppom/ppom-blockaid-alert-simple-send.spec.js index 8f3e7a657716..e4ce73bcb615 100644 --- a/test/e2e/tests/ppom/ppom-blockaid-alert-simple-send.spec.js +++ b/test/e2e/tests/ppom/ppom-blockaid-alert-simple-send.spec.js @@ -3,9 +3,10 @@ const FixtureBuilder = require('../../fixture-builder'); const { defaultGanacheOptions, - withFixtures, - sendScreenToConfirmScreen, logInWithBalanceValidation, + sendScreenToConfirmScreen, + WINDOW_TITLES, + withFixtures, } = require('../../helpers'); const { mockServerJsonRpc } = require('./mocks/mock-server-json-rpc'); @@ -106,11 +107,9 @@ async function mockInfuraWithFailedResponses(mockServer) { await mockInfura(mockServer); await mockServer - .forPost() - .withJsonBodyIncluding({ - method: 'debug_traceCall', - params: [{ accessList: [], data: '0x00000000' }], - }) + .forGet( + 'https://static.cx.metamask.io/api/v1/confirmations/ppom/ppom_version.json', + ) .thenCallback(() => { return { statusCode: 500, @@ -159,10 +158,15 @@ describe('Simple Send Security Alert - Blockaid @no-mmi', function () { */ it('should show security alerts for malicious requests', async function () { await withFixtures( + // we need to use localhost instead of the ip + // see issue: https://github.com/MetaMask/MetaMask-planning/issues/3560 { dapp: true, fixtures: new FixtureBuilder() .withNetworkControllerOnMainnet() + .withPermissionControllerConnectedToTestDapp({ + useLocalhostHostname: true, + }) .withPreferencesController({ securityAlertsEnabled: true, }) @@ -175,29 +179,25 @@ describe('Simple Send Security Alert - Blockaid @no-mmi', function () { async ({ driver }) => { await logInWithBalanceValidation(driver); - await sendScreenToConfirmScreen(driver, mockMaliciousAddress, '1'); + await driver.openNewPage('http://localhost:8080'); - // Find element by title - const bannerAlertFoundByTitle = await driver.findElement({ - css: bannerAlertSelector, + await driver.clickElement('#maliciousRawEthButton'); + await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog); + + await driver.waitForSelector({ + css: '.mm-text--body-lg-medium', text: expectedMaliciousTitle, }); - const bannerAlertText = await bannerAlertFoundByTitle.getText(); - assert( - bannerAlertFoundByTitle, - `Banner alert not found. Expected Title: ${expectedMaliciousTitle}`, - ); - assert( - bannerAlertText.includes(expectedMaliciousDescription), - `Unexpected banner alert description. Expected: ${expectedMaliciousDescription}`, - ); + await driver.waitForSelector({ + css: '.mm-text--body-md', + text: expectedMaliciousDescription, + }); }, ); }); - // eslint-disable-next-line mocha/no-skipped-tests - it.skip('should show "Request may not be safe" if the PPOM request fails to check transaction', async function () { + it('should show "Be careful" if the PPOM request fails to check transaction', async function () { await withFixtures( { dapp: true, @@ -220,8 +220,7 @@ describe('Simple Send Security Alert - Blockaid @no-mmi', function () { '0xB8c77482e45F1F44dE1745F52C74426C631bDD52', '1.1', ); - // await driver.delay(100000) - const expectedTitle = 'Request may not be safe'; + const expectedTitle = 'Be careful'; const bannerAlert = await driver.findElement({ css: bannerAlertSelector, diff --git a/test/e2e/tests/ppom/ppom-blockaid-alert-trade-order-farming.spec.js b/test/e2e/tests/ppom/ppom-blockaid-alert-trade-order-farming.spec.js index 8f2debc7b4f2..ac17614bc5af 100644 --- a/test/e2e/tests/ppom/ppom-blockaid-alert-trade-order-farming.spec.js +++ b/test/e2e/tests/ppom/ppom-blockaid-alert-trade-order-farming.spec.js @@ -1,17 +1,13 @@ -const { strict: assert } = require('assert'); const FixtureBuilder = require('../../fixture-builder'); const { WINDOW_TITLES, defaultGanacheOptions, - openDapp, unlockWallet, withFixtures, } = require('../../helpers'); const { mockServerJsonRpc } = require('./mocks/mock-server-json-rpc'); -const bannerAlertSelector = '[data-testid="security-provider-banner-alert"]'; - const CONTRACT_ADDRESS = { WrappedEther: 'c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2', OffchainOracle: '0x52cbe0f49ccdd4dc6e9c13bab024eabd2842045b', @@ -90,14 +86,17 @@ async function mockInfura(mockServer) { } describe('PPOM Blockaid Alert - Set Trade farming order @no-mmi', function () { - // eslint-disable-next-line mocha/no-skipped-tests - it.skip('should show banner alert', async function () { + it('should show banner alert', async function () { + // we need to use localhost instead of the ip + // see issue: https://github.com/MetaMask/MetaMask-planning/issues/3560 await withFixtures( { dapp: true, fixtures: new FixtureBuilder() .withNetworkControllerOnMainnet() - .withPermissionControllerConnectedToTestDapp() + .withPermissionControllerConnectedToTestDapp({ + useLocalhostHostname: true, + }) .withPreferencesController({ securityAlertsEnabled: true, }) @@ -109,7 +108,7 @@ describe('PPOM Blockaid Alert - Set Trade farming order @no-mmi', function () { async ({ driver }) => { await unlockWallet(driver); - await openDapp(driver); + await driver.openNewPage('http://localhost:8080'); const expectedTitle = 'This is a deceptive request'; const expectedDescription = @@ -117,27 +116,19 @@ describe('PPOM Blockaid Alert - Set Trade farming order @no-mmi', function () { // Click TestDapp button to send JSON-RPC request await driver.clickElement('#maliciousTradeOrder'); - - // Wait for confirmation pop-up - await driver.waitUntilXWindowHandles(3); await driver.switchToWindowWithTitle(WINDOW_TITLES.Dialog); await driver.assertElementNotPresent('.loading-indicator'); - const bannerAlertFoundByTitle = await driver.findElement({ - css: bannerAlertSelector, + await driver.waitForSelector({ + css: '.mm-text--body-lg-medium', text: expectedTitle, }); - const bannerAlertText = await bannerAlertFoundByTitle.getText(); - assert( - bannerAlertFoundByTitle, - `Banner alert not found. Expected Title: ${expectedTitle} \nExpected reason: approval_farming\n`, - ); - assert( - bannerAlertText.includes(expectedDescription), - `Unexpected banner alert description. Expected: ${expectedDescription} \nExpected reason: approval_farming\n`, - ); + await driver.waitForSelector({ + css: '.mm-text--body-md', + text: expectedDescription, + }); }, ); }); diff --git a/ui/components/ui/token-currency-display/token-currency-display.stories.tsx b/ui/components/ui/token-currency-display/token-currency-display.stories.tsx index 7cf850c42c84..932d54210b84 100644 --- a/ui/components/ui/token-currency-display/token-currency-display.stories.tsx +++ b/ui/components/ui/token-currency-display/token-currency-display.stories.tsx @@ -1,9 +1,8 @@ import React from 'react'; -import { Meta, Story } from '@storybook/react'; +import type { Meta, StoryObj } from '@storybook/react'; import TokenCurrencyDisplay from './token-currency-display.component'; -import { TokenCurrencyDisplayProps } from './token-currency-display.types'; -export default { +const meta: Meta = { title: 'Components/UI/TokenCurrencyDisplay', component: TokenCurrencyDisplay, argTypes: { @@ -12,14 +11,15 @@ export default { token: { control: 'object' }, prefix: { control: 'text' }, }, -} as Meta; + args: { + className: '', + transactionData: '0x123', + token: { symbol: 'ETH' }, + prefix: '', + }, +}; -const Template: Story = (args) => ; +export default meta; +type Story = StoryObj; -export const Default = Template.bind({}); -Default.args = { - className: '', - transactionData: '0x123', - token: { symbol: 'ETH' }, - prefix: '', -}; +export const Default: Story = {}; diff --git a/yarn.lock b/yarn.lock index dede42412974..022ac07964a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4925,9 +4925,9 @@ __metadata: languageName: node linkType: hard -"@metamask/controller-utils@npm:^11.0.0, @metamask/controller-utils@npm:^11.0.2, @metamask/controller-utils@npm:^11.1.0, @metamask/controller-utils@npm:^11.2.0, @metamask/controller-utils@npm:^11.3.0": - version: 11.3.0 - resolution: "@metamask/controller-utils@npm:11.3.0" +"@metamask/controller-utils@npm:^11.0.0, @metamask/controller-utils@npm:^11.0.2, @metamask/controller-utils@npm:^11.1.0, @metamask/controller-utils@npm:^11.2.0, @metamask/controller-utils@npm:^11.3.0, @metamask/controller-utils@npm:^11.4.0": + version: 11.4.0 + resolution: "@metamask/controller-utils@npm:11.4.0" dependencies: "@ethereumjs/util": "npm:^8.1.0" "@metamask/eth-query": "npm:^4.0.0" @@ -4938,7 +4938,7 @@ __metadata: bn.js: "npm:^5.2.1" eth-ens-namehash: "npm:^2.0.8" fast-deep-equal: "npm:^3.1.3" - checksum: 10/3200228d1f4ea5fa095228db4e5050529caf0470e072382eb8f7571bb9b07515516ca9e846b7751388399d9ae967e4985dafd6120902ef6c998e98f4eb36d964 + checksum: 10/f34d24880eab264bddaa5bef21afaecb206db6978364565d0f7b7a54b1d411f129eb84175041df3be8a66394c2d49e83b6648b5cbde6f34662a60fc553c31458 languageName: node linkType: hard @@ -5846,19 +5846,18 @@ __metadata: languageName: node linkType: hard -"@metamask/phishing-controller@npm:^12.0.1, @metamask/phishing-controller@npm:^12.0.2": - version: 12.0.2 - resolution: "@metamask/phishing-controller@npm:12.0.2" +"@metamask/phishing-controller@npm:^12.0.2, @metamask/phishing-controller@npm:^12.3.0": + version: 12.3.0 + resolution: "@metamask/phishing-controller@npm:12.3.0" dependencies: - "@metamask/base-controller": "npm:^7.0.0" - "@metamask/controller-utils": "npm:^11.2.0" + "@metamask/base-controller": "npm:^7.0.1" + "@metamask/controller-utils": "npm:^11.4.0" "@noble/hashes": "npm:^1.4.0" "@types/punycode": "npm:^2.1.0" - eth-phishing-detect: "npm:^1.2.0" ethereum-cryptography: "npm:^2.1.2" fastest-levenshtein: "npm:^1.0.16" punycode: "npm:^2.1.1" - checksum: 10/78781e1b781c838e303677157616fb3b5e581030fe8f0ed8913f6b75fbcb7ee2ba59a44831936cc68cca8b295ef6546761b40ea3277d810b68d8ed39a58d0e29 + checksum: 10/15e64adff57996486c36d0c73747a76543e8f7ad79020fc2746726f81f3858251b2e256c04e8d9caf1daf71c41f7ddf575c901d2a46174a5884d2836c60a3b2d languageName: node linkType: hard @@ -25936,7 +25935,7 @@ __metadata: "@metamask/obs-store": "npm:^9.0.0" "@metamask/permission-controller": "npm:^10.0.0" "@metamask/permission-log-controller": "npm:^2.0.1" - "@metamask/phishing-controller": "npm:^12.0.1" + "@metamask/phishing-controller": "npm:^12.3.0" "@metamask/phishing-warning": "npm:^4.1.0" "@metamask/post-message-stream": "npm:^8.0.0" "@metamask/ppom-validator": "npm:0.35.1"