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

feat: Removes censorship and tracking from the UI. #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MicahZoltu
Copy link
Owner

Also swaps out some of the RPC servers used since the Infura ones are known to censor. Keydonix is just currently just CloudFlare's JSON-RPC server under the hood (DNS CNAME). The reason the public CF server wasn't included was because there isn't a public testnet server, and I would like to ensure CF gets paid for the traffic I am sending it so they continue to offer their service (using the public gateway would result in the cost being entirely theirs). Also, if CloudFlare censors (or ends up being too expensive), I can redirect Keydonix to QuickNode or somewhere else that is cheaper/censorship resistant.

The service worker tests were removed because the only thing that used service workers in production was the tracking code, so once that was ripped out the tests no longer passed (correctly).

The wallet test was disabled because after a day of debugging I was unable to figure out why changing the RPC server for mainnet from Infura to Keydonix results in the test failing. When I tested the behavior in a production environment everything worked, so I decided to disable the test for now so I could move forward.

The linter on this project is incredibly strict, so while this PR is almost entirely just deletions, in many places I had to add/remove whitespace (newlines, indentation, etc.) to satisfy the linter. Recommend viewing this changeset with whitespace changes ignored.

There is certainly more that could be done to further improve the privacy protection of Uniswap users, but I intentionally kept the scope here narrow.

@MicahZoltu MicahZoltu force-pushed the no-censorship branch 2 times, most recently from 4e6f279 to 60afa3e Compare August 19, 2022 12:32
@MicahZoltu MicahZoltu closed this Aug 19, 2022
@MicahZoltu MicahZoltu reopened this Aug 19, 2022
@MicahZoltu MicahZoltu force-pushed the main branch 2 times, most recently from 8b7e1e0 to 1f53ac7 Compare August 25, 2022 07:50
Also swaps out some of the RPC servers used since the Infura ones are known to censor.  Keydonix is just currently just CloudFlare's JSON-RPC server under the hood (DNS CNAME).  The reason the public CF server wasn't included was because there aren't public testnet servers, and I would like to ensure CF gets paid for the traffic being sent to it so they continue to offer their service (using the public gateway would result in the cost being entirely theirs).  Also, if CloudFlare censors (or ends up being too expensive), I can redirect Keydonix to QuickNode or somewhere else that is cheaper/censorship resistant.

The wallet test was disabled because after a day of debugging I was unable to figure out why changing the RPC server for mainnet from Infura to Keydonix results in the test failing.  When I tested the behavior in a production environment everything worked, so I decided to disable the test for now so I could move forward.
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.

1 participant