Skip to content

PoC Optimism TX auction #71

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

Draft
wants to merge 23 commits into
base: bump-alloy-1.0
Choose a base branch
from
Draft

PoC Optimism TX auction #71

wants to merge 23 commits into from

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Jun 25, 2025

This pull request introduces a new example project, optimism-tx-auction, which includes Solidity contracts, Rust client code, and supporting configurations. The changes add functionality for submitting bids to an auction and retrieving bid data using a Rust client. Key additions include the Solidity contract, Rust bindings and client, and a script for submitting transactions.

New Example Project: optimism-tx-auction

Submodule and Project Setup:

  • .gitmodules: Added a new submodule for forge-std under the optimism-tx-auction project.
  • Cargo.toml: Included examples/optimism-tx-auction in the list of project members.
  • examples/optimism-tx-auction/Cargo.toml: Defined the Rust package for optimism-tx-auction with dependencies such as pod-sdk, alloy, and tokio.

Solidity Contract:

Rust Client for Auction:

Supporting Files and Scripts:

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new optimism-tx-auction example demonstrating on-chain auction bids via a Solidity contract and Rust client.

  • Introduces Auction.sol with submitBid and BidSubmitted event.
  • Implements AuctionClient in Rust for submitting and retrieving bids.
  • Provides workspace configuration, Foundry settings, and a helper script for transaction submission.

Reviewed Changes

Copilot reviewed 11 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
examples/optimism-tx-auction/submit_txs.sh Bash script to loop through private keys and submit transactions
examples/optimism-tx-auction/src/lib.rs Declares bindings and client modules
examples/optimism-tx-auction/src/client.rs Implements AuctionClient with log filtering and decoding
examples/optimism-tx-auction/src/bindings.rs Generates Rust bindings for the Solidity contract via alloy
examples/optimism-tx-auction/contract/src/Auction.sol Defines the Auction contract and submitBid logic
examples/optimism-tx-auction/contract/lib/forge-std Adds forge-std submodule reference
examples/optimism-tx-auction/contract/foundry.toml Configures Foundry for compilation and formatting
examples/optimism-tx-auction/contract/.gitignore Sets gitignore rules for contract build artifacts
examples/optimism-tx-auction/Cargo.toml Defines the Rust package and dependencies
Cargo.toml Registers the new example in workspace members
.gitmodules Adds forge-std submodule for the Solidity project
Comments suppressed due to low confidence (1)

examples/optimism-tx-auction/src/client.rs:51

  • The variable name 'comittee' is misspelled. Rename it to 'committee' for clarity and consistency.
        let comittee = provider.get_committee().await?;

@poszu poszu force-pushed the optimism-tx-auction branch 2 times, most recently from 505ac71 to 3c30b7b Compare July 23, 2025 10:38
@poszu poszu force-pushed the optimism-tx-auction branch from 3c30b7b to c0a730a Compare July 23, 2025 10:39
@poszu poszu force-pushed the optimism-tx-auction branch from 9c6b33b to e912a7b Compare July 23, 2025 12:13
@poszu poszu force-pushed the bump-alloy-1.0 branch 3 times, most recently from 5ab3fe1 to 96dee91 Compare July 30, 2025 16:44
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.

1 participant