Skip to content

docs: update README.md#5

Merged
igorroncevic merged 7 commits into
mainfrom
docs/readme
Jun 26, 2026
Merged

docs: update README.md#5
igorroncevic merged 7 commits into
mainfrom
docs/readme

Conversation

@igorroncevic

@igorroncevic igorroncevic commented May 22, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds a short project README that explains what Solver7702Delegate is and how solver operators can use it.

Context

Solver7702Delegate lets a solver keep its existing allowlisted solver EOA while auxiliary EOAs provide extra submission nonce lanes through ERC-7702. The README gives GitHub readers the project context and points them to the fuller docs guide.

Out of Scope

This PR only updates README documentation. It does not change contract code, deployment scripts, tests, or driver behavior.

Testing Instructions

Review the README and check that the documented commands and flows match the current repository tooling.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the README.md to include comprehensive documentation on the ERC-7702 delegation mechanism, including its security model and instructions for adding, verifying, and revoking delegations. A technical correction was suggested for the revocation section to clarify that delegating to the zero address does not return the account to an empty code state, but rather points it to the zero address.

Comment thread README.md Outdated
@igorroncevic igorroncevic marked this pull request as ready for review May 25, 2026 09:11
@igorroncevic igorroncevic requested a review from a team May 25, 2026 09:11
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md
Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@igorroncevic igorroncevic requested a review from kaze-cow June 17, 2026 13:10

@kaze-cow kaze-cow left a comment

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.

the documentation still feels unnatural and difficult to read. some parts still feel too verbose.

please read the whole document carefully from beginning to end before submitting for review again 👍

Comment thread README.md
Comment on lines +23 to +24
SolverEOA --> DirectTx --> Settlement
AuxEOAs --> DelegatedTx --> DelegatedSolver --> TargetCall --> Settlement

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.

this diagram doesn't do a very good job at reinforcing the fact that the Solver EOA is ultimately what is being called by the AuxEOA (which, in turn, points its code delegation to this deployed contract). A person looking at this diagram could ceivably make the mistake in believing that AuxEOA is calling something separate.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I had the same thoughts when I saw it

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.

Brought in the same diagram from here: cowprotocol/docs#627 (comment)

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
@igorroncevic igorroncevic requested review from a team and kaze-cow June 18, 2026 11:15

@anxolin anxolin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Soft approve

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md
Comment on lines +23 to +24
SolverEOA --> DirectTx --> Settlement
AuxEOAs --> DelegatedTx --> DelegatedSolver --> TargetCall --> Settlement

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I had the same thoughts when I saw it

Comment thread README.md
Comment thread README.md

### Add or replace delegation

After deployment, the solver EOA must authorize the delegate address.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should we mention, a EAO can only have one delegation (as per https://eips.ethereum.org/EIPS/eip-7702).

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.

I think that's kind of implied

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It's a nit, its implicit because we assume people really understand the details of ERC-7702. Because the title is "Add or replace delegation" I thought it doesn't harm to be explicit about this allowing only one delegation to a contract. Alternativelly or in addition, you could replace the word "Add" by "Set"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Also, there's some refeferences in the README about ERC-7702, I think is a nice detail to make them a link to the ERC-7702 in Ethereu.org. Lets the reader get the "implied" context easier. Specially, you name it in the first phrase in the README

@igorroncevic igorroncevic requested a review from anxolin June 25, 2026 18:51
@anxolin

anxolin commented Jun 26, 2026

Copy link
Copy Markdown

Let's get merged this, solver are already integrating and should help.

We can apply enhancements to make it more clear, as we see them fit based on the experience onboarding them.

@harisang let us know if this is good enough or we should improve anything

@anxolin

anxolin commented Jun 26, 2026

Copy link
Copy Markdown

@igorroncevic btw, name the PR somehing less generic. It should be almost obvious what changes we expect by the title. Github will default also to use the name of the PR as the commit message, which makes it even more important.

@igorroncevic

Copy link
Copy Markdown
Collaborator Author

@igorroncevic btw, name the PR somehing less generic. It should be almost obvious what changes we expect by the title. Github will default also to use the name of the PR as the commit message, which makes it even more important.

The PR is updating README.md, so I think it's pretty adequate. Do you have any recommendations? Regardless, I think it's a pretty minor thing.

@igorroncevic igorroncevic enabled auto-merge (squash) June 26, 2026 11:28

@kaze-cow kaze-cow left a comment

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.

Unblocking myself, other reviews seem adequate.

@kaze-cow kaze-cow self-requested a review June 26, 2026 13:09
@igorroncevic igorroncevic merged commit 331b8cb into main Jun 26, 2026
6 checks passed
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.

3 participants