-
Notifications
You must be signed in to change notification settings - Fork 6
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
Display decoded transaction data #102
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.
I don't really like the approach of negative amounts and then re-negating it again in the frontend. I'm afraid that this complexity will bite us in the future. At the very least it should be documented on the function decompose_transaction
so that a caller knows what to expect.
What was the particular reason you opted for removing TransactionElements
and using negative amounts?
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.
ACK for using constants for the two assets we care about.
Made some suggestions for how to optimize the TS code.
312cbbb
to
8bc6b8c
Compare
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
8bc6b8c
to
00d076a
Compare
Also: Fixes #108. Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
00d076a
to
02f89a8
Compare
I decided not to integrate with nigiri-chopsticks' or esplora's registry for the purpose of identifying the assets in the transaction because I was struggling to make it work (esplora's returns multiple pages, nigiri-chopsticks' has a different format (without precision), talking to nigiri-chopsticks from the frontend was not working). I'm almost certain it is not worth integrating with nigiri-chopsticks, but we may want to detect when we're in production and figure out how to consume esplora's registry instead of depending on the local registry.
My React is very rusty, so there's probably much nicer ways of doing the same thing.
I am not too happy with the number of things that are being done by the frontend, so I would consider moving almost all the logic into the wallet and changing the API to be something very specific to what we need.
Resolves #95