-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Optimism builder & miner #534
Conversation
🦋 Changeset detectedLatest commit: 3132383 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
846bd81
to
4d73b60
Compare
* fix: allow missing nonce in remote blocks * misc: add changeset
* chore: Explicitly depend on semver and fs-extra in hardhat-tests Appeases ESLint. These are de facto pulled by other dependencies but it's implicit. * refactor: Unify ts-node and use the one currently used by Hardhat Deduping the hardhat package makes it easier to patch it while working on the stack trace porting feature branch. * chore: Use the newest Hardhat 2.22.6 This will make patching the changes easier to review as we will sync with the upstream as it has some changes already related to the stack traces that we port.
5576b41
to
6bebd72
Compare
* feat: upgrade revm dependencies * Create wild-phones-drum.md
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* feat: add support for RIP-7212 * misc: add changelog * fix: updated index.d.ts * fix: revert rename of InvalidFEOpcode * fix: set enableRip7212 in ProviderConfig * test: validate that disabling RIP-7212 works * refactor: use runtime variable instead of const * Path Hardhat dev dep to work with latest EDR changes EDR uses Hardhat as a dev dependency to run some javascript tests. The way this works is that the tests are run using Hardhat, but we use pnpm to override the EDR dependency in Hardhat with the local one. This works fine as long as there are no breaking changes in EDR. When there are, we have a circular dependency problem: we can't publish a new version of EDR until the tests pass, but for the tests to pass we need a version of Hardhat that works with the new version of EDR. A temporary workaround for this is to use `pnpm patch` to temporarily modify the Hardhat code in a way that works with the breaking change. In this case, this just means adding the new field when constructing the provider. --------- Co-authored-by: Franco Victorio <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* build: upgrade revm to v12 * test: remove invalid test * misc: add changeset
efe4ee8
to
e496ce4
Compare
This PR seems to have unrelated changes. Maybe you accidentally merged |
That's correct. I considered doing a separate PR to merge If you'd like I can still do the effort to do a separate PR that merges |
I'm not sure. If that's too much work, it might not be worth it. But this PR as it is is really hard to review. Perhaps you can list the commits or commit ranges that need reviewing? In any case, all the changes in areas that I usually review seem to come from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
crates/edr_opt/tests/full_block.rs
Outdated
// > execution aborted (timeout = 10s) | ||
// | ||
// Potentially the block is too old? | ||
// mainnet_pre_bedrock => OptimismChainSpec { | ||
// block_number: 98_235_064, | ||
// chain_id: 10, | ||
// url: get_alchemy_url().replace("eth-", "opt-"), | ||
// }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed by cbdb02b
crates/edr_opt/Cargo.toml
Outdated
@@ -0,0 +1,32 @@ | |||
[package] | |||
name = "edr_opt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It took me a moment to parse the name, I'd prefer edr_optimism
if possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed by 597c4b8
crates/edr_evm/src/chain_spec.rs
Outdated
/// Type representing an error that occurs when converting an RPC block. | ||
type RpcBlockConversionError: Debug + std::error::Error; | ||
|
||
impl<ChainSpecT> SyncChainSpec for ChainSpecT where | ||
ChainSpecT: ChainSpec<Transaction: Send + Sync> + Send + Sync + 'static | ||
{ | ||
} | ||
/// Type representing an error that occurs when converting an RPC receipt. | ||
type RpcReceiptConversionError: Debug + std::error::Error; | ||
|
||
/// Type representing an error that occurs when converting an RPC | ||
/// transaction. | ||
type RpcTransactionConversionError: Debug + std::error::Error; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
std::error::Error
already requires Debug
, so I think the explicit Debug
bound could be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed by cbdb02b
No description provided.