oasisprotocol / wallet

Official non-custodial wallet for the Oasis Network.
https://wallet.oasis.io
Apache License 2.0
110 stars 45 forks source link

Display transactions of type StakingAllow and RoothashExecutorCommit #752

Open lukaw3d opened 2 years ago

lukaw3d commented 2 years ago

Current display https://wallet.oasisprotocol.org/account/oasis1qq3833fnmkqe94h0ca6w8qa84sq8pu92qsjmfayj : image

Related code: https://github.com/oasisprotocol/oasis-wallet-web/blob/59751cc512c7e7ba2b725cf8ddabf61ba23533b4/src/app/components/Transaction/index.tsx#L159-L170

lukaw3d commented 2 years ago

Originally posted by @buberdds in https://github.com/oasisprotocol/oasis-wallet-web/issues/958#issuecomment-1206085968

lukaw3d commented 2 years ago

Originally posted by @lukaw3d in https://github.com/oasisprotocol/oasis-wallet-web/issues/958#issuecomment-1206817100

lukaw3d commented 2 years ago

Discussed with Nikola that we could also show amounts with +/- prefix (except for transactions like set allowance)

lukaw3d commented 2 years ago

About roothash.ExecutorCommit:

ExecutorCommit contains events relating to your account. Some transactions (e.g. withdrawing from paratime) SOMETIMES only emit an event, without a standalone transaction. Oasisscan also only indexes Emerald paratime transactions, so events provide additional information. But sometimes they provide duplicated information. And we can’t deduplicate by transaction hash

Depending on how oasisindexer implements things, perhaps this is not an issue there. AFAIK they are indexing events.

Example of transactions after depositing to Emerald (with already sufficient allowance)

We currently show: image

Information we can use in oasisscan:

aefhm commented 2 years ago

Further indexing (path) of events is sufficient then?

Some transactions (e.g. withdrawing from paratime) SOMETIMES only emit an event, without a standalone transaction.

This is not deterministic?

pro-wh commented 2 years ago

not deterministic. it depends on executor behavior

On Mon, Oct 10, 2022, 5:38 PM Xi Zhang @.***> wrote:

Further indexing (path) of events is sufficient then?

Some transactions (e.g. withdrawing from paratime) SOMETIMES only emit an event, without a standalone transaction.

This is not deterministic?

— Reply to this email directly, view it on GitHub https://github.com/oasisprotocol/oasis-wallet-web/issues/752#issuecomment-1273945903, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJDVILRRTYTEIUIIMDRSWELWCSZJ7ANCNFSM5QQVYYQQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Disclaimer: This e-mail and any attachments may contain confidential information. If you are not the intended recipient, any disclosure, copying, distribution or use of any information contained herein is strictly prohibited. If you have received this transmission in error, please immediately notify the sender and destroy the original transmission and any attachments without reading or saving.