Example of monitoring L2 auction for winning bids, then submitting bundles.
-
Clone the Repository:
git clone <repository_url>
-
Install Poetry:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3
-
Install Dependencies:
poetry install
Before running the script, ensure to set up the following environment variables:
L2_RPC
: RPC endpoint for connecting to Layer 2.BETA_BUNDLE_RPC
: RPC endpoint for submitting beta bundles.AUCTIONEER
: Address of the auctioneer contract.SETTLEMENT
: Address of the settlement contract.BIDDER
: Address of the bidder contract.CALLER
: Ethereum address of the caller.PRIVATE_KEY
: Private key associated with the caller's address.
poetry run beta_bundles_py/main.py
- Event Handling: Monitors Ethereum events for auction settlements.
- Bundle Submission: Submits bundles upon detecting settled auctions.
- Transaction Signing: Signs transactions using the provided private key.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.