Skip to content

changeset: cleanup packages#2271

Merged
tynes merged 2 commits intodevelopfrom
changesets-packages-cleanup
Mar 7, 2022
Merged

changeset: cleanup packages#2271
tynes merged 2 commits intodevelopfrom
changesets-packages-cleanup

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Mar 7, 2022

Description

This commit adds all packages in the go directory
to the changesets packages so that they don't need
to be added individually. It also removes specs since
that directory no longer exists.

This commit adds all packages in the `go` directory
to the changesets packages so that they don't need
to be added individually. It also removes `specs` since
that directory no longer exists.
@changeset-bot
Copy link

changeset-bot bot commented Mar 7, 2022

⚠️ No Changeset found

Latest commit: d4c606e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@tynes tynes requested review from mslipper and smartcontracts March 7, 2022 16:41
Copy link
Collaborator

@mslipper mslipper left a comment

Choose a reason for hiding this comment

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

For some reason it's running indexer unit tests in CI now? Those don't exist yet, so it's throwing an error.

@tynes
Copy link
Contributor Author

tynes commented Mar 7, 2022

For some reason it's running indexer unit tests in CI now? Those don't exist yet, so it's throwing an error.

This has been fixed, go/indexer/package.json defined a .scripts.test which I removed

@tynes tynes merged commit 29799d9 into develop Mar 7, 2022
@tynes tynes deleted the changesets-packages-cleanup branch March 7, 2022 20:16
theochap added a commit that referenced this pull request Dec 10, 2025
…he actor (#2271)

## Description

First attempt to decouple channel handling from the individual actors.
This PR merely refactors the `NodeActor` trait to add a `Context`
associated type that gets passed to the `start` method in the trait.

I think from here we can make the structure simpler by:
- Refactoring the `process` private methods into separate methods. That
should remove the extra arguments for the `EngineActor`
- Abstracting the actor building process behind the `new` methods of the
individual actors. In particular, split up the context using
inbound/outbound associated types and define channels inside the actor's
`new` methods.
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.
theochap added a commit that referenced this pull request Jan 14, 2026
…ait (op-rs/kona#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.

3 participants