Skip to content

feat: implement operation execution for the SolanaWorker type#157

Merged
gustavogama-cll merged 2 commits into
developfrom
ggama/feat-add-solana-operation-execution
Jun 5, 2025
Merged

feat: implement operation execution for the SolanaWorker type#157
gustavogama-cll merged 2 commits into
developfrom
ggama/feat-add-solana-operation-execution

Conversation

@gustavogama-cll
Copy link
Copy Markdown
Contributor

No description provided.

@gustavogama-cll gustavogama-cll requested review from a team as code owners May 29, 2025 06:54
@gustavogama-cll gustavogama-cll marked this pull request as draft May 29, 2025 06:55
Base automatically changed from ggama/feat-add-interfaces-make-scheduler-chain-family-agnostic to develop May 29, 2025 18:22
@gustavogama-cll gustavogama-cll force-pushed the ggama/feat-add-solana-operation-execution branch 5 times, most recently from 1e9fff3 to 8b99a31 Compare June 4, 2025 02:19
@gustavogama-cll gustavogama-cll force-pushed the ggama/feat-add-solana-operation-execution branch from 8834869 to 760b5aa Compare June 4, 2025 22:54
@gustavogama-cll gustavogama-cll marked this pull request as ready for review June 4, 2025 23:06
ecPablo
ecPablo previously approved these changes Jun 4, 2025
ChrisAmora
ChrisAmora previously approved these changes Jun 5, 2025
With(eventTarget, event.Target.String()).
With(operationID, fmt.Sprintf("%x", event.ID))

if event.Index > 0 {
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.

this is an important change relative to EVM: we only process the event with index == 0. That's because the execute function is able to build the payload from all transactions in an mcms.BatchOperation by querying the timelock's "operation pda". And by processing only the first event, it's easier to ensure the timelock-worker executes the transaction in the correct order.

@gustavogama-cll gustavogama-cll added this pull request to the merge queue Jun 5, 2025
@gustavogama-cll gustavogama-cll removed this pull request from the merge queue due to a manual request Jun 5, 2025
@gustavogama-cll gustavogama-cll dismissed stale reviews from ChrisAmora and ecPablo via cd8c5f0 June 5, 2025 03:27
@gustavogama-cll
Copy link
Copy Markdown
Contributor Author

Thanks @ecPablo .

I'm afraid I'll need another approval as I had to push an update adjusting the logic of the main execute function to consider that we're only expected to receive a single TimelockCallScheduled entry at a time. (and I also improved a bit the log messages we check for in the integration test).

@gustavogama-cll gustavogama-cll enabled auto-merge June 5, 2025 03:29
@gustavogama-cll gustavogama-cll added this pull request to the merge queue Jun 5, 2025
Merged via the queue into develop with commit 93cf3e1 Jun 5, 2025
6 checks passed
@gustavogama-cll gustavogama-cll deleted the ggama/feat-add-solana-operation-execution branch June 5, 2025 12:56
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