-
Notifications
You must be signed in to change notification settings - Fork 20
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(frontend): add IC transactions to unified list util #3568
feat(frontend): add IC transactions to unified list util #3568
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTm, thx
@@ -95,8 +106,24 @@ export const mapAllTransactionsUi = ({ | |||
} | |||
|
|||
if (isNetworkIdICP(networkId)) { | |||
// TODO: Implement ICP transactions | |||
return acc; | |||
// TODO: Implement ckBTC and ckETH pending transactions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsolicited feedback: the more you provide PR for this feature, the more I think it's unrealisitc in terms of performance but, let's see.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes... the final version is not exactly good; we should really start thinking about caching
|
||
export const createMockIcTransactionsUi = (n: number): IcTransactionUi[] => | ||
Array.from({ length: n }, () => ({ | ||
id: Math.random().toString(36).substring(7), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crypto.randomUUID()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done!
# Motivation After PR #3568, we add the IC transactions in the UI.
Motivation
Following PR #3547 , we add the IC transactions to the util that unifies the transactions.
Tests
Provided additional tests.