From 655a5796318be272259fbae17dd7e7af9325cd6b Mon Sep 17 00:00:00 2001 From: Eloi Manuel Date: Wed, 31 May 2023 19:07:54 +0200 Subject: [PATCH] Added gas reports and upgraded package.json --- gas_reports/2023-05-31_18:47.gas.out | 308 ++++++++++++++++++++++++++ gas_reports/2023-05-31_18:47.snap.out | 105 +++++++++ package.json | 2 +- 3 files changed, 414 insertions(+), 1 deletion(-) create mode 100644 gas_reports/2023-05-31_18:47.gas.out create mode 100644 gas_reports/2023-05-31_18:47.snap.out diff --git a/gas_reports/2023-05-31_18:47.gas.out b/gas_reports/2023-05-31_18:47.gas.out new file mode 100644 index 0000000..ea42adb --- /dev/null +++ b/gas_reports/2023-05-31_18:47.gas.out @@ -0,0 +1,308 @@ + +Running 1 test for test/foundry/4337/Specific4337Tests.t.sol:Specific4337Tests +[PASS] testToken():(address) (gas: 2382) +Test result: ok. 1 passed; 0 failed; finished in 2.99s + +Running 14 tests for test/foundry/paymaster/OpenfortPaymasterTest.t.sol:OpenfortPaymasterTest +[PASS] testEntryPointDepositToPaymaster() (gas: 45021) +[PASS] testFailPaymasterUserOpERC20ValidSigExecBatchInsufficientERC20() (gas: 319856) +[PASS] testFailPaymasterUserOpERC20ValidSigSmallApprove() (gas: 279828) +[PASS] testInitialParameters() (gas: 13782) +[PASS] testParsePaymasterDataERC20() (gas: 35513) +[PASS] testParsePaymasterDataNative() (gas: 33247) +[PASS] testPaymasterAddStake() (gas: 47881) +[PASS] testPaymasterUserOpERC20ValidSig() (gas: 300489) +[PASS] testPaymasterUserOpERC20ValidSigExecBatch() (gas: 341300) +[PASS] testPaymasterUserOpNativeValidSig() (gas: 230754) +[PASS] testPaymasterUserOpNativeValidSigExecBatch() (gas: 273169) +[PASS] testPaymasterUserOpWrongSig() (gas: 133317) +[PASS] testPaymasterUserOpWrongSigLength() (gas: 103571) +[PASS] testToken():(address) (gas: 2383) +Test result: ok. 14 passed; 0 failed; finished in 4.41s + +Running 30 tests for test/foundry/core/upgradeable/UpgradeableOpenfortAccountTest.t.sol:UpgradeableOpenfortAccountTest +[PASS] testChangeOwnershipAndCountDirect() (gas: 233485) +[PASS] testChangeOwnershipAndCountEntryPoint() (gas: 382913) +[PASS] testCreateAccountViaEntryPoint() (gas: 294675) +[PASS] testCreateAccountViaFactory() (gas: 208224) +[PASS] testCreateAccountViaFactoryWithNonce() (gas: 378117) +[PASS] testFailAttackRegisterSessionKeyViaEntrypoint2ndKey() (gas: 573666) +[PASS] testFailIncrementCounterViaSessionKeyNotregistered() (gas: 349204) +[PASS] testFailIncrementCounterViaSessionKeyReachLimit() (gas: 481771) +[PASS] testFailIncrementCounterViaSessionKeyReachLimitBatching() (gas: 387894) +[PASS] testFailIncrementCounterViaSessionKeyRevoked() (gas: 229186) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingBatchWrongAddress() (gas: 411058) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingTooBig() (gas: 205969) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingWrongAddress() (gas: 402574) +[PASS] testFailRevokeSessionKeyInvalidUser() (gas: 231730) +[PASS] testIncrementCounterDirect() (gas: 224696) +[PASS] testIncrementCounterViaEntrypoint() (gas: 376027) +[PASS] testIncrementCounterViaEntrypointBatching() (gas: 388257) +[PASS] testIncrementCounterViaSessionKey() (gas: 405632) +[PASS] testIncrementCounterViaSessionKeyExpired() (gas: 375461) +[PASS] testIncrementCounterViaSessionKeyWhitelisting() (gas: 431309) +[PASS] testIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 454553) +[PASS] testMintTokenAccount() (gas: 404880) +[PASS] testReceiveNativeToken() (gas: 200621) +[PASS] testRegisterSessionKeyViaEntrypoint() (gas: 486495) +[PASS] testRegisterSessionKeyViaEntrypoint2ndKey() (gas: 596018) +[PASS] testSimulateValidation() (gas: 301808) +[PASS] testToken():(address) (gas: 2404) +[PASS] testTransferOutNativeToken() (gas: 309145) +[PASS] testUpdateEntryPoint() (gas: 943241) +[PASS] testUpgradeAccount() (gas: 2475320) +Test result: ok. 30 passed; 0 failed; finished in 5.13s + +Running 30 tests for test/foundry/core/managed/ManagedOpenfortAccountTest.t.sol:ManagedOpenfortAccountTest +[PASS] testChangeOwnershipAndCountDirect() (gas: 249819) +[PASS] testChangeOwnershipAndCountEntryPoint() (gas: 400344) +[PASS] testCreateAccountViaEntryPoint() (gas: 312167) +[PASS] testCreateAccountViaFactory() (gas: 224506) +[PASS] testCreateAccountViaFactoryWithNonce() (gas: 403358) +[PASS] testFailAttackRegisterSessionKeyViaEntrypoint2ndKey() (gas: 593544) +[PASS] testFailIncrementCounterViaSessionKeyNotregistered() (gas: 364610) +[PASS] testFailIncrementCounterViaSessionKeyReachLimit() (gas: 499390) +[PASS] testFailIncrementCounterViaSessionKeyReachLimitBatching() (gas: 403877) +[PASS] testFailIncrementCounterViaSessionKeyRevoked() (gas: 244633) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 461389) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingBatchWrongAddress() (gas: 427063) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingTooBig() (gas: 220849) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingWrongAddress() (gas: 418579) +[PASS] testFailRevokeSessionKeyInvalidUser() (gas: 247177) +[PASS] testIncrementCounterDirect() (gas: 239611) +[PASS] testIncrementCounterViaEntrypoint() (gas: 392005) +[PASS] testIncrementCounterViaEntrypointBatching() (gas: 404269) +[PASS] testIncrementCounterViaSessionKey() (gas: 422176) +[PASS] testIncrementCounterViaSessionKeyExpired() (gas: 391469) +[PASS] testIncrementCounterViaSessionKeyWhitelisting() (gas: 447736) +[PASS] testIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 471764) +[PASS] testMintTokenAccount() (gas: 421026) +[PASS] testReceiveNativeToken() (gas: 215676) +[PASS] testRegisterSessionKeyViaEntrypoint() (gas: 504672) +[PASS] testRegisterSessionKeyViaEntrypoint2ndKey() (gas: 616360) +[PASS] testSimulateValidation() (gas: 316676) +[PASS] testToken():(address) (gas: 2426) +[PASS] testTransferOutNativeToken() (gas: 325303) +[PASS] testUpgradeTo() (gas: 2077403) +Test result: ok. 30 passed; 0 failed; finished in 5.13s + +Running 30 tests for test/foundry/core/static/StaticOpenfortAccountTest.t.sol:StaticOpenfortAccountTest +[PASS] testChangeOwnershipAndCountDirect() (gas: 174591) +[PASS] testChangeOwnershipAndCountEntryPoint() (gas: 323573) +[PASS] testCreateAccountViaEntryPoint() (gas: 225651) +[PASS] testCreateAccountViaFactory() (gas: 139646) +[PASS] testCreateAccountViaFactoryWithNonce() (gas: 256326) +[PASS] testFailAttackRegisterSessionKeyViaEntrypoint2ndKey() (gas: 513242) +[PASS] testFailIncrementCounterViaSessionKeyNotregistered() (gas: 290564) +[PASS] testFailIncrementCounterViaSessionKeyReachLimit() (gas: 422239) +[PASS] testFailIncrementCounterViaSessionKeyReachLimitBatching() (gas: 329031) +[PASS] testFailIncrementCounterViaSessionKeyRevoked() (gas: 170541) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 385559) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingBatchWrongAddress() (gas: 352129) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingTooBig() (gas: 147484) +[PASS] testFailIncrementCounterViaSessionKeyWhitelistingWrongAddress() (gas: 343645) +[PASS] testFailRevokeSessionKeyInvalidUser() (gas: 173085) +[PASS] testIncrementCounterDirect() (gas: 166279) +[PASS] testIncrementCounterViaEntrypoint() (gas: 317164) +[PASS] testIncrementCounterViaEntrypointBatching() (gas: 329394) +[PASS] testIncrementCounterViaSessionKey() (gas: 346568) +[PASS] testIncrementCounterViaSessionKeyExpired() (gas: 316620) +[PASS] testIncrementCounterViaSessionKeyWhitelisting() (gas: 372157) +[PASS] testIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 395178) +[PASS] testMintTokenAccount() (gas: 346017) +[PASS] testReceiveNativeToken() (gas: 142185) +[PASS] testRegisterSessionKeyViaEntrypoint() (gas: 426762) +[PASS] testRegisterSessionKeyViaEntrypoint2ndKey() (gas: 535415) +[PASS] testSimulateValidation() (gas: 243391) +[PASS] testToken():(address) (gas: 2404) +[PASS] testTransferOutNativeToken() (gas: 250263) +[PASS] testUpdateEntryPoint() (gas: 538664) +Test result: ok. 30 passed; 0 failed; finished in 5.13s +| EntryPoint contract | | | | | | +|---------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 0 | 0 | | | | | +| Function Name | min | avg | median | max | # calls | +| addStake | 25917 | 25917 | 25917 | 25917 | 1 | +| balanceOf | 594 | 1260 | 594 | 2594 | 3 | +| depositTo | 2606 | 10839 | 5406 | 24506 | 3 | + + +| contracts/core/managed/ManagedOpenfortAccount.sol:ManagedOpenfortAccount contract | | | | | | +|-----------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 1806914 | 9182 | | | | | +| Function Name | min | avg | median | max | # calls | +| acceptOwnership | 1996 | 1996 | 1996 | 1996 | 2 | +| execute | 3568 | 21350 | 21542 | 32768 | 17 | +| executeBatch | 25603 | 25603 | 25603 | 25603 | 2 | +| initialize | 50619 | 50619 | 50619 | 50619 | 30 | +| receive | 55 | 55 | 55 | 55 | 2 | +| registerSessionKey(address,uint48,uint48) | 24617 | 24622 | 24617 | 24629 | 7 | +| registerSessionKey(address,uint48,uint48,uint48) | 24367 | 24371 | 24367 | 24379 | 3 | +| registerSessionKey(address,uint48,uint48,uint48,address[]) | 1288 | 39642 | 47313 | 47313 | 6 | +| revokeSessionKey | 609 | 609 | 609 | 609 | 2 | +| sessionKeys | 810 | 810 | 810 | 810 | 3 | +| transferOwnership | 22375 | 22375 | 22375 | 22375 | 2 | +| validateUserOp | 5005 | 7241 | 6740 | 15510 | 49 | +| version | 259 | 259 | 259 | 259 | 1 | + + +| contracts/core/managed/ManagedOpenfortFactory.sol:ManagedOpenfortFactory contract | | | | | | +|-----------------------------------------------------------------------------------|-----------------|--------|--------|--------|---------| +| Deployment Cost | Deployment Size | | | | | +| 806370 | 4270 | | | | | +| Function Name | min | avg | median | max | # calls | +| createAccount | 7698 | 184497 | 196777 | 196777 | 31 | +| createAccountWithNonce | 189831 | 189831 | 189831 | 189831 | 1 | +| getAddress | 7068 | 7068 | 7068 | 7068 | 4 | + + +| contracts/core/managed/OpenfortBeacon.sol:OpenfortBeacon contract | | | | | | +|-------------------------------------------------------------------|-----------------|------|--------|------|---------| +| Deployment Cost | Deployment Size | | | | | +| 213861 | 1248 | | | | | +| Function Name | min | avg | median | max | # calls | +| implementation | 308 | 672 | 308 | 2308 | 159 | +| upgradeTo | 2510 | 4659 | 4659 | 6809 | 2 | + + +| contracts/core/managed/OpenfortBeaconProxy.sol:OpenfortBeaconProxy contract | | | | | | +|-----------------------------------------------------------------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 151326 | 1981 | | | | | +| Function Name | min | avg | median | max | # calls | +| acceptOwnership | 2871 | 2871 | 2871 | 2871 | 2 | +| execute | 4673 | 22466 | 22653 | 33873 | 17 | +| executeBatch | 26810 | 26810 | 26810 | 26810 | 2 | +| receive | 1155 | 1155 | 1155 | 1155 | 2 | +| registerSessionKey(address,uint48,uint48) | 25719 | 25724 | 25719 | 25731 | 7 | +| registerSessionKey(address,uint48,uint48,uint48) | 25472 | 25476 | 25472 | 25484 | 3 | +| registerSessionKey(address,uint48,uint48,uint48,address[]) | 2484 | 40777 | 48436 | 48436 | 6 | +| revokeSessionKey | 1709 | 1709 | 1709 | 1709 | 2 | +| sessionKeys | 1921 | 1921 | 1921 | 1921 | 3 | +| transferOwnership | 23471 | 23471 | 23471 | 23471 | 2 | +| validateUserOp | 6246 | 8523 | 7987 | 17105 | 49 | +| version | 1355 | 1355 | 1355 | 1355 | 3 | + + +| contracts/core/static/StaticOpenfortAccount.sol:StaticOpenfortAccount contract | | | | | | +|--------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 1877392 | 9534 | | | | | +| Function Name | min | avg | median | max | # calls | +| acceptOwnership | 1944 | 1944 | 1944 | 1944 | 2 | +| entryPoint | 376 | 376 | 376 | 376 | 2 | +| execute | 3708 | 22011 | 21747 | 32908 | 20 | +| executeBatch | 25743 | 40742 | 48408 | 55408 | 5 | +| initialize | 74366 | 74366 | 74366 | 74366 | 44 | +| receive | 55 | 55 | 55 | 55 | 2 | +| registerSessionKey(address,uint48,uint48) | 24757 | 24762 | 24757 | 24769 | 7 | +| registerSessionKey(address,uint48,uint48,uint48) | 24485 | 24489 | 24485 | 24497 | 3 | +| registerSessionKey(address,uint48,uint48,uint48,address[]) | 1340 | 39694 | 47365 | 47365 | 6 | +| revokeSessionKey | 749 | 749 | 749 | 749 | 2 | +| sessionKeys | 832 | 832 | 832 | 832 | 3 | +| transferOwnership | 22375 | 22375 | 22375 | 22375 | 2 | +| updateEntryPoint | 651 | 1483 | 1483 | 2315 | 2 | +| validateUserOp | 5145 | 7629 | 6880 | 15650 | 57 | + + +| contracts/core/static/StaticOpenfortFactory.sol:StaticOpenfortFactory contract | | | | | | +|--------------------------------------------------------------------------------|-----------------|--------|--------|--------|---------| +| Deployment Cost | Deployment Size | | | | | +| 366774 | 2178 | | | | | +| Function Name | min | avg | median | max | # calls | +| createAccount | 1273 | 120553 | 124200 | 124200 | 44 | +| createAccountWithNonce | 121729 | 121729 | 121729 | 121729 | 1 | +| getAddress | 830 | 830 | 830 | 830 | 4 | + + +| contracts/core/upgradeable/OpenfortUpgradeableProxy.sol:OpenfortUpgradeableProxy contract | | | | | | +|-------------------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 138076 | 1522 | | | | | +| Function Name | min | avg | median | max | # calls | +| acceptOwnership | 2276 | 2276 | 2276 | 2276 | 2 | +| entryPoint | 771 | 771 | 771 | 771 | 2 | +| execute | 4118 | 21774 | 22098 | 33318 | 17 | +| executeBatch | 26255 | 26255 | 26255 | 26255 | 2 | +| receive | 454 | 454 | 454 | 454 | 2 | +| registerSessionKey(address,uint48,uint48) | 25139 | 25144 | 25139 | 25151 | 7 | +| registerSessionKey(address,uint48,uint48,uint48) | 24895 | 24899 | 24895 | 24907 | 3 | +| registerSessionKey(address,uint48,uint48,uint48,address[]) | 1907 | 38668 | 47859 | 47859 | 5 | +| revokeSessionKey | 1170 | 1170 | 1170 | 1170 | 2 | +| sessionKeys | 1248 | 1248 | 1248 | 1248 | 2 | +| transferOwnership | 22770 | 22770 | 22770 | 22770 | 2 | +| updateEntryPoint | 1040 | 1864 | 1864 | 2688 | 2 | +| upgradeTo | 1301 | 3629 | 3629 | 5957 | 2 | +| validateUserOp | 5691 | 7603 | 7432 | 13171 | 47 | +| version | 698 | 698 | 698 | 698 | 2 | + + +| contracts/core/upgradeable/UpgradeableOpenfortAccount.sol:UpgradeableOpenfortAccount contract | | | | | | +|-----------------------------------------------------------------------------------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 2290542 | 11647 | | | | | +| Function Name | min | avg | median | max | # calls | +| acceptOwnership | 1962 | 1962 | 1962 | 1962 | 2 | +| entryPoint | 376 | 376 | 376 | 376 | 2 | +| execute | 3708 | 21354 | 21682 | 32908 | 17 | +| executeBatch | 25743 | 25743 | 25743 | 25743 | 2 | +| initialize | 74366 | 74366 | 74366 | 74366 | 30 | +| receive | 55 | 55 | 55 | 55 | 2 | +| registerSessionKey(address,uint48,uint48) | 24735 | 24740 | 24735 | 24747 | 7 | +| registerSessionKey(address,uint48,uint48,uint48) | 24485 | 24489 | 24485 | 24497 | 3 | +| registerSessionKey(address,uint48,uint48,uint48,address[]) | 1406 | 38226 | 47431 | 47431 | 5 | +| revokeSessionKey | 771 | 771 | 771 | 771 | 2 | +| sessionKeys | 832 | 832 | 832 | 832 | 2 | +| transferOwnership | 22375 | 22375 | 22375 | 22375 | 2 | +| updateEntryPoint | 629 | 1461 | 1461 | 2293 | 2 | +| upgradeTo | 890 | 3226 | 3226 | 5562 | 2 | +| validateUserOp | 5145 | 7029 | 6880 | 12521 | 47 | +| version | 303 | 303 | 303 | 303 | 1 | + + +| contracts/core/upgradeable/UpgradeableOpenfortFactory.sol:UpgradeableOpenfortFactory contract | | | | | | +|-----------------------------------------------------------------------------------------------|-----------------|--------|--------|--------|---------| +| Deployment Cost | Deployment Size | | | | | +| 711946 | 3916 | | | | | +| Function Name | min | avg | median | max | # calls | +| createAccount | 6652 | 176452 | 182394 | 182394 | 30 | +| createAccountWithNonce | 179947 | 179947 | 179947 | 179947 | 1 | +| getAddress | 6022 | 6022 | 6022 | 6022 | 4 | + + +| contracts/mock/MockedV2ManagedOpenfortAccount.sol:MockedV2ManagedOpenfortAccount contract | | | | | | +|-------------------------------------------------------------------------------------------|-----------------|-----|--------|-----|---------| +| Deployment Cost | Deployment Size | | | | | +| 1806914 | 9182 | | | | | +| Function Name | min | avg | median | max | # calls | +| version | 259 | 259 | 259 | 259 | 2 | + + +| contracts/mock/MockedV2UpgradeableOpenfortAccount.sol:MockedV2UpgradeableOpenfortAccount contract | | | | | | +|---------------------------------------------------------------------------------------------------|-----------------|-----|--------|-----|---------| +| Deployment Cost | Deployment Size | | | | | +| 2237283 | 11381 | | | | | +| Function Name | min | avg | median | max | # calls | +| proxiableUUID | 374 | 374 | 374 | 374 | 1 | +| version | 303 | 303 | 303 | 303 | 1 | + + +| contracts/paymaster/OpenfortPaymaster.sol:OpenfortPaymaster contract | | | | | | +|----------------------------------------------------------------------|-----------------|-------|--------|-------|---------| +| Deployment Cost | Deployment Size | | | | | +| 1215863 | 6347 | | | | | +| Function Name | min | avg | median | max | # calls | +| addStake | 520 | 30701 | 33420 | 33420 | 16 | +| deposit | 9845 | 32618 | 34245 | 34245 | 15 | +| entryPoint | 261 | 261 | 261 | 261 | 1 | +| getDeposit | 1181 | 2104 | 1181 | 3181 | 13 | +| getHash | 3462 | 5053 | 4998 | 6535 | 12 | +| owner | 2365 | 2365 | 2365 | 2365 | 7 | +| parsePaymasterAndData | 1516 | 1516 | 1516 | 1516 | 2 | +| postOp | 1433 | 12421 | 5583 | 30248 | 6 | +| validatePaymasterUserOp | 1694 | 26885 | 30289 | 31112 | 8 | + + + diff --git a/gas_reports/2023-05-31_18:47.snap.out b/gas_reports/2023-05-31_18:47.snap.out new file mode 100644 index 0000000..595304d --- /dev/null +++ b/gas_reports/2023-05-31_18:47.snap.out @@ -0,0 +1,105 @@ +ManagedOpenfortAccountTest:testChangeOwnershipAndCountDirect() (gas: 249819) +ManagedOpenfortAccountTest:testChangeOwnershipAndCountEntryPoint() (gas: 400344) +ManagedOpenfortAccountTest:testCreateAccountViaEntryPoint() (gas: 312167) +ManagedOpenfortAccountTest:testCreateAccountViaFactory() (gas: 224506) +ManagedOpenfortAccountTest:testCreateAccountViaFactoryWithNonce() (gas: 403358) +ManagedOpenfortAccountTest:testFailAttackRegisterSessionKeyViaEntrypoint2ndKey() (gas: 593544) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyNotregistered() (gas: 364610) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyReachLimit() (gas: 499390) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyReachLimitBatching() (gas: 403877) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyRevoked() (gas: 244633) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 461389) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingBatchWrongAddress() (gas: 427063) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingTooBig() (gas: 220849) +ManagedOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingWrongAddress() (gas: 418579) +ManagedOpenfortAccountTest:testFailRevokeSessionKeyInvalidUser() (gas: 247177) +ManagedOpenfortAccountTest:testIncrementCounterDirect() (gas: 239611) +ManagedOpenfortAccountTest:testIncrementCounterViaEntrypoint() (gas: 392005) +ManagedOpenfortAccountTest:testIncrementCounterViaEntrypointBatching() (gas: 404269) +ManagedOpenfortAccountTest:testIncrementCounterViaSessionKey() (gas: 422176) +ManagedOpenfortAccountTest:testIncrementCounterViaSessionKeyExpired() (gas: 391469) +ManagedOpenfortAccountTest:testIncrementCounterViaSessionKeyWhitelisting() (gas: 447736) +ManagedOpenfortAccountTest:testIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 471764) +ManagedOpenfortAccountTest:testMintTokenAccount() (gas: 421026) +ManagedOpenfortAccountTest:testReceiveNativeToken() (gas: 215676) +ManagedOpenfortAccountTest:testRegisterSessionKeyViaEntrypoint() (gas: 504672) +ManagedOpenfortAccountTest:testRegisterSessionKeyViaEntrypoint2ndKey() (gas: 616360) +ManagedOpenfortAccountTest:testSimulateValidation() (gas: 316676) +ManagedOpenfortAccountTest:testToken():(address) (gas: 2426) +ManagedOpenfortAccountTest:testTransferOutNativeToken() (gas: 325303) +ManagedOpenfortAccountTest:testUpgradeTo() (gas: 2077403) +OpenfortPaymasterTest:testEntryPointDepositToPaymaster() (gas: 45021) +OpenfortPaymasterTest:testFailPaymasterUserOpERC20ValidSigExecBatchInsufficientERC20() (gas: 319856) +OpenfortPaymasterTest:testFailPaymasterUserOpERC20ValidSigSmallApprove() (gas: 279828) +OpenfortPaymasterTest:testInitialParameters() (gas: 13782) +OpenfortPaymasterTest:testParsePaymasterDataERC20() (gas: 35513) +OpenfortPaymasterTest:testParsePaymasterDataNative() (gas: 33247) +OpenfortPaymasterTest:testPaymasterAddStake() (gas: 47881) +OpenfortPaymasterTest:testPaymasterUserOpERC20ValidSig() (gas: 300489) +OpenfortPaymasterTest:testPaymasterUserOpERC20ValidSigExecBatch() (gas: 341300) +OpenfortPaymasterTest:testPaymasterUserOpNativeValidSig() (gas: 230754) +OpenfortPaymasterTest:testPaymasterUserOpNativeValidSigExecBatch() (gas: 273169) +OpenfortPaymasterTest:testPaymasterUserOpWrongSig() (gas: 133317) +OpenfortPaymasterTest:testPaymasterUserOpWrongSigLength() (gas: 103571) +OpenfortPaymasterTest:testToken():(address) (gas: 2383) +Specific4337Tests:testToken():(address) (gas: 2382) +StaticOpenfortAccountTest:testChangeOwnershipAndCountDirect() (gas: 174591) +StaticOpenfortAccountTest:testChangeOwnershipAndCountEntryPoint() (gas: 323573) +StaticOpenfortAccountTest:testCreateAccountViaEntryPoint() (gas: 225651) +StaticOpenfortAccountTest:testCreateAccountViaFactory() (gas: 139646) +StaticOpenfortAccountTest:testCreateAccountViaFactoryWithNonce() (gas: 256326) +StaticOpenfortAccountTest:testFailAttackRegisterSessionKeyViaEntrypoint2ndKey() (gas: 513242) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyNotregistered() (gas: 290564) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyReachLimit() (gas: 422239) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyReachLimitBatching() (gas: 329031) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyRevoked() (gas: 170541) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 385559) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingBatchWrongAddress() (gas: 352129) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingTooBig() (gas: 147484) +StaticOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingWrongAddress() (gas: 343645) +StaticOpenfortAccountTest:testFailRevokeSessionKeyInvalidUser() (gas: 173085) +StaticOpenfortAccountTest:testIncrementCounterDirect() (gas: 166279) +StaticOpenfortAccountTest:testIncrementCounterViaEntrypoint() (gas: 317164) +StaticOpenfortAccountTest:testIncrementCounterViaEntrypointBatching() (gas: 329394) +StaticOpenfortAccountTest:testIncrementCounterViaSessionKey() (gas: 346568) +StaticOpenfortAccountTest:testIncrementCounterViaSessionKeyExpired() (gas: 316620) +StaticOpenfortAccountTest:testIncrementCounterViaSessionKeyWhitelisting() (gas: 372157) +StaticOpenfortAccountTest:testIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 395178) +StaticOpenfortAccountTest:testMintTokenAccount() (gas: 346017) +StaticOpenfortAccountTest:testReceiveNativeToken() (gas: 142185) +StaticOpenfortAccountTest:testRegisterSessionKeyViaEntrypoint() (gas: 426762) +StaticOpenfortAccountTest:testRegisterSessionKeyViaEntrypoint2ndKey() (gas: 535415) +StaticOpenfortAccountTest:testSimulateValidation() (gas: 243391) +StaticOpenfortAccountTest:testToken():(address) (gas: 2404) +StaticOpenfortAccountTest:testTransferOutNativeToken() (gas: 250263) +StaticOpenfortAccountTest:testUpdateEntryPoint() (gas: 538664) +UpgradeableOpenfortAccountTest:testChangeOwnershipAndCountDirect() (gas: 233485) +UpgradeableOpenfortAccountTest:testChangeOwnershipAndCountEntryPoint() (gas: 382913) +UpgradeableOpenfortAccountTest:testCreateAccountViaEntryPoint() (gas: 294675) +UpgradeableOpenfortAccountTest:testCreateAccountViaFactory() (gas: 208224) +UpgradeableOpenfortAccountTest:testCreateAccountViaFactoryWithNonce() (gas: 378117) +UpgradeableOpenfortAccountTest:testFailAttackRegisterSessionKeyViaEntrypoint2ndKey() (gas: 573666) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyNotregistered() (gas: 349204) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyReachLimit() (gas: 481771) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyReachLimitBatching() (gas: 387894) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyRevoked() (gas: 229186) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingBatchWrongAddress() (gas: 411058) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingTooBig() (gas: 205969) +UpgradeableOpenfortAccountTest:testFailIncrementCounterViaSessionKeyWhitelistingWrongAddress() (gas: 402574) +UpgradeableOpenfortAccountTest:testFailRevokeSessionKeyInvalidUser() (gas: 231730) +UpgradeableOpenfortAccountTest:testIncrementCounterDirect() (gas: 224696) +UpgradeableOpenfortAccountTest:testIncrementCounterViaEntrypoint() (gas: 376027) +UpgradeableOpenfortAccountTest:testIncrementCounterViaEntrypointBatching() (gas: 388257) +UpgradeableOpenfortAccountTest:testIncrementCounterViaSessionKey() (gas: 405632) +UpgradeableOpenfortAccountTest:testIncrementCounterViaSessionKeyExpired() (gas: 375461) +UpgradeableOpenfortAccountTest:testIncrementCounterViaSessionKeyWhitelisting() (gas: 431309) +UpgradeableOpenfortAccountTest:testIncrementCounterViaSessionKeyWhitelistingBatch() (gas: 454553) +UpgradeableOpenfortAccountTest:testMintTokenAccount() (gas: 404880) +UpgradeableOpenfortAccountTest:testReceiveNativeToken() (gas: 200621) +UpgradeableOpenfortAccountTest:testRegisterSessionKeyViaEntrypoint() (gas: 486495) +UpgradeableOpenfortAccountTest:testRegisterSessionKeyViaEntrypoint2ndKey() (gas: 596018) +UpgradeableOpenfortAccountTest:testSimulateValidation() (gas: 301808) +UpgradeableOpenfortAccountTest:testToken():(address) (gas: 2404) +UpgradeableOpenfortAccountTest:testTransferOutNativeToken() (gas: 309145) +UpgradeableOpenfortAccountTest:testUpdateEntryPoint() (gas: 943241) +UpgradeableOpenfortAccountTest:testUpgradeAccount() (gas: 2475320) \ No newline at end of file diff --git a/package.json b/package.json index c3c27dd..5bd53e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openfort/openfort-contracts", - "version": "0.1.0", + "version": "0.2.0", "description": "Official Contracts of the Openfort Project", "scripts": { "build": "npm run clean-all && npm run compile",