Skip to content

feat: preconfirmation flow tracking#689

Merged
aloknerurkar merged 14 commits intomainfrom
preconf-tracking
May 30, 2025
Merged

feat: preconfirmation flow tracking#689
aloknerurkar merged 14 commits intomainfrom
preconf-tracking

Conversation

@aloknerurkar
Copy link
Copy Markdown
Collaborator

@aloknerurkar aloknerurkar commented May 26, 2025

Describe your changes

The PR improves the tracking of the entire flow of bids and commitments for both the bidder and provider nodes. The nodes will now also monitor oracle events to update settlement status on chain. Also the node will now store some amount of block history with the bid/commitment data.

The commitment status is added as a type in the codebase. The status can be one of following:

  • Pending: When it is first created in the storage.
  • Stored: When the encrypted commitment is successfully stored on chain.
  • Opened: When a winning commitment is opened.
  • Settled: When the oracle settles it.
  • Slashed: If its a slash
  • Failed: The commitment is deemed failed if the on-chain transaction was not successful.

The node will track these better with more event tracking and transaction status monitoring. This information will be exposed to both bidders and providers. The structure will be slightly different. The bidders will see the information based on the bids they make with all the commitments they received for that bid. For the providers, each commitment is unique to they will be able to see all the commitments they have made and their status.

Issue ticket number and link

Fixes # (issue)

Checklist before requesting a review

  • I have added tests that prove my fix is effective or that my feature works
  • I have made corresponding changes to the documentation

@aloknerurkar aloknerurkar marked this pull request as ready for review May 28, 2025 08:34
@aloknerurkar aloknerurkar requested review from Mikelle and shaspitz May 28, 2025 08:34
Comment thread p2p/pkg/preconfirmation/store/store.go Outdated
@aloknerurkar aloknerurkar merged commit 8b43d12 into main May 30, 2025
5 checks passed
@aloknerurkar aloknerurkar deleted the preconf-tracking branch May 30, 2025 06:47
aloknerurkar added a commit that referenced this pull request Aug 5, 2025
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