forked from safe-global/safe-wallet-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: blockaid integration (safe-global#4029)
* feat: blockaid integration - exchanges redefine for blockaid - redesigns warning component * feat: better error handling * fix: adjust design for errors * feat: add powered by footer * feat: add more chains, code cleanup * fix: change URL and auth header * fix: update .env variable in build.yml * fix: throw error if validation is missing * fix: loading state of blockaid block * tests: adjust mock
- Loading branch information
Showing
25 changed files
with
1,541 additions
and
1,001 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { type SecuritySeverity } from '@/services/security/modules/types' | ||
import { List, ListItem, Typography } from '@mui/material' | ||
|
||
export const BlockaidHint = ({ severity, warnings }: { severity: SecuritySeverity; warnings: string[] }) => { | ||
return ( | ||
<List sx={{ listStyle: 'disc', pl: 2, '& li:last-child': { m: 0 } }}> | ||
{warnings.map((warning) => ( | ||
<ListItem key={warning} disablePadding sx={{ display: 'list-item', mb: 1 }}> | ||
<Typography variant="body2">{warning}</Typography> | ||
</ListItem> | ||
))} | ||
</List> | ||
) | ||
} |
Oops, something went wrong.