Skip to content

Commit f2422c8

Browse files
committed
Merge remote-tracking branch 'origin/main' into chore/remove-webpack-benchmark
2 parents 4ac0527 + 6966109 commit f2422c8

128 files changed

Lines changed: 3145 additions & 1651 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/publish-prerelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
MERGE_BASE_COMMIT_HASH: '' # placeholder so that we have autocomplete and logs
124124
CLOUDFRONT_REPO_URL: ${{ vars.AWS_CLOUDFRONT_URL }}/${{ github.event.repository.name }}
125125
HOST_URL: ${{ vars.AWS_CLOUDFRONT_URL }}/${{ github.event.repository.name }}/${{ inputs.builds-from-run }}
126+
SENTRY_DSN_PERFORMANCE: ${{ vars.SENTRY_DSN_PERFORMANCE }}
126127
BENCHMARK_WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id || github.run_id }}
127128
BUILDS_FROM_SHA: ${{ inputs.builds-from-sha }}
128129
BUILDS_FROM_RUN: ${{ inputs.builds-from-run }}

.github/workflows/run-benchmarks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ jobs:
154154
REPOSITORY: ${{ github.event.repository.name }}
155155
PR_NUMBER: ${{ github.event.pull_request.number || 'none' }}
156156
HEAD_COMMIT_HASH: ${{ github.event.pull_request.head.sha || github.sha }}
157+
# Job env mirrors matrix job; step `if:` uses env.SENTRY_DSN_PERFORMANCE (same as send-to-sentry’s process.env).
157158
SENTRY_DSN_PERFORMANCE: ${{ vars.SENTRY_DSN_PERFORMANCE }}
158159
BENCHMARK_BROWSER_LOADS: '10'
159160
BENCHMARK_PAGE_LOADS: '10'

.storybook/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ module.exports = {
7777
loader: 'postcss-loader',
7878
options: {
7979
postcssOptions: {
80+
config: false,
8081
plugins: ['tailwindcss', 'autoprefixer'],
8182
},
8283
},
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
diff --git a/dist/MultichainAssetsController/MultichainAssetsController.cjs b/dist/MultichainAssetsController/MultichainAssetsController.cjs
2+
index 0f74ce9c3200043c7c8fd121218e41790c55cc0e..973fcb342657ac4898b55bc82e7e89fb99373bd7 100644
3+
--- a/dist/MultichainAssetsController/MultichainAssetsController.cjs
4+
+++ b/dist/MultichainAssetsController/MultichainAssetsController.cjs
5+
@@ -503,33 +503,25 @@ async function _MultichainAssetsController_filterBlockaidSpamTokensOnAdd(assets)
6+
if (Object.keys(tokensByChain).length === 0) {
7+
return [...assets];
8+
}
9+
- const keptTokenAssets = new Set();
10+
+ const rejectedAssets = new Set();
11+
for (const [chainName, tokenEntries] of Object.entries(tokensByChain)) {
12+
const batchOutcomes = await __classPrivateFieldGet(this, _MultichainAssetsController_instances, "m", _MultichainAssetsController_runBatchedBulkTokenScans).call(this, chainName, tokenEntries);
13+
for (const outcome of batchOutcomes) {
14+
if (outcome.status === 'rejected') {
15+
+ // Fail-open: if API fails, allow all tokens in this batch through
16+
continue;
17+
}
18+
for (const entry of outcome.entries) {
19+
const scanned = outcome.response[entry.address];
20+
+ // Reject only if we have a definitive malicious result
21+
if (scanned?.result_type &&
22+
- scanned.result_type !== phishing_controller_1.TokenScanResultType.Malicious) {
23+
- keptTokenAssets.add(entry.asset);
24+
+ scanned.result_type === phishing_controller_1.TokenScanResultType.Malicious) {
25+
+ rejectedAssets.add(entry.asset);
26+
}
27+
}
28+
}
29+
}
30+
- return assets.filter((asset) => {
31+
- try {
32+
- if ((0, utils_1.parseCaipAssetType)(asset).assetNamespace === 'token') {
33+
- return keptTokenAssets.has(asset);
34+
- }
35+
- }
36+
- catch {
37+
- return false;
38+
- }
39+
- return true;
40+
- });
41+
+ return assets.filter((asset) => !rejectedAssets.has(asset));
42+
}, _MultichainAssetsController_findMaliciousTokensAmong =
43+
/**
44+
* SPL `token:` assets in state that Blockaid marks malicious (failed batches skipped).

app/_locales/de/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/el/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/en/messages.json

Lines changed: 23 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/en_GB/messages.json

Lines changed: 23 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/es_419/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/_locales/fr/messages.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)