ccdexplorer / ccdexplorer-site

Apache License 2.0
2 stars 5 forks source link

Internal Server Error when obtaining a report #7

Open ed-umb opened 3 months ago

ed-umb commented 3 months ago

Describe the bug When trying to obtain a report for module 170e8b0869ba6cf1f1541d9214af65b1a8aa40c6e73dde3f35e99b8c6c6590f4, I'm getting a "Server Internal Error" message,.

To Reproduce Pre-requisites:

  1. Log in CCDExplorer

Steps to reproduce the behavior:

  1. Go to '.CCDExplorer Reporting Page'
  2. In the module list, select module: 170e | umbrella_feeds
  3. Select 1M as Reporting Period.
  4. Click on Generate Report button
  5. Internal Server Error gets displayed

Expected behavior A report is obtained with the transaction of the module for the last month.

Screenshots

image

Additional context I need to obtain a transaction report for the contract and I'm exploring whether the data included in the report generated by the CCDExplorer is what I need.

sderuiter commented 3 months ago

Thank you. It appears that in the backend it hasn't registered any contracts for this module. Will investigate.

sderuiter commented 3 months ago

Can you point me to the tx hash that initializes a contract on this module?

ed-umb commented 3 months ago

Hello. This is the tx hash: 0a1141dd7a65e77e1c84507d87657d9f6ebefa7195315f9c65acff5f5774017a

sderuiter commented 3 months ago

Hello. This is the tx hash: 0a1141dd7a65e77e1c84507d87657d9f6ebefa7195315f9c65acff5f5774017a

This is a tx from a different module?

In either case, I've added some logic to prevent this internal server error from happening. Now it shows for module 170e8b0869ba6cf1f1541d9214af65b1a8aa40c6e73dde3f35e99b8c6c6590f4 that are no results found, as is the case as this particular module does not have any instances created?

ed-umb commented 3 months ago

Excuse me, I''m new to Concordium so a bit lost here.

This is the smart contract (instance I believe): 9459, 0

And I also understand the module of the instance was updated with this transaction

sderuiter commented 3 months ago

CCDExplorer tracks instances on its original module. The module that you mentioned doesn't have any instances. If you want to see Umbrella activity, I think you need to select the staking banks modules?

Screenshot 2024-07-01 at 20 39 43
ed-umb commented 3 months ago

Do you mean that in this case that the module has been update for the umbrella_feeds instance, it can't be tracked using CCDExplorer? Activity to track is definitely in the umbrella_feeds contract. And there are transactions executed by it..

sderuiter commented 3 months ago

You should definitely be able to track these modules and instances. Let me check once more tomorrow.

sderuiter commented 3 months ago

Excuse me, I''m new to Concordium so a bit lost here.

This is the smart contract (instance I believe): 9459, 0

And I also understand the module of the instance was updated with this transaction

This contract (9549) is instantiated from module efc4ea2b19330518131b67b0b66ac6f628438bfd740d694fcf64a13412bf327b. If you were to search for this module on the reporting page, you will get back results?

ed-umb commented 3 months ago

In CCDExplorer I'm able to see the instance associated to the aforementioned module image

But when comparing the data with CCDScan, I can see the instance was delinked from the module image

If I select the smart contract related to the original module in CCDExplorer, it does display data: image

BTW... Is this the info I get from the smart contract? I was looking for a detailed transaction report.

sderuiter commented 3 months ago

This page shows (on the txs tab) all txs for this contract. If this is not sufficient, can you detail what you are expecting?

ed-umb commented 3 months ago

I need to obtain a report of all the transactions executed during a defined period of time (eg: June),. The data I need is the date of teh tx (in the page you provided appears teh age), the block of the tx, function name, sender and tx costs.

Almost all data required is there in the page you shared, but the format makes it difficult to copy and paste it as a report. Additionally to the fact that I need many transactions, so doing it manually will be tedious and error-prone.

Do you know if something like thsi exists for Concordium?.

sderuiter commented 3 months ago

I think you would be best served by using the api. This is an endpoint to get tx information you need. I would need to build an endpoint to get tx hashes for a contract. Those two together would get you what you need, right?

ed-umb commented 3 months ago

Hi. I checked the api documentation and one thing I'm not sure is how to get all the transactions for a particular smart contract withing a range of blocks or time. Should I scan all the blocks to identify transactions?

I was hoping to have that information in a predefined report, but as per our conversation, this report is not yet in place, correct?

sderuiter commented 3 months ago

Correct. As I stated in the previous comment, I need to build this before it becomes available, but only building if it has actual use.