Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Conversation

DamianStraszak
Copy link
Contributor

Rewrite verification script to support etherscan. The previous version didn't quite verify libraries on Etherscan so I rewrote slightly. This is very hard to test, because explorers cache verified contracts and behave differently when similar contract already exists.

Copy link

github-actions bot commented Apr 22, 2025

Transaction NameMainCurrentDifference (%)
Deposit (size)20255202550.00000%
DepositERC20 (gas)17594741759426-0.00273%
DepositNative (gas)17412651741325+0.00345%
NewAccount (size)22867228670.00000%
NewAccountERC20 (gas)17932261793274+0.00268%
NewAccountNative (gas)19973481997312-0.00180%
Withdraw (size)21573215730.00000%
WithdrawERC20 (gas)18609151860711-0.01096%
WithdrawNative (gas)18607001860712+0.00064%

Copy link

github-actions bot commented Apr 22, 2025

📊 Coverage Report

📈 Total Coverage Summary

Type Covered Total Coverage
📝 Lines 1530 2155 🟠 70.99%
📄 Statements 1530 2155 🟠 70.99%
⚡ Functions 108 115 🟡 93.91%
🔀 Branches 265 275 🟡 96.36%

Coverage Legend

  • ✅ 100% Coverage
  • 🟡 80-99% Coverage
  • 🟠 50-79% Coverage
  • ❌ 0-49% Coverage

📁 File Coverage

📋 Detailed Coverage Report
File Lines Statements Functions Branches
🟡 zkOS-monorepo/ts/shielder-sdk/src/actions/deposit.ts 88.88% 88.88% 100% 85%
🟡 zkOS-monorepo/ts/shielder-sdk/src/actions/newAccount.ts 84.49% 84.49% 100% 78.94%
zkOS-monorepo/ts/shielder-sdk/src/actions/types.ts 100% 100% 100% 100%
🟡 zkOS-monorepo/ts/shielder-sdk/src/actions/utils.ts 97.33% 97.33% 100% 90.9%
🟠 zkOS-monorepo/ts/shielder-sdk/src/actions/withdraw.ts 77.04% 77.04% 87.5% 100%
zkOS-monorepo/ts/shielder-sdk/src/chain/contract.ts 1.89% 1.89% 0% 0%
zkOS-monorepo/ts/shielder-sdk/src/chain/relayer.ts 31.7% 31.7% 33.33% 50%
zkOS-monorepo/ts/shielder-sdk/src/client/actions.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/client/client.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/client/factories.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/client/types.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/constants.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/errors.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/index.ts 0% 0% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/accountFactory.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/accountRegistry.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/accountStateSerde.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/idManager.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/localStateTransition.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/sync/chainStateTransition.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/sync/historyFetcher.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/sync/synchronizer.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/sync/tokenAccountFinder.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/state/types.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/storage/storageManager.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/storage/storageSchema.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/types.ts 100% 100% 100% 100%
zkOS-monorepo/ts/shielder-sdk/src/utils.ts 100% 100% 100% 100%

@DamianStraszak DamianStraszak merged commit be1b53e into main May 13, 2025
12 checks passed
@DamianStraszak DamianStraszak deleted the support-etherscan branch May 13, 2025 09:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants