blockscout / frontend

Front-end application for Blockscout
https://blockscout.com
GNU General Public License v3.0
177 stars 472 forks source link

Zilliqa: Scilla transactions and logs #2398

Closed fedor-ivn closed 16 hours ago

fedor-ivn commented 1 week ago

In Zilliqa, certain transactions are designated as Scilla transactions. At the APIv2 level, they are identified by the zilliqa.is_scilla field. When this field is set to true, the transaction is recognized as a Scilla transaction.

The only customization required for Scilla transactions at this stage is to decode the Raw input as UTF-8 by default, instead of hex. This decoding should also be applied to the log data by default (excluding topics).

Image

fedor-ivn commented 1 week ago

Example of Scilla transaction with input: UI and APIv2

There are no Scilla transactions with logs yet (this is because of the bug in Zilliqa node)

tom2drum commented 6 days ago

To implement the necessary changes in the Logs tab on the Address page, we need to make additional modifications on the API side. We should consider adding the zilliqa.is_scilla flag to the Address info endpoint response or storing it within the Log model.