Skip to content
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: add support for avax chains #750

Merged
merged 1 commit into from
Jul 8, 2024
Merged

feat: add support for avax chains #750

merged 1 commit into from
Jul 8, 2024

Conversation

dancoombs
Copy link
Collaborator

@dancoombs dancoombs commented Jul 1, 2024

Closes #638

Proposed Changes

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

Attention: Patch coverage is 49.00398% with 128 lines in your changes missing coverage. Please review.

Project coverage is 57.56%. Comparing base (459dab6) to head (3e37638).

Additional details and impacted files

Impacted file tree graph

Files Coverage Δ
bin/rundler/src/cli/chain_spec.rs 0.00% <ø> (ø)
bin/rundler/src/cli/mod.rs 0.00% <ø> (ø)
crates/builder/src/bundle_proposer.rs 90.29% <100.00%> (ø)
crates/rpc/src/eth/api.rs 69.66% <100.00%> (-0.12%) ⬇️
crates/rpc/src/eth/events/v0_6.rs 16.36% <100.00%> (-1.50%) ⬇️
crates/task/src/grpc/protos.rs 39.02% <ø> (ø)
crates/types/src/chain.rs 91.42% <100.00%> (+2.14%) ⬆️
crates/types/src/user_operation/v0_6.rs 94.46% <100.00%> (+0.13%) ⬆️
crates/builder/src/task.rs 0.00% <0.00%> (ø)
crates/rpc/src/eth/server.rs 0.00% <0.00%> (ø)
... and 19 more
Flag Coverage Δ
unit-tests 57.56% <49.00%> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
rundler binary 0.00% <0.00%> (ø)
builder 60.59% <85.71%> (+0.01%) ⬆️
dev 0.00% <ø> (ø)
pool 64.49% <1.38%> (-0.34%) ⬇️
provider 16.10% <ø> (ø)
rpc 25.63% <43.24%> (-0.01%) ⬇️
sim 78.53% <53.84%> (+<0.01%) ⬆️
tasks ∅ <ø> (∅)
types 66.68% <81.57%> (-0.02%) ⬇️
utils 18.28% <ø> (ø)

@dancoombs dancoombs force-pushed the danc/avax branch 2 times, most recently from 032d5c1 to 6ed657e Compare July 8, 2024 16:59
Copy link
Collaborator

@0xfourzerofour 0xfourzerofour left a comment

Choose a reason for hiding this comment

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

Looks good

crates/builder/src/bundle_proposer.rs Outdated Show resolved Hide resolved
/// deploy costs that are not metered by the entry point
pub per_user_op_deploy_overhead_gas: U256,
/// Gas cost for a user operation word in a bundle transaction
pub per_user_op_word_gas: U256,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do these values ever change across chains

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

per_user_op_deploy_overhead_gas does (Avax). Currently per_user_op_word_gas, calldata_zero_byte_gas, and calldata_non_zero_byte_gas don't, but a simple EVM config change could change that, so kept them configurable with a reasonable default.

- Add gas overheads to chain spec (#638)
- Allow for retries in chain sync
- Add avax and avas fuji chain specs
@dancoombs dancoombs merged commit a88a4c7 into main Jul 8, 2024
8 checks passed
@dancoombs dancoombs deleted the danc/avax branch July 8, 2024 19:49
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.

Move GasOverheads to chain spec (or hardcode)
3 participants