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

feat(transactor, txmonitor): add tx management #33

Merged
merged 7 commits into from
Apr 25, 2024
Merged

Conversation

aloknerurkar
Copy link
Collaborator

Currently in oracle we use the abi-gen code to issue transactions to our contracts. The transactor pkg provides bind.ContractTransactor implementation which can be used across multiple abi-gen "TransactorSessions" to synchronize nonce management and ordering the txns to geth backend correctly.

With this transactor, we should be able to use the abi-gen code in mev-commit p2p as well. This will reduce a lot of code across the p2p module.

Along with sending transactions, the monitoring of sent transactions is essential. This is existing functionality in mev-commit p2p, but can be used in oracle as well to better monitor the transaction statuses and handle failures/cancellations etc.

The monitor along with the transactor should provide enough functionality required by both oracle and p2p and hence it is better to be placed in the x module.

Base automatically changed from contractevents to main April 25, 2024 17:15
@aloknerurkar aloknerurkar requested a review from Mikelle April 25, 2024 17:43
@aloknerurkar aloknerurkar merged commit b2eff5b into main Apr 25, 2024
5 checks passed
@aloknerurkar aloknerurkar deleted the transactor branch April 25, 2024 19:48
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