optimism icon indicating copy to clipboard operation
optimism copied to clipboard

Boba Gateway - Feature - Add support for pending/history for inbound transfers

Open MitchellUnknown opened this issue 3 years ago • 4 comments

I will test this issue in the coming days, but here is what i got so far. If you interact with the boba gateway from account 1 on metamask and transfer funds to account 2, it appears that you will encounter UI bugs on the second account. I used fast exits, deposits and other stuff on account 1 and the transaction history page showed all the correct history data. However, when i moved my funds over to account 2 it stopped tracking my wallet history and actions. It was weird, because the wallet worked. I succesfully fast exit some of my funds. But the UI gave me no feedback of the pending fast exits etc.. After 3 to 6 minutes it magically worked again. Very strange. It seems when you have interacted with the boba gateway on one account, it glitches when you want to use it on a second account with in the same metamask root seed. Like i said, need to test this more. Could also be my webbrowser cache that glitched.

Boba Gateway - Metamask

MitchellUnknown avatar Sep 11 '21 00:09 MitchellUnknown

Expect history and pending data within not more than 5 minutes, although typically it can be much faster - 8 to 12 seconds.

CAPtheorem avatar Sep 11 '21 04:09 CAPtheorem

Expect history and pending data within not more than 5 minutes, although typically it can be much faster - 8 to 12 seconds.

Multipe accounts still show no data after 12+ hours. I have some problems with my computer/internet connecting to the boba gateway. So I can't tell for sure if this problem only occurs at my setup. I made a screen cap of all of my metamask accounts. If you are not to busy this weekend, you can simply import my private key (12 words) in metamask and check if your device shows the history data correctly through the gateway. Have a nice weekend!

Metamask private key [crazy surprise forum toddler despair talent foster upset bomb term master club]

[Update 11 sept 13:00] I asked a community member to try to recreate my potential bug path. And he confirms that there is indeed a bug, that will not show your history properly on account 2 and 3 (and probably every other account you add).

Metamask accounts

MitchellUnknown avatar Sep 11 '21 09:09 MitchellUnknown

History and pending status is based on the account you are currently set to on MetaMask. If you change to another account (e.g. account 2), then the history and pending status will show the data only for that specific account (account 2). If you have just added that account, and not used it for anything, then the history/pending data sections will be blank. Notably, there is no support for pending/history data on inbound transfers.

For example if you trigger a transfer in one account, and then switch to another account, the pending display in account 2 will not show anything. Once the transfer clears to account 2, and is written into the blockchain, and the state roots are pushed to the L1, then your account balances (in account 2) will increase.

It's a great idea to add pending support for the recipient account, and also support history of inbound transfers, which is also not supported now. This is not a bug (whew - at least not based on first look) - but it's a really important feature which will be added as soon as we can.

CAPtheorem avatar Sep 11 '21 15:09 CAPtheorem

History and pending status is based on the account you are currently set to on MetaMask. If you change to another account (e.g. account 2), then the history and pending status will show the data only for that specific account (account 2). If you have just added that account, and not used it for anything, then the history/pending data sections will be blank. Notably, there is no support for pending/history data on inbound transfers.

For example if you trigger a transfer in one account, and then switch to another account, the pending display in account 2 will not show anything. Once the transfer clears to account 2, and is written into the blockchain, and the state roots are pushed to the L1, then your account balances (in account 2) will increase.

It's a great idea to add pending support for the recipient account, and also support history of inbound transfers, which is also not supported now. This is not a bug (whew - at least not based on first look) - but it's a really important feature which will be added as soon as we can.

Yes, i understand that when you send funds from account 1 to account 2 that your history page on the second account will stay empty. As you said, that feature is not yet available. But the bug I encountered was when i moved my funds from account 1 to account 2, and wanted to ‘fast exit’ my funds on account 2, the fast exit worked like intended, but there was no feedback that the fast exit ever took place. Not in the pending transaction box on the wallet page, and not in the transaction history page. Like you said earlier it takes some time. But in general when you start an exit or deposit, and it doesn’t matter on which account 1,2 of 3, it will always instantly scan for blocks in the transaction history page. So in short, i think when you move your funds internally and try to exit them, the UI glitches at some point. I am not 100% sure, but my guts says there is some kind of error somewhere. But the important thing is, you can exit your funds succesfully. Maybe after 20 sept we could have a deeper look into it. And close the issue afterwards, when we now for sure there is nothing wrong with the UI. Thanks for the respond.

MitchellUnknown avatar Sep 11 '21 15:09 MitchellUnknown