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

Remove USBC WalletConnect integration #987

Merged
merged 9 commits into from
Apr 8, 2024
Merged

Conversation

mplorentz
Copy link
Member

@mplorentz mplorentz commented Mar 28, 2024

The proof of concept USBC/Universal Ledger integration we built last year added a lot of heavy dependencies.
Removing this code sped up a clean build on my machine from 50 seconds to 30 seconds.

The USBC coin has not launched and actually their website (https://uled.io) redirects to another site now, so I think this is safe to remove for now.

@mplorentz mplorentz requested a review from joshuatbrown March 28, 2024 21:39
@mplorentz mplorentz marked this pull request as ready for review March 28, 2024 21:39
@mplorentz mplorentz requested a review from martindsq March 28, 2024 21:45
@joshuatbrown
Copy link
Contributor

I fully support this but unfortunately don't have time to review it. 👍

@mplorentz mplorentz enabled auto-merge April 4, 2024 21:08
Copy link
Member

@martindsq martindsq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks great. As I had to merge main in order to test it in Xcode 15.3 I just went ahead and pushed the merge commit. I left some minor changes, everything else looks neat.I love to see StarscreamOld outside our code!

@@ -74,6 +75,7 @@ struct NoteTextEditor: View {
}

private func insertMention(at offset: Int, author: Author) {
Log.error("test")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like a log you used while debugging

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, you are right.

@@ -42,7 +41,7 @@ struct RelaySubscription: Identifiable {
) {
self.filter = filter
self.relayAddress = relayAddress
self.id = (filter.id + "-" + relayAddress.absoluteString).sha256()
self.id = (filter.id + "-" + relayAddress.absoluteString).data(using: .utf8)!.sha256
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this could not fail in real life, but can you rewrite it without the !? We could just log that case so we can catch that unexpected case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why we are sha256ing this at all. It doesn't make it any more unique. I just removed that part.

@mplorentz mplorentz requested a review from martindsq April 5, 2024 18:31
@mplorentz mplorentz added this pull request to the merge queue Apr 8, 2024
Merged via the queue into main with commit 1712178 Apr 8, 2024
5 checks passed
@mplorentz mplorentz deleted the remove-usbc-integration branch April 8, 2024 18:11
@joshuatbrown
Copy link
Contributor

Always love to see −8,632 lines of code in a PR! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants