Skip to content

Conversation

avalonche
Copy link
Contributor

📝 Summary

Refactor to allow the payload builder accept generics for how to construct the builder tx.

💡 Motivation and Context

Easier to add custom logic to builder tx based on the payload builder such as contract calls etc.


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

if let Some(flashtestations_builder_tx) = &self.flashtestations_builder_tx {
// We only include flashtestations txs in the last flashblock

let mut simulation_state = self.simulate_builder_txs_state::<FlashblocksExtraCtx>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

returns empty vec for now

}
}

pub fn simulate_builder_tx<ExtraCtx: Debug + Default>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

replace with flashblocks builder tx contract call

@avalonche avalonche force-pushed the builder-tx branch 2 times, most recently from f378fbf to 4e28c2e Compare September 9, 2025 22:19
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