Skip to content
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

Add PPOM testing section #253

Merged
merged 8 commits into from
Aug 30, 2023
Merged

Add PPOM testing section #253

merged 8 commits into from
Aug 30, 2023

Conversation

seaona
Copy link
Contributor

@seaona seaona commented Aug 18, 2023

Description

This PR tackles these 2 needs:

  • We need an easy and fast way to manually test the ppom module.
  • We need to automate the testcases related to the ppom flows.

For that, a new section on the test dapp has been created, where we can trigger all the possible warnings fired by the ppom module.

Notes for Testing

Bear in mind the following points, in case you want to try the new dapp functionalities:

  • at the moment ppom module is only supported on Mainnet, with no other RPCs than Infura, with special Infura Id (ask me if you need it). In the future, support is going to be extended to more RPCs (in the next ppom version) and more networks/chainIds.
  • at the moment, ppom module is only available in flask builds (with proper envars setup BLOCKAID_FILE_CDN and BLOCKAID_PUBLIC_KEY)
  • you need to activate the functionality under Experimental Settings / Blockaid
  • you need to have a small amount of ETH balance for malicious transactions and some amount of BUSD for the ERC20 related ones (once different RPCs are supported, you can easily bypass this by using a Tenderly devnet and seeding your account (see more in the Workshop recording about this topic - Configurable Forks & Contract Storage Manipulation)
  • you don't need any balance for Signatures (Malicious Permit/Trade Order/ Seaport)
test-dapp-ppom.mp4

Extra Info

Screenshots

Screenshot from 2023-08-24 17-58-47

@seaona seaona marked this pull request as ready for review August 30, 2023 08:11
src/index.js Show resolved Hide resolved
@seaona seaona merged commit 112ff28 into main Aug 30, 2023
3 checks passed
@seaona seaona deleted the ppom branch August 30, 2023 11:31
@seaona seaona mentioned this pull request Aug 30, 2023
@seaona seaona self-assigned this Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants