Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POC : Request results pattern #131

Closed
wants to merge 2 commits into from
Closed

Conversation

dmarzzz
Copy link
Member

@dmarzzz dmarzzz commented Dec 16, 2023

📝 Summary

This is a simple PoC of a logging pattern we could use to help display more information in the block explorer to help guide users on their SUAPPs internals.

We could then alter the block explorer to something like this (don't read into the screenshot too much, I simply googled "networking UI" and photo shopped it into a screen shot of the explorer)

Screenshot 2023-12-16 at 2 15 25 PM (2)

📚 References


  • I have seen and agree to CONTRIBUTING.md

type SubmissionResults struct {
StatusCode uint64
Destination string
RoundTripTime *big.Int
Copy link
Contributor

@metachris metachris Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of bigInt complexity, perhaps go for uint64 in millis? or alternatively record startTimeUnix and endTimeUnix 🤔

also the unit here should be self-apparent

Copy link
Member Author

@dmarzzz dmarzzz Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally, great suggestions! just threw together something quick to illustrate

@dmarzzz
Copy link
Member Author

dmarzzz commented Jan 7, 2024

using #109 we could actually just automatically leak this event on precompile calls. This of course forces the dapp into it. But the info leak is really more of a concern for the kettle as you can triangulate it's location by this (maybe not a bad thing!)

@dmarzzz dmarzzz changed the title Request results pattern POC : Request results pattern Jan 7, 2024
@dmarzzz dmarzzz closed this Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants