Skip to content

feat: add solana worker type#153

Merged
ecPablo merged 8 commits into
developfrom
ecpablo/add-solana-worker-type
May 27, 2025
Merged

feat: add solana worker type#153
ecPablo merged 8 commits into
developfrom
ecpablo/add-solana-worker-type

Conversation

@ecPablo
Copy link
Copy Markdown
Contributor

@ecPablo ecPablo commented May 23, 2025

  • renames the EVM worker in solana
  • Adds the new Solana worker type
  • Adds the partial implementation of the Listen() function
  • Extracts the Worker into an interface so it can be used from the start CLI command.

@ecPablo ecPablo marked this pull request as ready for review May 23, 2025 20:15
@ecPablo ecPablo requested review from a team as code owners May 23, 2025 20:15
Comment thread go.mod Outdated
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.

[noaction]
I don't know if the package structure allows it but, if we could place the EVM specific code in pkg/evm or pkg/timelock/evm subpackage, it would make the code base easier to navigate.

But we might run into import cycles, because the timelock worker implementation is not properly layered.

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.

[noaction]
another interesting refactor to consider: separating the worker instance from the listener service.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes good point, might be worth adding them as medium priority ticket to the maintainance epic

Comment thread pkg/timelock/worker_solana.go Outdated
Comment thread pkg/timelock/worker_solana.go Outdated
Comment thread pkg/timelock/worker_solana.go Outdated
Comment thread pkg/timelock/worker_solana.go Outdated
Comment thread pkg/timelock/worker_solana_test.go
Comment thread tests/integration/timelock_test.go
pollSize: 1,
dryRun: false,
errContains: "parse \"://bad\"",
want: func(t *testing.T, w *WorkerSolana, err error) {
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.

thanks. Just a tip for the future: a helper such as this can reduce some repetition, as the error checks are often pretty similar.

@ecPablo ecPablo added this pull request to the merge queue May 27, 2025
Merged via the queue into develop with commit 3e6d8ec May 27, 2025
6 checks passed
@ecPablo ecPablo deleted the ecpablo/add-solana-worker-type branch May 27, 2025 18:46
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