Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized committed Mar 19, 2024
2 parents 6db1fc0 + a80604e commit d567213
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 130 deletions.
212 changes: 106 additions & 106 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ BaseInvariantTest:invariantMirror721BalanceSum() (runs: 30, calls: 450, reverts:
BaseInvariantTest:invariantMirrorAndBaseRemainImmutable() (runs: 30, calls: 450, reverts: 0)
BaseInvariantTest:invariantTotalReflectionIsValid() (runs: 30, calls: 450, reverts: 0)
BaseInvariantTest:invariantUserReflectionIsValid() (runs: 30, calls: 450, reverts: 0)
BenchTest:testMintAndTransferDN404_01() (gas: 208984)
BenchTest:testMintAndTransferDN404_02() (gas: 215086)
BenchTest:testMintAndTransferDN404_03() (gas: 221232)
BenchTest:testMintAndTransferDN404_04() (gas: 227379)
BenchTest:testMintAndTransferDN404_05() (gas: 255470)
BenchTest:testMintAndTransferDN404_06() (gas: 261593)
BenchTest:testMintAndTransferDN404_07() (gas: 267731)
BenchTest:testMintAndTransferDN404_08() (gas: 273863)
BenchTest:testMintAndTransferDN404_09() (gas: 345754)
BenchTest:testMintAndTransferDN404_10() (gas: 351835)
BenchTest:testMintAndTransferDN404_11() (gas: 358046)
BenchTest:testMintAndTransferDN404_12() (gas: 364126)
BenchTest:testMintAndTransferDN404_13() (gas: 392173)
BenchTest:testMintAndTransferDN404_14() (gas: 398385)
BenchTest:testMintAndTransferDN404_15() (gas: 404533)
BenchTest:testMintAndTransferDN404_16() (gas: 410678)
BenchTest:testMintAndTransferDN404_01() (gas: 208504)
BenchTest:testMintAndTransferDN404_02() (gas: 214588)
BenchTest:testMintAndTransferDN404_03() (gas: 220716)
BenchTest:testMintAndTransferDN404_04() (gas: 226845)
BenchTest:testMintAndTransferDN404_05() (gas: 254918)
BenchTest:testMintAndTransferDN404_06() (gas: 261023)
BenchTest:testMintAndTransferDN404_07() (gas: 267143)
BenchTest:testMintAndTransferDN404_08() (gas: 273257)
BenchTest:testMintAndTransferDN404_09() (gas: 345130)
BenchTest:testMintAndTransferDN404_10() (gas: 351193)
BenchTest:testMintAndTransferDN404_11() (gas: 357386)
BenchTest:testMintAndTransferDN404_12() (gas: 363448)
BenchTest:testMintAndTransferDN404_13() (gas: 391477)
BenchTest:testMintAndTransferDN404_14() (gas: 397671)
BenchTest:testMintAndTransferDN404_15() (gas: 403801)
BenchTest:testMintAndTransferDN404_16() (gas: 409928)
BenchTest:testMintAndTransferDN420_01() (gas: 135827)
BenchTest:testMintAndTransferDN420_02() (gas: 138887)
BenchTest:testMintAndTransferDN420_03() (gas: 141970)
Expand All @@ -35,22 +35,22 @@ BenchTest:testMintAndTransferDN420_13() (gas: 172843)
BenchTest:testMintAndTransferDN420_14() (gas: 175926)
BenchTest:testMintAndTransferDN420_15() (gas: 178987)
BenchTest:testMintAndTransferDN420_16() (gas: 182049)
BenchTest:testMintDN404_01() (gas: 123546)
BenchTest:testMintDN404_02() (gas: 126639)
BenchTest:testMintDN404_03() (gas: 129707)
BenchTest:testMintDN404_04() (gas: 132802)
BenchTest:testMintDN404_05() (gas: 157836)
BenchTest:testMintDN404_06() (gas: 160907)
BenchTest:testMintDN404_07() (gas: 163998)
BenchTest:testMintDN404_08() (gas: 167114)
BenchTest:testMintDN404_09() (gas: 213961)
BenchTest:testMintDN404_10() (gas: 217055)
BenchTest:testMintDN404_11() (gas: 220168)
BenchTest:testMintDN404_12() (gas: 223238)
BenchTest:testMintDN404_13() (gas: 248231)
BenchTest:testMintDN404_14() (gas: 251322)
BenchTest:testMintDN404_15() (gas: 254456)
BenchTest:testMintDN404_16() (gas: 257528)
BenchTest:testMintDN404_01() (gas: 123309)
BenchTest:testMintDN404_02() (gas: 126402)
BenchTest:testMintDN404_03() (gas: 129470)
BenchTest:testMintDN404_04() (gas: 132565)
BenchTest:testMintDN404_05() (gas: 157599)
BenchTest:testMintDN404_06() (gas: 160670)
BenchTest:testMintDN404_07() (gas: 163761)
BenchTest:testMintDN404_08() (gas: 166877)
BenchTest:testMintDN404_09() (gas: 213724)
BenchTest:testMintDN404_10() (gas: 216818)
BenchTest:testMintDN404_11() (gas: 219931)
BenchTest:testMintDN404_12() (gas: 223001)
BenchTest:testMintDN404_13() (gas: 247994)
BenchTest:testMintDN404_14() (gas: 251085)
BenchTest:testMintDN404_15() (gas: 254219)
BenchTest:testMintDN404_16() (gas: 257291)
BenchTest:testMintDN420_01() (gas: 94501)
BenchTest:testMintDN420_02() (gas: 95950)
BenchTest:testMintDN420_03() (gas: 97333)
Expand All @@ -67,81 +67,81 @@ BenchTest:testMintDN420_13() (gas: 111640)
BenchTest:testMintDN420_14() (gas: 113114)
BenchTest:testMintDN420_15() (gas: 114496)
BenchTest:testMintDN420_16() (gas: 115948)
BenchTest:test__codesize() (gas: 28697)
DN404CustomUnitTest:testInitializeCorrectUnitSuccess() (gas: 129992)
BenchTest:test__codesize() (gas: 28670)
DN404CustomUnitTest:testInitializeCorrectUnitSuccess() (gas: 129962)
DN404CustomUnitTest:testInitializeWithUnitTooLargeReverts() (gas: 33824)
DN404CustomUnitTest:testInitializeWithZeroUnitReverts() (gas: 13897)
DN404CustomUnitTest:testMint() (gas: 764779)
DN404CustomUnitTest:testMintWithoutNFTs(uint256,uint256,uint256) (runs: 258, μ: 685149, ~: 764102)
DN404CustomUnitTest:testNFTMint() (gas: 59220902)
DN404CustomUnitTest:testNFTMintAndBurn(uint256,uint256,uint256) (runs: 258, μ: 1144481, ~: 763505)
DN404CustomUnitTest:testNFTMintViaTransfer(uint256,uint256,uint256) (runs: 258, μ: 735928, ~: 842344)
DN404CustomUnitTest:testTotalSupplyOverflowsTrick(uint256,uint256) (runs: 258, μ: 638, ~: 692)
DN404CustomUnitTest:testTotalSupplyOverflowsTrick(uint256,uint256,uint256) (runs: 258, μ: 780, ~: 746)
DN404CustomUnitTest:testMint() (gas: 764319)
DN404CustomUnitTest:testMintWithoutNFTs(uint256,uint256,uint256) (runs: 258, μ: 670118, ~: 763731)
DN404CustomUnitTest:testNFTMint() (gas: 60455413)
DN404CustomUnitTest:testNFTMintAndBurn(uint256,uint256,uint256) (runs: 258, μ: 1168345, ~: 763069)
DN404CustomUnitTest:testNFTMintViaTransfer(uint256,uint256,uint256) (runs: 258, μ: 705503, ~: 841285)
DN404CustomUnitTest:testTotalSupplyOverflowsTrick(uint256,uint256) (runs: 258, μ: 635, ~: 692)
DN404CustomUnitTest:testTotalSupplyOverflowsTrick(uint256,uint256,uint256) (runs: 258, μ: 781, ~: 746)
DN404CustomUnitTest:testUnitInvalidCheckTrick(uint256) (runs: 258, μ: 548, ~: 550)
DN404CustomUnitTest:test__codesize() (gas: 28387)
DN404MirrorTest:testBaseERC20() (gas: 114608)
DN404CustomUnitTest:test__codesize() (gas: 28382)
DN404MirrorTest:testBaseERC20() (gas: 114578)
DN404MirrorTest:testFnSelectorNotRecognized() (gas: 7032)
DN404MirrorTest:testLinkMirrorContract() (gas: 45864)
DN404MirrorTest:testLogDirectTransfers() (gas: 1610907)
DN404MirrorTest:testLogTransfer() (gas: 120685)
DN404MirrorTest:testNameAndSymbol(string,string) (runs: 258, μ: 207604, ~: 208117)
DN404MirrorTest:testLogDirectTransfers() (gas: 1606798)
DN404MirrorTest:testLogTransfer() (gas: 120655)
DN404MirrorTest:testNameAndSymbol(string,string) (runs: 258, μ: 207574, ~: 208087)
DN404MirrorTest:testNotLinked() (gas: 12767)
DN404MirrorTest:testPullOwner() (gas: 112643)
DN404MirrorTest:testPullOwnerWithOwnable() (gas: 3289528)
DN404MirrorTest:testSafeTransferFrom(uint32) (runs: 258, μ: 2315506, ~: 2315489)
DN404MirrorTest:testSetAndGetApprovalForAll() (gas: 2170983)
DN404MirrorTest:testSetAndGetApproved() (gas: 2167717)
DN404MirrorTest:testPullOwner() (gas: 112613)
DN404MirrorTest:testPullOwnerWithOwnable() (gas: 3284890)
DN404MirrorTest:testSafeTransferFrom(uint32) (runs: 258, μ: 2308447, ~: 2308395)
DN404MirrorTest:testSetAndGetApprovalForAll() (gas: 2165706)
DN404MirrorTest:testSetAndGetApproved() (gas: 2162800)
DN404MirrorTest:testSupportsInterface() (gas: 7544)
DN404MirrorTest:testTokenURI(string,uint256) (runs: 258, μ: 158086, ~: 135821)
DN404MirrorTest:testTransferFrom(uint32) (runs: 258, μ: 2219126, ~: 2219076)
DN404MirrorTest:testTransferFromMixed(uint256) (runs: 258, μ: 10844442, ~: 8629376)
DN404MirrorTest:test__codesize() (gas: 57325)
DN404MirrorTest:testTokenURI(string,uint256) (runs: 258, μ: 158056, ~: 135791)
DN404MirrorTest:testTransferFrom(uint32) (runs: 258, μ: 2209990, ~: 2210027)
DN404MirrorTest:testTransferFromMixed(uint256) (runs: 258, μ: 10566022, ~: 8538957)
DN404MirrorTest:test__codesize() (gas: 57279)
DN404OnlyERC20Test:testApprove() (gas: 35803)
DN404OnlyERC20Test:testApprove(address,uint256) (runs: 258, μ: 30119, ~: 31354)
DN404OnlyERC20Test:testBurn() (gas: 52009)
DN404OnlyERC20Test:testBurn(address,uint256,uint256) (runs: 258, μ: 53070, ~: 53210)
DN404OnlyERC20Test:testBurnInsufficientBalanceReverts(address,uint256,uint256) (runs: 258, μ: 46324, ~: 46312)
DN404OnlyERC20Test:testInfiniteApproveTransferFrom() (gas: 104918)
DN404OnlyERC20Test:testBurn() (gas: 51486)
DN404OnlyERC20Test:testBurn(address,uint256,uint256) (runs: 258, μ: 52571, ~: 52687)
DN404OnlyERC20Test:testBurnInsufficientBalanceReverts(address,uint256,uint256) (runs: 258, μ: 45709, ~: 45780)
DN404OnlyERC20Test:testInfiniteApproveTransferFrom() (gas: 104368)
DN404OnlyERC20Test:testMaxSupplyTrick(uint256) (runs: 258, μ: 541, ~: 541)
DN404OnlyERC20Test:testMetadata() (gas: 10044)
DN404OnlyERC20Test:testMint() (gas: 47577)
DN404OnlyERC20Test:testMintOverMaxLimitReverts() (gas: 43571)
DN404OnlyERC20Test:testMintz(address,uint256) (runs: 258, μ: 47891, ~: 47999)
DN404OnlyERC20Test:testTransfer() (gas: 77636)
DN404OnlyERC20Test:testTransfer(address,uint256) (runs: 258, μ: 77963, ~: 78093)
DN404OnlyERC20Test:testTransferFrom() (gas: 87376)
DN404OnlyERC20Test:testTransferFrom(address,address,address,uint256,uint256) (runs: 258, μ: 107960, ~: 110345)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts() (gas: 70282)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts(address,uint256,uint256) (runs: 258, μ: 70985, ~: 71392)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts() (gas: 77235)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts(address,uint256,uint256) (runs: 258, μ: 78305, ~: 78356)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts() (gas: 68734)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts(address,uint256,uint256) (runs: 258, μ: 69868, ~: 69830)
DN404OnlyERC20Test:test__codesize() (gas: 30292)
DN404Test:testBatchNFTLog() (gas: 3670932)
DN404Test:testBurnOnTransfer(uint32,address) (runs: 258, μ: 1644456, ~: 1501184)
DN404OnlyERC20Test:testMint() (gas: 47556)
DN404OnlyERC20Test:testMintOverMaxLimitReverts() (gas: 43535)
DN404OnlyERC20Test:testMintz(address,uint256) (runs: 258, μ: 48044, ~: 47978)
DN404OnlyERC20Test:testTransfer() (gas: 77086)
DN404OnlyERC20Test:testTransfer(address,uint256) (runs: 258, μ: 77436, ~: 77543)
DN404OnlyERC20Test:testTransferFrom() (gas: 86826)
DN404OnlyERC20Test:testTransferFrom(address,address,address,uint256,uint256) (runs: 258, μ: 107523, ~: 109795)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts() (gas: 70261)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts(address,uint256,uint256) (runs: 258, μ: 70785, ~: 71366)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts() (gas: 76697)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts(address,uint256,uint256) (runs: 258, μ: 77843, ~: 77818)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts() (gas: 68196)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts(address,uint256,uint256) (runs: 258, μ: 69230, ~: 69292)
DN404OnlyERC20Test:test__codesize() (gas: 30269)
DN404Test:testBatchNFTLog() (gas: 3843676)
DN404Test:testBurnOnTransfer(uint32,address) (runs: 258, μ: 1651212, ~: 1497089)
DN404Test:testFnSelectorNotRecognized() (gas: 6974)
DN404Test:testInitialize(uint32,address) (runs: 258, μ: 113100, ~: 116323)
DN404Test:testMintAndBurn() (gas: 2792646)
DN404Test:testMintAndBurn2() (gas: 3355751)
DN404Test:testMintNext() (gas: 2476800)
DN404Test:testMintNextMixed(uint256) (runs: 258, μ: 11279993, ~: 7283849)
DN404Test:testMintOnTransfer(uint32,address) (runs: 258, μ: 1016576, ~: 903330)
DN404Test:testMixed(uint256) (runs: 258, μ: 9190713, ~: 5481989)
DN404Test:testNameAndSymbol(string,string) (runs: 258, μ: 207322, ~: 207835)
DN404Test:testNumAliasesOverflowReverts() (gas: 57369)
DN404Test:testOwnedIds() (gas: 15735632)
DN404Test:testOwnedIds(uint256) (runs: 258, μ: 1677360, ~: 1513374)
DN404Test:testPermit2() (gas: 2899852)
DN404Test:testRegisterAndResolveAlias(address,address) (runs: 258, μ: 126590, ~: 126677)
DN404Test:testInitialize(uint32,address) (runs: 258, μ: 112875, ~: 116293)
DN404Test:testMintAndBurn() (gas: 2785258)
DN404Test:testMintAndBurn2() (gas: 3346549)
DN404Test:testMintNext() (gas: 2471299)
DN404Test:testMintNextMixed(uint256) (runs: 258, μ: 11300860, ~: 7087341)
DN404Test:testMintOnTransfer(uint32,address) (runs: 258, μ: 995234, ~: 901215)
DN404Test:testMixed(uint256) (runs: 258, μ: 9821914, ~: 6304092)
DN404Test:testNameAndSymbol(string,string) (runs: 258, μ: 207292, ~: 207805)
DN404Test:testNumAliasesOverflowReverts() (gas: 57345)
DN404Test:testOwnedIds() (gas: 15691833)
DN404Test:testOwnedIds(uint256) (runs: 258, μ: 1667659, ~: 1509731)
DN404Test:testPermit2() (gas: 2892016)
DN404Test:testRegisterAndResolveAlias(address,address) (runs: 258, μ: 126419, ~: 126593)
DN404Test:testSetAndGetAux(address,uint88) (runs: 258, μ: 22075, ~: 22344)
DN404Test:testSetAndGetOperatorApprovals(address,address,bool) (runs: 258, μ: 129289, ~: 120342)
DN404Test:testSetAndGetSkipNFT() (gas: 719817)
DN404Test:testTokenURI(string,uint256) (runs: 258, μ: 157952, ~: 135687)
DN404Test:testTransfersAndBurns() (gas: 2924439)
DN404Test:testWrapAround(uint32,uint256) (runs: 258, μ: 3705836, ~: 3425799)
DN404Test:test__codesize() (gas: 57382)
DN404Test:testSetAndGetOperatorApprovals(address,address,bool) (runs: 258, μ: 129363, ~: 120416)
DN404Test:testSetAndGetSkipNFT() (gas: 719127)
DN404Test:testTokenURI(string,uint256) (runs: 258, μ: 157922, ~: 135657)
DN404Test:testTransfersAndBurns() (gas: 2916475)
DN404Test:testWrapAround(uint32,uint256) (runs: 258, μ: 3746256, ~: 3412953)
DN404Test:test__codesize() (gas: 57359)
DN420OnlyERC20Test:testApprove() (gas: 35770)
DN420OnlyERC20Test:testApprove(address,uint256) (runs: 258, μ: 30086, ~: 31321)
DN420OnlyERC20Test:testBurn() (gas: 50438)
Expand Down Expand Up @@ -190,21 +190,21 @@ MappingsTest:testUint32MapSetAndGet(uint256) (runs: 258, μ: 1322218, ~: 1465647
MappingsTest:testUint32MapSetAndGet(uint256,uint256,uint32,uint32) (runs: 258, μ: 43149, ~: 46200)
MappingsTest:testWrapNFTIdWithOverflowCheck(uint256,uint256,uint256) (runs: 258, μ: 826, ~: 852)
MappingsTest:test__codesize() (gas: 9063)
MintTests:test_WhenAmountIsGreaterThan_MAX_SUPPLYOrMintMakesNFTTotalSupplyExceed_MAX_SUPPLY(uint256) (runs: 258, μ: 777538, ~: 680342)
MintTests:test_WhenRecipientAddressHasSkipNFTEnabled(uint256) (runs: 258, μ: 793418, ~: 701518)
MintTests:test_WhenRecipientIsAddress0(uint256) (runs: 258, μ: 694980, ~: 646331)
MintTests:test_WhenRecipientsBalanceDifferenceIsNotUpTo1e18(uint256) (runs: 258, μ: 1029051, ~: 698516)
MintTests:test_WhenRecipientsBalanceDifferenceIsUpTo1e18OrAbove(uint256) (runs: 258, μ: 781120, ~: 705038)
MintTests:test__codesize() (gas: 26743)
NFTMintDN404Test:testAllowlistMint() (gas: 257485)
NFTMintDN404Test:testMint() (gas: 231816)
NFTMintDN404Test:testTotalSupplyReached() (gas: 629746900)
NFTMintDN404Test:test__codesize() (gas: 26536)
SimpleDN404Test:testMint() (gas: 47592)
MintTests:test_WhenAmountIsGreaterThan_MAX_SUPPLYOrMintMakesNFTTotalSupplyExceed_MAX_SUPPLY(uint256) (runs: 258, μ: 789234, ~: 678293)
MintTests:test_WhenRecipientAddressHasSkipNFTEnabled(uint256) (runs: 258, μ: 796376, ~: 699877)
MintTests:test_WhenRecipientIsAddress0(uint256) (runs: 258, μ: 686507, ~: 644635)
MintTests:test_WhenRecipientsBalanceDifferenceIsNotUpTo1e18(uint256) (runs: 258, μ: 1034804, ~: 696763)
MintTests:test_WhenRecipientsBalanceDifferenceIsUpTo1e18OrAbove(uint256) (runs: 258, μ: 790552, ~: 703210)
MintTests:test__codesize() (gas: 26720)
NFTMintDN404Test:testAllowlistMint() (gas: 257449)
NFTMintDN404Test:testMint() (gas: 231750)
NFTMintDN404Test:testTotalSupplyReached() (gas: 629566900)
NFTMintDN404Test:test__codesize() (gas: 26501)
SimpleDN404Test:testMint() (gas: 47571)
SimpleDN404Test:testName() (gas: 9674)
SimpleDN404Test:testSetBaseURI() (gas: 47011)
SimpleDN404Test:testSymbol() (gas: 9672)
SimpleDN404Test:testWithdraw() (gas: 18277)
SimpleDN404Test:test__codesize() (gas: 20255)
SimpleDN404Test:test__codesize() (gas: 20220)
SoladyTest:test__codesize() (gas: 1102)
TestPlus:test__codesize() (gas: 406)
Loading

0 comments on commit d567213

Please sign in to comment.