diff --git a/.gas-snapshot b/.gas-snapshot index 516297b..a539faa 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -1,34 +1,34 @@ -DagonTest:testBurn(address,uint96) (runs: 256, μ: 152844, ~: 152844) -DagonTest:testDeploy() (gas: 2158458) -DagonTest:testFailBurnOverBalance(address,uint96) (runs: 256, μ: 187322, ~: 188489) -DagonTest:testFailBurnOverThreshold(address,uint96) (runs: 256, μ: 218557, ~: 219724) -DagonTest:testFailInvalidThresholdExceedsSupply() (gas: 158952) -DagonTest:testFailInvalidThresholdExceedsSupply2() (gas: 164073) -DagonTest:testFailInvalidThresholdNull() (gas: 158999) -DagonTest:testFailIsValidSignature2of3ForInsufficientSignatures() (gas: 200824) -DagonTest:testFailIsValidSignatureOutOfOrder() (gas: 238855) -DagonTest:testFailIsValidSignatureWeighted() (gas: 230070) -DagonTest:testFailIsValidSignatureWeightedERC1155() (gas: 36178) -DagonTest:testFailIsValidSignatureWeightedERC20() (gas: 239645) -DagonTest:testFailIsValidSignatureWeightedERC6909() (gas: 231857) -DagonTest:testFailIsValidSignatureWeightedERC721() (gas: 210897) -DagonTest:testFailSetTokenInvalidStd(address) (runs: 256, μ: 157999, ~: 157999) -DagonTest:testFailTransferFromInactiveAuth(address,address,uint96) (runs: 256, μ: 191916, ~: 192694) -DagonTest:testFailTransferOverBalance(address,address,uint96) (runs: 256, μ: 186431, ~: 187209) -DagonTest:testInstall() (gas: 137315) -DagonTest:testIsValidSignature() (gas: 150548) -DagonTest:testIsValidSignature2of3() (gas: 196480) -DagonTest:testIsValidSignature3of3() (gas: 204074) -DagonTest:testIsValidSignatureOnchain() (gas: 197196) -DagonTest:testIsValidSignatureWeighted() (gas: 233445) -DagonTest:testIsValidSignatureWeightedERC1155() (gas: 249253) -DagonTest:testIsValidSignatureWeightedERC20() (gas: 248770) -DagonTest:testIsValidSignatureWeightedERC6909() (gas: 249238) -DagonTest:testIsValidSignatureWeightedERC721() (gas: 209307) -DagonTest:testNameAndSymbolAndDecimals(uint256) (runs: 256, μ: 14988, ~: 14988) -DagonTest:testSetAuth(address) (runs: 256, μ: 145541, ~: 145541) -DagonTest:testSetThreshold() (gas: 147432) -DagonTest:testSetToken(address) (runs: 256, μ: 148225, ~: 148225) -DagonTest:testSetURI() (gas: 164948) -DagonTest:testTransfer(address,address,uint88) (runs: 256, μ: 175924, ~: 176780) -DagonTest:testTransferWithAuth(address,address,uint96) (runs: 256, μ: 179981, ~: 180730) \ No newline at end of file +DagonTest:testBurn(address,uint96) (runs: 256, μ: 152603, ~: 152603) +DagonTest:testDeploy() (gas: 2076145) +DagonTest:testFailBurnOverBalance(address,uint96) (runs: 256, μ: 187194, ~: 188205) +DagonTest:testFailBurnOverThreshold(address,uint96) (runs: 256, μ: 219315, ~: 220326) +DagonTest:testFailInvalidThresholdExceedsSupply() (gas: 159165) +DagonTest:testFailInvalidThresholdExceedsSupply2() (gas: 164500) +DagonTest:testFailInvalidThresholdNull() (gas: 158965) +DagonTest:testFailIsValidSignature2of3ForInsufficientSignatures() (gas: 199542) +DagonTest:testFailIsValidSignatureOutOfOrder() (gas: 236696) +DagonTest:testFailIsValidSignatureWeighted() (gas: 228674) +DagonTest:testFailIsValidSignatureWeightedERC1155() (gas: 37107) +DagonTest:testFailIsValidSignatureWeightedERC20() (gas: 237740) +DagonTest:testFailIsValidSignatureWeightedERC6909() (gas: 230296) +DagonTest:testFailIsValidSignatureWeightedERC721() (gas: 208670) +DagonTest:testFailSetTokenInvalidStd(address) (runs: 256, μ: 158080, ~: 158080) +DagonTest:testFailTransferFromInactiveAuth(address,address,uint96) (runs: 256, μ: 191657, ~: 192357) +DagonTest:testFailTransferOverBalance(address,address,uint96) (runs: 256, μ: 186354, ~: 187054) +DagonTest:testInstall() (gas: 137258) +DagonTest:testIsValidSignature() (gas: 150095) +DagonTest:testIsValidSignature2of3() (gas: 195817) +DagonTest:testIsValidSignature3of3() (gas: 203345) +DagonTest:testIsValidSignatureOnchain() (gas: 196765) +DagonTest:testIsValidSignatureWeighted() (gas: 232390) +DagonTest:testIsValidSignatureWeightedERC1155() (gas: 247342) +DagonTest:testIsValidSignatureWeightedERC20() (gas: 247056) +DagonTest:testIsValidSignatureWeightedERC6909() (gas: 247704) +DagonTest:testIsValidSignatureWeightedERC721() (gas: 208282) +DagonTest:testNameAndSymbolAndDecimals(uint256) (runs: 256, μ: 15387, ~: 15387) +DagonTest:testSetAuth(address) (runs: 256, μ: 144727, ~: 144727) +DagonTest:testSetThreshold() (gas: 147256) +DagonTest:testSetToken(address) (runs: 256, μ: 148566, ~: 148566) +DagonTest:testSetURI() (gas: 165488) +DagonTest:testTransfer(address,address,uint88) (runs: 256, μ: 175849, ~: 176705) +DagonTest:testTransferWithAuth(address,address,uint96) (runs: 256, μ: 179502, ~: 180239) \ No newline at end of file diff --git a/foundry.toml b/foundry.toml index 0f8be00..2766456 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,6 +2,8 @@ solc_version = "0.8.23" evm_version = "shanghai" +via_ir = true + optimizer = true optimizer_runs = 9_999_999 @@ -14,8 +16,5 @@ remappings = [ [fmt] line_length = 100 -[profile.via-ir] -via_ir = true - [rpc_endpoints] main = "https://rpc.ankr.com/eth" \ No newline at end of file