Skip to content

Version Packages#2284

Merged
smartcontracts merged 3 commits intodevelopfrom
changeset-release/master
Mar 8, 2022
Merged

Version Packages#2284
smartcontracts merged 3 commits intodevelopfrom
changeset-release/master

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Mar 8, 2022

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

@eth-optimism/sdk@1.0.0

Major Changes

  • 84f63c4: Update README and bump SDK to 1.0.0

Patch Changes

  • 42227d6: Fix typo in constructor docstring

@eth-optimism/message-relayer@0.3.2

Patch Changes

  • Updated dependencies [42227d6]
  • Updated dependencies [84f63c4]
    • @eth-optimism/sdk@1.0.0

@eth-optimism/replica-healthcheck@0.3.11

Patch Changes

  • Updated dependencies [42227d6]
  • Updated dependencies [84f63c4]
    • @eth-optimism/sdk@1.0.0

@smartcontracts smartcontracts changed the base branch from master to develop March 8, 2022 00:30
@smartcontracts smartcontracts merged commit 64d886f into develop Mar 8, 2022
@smartcontracts smartcontracts deleted the changeset-release/master branch March 8, 2022 00:31
theochap added a commit that referenced this pull request Dec 10, 2025
…ait (#2284)

## Description

This PR builds up on the changes introduced by #2271 to simplify/unify
further the structure of the node service crates. In particular this PR:

- Adds two associated types to the `NodeActor` trait. `OutboundData` and
`State` which are used to specify a new build method for the actor that
aims to replace single calls of the `new` methods. The build method has
the following signature:
```
fn build(initial_state: Self::State) -> (Self::OutboundData, Self);
```

- Takes out the output channels from the `ActorContext` back into the
`Actor` struct. This allows to drastically reduce the number of
arguments to provide to the `build` methods and remove the need to
define channels inside the implementation of the `RollupNodeService`
trait. Instead this is done inside the `NodeActor` themselves
- Add an associated type to the `RollupNodeService` for each actor and
call the build methods from the associated types. That will make it much
easier to have a modular architecture where we can easily swap out
components if needed

## Follow-ups

Most of the heavy lifting is done in this PR, but I would like to do
some quick follow-ups to refactor/simplify/improve the inner structure
of actors even further.
We should also think about which types we want to expose to the public
api and try to cut down the number of public exports in our libraries.
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