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

Namadillo: Transaction history list #1250

Merged
merged 24 commits into from
Nov 14, 2024
Merged

Namadillo: Transaction history list #1250

merged 24 commits into from
Nov 14, 2024

Conversation

pedrorezende
Copy link
Contributor

@pedrorezende pedrorezende commented Nov 13, 2024

This PR adds a transaction history page and all the necessary structure behind it.

It also creates a confirmation screen and its implementation with IBC Transfers.

Added

  • useTransactionWatcher hook polls the rpc every x seconds to check if the pending transaction has new events / related txs
  • useTransactionActions: helper hook to interact with the transaction local storage
  • /transaction/:hash and /history routes
  • other related components

Other Changes

  • types.d.ts was renamed to types.ts and all type errors were fixed
  • TokenCurrency now accepts symbol instead of an Asset

Closes #1186
Closes #1184
Closes #1199

@pedrorezende pedrorezende marked this pull request as ready for review November 13, 2024 02:23
Copy link
Collaborator

@emccorson emccorson left a comment

Choose a reason for hiding this comment

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

This looks great!
I left quite a few comments, but the main thing I think is that we could simplify a lot by using the information we already have about a tx instead of parsing it from the RPC response, or even dropping it altogether if the information is not needed (e.g. possibly resultTxHash).
But I think this looks really good, and just waiting for a couple of fixes where things aren't working for approval.

apps/namadillo/src/App/Transfer/TransferTransactionFee.tsx Outdated Show resolved Hide resolved
apps/namadillo/src/App/Ibc/ShieldAllAssetList.tsx Outdated Show resolved Hide resolved
apps/namadillo/src/hooks/useTransactionActions.ts Outdated Show resolved Hide resolved
apps/namadillo/src/types.ts Show resolved Hide resolved
apps/namadillo/src/types.ts Outdated Show resolved Hide resolved
apps/namadillo/src/types.ts Show resolved Hide resolved
apps/namadillo/src/App/Transactions/TransactionDetails.tsx Outdated Show resolved Hide resolved
@pedrorezende pedrorezende force-pushed the feat/tx-list-history branch 2 times, most recently from ffd9e26 to 480e996 Compare November 14, 2024 17:30
Copy link
Contributor

@euharrison euharrison left a comment

Choose a reason for hiding this comment

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

Nice!

Screenshot 2024-11-14 at 16 30 45

tx as IbcTransferTransactionData,
changeTransaction
);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to return something for queryFn other than undefined. Otherwise we got this error

Screenshot 2024-11-14 at 16 22 01

@pedrorezende pedrorezende merged commit c63b98a into main Nov 14, 2024
10 checks passed
@pedrorezende pedrorezende deleted the feat/tx-list-history branch November 14, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants