pendulum-chain / pendulum-squids

The subsquid squids we use for Pendulum/Amplitude/Foucoco.
GNU General Public License v3.0
0 stars 0 forks source link

Handle issue/redeem requests in indexer #66

Open annatekl opened 3 weeks ago

annatekl commented 3 weeks ago

Context

There is a problem with the transaction times displayed in "Spacewalk > Transfers" on the Pendulum portal. The times change every 10-12 seconds due to the automatic table refresh with each new block in the chain. The estimateRequestCreationTime function estimates the transaction time based on a 12-second interval between blocks, but since blocks do not appear exactly every 12 seconds, the estimated transaction time fluctuates.

Issue:

Requirements

annatekl commented 3 weeks ago

@ebma is there any technical details missing?

ebma commented 2 weeks ago

The last step, ie. 'Modify the portal to use this new data from the indexer for consistent timestamps.' would then need to be happen as a follow-up to this task and is actually not something we would do as part of this ticket. But the rest looks good. Since there already is a ticket for this in the portal repository, please remove that last item from the 'Requirements' section of this ticket and add a link to the portal ticket as a zenhub dependency @annatekl.

The rest looks good 👍

annatekl commented 1 week ago

@ebma what ticket on the portal are you referring too? the bug ticket?

ebma commented 1 week ago

Yes, this one https://github.com/pendulum-chain/portal/issues/447.

prayagd commented 1 week ago

Hey team! Please add your planning poker estimate with Zenhub @TorstenStueber @gianfra-t @ebma @bogdanS98

TorstenStueber commented 1 week ago

Just to make sure there are no misunderstanding: how do we define the "the creation timestamp of requests"? I assume it is the timestamp of the block that contains the request transaction?

ebma commented 1 week ago

Yes, let's use that.