diff --git a/.gas-snapshot b/.gas-snapshot index 64f39e1..f792d95 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,24 +1,2 @@ -MultiOwnerPluginIntegration:test_ownerPlugin_successInstallation() (gas: 39749) -MultiOwnerPluginIntegration:test_runtimeValidation_alwaysAllow_isValidSignature() (gas: 111927) -MultiOwnerPluginIntegration:test_runtimeValidation_ownerOrSelf_standardExecute() (gas: 146828) -MultiOwnerPluginIntegration:test_userOpValidation_owner_standardExecute() (gas: 332445) -MultiOwnerPluginTest:testFuzz_isValidSignature_ContractOwner(bytes32) (runs: 256, μ: 111585, ~: 111585) -MultiOwnerPluginTest:testFuzz_isValidSignature_ContractOwnerWithEOAOwner(bytes32) (runs: 256, μ: 121995, ~: 121995) -MultiOwnerPluginTest:testFuzz_isValidSignature_EOAOwner(string,bytes32) (runs: 256, μ: 134007, ~: 134000) -MultiOwnerPluginTest:testFuzz_isValidSignature_PasskeyOwner(bytes32) (runs: 256, μ: 540852, ~: 540606) -MultiOwnerPluginTest:testFuzz_userOpValidationFunction_ContractOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 133712, ~: 133709) -MultiOwnerPluginTest:testFuzz_userOpValidationFunction_ContractOwnerWithEOAOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 147415, ~: 147412) -MultiOwnerPluginTest:testFuzz_userOpValidationFunction_EOAOwner(string,(address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 141609, ~: 141599) -MultiOwnerPluginTest:testFuzz_userOpValidationFunction_PasskeyOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 256, μ: 547602, ~: 547725) -MultiOwnerPluginTest:test_eip712Domain() (gas: 36308) -MultiOwnerPluginTest:test_multiOwnerPlugin_sentinelIsNotOwner() (gas: 19897) -MultiOwnerPluginTest:test_onInstall_success() (gas: 91258) -MultiOwnerPluginTest:test_onUninstall_success() (gas: 69907) -MultiOwnerPluginTest:test_pluginInitializeGuards() (gas: 155534) -MultiOwnerPluginTest:test_pluginManifest() (gas: 39947) -MultiOwnerPluginTest:test_runtimeValidationFunction_OwnerOrSelf() (gas: 26864) -MultiOwnerPluginTest:test_updateOwners_failWithDuplicatedAddresses() (gas: 85507) -MultiOwnerPluginTest:test_updateOwners_failWithEmptyOwners() (gas: 73894) -MultiOwnerPluginTest:test_updateOwners_failWithNotExist() (gas: 58820) -MultiOwnerPluginTest:test_updateOwners_failWithZeroAddressOwner() (gas: 62527) -MultiOwnerPluginTest:test_updateOwners_success() (gas: 115523) \ No newline at end of file +MultiOwnerPluginTest:testFuzz_isValidSignature_PasskeyOwner(bytes32) (runs: 2, μ: 536969, ~: 536969) +MultiOwnerPluginTest:testFuzz_userOpValidationFunction_PasskeyOwner((address,uint256,bytes,bytes,uint256,uint256,uint256,uint256,uint256,bytes,bytes)) (runs: 2, μ: 544517, ~: 544517) \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6e79871..b43ffab 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,16 +11,14 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - - uses: actions/setup-node@v4 - with: - node-version: 20 - uses: oven-sh/setup-bun@v1 - uses: foundry-rs/foundry-toolchain@v1 - - uses: actions/setup-python@v5 - with: - python-version: '3.11' - cache: pip - - run: pip install -r requirements.txt - run: bun install - - run: forge build - - run: bun run test + - run: rm -rf cache out + - run: forge snapshot --check --force --mt PasskeyOwner -vvvvv > trace.github.log + - uses: actions/upload-artifact@v4 + if: always() + with: + path: | + out + *.github.log diff --git a/foundry.toml b/foundry.toml index 5eac7bd..883161f 100644 --- a/foundry.toml +++ b/foundry.toml @@ -10,3 +10,6 @@ isolate = true tab_width = 2 bracket_spacing = true number_underscore = "thousands" + +[fuzz] +runs = 2