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: update to latest optimism portal contract #2227

Merged
merged 1 commit into from May 8, 2024
Merged

Conversation

jxom
Copy link
Member

@jxom jxom commented May 8, 2024

resolves #2226


PR-Codex overview

This PR updates contracts to the latest version, adjusts block numbers, and refactors contract function calls for withdrawal status and time calculations.

Detailed summary

  • Updated to latest OptimismPortal2 contract version
  • Adjusted block numbers for anvilOptimismSepolia
  • Refactored contract function calls for withdrawal status and time calculations

The following files were skipped due to too many changes: src/op-stack/abis.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented May 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
viem ✅ Ready (Inspect) Visit Preview May 8, 2024 0:45am

Copy link

changeset-bot bot commented May 8, 2024

🦋 Changeset detected

Latest commit: 8b7ac26

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

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

Copy link
Contributor

github-actions bot commented May 8, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
viem (esm) 56.19 KB (0%) 1.2 s (0%) 2 s (+162.55% 🔺) 3.2 s
viem (cjs) 67.6 KB (0%) 1.4 s (0%) 1.7 s (-44.54% 🔽) 3.1 s
viem (minimal surface - tree-shaking) 3.31 KB (0%) 67 ms (0%) 17 ms (-43.41% 🔽) 83 ms
viem/accounts 73.86 KB (0%) 1.5 s (0%) 1.6 s (+186.62% 🔺) 3.1 s
viem/accounts (tree-shaking) 19.13 KB (0%) 383 ms (0%) 525 ms (+40.93% 🔺) 907 ms
viem/actions 41.68 KB (-0.03% 🔽) 834 ms (-0.03% 🔽) 853 ms (+5.43% 🔺) 1.7 s
viem/actions (tree-shaking) 303 B (0%) 10 ms (0%) 14 ms (+81.78% 🔺) 24 ms
viem/chains 27.09 KB (0%) 542 ms (0%) 736 ms (+156.35% 🔺) 1.3 s
viem/chains (tree-shaking) 324 B (0%) 10 ms (0%) 36 ms (-67.19% 🔽) 46 ms
viem/chains/utils 1.02 KB (0%) 21 ms (0%) 9 ms (-35.7% 🔽) 29 ms
viem/ens 41.69 KB (0%) 834 ms (0%) 397 ms (-23.12% 🔽) 1.3 s
viem/ens (tree-shaking) 18.3 KB (0%) 366 ms (0%) 774 ms (+98.77% 🔺) 1.2 s

Copy link

codecov bot commented May 8, 2024

Codecov Report

Attention: Patch coverage is 98.82353% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 99.74%. Comparing base (1a0731f) to head (8b7ac26).

Files Patch % Lines
src/op-stack/actions/getTimeToFinalize.ts 86.66% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #2227    +/-   ##
========================================
  Coverage   99.74%   99.74%            
========================================
  Files         640      640            
  Lines       56891    56694   -197     
  Branches     2682     2688     +6     
========================================
- Hits        56745    56552   -193     
+ Misses        132      129     -3     
+ Partials       14       13     -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jxom jxom force-pushed the main branch 2 times, most recently from f4447d7 to 1a0731f Compare May 8, 2024 01:51
@jxom jxom merged commit 0f7541c into main May 8, 2024
19 of 29 checks passed
@jxom jxom deleted the jxom/update-op-portal branch May 8, 2024 02:33
@github-actions github-actions bot mentioned this pull request May 8, 2024
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.

bug: getWithdrawalStatus use obsoleted portal Abi (current v3.8.0)
1 participant