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

[PT: 2] FPS Import - Template Proposals #479

Merged
merged 59 commits into from
Jan 27, 2025

Conversation

ElliotFriedman
Copy link
Contributor

@ElliotFriedman ElliotFriedman commented Jan 23, 2025

This PR adds fps example templates, cleans up the multisig task file, update docs, and adds error handling to the multisig and AddressRegistry contract to give more verbose errors to task developers if a config file they have provided is not able to be read in or parsed.

Tests

Added tests to CI that run all of the new templates against mainnet.

Metadata

Should close:

ElliotFriedman and others added 25 commits January 22, 2025 17:23
Signed-off-by: Elliot <[email protected]>

add example task template config files

Signed-off-by: Elliot <[email protected]>

add fps example templates

Signed-off-by: Elliot <[email protected]>

remove name and description, set task nonce to current multisig nonce

Signed-off-by: Elliot <[email protected]>

fmt and add TODO to switch to manual nonce later

Signed-off-by: Elliot <[email protected]>

templates

Signed-off-by: Elliot <[email protected]>

remove safeNonce from mock network config

Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
Signed-off-by: Elliot <[email protected]>
@ElliotFriedman ElliotFriedman marked this pull request as ready for review January 23, 2025 21:49
@ElliotFriedman ElliotFriedman requested review from a team as code owners January 23, 2025 21:49
Signed-off-by: Elliot <[email protected]>
Copy link
Contributor

@blmalone blmalone left a comment

Choose a reason for hiding this comment

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

first pass

src/fps/README.md Outdated Show resolved Hide resolved
src/fps/README.md Outdated Show resolved Hide resolved
src/fps/example/task-00/opmainnetConfig.toml Outdated Show resolved Hide resolved
test/mock/networkConfig1.toml Outdated Show resolved Hide resolved
src/fps/task/MultisigTask.sol Outdated Show resolved Hide resolved
Copy link
Contributor

@blmalone blmalone left a comment

Choose a reason for hiding this comment

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

LGTM

@blmalone blmalone added this pull request to the merge queue Jan 27, 2025
Merged via the queue into ethereum-optimism:main with commit 5f18e8d Jan 27, 2025
15 checks passed
prateek105 added a commit to solidity-labs-io/superchain-ops that referenced this pull request Jan 27, 2025
* remove: name and description from task config

Signed-off-by: Elliot <[email protected]>

add example task template config files

Signed-off-by: Elliot <[email protected]>

add fps example templates

Signed-off-by: Elliot <[email protected]>

remove name and description, set task nonce to current multisig nonce

Signed-off-by: Elliot <[email protected]>

fmt and add TODO to switch to manual nonce later

Signed-off-by: Elliot <[email protected]>

templates

Signed-off-by: Elliot <[email protected]>

remove safeNonce from mock network config

Signed-off-by: Elliot <[email protected]>

* checkpoint

Signed-off-by: Elliot <[email protected]>

* remove isNested flag from toml config file

Signed-off-by: Elliot <[email protected]>

* fmt

Signed-off-by: Elliot <[email protected]>

* fix is nested safe logic

* fix task01

* add Task02

* refactor _getDataToSign function

Signed-off-by: Elliot <[email protected]>

* add: gas template docs

Signed-off-by: Elliot <[email protected]>

* add: template examples to run

Signed-off-by: Elliot <[email protected]>

* add: error handle parsing l2 chain configs

Signed-off-by: Elliot <[email protected]>

* fmt

Signed-off-by: Elliot <[email protected]>

* remove unused variable name

Signed-off-by: Elliot <[email protected]>

* error handle reading in and parsing task config file

Signed-off-by: Elliot <[email protected]>

* add breakdown of calldata difference for signers

Signed-off-by: Elliot <[email protected]>

* remove setting scalars to simplify example task

Signed-off-by: Elliot <[email protected]>

* add duplicate call structure of task 020 in existing tooling

Signed-off-by: Elliot <[email protected]>

* remove setting gas scalars from gas config template

Signed-off-by: Elliot <[email protected]>

* note on commenting out failing check and link to diffchecker

Signed-off-by: Elliot <[email protected]>

* add: task config tests

Signed-off-by: Elliot <[email protected]>

* add forge build before running template

Signed-off-by: Elliot <[email protected]>

* update docs to only include gas limits and not gas scalars

Signed-off-by: Elliot <[email protected]>

* remove template ci runs

Signed-off-by: Elliot <[email protected]>

* Update src/fps/FPS.md

Co-authored-by: blaine <[email protected]>

* Update src/fps/FPS.md

Co-authored-by: blaine <[email protected]>

* Update src/fps/FPS.md

* fps -> new task simulation tooling

Signed-off-by: Elliot <[email protected]>

* remove unused template files

Signed-off-by: Elliot <[email protected]>

* naming: fps.md -> readme.md

Signed-off-by: Elliot <[email protected]>

* naming: move away from fps

Signed-off-by: Elliot <[email protected]>

* use op types, remove inlined interfaces

Signed-off-by: Elliot <[email protected]>

* update readme for running tasks

Signed-off-by: Elliot <[email protected]>

* update: cleanup, make MultisigTask a generic template

Signed-off-by: Elliot <[email protected]>

* fix test

Signed-off-by: Elliot <[email protected]>

* delete: task config

Signed-off-by: Elliot <[email protected]>

* update based on PR feedback, remove taskConfig.toml fields, and safeNonce and isNestedSafe

Signed-off-by: Elliot <[email protected]>

* remove unused mock network configs

Signed-off-by: Elliot <[email protected]>

* remove opmainnetConfig.toml

Signed-off-by: Elliot <[email protected]>

* add op set gas limit config

Signed-off-by: Elliot <[email protected]>

* update command to use new run function

Signed-off-by: Elliot <[email protected]>

* update command to only have mainnet config toml file

Signed-off-by: Elliot <[email protected]>

* naming: networkConfigFilePath -> taskConfigFilePath

Signed-off-by: Elliot <[email protected]>

* fmt

Signed-off-by: Elliot <[email protected]>

* natspec, taskStorageWrites -> _taskStorageWrites

Signed-off-by: Elliot <[email protected]>

* fix test

Signed-off-by: Elliot <[email protected]>

* add additional docs for address registry

Signed-off-by: Elliot <[email protected]>

* fix: nested multisig issue

Signed-off-by: Elliot <[email protected]>

* add op gas config command

Signed-off-by: Elliot <[email protected]>

* add task tests

* Revert "add task tests"

This reverts commit 70ed74f.

* fix: nonce for nested safes use their own nonce and not parent

Signed-off-by: Elliot <[email protected]>

* update natspec proposal -> task

Signed-off-by: Elliot <[email protected]>

---------

Signed-off-by: Elliot <[email protected]>
Co-authored-by: prateek <[email protected]>
Co-authored-by: blaine <[email protected]>
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