Skip to content

Commit

Permalink
⚡ via_ir
Browse files Browse the repository at this point in the history
  • Loading branch information
z0r0z committed Jan 14, 2024
1 parent 56eeb4d commit 4a821ce
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 37 deletions.
68 changes: 34 additions & 34 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -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)
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)
5 changes: 2 additions & 3 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
solc_version = "0.8.23"
evm_version = "shanghai"

via_ir = true

optimizer = true
optimizer_runs = 9_999_999

Expand All @@ -14,8 +16,5 @@ remappings = [
[fmt]
line_length = 100

[profile.via-ir]
via_ir = true

[rpc_endpoints]
main = "https://rpc.ankr.com/eth"

0 comments on commit 4a821ce

Please sign in to comment.