-
Notifications
You must be signed in to change notification settings - Fork 216
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
Carrier-tx extension #47
Open
lmanini
wants to merge
9
commits into
flashbots:master
Choose a base branch
from
lmanini:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…lashbots-bundle � Conflicts: � package-lock.json
kristofgazso
suggested changes
Aug 23, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work so far, some things to patch up, rewrite, but overall it looks great!
the comments are a bit too verbose
…s a list of its values and RLP encodes such list.
…t and still go through
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey all, creating my first PR for the repo: finalized the first version of the carrier-tx extension for the provider.
With these changes, users will be able to use the
publish
method to submit a bundle through the public mempool, which can only be decrypted by a target validator, chosen by the user.Please note that currently:
publish()
only returns aPromise<TransactionResponse>
for the carrier transaction: I would like for this method to also return some details about the bundle, but I'm not sure how to implement this.publish()
requires the user to pass it, among other things, a potentially emptyTransactionRequest
to use as the carrier transaction: this object will be populated with default values if any of the following fields ['to', 'value', 'gasLimit', 'gasPrice', 'nonce'] are missing (I would love to be able to calculate the exact gasLimit for the carrier transaction, but found discording resources online noting different gas costs for every non-zero byte in a transaction's data field, anyone know what we could use?)MEV Prefix
which I have set to0x0123
as a placeholder, until a proper prefix is agreed upon.This extension has also been tested with a small script and I'm able to fully recreate the FlashbotsBundle passed as an argument to the
publish()
method. Will not include it in this PR as I feel it doesn't regard this repo, will be happy to share the script if anyone wants to try for themselves.I'm also attaching a small file to showcase how one would use the extension.
carrierTx-demo.txt
Please let me know if any aspect of this is not clear to you, any doubts you may have, or if you would like further explanation on any aspect of this extension.
PS: all names have been selected solely by me, will gladly change them if we find better alternatives!