-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security provider check (OpenSea) #16584
Security provider check (OpenSea) #16584
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Builds ready [df954ff]
Page Load Metrics (3246 ± 225 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
highlights:storybook
|
df954ff
to
504ce81
Compare
Builds ready [504ce81]
Page Load Metrics (2019 ± 98 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
highlights:storybook
|
Builds ready [06e642f]
Page Load Metrics (2159 ± 213 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
highlights:storybook
|
06e642f
to
352f1d9
Compare
Builds ready [352f1d9]
Page Load Metrics (2270 ± 170 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
highlights:storybook
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, but will be nice to have some more test coverage as it touches important functionality.
c082a3c
to
d93b98c
Compare
Builds ready [d93b98c]
Page Load Metrics (2357 ± 111 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
highlights:storybook
|
); | ||
|
||
return await response.json(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test cases can be added for above new file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we ever add test cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, some small non-blocking feedback there.
The toggle looks good when I tested using the feature flag. There are 2 problems related to the Search Function that might/might not be related to this PR:
search-security.mp4
|
d93b98c
to
b9fe62f
Compare
b9fe62f
to
1ba6012
Compare
Hey @seaona! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@filipsekulic thank you! It looks indeed a separate issue with the Search, not related to these changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. However, just noticed we have a failing CI.
@blackdevelopa |
Builds ready [ed0cf96]
Page Load Metrics (1314 ± 112 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Explanation
The security provider is an optional feature for users, similar to an RPC provider for a new chain. The security provider will be called before the wallet action is presented to the user, and can flag possible malicious transactions that the wallet provider can raise to the user.
More information: https://www.notion.so/opensea/Wallet-Tx-Security-PoC-b6a926e1cb6448638d147696cd8f5937
In order to use the security provider check,
Transaction security check
should be enabled from theExperimental
tab.This functionality will be fully implemented in the following PR (#16258) where the warning message will be shown.
Manual testing steps
Experimental
tab and enable theTransaction security check
.test dapp
.