Skip to content

feat: bid expression changes#766

Merged
aloknerurkar merged 24 commits intomainfrom
bid-expression
Sep 1, 2025
Merged

feat: bid expression changes#766
aloknerurkar merged 24 commits intomainfrom
bid-expression

Conversation

@aloknerurkar
Copy link
Copy Markdown
Collaborator

Describe your changes

  • Changes to enable bid expressions starting with position constraints for transactions in a block.
  • Updating oracle to check the expressions to determine reward/slash.
  • Protocol bump required

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

Comment thread contracts/contracts/core/PreconfManager.sol
Comment thread oracle/pkg/updater/updater.go Outdated
Comment thread oracle/pkg/updater/updater.go Outdated
hex""
);

// _testCommitmentAliceBob = TestCommitment(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should remove this if intentional

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@owen-eth We also need to adjust the tests in this file to have some sort of dummy options.

Comment thread oracle/pkg/store/store.go
Comment thread p2p/rpc/bidderapi/v1/bidderapi.proto
Comment thread p2p/pkg/rpc/provider/service.go
hashStr := hex.EncodeToString(hash)
// This hash is sourced from the solidity contract to ensure interoperability
expHash := "8d1f669e1d55329ba0dc133fba063c06c8ae146b8e815732f9951930c807ff7f"
expHash := "a5b1326e41e48fb9d718700c97771c3518c6127140e53c123431476025066f09"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where does this hash come from?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

So this is actually from the contract tests. @owen-eth This needs to be changed as well.

There is a test in the PreconfManager contract which should produce the same values as this test.
https://github.com/primev/mev-commit/blob/main/contracts/test/core/PreconfManagerTest.sol#L87

I tried changing these values but other tests started failing.

Comment thread oracle/pkg/updater/updater.go
Comment thread contracts/contracts/core/PreconfManager.sol
Comment thread oracle/pkg/updater/updater.go Outdated
Comment thread oracle/pkg/updater/updater.go Outdated
Comment thread oracle/pkg/updater/updater.go Outdated
Copy link
Copy Markdown
Contributor

@chrmatt chrmatt left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Comment thread oracle/pkg/updater/updater.go Outdated
@aloknerurkar aloknerurkar merged commit 5a27e1b into main Sep 1, 2025
8 of 9 checks passed
@aloknerurkar aloknerurkar deleted the bid-expression branch September 1, 2025 13:51
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.

4 participants