You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Front-end wants to show the time that was spent to execute each order. More specifically, this is required in the /account/<account_address> API.
Suggested solution
Currently, there is no persistent data in the DB. timestamp from the order_events table can't be used since the table gets cleaned up periodically. Although the order_execution table contains a block number, getting its timestamp requires access to an archive RPC node, which might not be the case for some of the chains.
At first glance, the easiest way would be to introduce a new timestamp column in the order_execution table. This can be backfilled using a script with archive nodes for each chain. Maybe, Tenderly can be utilized on networks without archive node access.
Alternatives considered
To be discussed.
Acceptance criteria
/account/<account_address> returns a response with each order execution timestamp. Since the order creation timestamp is already in place, that is only a matter of the front-end team to calculate the order execution time.
The text was updated successfully, but these errors were encountered:
Problem
Front-end wants to show the time that was spent to execute each order. More specifically, this is required in the
/account/<account_address>
API.Suggested solution
Currently, there is no persistent data in the DB.
timestamp
from theorder_events
table can't be used since the table gets cleaned up periodically. Although theorder_execution
table contains a block number, getting its timestamp requires access to an archive RPC node, which might not be the case for some of the chains.At first glance, the easiest way would be to introduce a new
timestamp
column in theorder_execution
table. This can be backfilled using a script with archive nodes for each chain. Maybe, Tenderly can be utilized on networks without archive node access.Alternatives considered
To be discussed.
Acceptance criteria
/account/<account_address>
returns a response with each order execution timestamp. Since the order creation timestamp is already in place, that is only a matter of the front-end team to calculate the order execution time.The text was updated successfully, but these errors were encountered: