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: add optimistic response for shielded transfers #1615

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

euharrison
Copy link
Collaborator

@euharrison euharrison commented Feb 7, 2025

Add optimistic response for shielded transfers

Plus, show more detailed information on transfer history: chain_id in case the name is missing on registry, and target in case of shielded transfers

closes #1553

Screen.Recording.2025-02-07.at.17.36.07.mov

Copy link
Collaborator

@pedrorezende pedrorezende left a comment

Choose a reason for hiding this comment

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

Very nice! :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Good solution!

@@ -107,7 +107,7 @@ export const viewingKeysAtom = atomWithQuery<
});

export const storageShieldedBalanceAtom = atomWithStorage<
Record<Address, { address: string; minDenomAmount: BigNumber }[]>
Record<Address, { address: Address; minDenomAmount: string }[]>
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should store amount as BigNumber and save unnecessary conversions later

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@pedrorezende I agree, but this is the storage, meaning it's saving on LocalStorage as a string, so, unfortunately, we can't save it as a BigNumber

I found this issue because we are now manipulating this cache with the optimistic response and previously it don't have it, the it never trigger it

@euharrison euharrison merged commit a27e004 into main Feb 10, 2025
7 checks passed
@euharrison euharrison deleted the feat/optimistic-transfer-response branch February 10, 2025 14:26
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.

Namadillo: Add optimistic response for transfer
2 participants