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

Added benchmark tests for smart-wallet #535

Merged
merged 7 commits into from
Oct 18, 2023

Conversation

alfheimrShiven
Copy link
Contributor

Includes benchmark tests for non-upgradable smart accounts. Following are the gas measurements:
PASS] test_state_accountReceivesNativeTokens() (gas: 11012)
[PASS] test_state_addAndWithdrawDeposit() (gas: 83248)
[PASS] test_state_contractMetadata() (gas: 59240)
[PASS] test_state_createAccount_viaEntrypoint() (gas: 428384)
[PASS] test_state_createAccount_viaFactory() (gas: 334603)
[PASS] test_state_executeBatchTransaction() (gas: 40271)
[PASS] test_state_executeBatchTransaction_viaAccountSigner() (gas: 392267)
[PASS] test_state_executeBatchTransaction_viaEntrypoint() (gas: 83624)
[PASS] test_state_executeTransaction() (gas: 35783)
[PASS] test_state_executeTransaction_viaAccountSigner() (gas: 377498)
[PASS] test_state_executeTransaction_viaEntrypoint() (gas: 75957)
[PASS] test_state_receiveERC1155NFT() (gas: 39331)
[PASS] test_state_receiveERC721NFT() (gas: 78307)
[PASS] test_state_transferOutsNativeTokens() (gas: 82073)

@kumaryash90
Copy link
Member

@alfheimrShiven thanks for the PR!
we're taking a look, and will get back to you asap

@alfheimrShiven
Copy link
Contributor Author

@alfheimrShiven thanks for the PR! we're taking a look, and will get back to you asap

Sure @kumaryash90. Thanks for the update.

@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

All modified lines are covered by tests ✅

📢 Thoughts on this report? Let us know!.

auto-merge was automatically disabled October 16, 2023 22:46

Merge queue setting changed

@jnsdls jnsdls requested a review from kumaryash90 October 16, 2023 23:47
@WhiteOakKong
Copy link
Contributor

@alfheimrShiven Could you give me permission to push to your branch? We are good to merge, I just fixed a few things to align with our recent signer perms changes.

@kumaryash90 kumaryash90 merged commit 005d6d7 into thirdweb-dev:main Oct 18, 2023
@alfheimrShiven
Copy link
Contributor Author

@alfheimrShiven Could you give me permission to push to your branch? We are good to merge, I just fixed a few things to align with our recent signer perms changes.

Hey @WhiteOakKong I guess @kumaryash90 has incorporated the change. Thank you.

@alfheimrShiven alfheimrShiven deleted the account-benchmark-test branch October 19, 2023 06:07
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.

5 participants