Skip to content

Commit

Permalink
♻️ Remove dependency on LibMap (Vectorized#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vectorized authored Feb 12, 2024
1 parent 233e6f4 commit c607d3d
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 184 deletions.
148 changes: 94 additions & 54 deletions .gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,85 +1,125 @@
BenchTest:testMintAndTransferTokensDN404_01() (gas: 212708)
BenchTest:testMintAndTransferTokensDN404_02() (gas: 247138)
BenchTest:testMintAndTransferTokensDN404_04() (gas: 274238)
BenchTest:testMintAndTransferTokensDN404_08() (gas: 348385)
BenchTest:testMintAndTransferTokensDN404_16() (gas: 540454)
BenchTest:testMintAndTransferTokensDN404_32() (gas: 924705)
BenchTest:testMintAndTransferTokensPandora_01() (gas: 190500)
BenchTest:testMintAndTransferTokensPandora_02() (gas: 306382)
BenchTest:testMintAndTransferTokensPandora_04() (gas: 538183)
BenchTest:testMintAndTransferTokensPandora_08() (gas: 1001802)
BenchTest:testMintAndTransferTokensPandora_16() (gas: 1928966)
BenchTest:testMintAndTransferTokensPandora_32() (gas: 3783400)
BenchTest:testMintTokensDN404_01() (gas: 123295)
BenchTest:testMintTokensDN404_02() (gas: 126847)
BenchTest:testMintTokensDN404_04() (gas: 155848)
BenchTest:testMintTokensDN404_08() (gas: 192064)
BenchTest:testMintTokensDN404_16() (gas: 286248)
BenchTest:testMintTokensDN404_32() (gas: 474610)
BenchTest:testMintTokensPandora_01() (gas: 133881)
BenchTest:testMintTokensPandora_02() (gas: 203429)
BenchTest:testMintTokensPandora_04() (gas: 342392)
BenchTest:testMintTokensPandora_08() (gas: 620452)
BenchTest:testMintTokensPandora_16() (gas: 1176485)
BenchTest:testMintTokensPandora_32() (gas: 2288570)
BenchTest:test__codesize() (gas: 24824)
BenchTest:testMintAndTransferDN404_01() (gas: 211467)
BenchTest:testMintAndTransferDN404_02() (gas: 244745)
BenchTest:testMintAndTransferDN404_03() (gas: 236183)
BenchTest:testMintAndTransferDN404_04() (gas: 269465)
BenchTest:testMintAndTransferDN404_05() (gas: 280824)
BenchTest:testMintAndTransferDN404_06() (gas: 314061)
BenchTest:testMintAndTransferDN404_07() (gas: 305512)
BenchTest:testMintAndTransferDN404_08() (gas: 338803)
BenchTest:testMintAndTransferDN404_09() (gas: 393918)
BenchTest:testMintAndTransferDN404_10() (gas: 427156)
BenchTest:testMintAndTransferDN404_11() (gas: 418637)
BenchTest:testMintAndTransferDN404_12() (gas: 451940)
BenchTest:testMintAndTransferDN404_13() (gas: 463255)
BenchTest:testMintAndTransferDN404_14() (gas: 496514)
BenchTest:testMintAndTransferDN404_15() (gas: 487953)
BenchTest:testMintAndTransferDN404_16() (gas: 521256)
BenchTest:testMintAndTransferPandora_01() (gas: 190491)
BenchTest:testMintAndTransferPandora_02() (gas: 306372)
BenchTest:testMintAndTransferPandora_03() (gas: 422256)
BenchTest:testMintAndTransferPandora_04() (gas: 538156)
BenchTest:testMintAndTransferPandora_05() (gas: 654092)
BenchTest:testMintAndTransferPandora_06() (gas: 769973)
BenchTest:testMintAndTransferPandora_07() (gas: 885890)
BenchTest:testMintAndTransferPandora_08() (gas: 1001773)
BenchTest:testMintAndTransferPandora_09() (gas: 1117673)
BenchTest:testMintAndTransferPandora_10() (gas: 1233556)
BenchTest:testMintAndTransferPandora_11() (gas: 1349472)
BenchTest:testMintAndTransferPandora_12() (gas: 1465408)
BenchTest:testMintAndTransferPandora_13() (gas: 1581274)
BenchTest:testMintAndTransferPandora_14() (gas: 1697190)
BenchTest:testMintAndTransferPandora_15() (gas: 1813056)
BenchTest:testMintAndTransferPandora_16() (gas: 1929009)
BenchTest:testMintDN404_01() (gas: 122943)
BenchTest:testMintDN404_02() (gas: 126123)
BenchTest:testMintDN404_03() (gas: 129263)
BenchTest:testMintDN404_04() (gas: 154390)
BenchTest:testMintDN404_05() (gas: 157571)
BenchTest:testMintDN404_06() (gas: 160689)
BenchTest:testMintDN404_07() (gas: 163940)
BenchTest:testMintDN404_08() (gas: 188978)
BenchTest:testMintDN404_09() (gas: 214083)
BenchTest:testMintDN404_10() (gas: 217246)
BenchTest:testMintDN404_11() (gas: 220427)
BenchTest:testMintDN404_12() (gas: 245511)
BenchTest:testMintDN404_13() (gas: 248694)
BenchTest:testMintDN404_14() (gas: 251855)
BenchTest:testMintDN404_15() (gas: 255079)
BenchTest:testMintDN404_16() (gas: 280142)
BenchTest:testMintPandora_01() (gas: 133912)
BenchTest:testMintPandora_02() (gas: 203416)
BenchTest:testMintPandora_03() (gas: 272897)
BenchTest:testMintPandora_04() (gas: 342371)
BenchTest:testMintPandora_05() (gas: 411929)
BenchTest:testMintPandora_06() (gas: 481455)
BenchTest:testMintPandora_07() (gas: 550914)
BenchTest:testMintPandora_08() (gas: 620441)
BenchTest:testMintPandora_09() (gas: 689944)
BenchTest:testMintPandora_10() (gas: 759449)
BenchTest:testMintPandora_11() (gas: 828907)
BenchTest:testMintPandora_12() (gas: 898435)
BenchTest:testMintPandora_13() (gas: 967960)
BenchTest:testMintPandora_14() (gas: 1037484)
BenchTest:testMintPandora_15() (gas: 1106967)
BenchTest:testMintPandora_16() (gas: 1176473)
BenchTest:test__codesize() (gas: 29464)
DN404MirrorTest:testBaseERC20() (gas: 114753)
DN404MirrorTest:testLinkMirrorContract() (gas: 45802)
DN404MirrorTest:testLogTransfer() (gas: 120757)
DN404MirrorTest:testNameAndSymbol(string,string) (runs: 256, μ: 207652, ~: 207995)
DN404MirrorTest:testNotLinked() (gas: 12698)
DN404MirrorTest:testSafeTransferFrom(uint32) (runs: 256, μ: 469698, ~: 469691)
DN404MirrorTest:testSetAndGetApprovalForAll() (gas: 325387)
DN404MirrorTest:testSetAndGetApproved() (gas: 318214)
DN404MirrorTest:testSafeTransferFrom(uint32) (runs: 256, μ: 467764, ~: 467756)
DN404MirrorTest:testSetAndGetApprovalForAll() (gas: 325000)
DN404MirrorTest:testSetAndGetApproved() (gas: 318322)
DN404MirrorTest:testSupportsInterface() (gas: 7544)
DN404MirrorTest:testTokenURI(string,uint256) (runs: 256, μ: 158189, ~: 135888)
DN404MirrorTest:testTransferFrom(uint32) (runs: 256, μ: 344588, ~: 344576)
DN404MirrorTest:test__codesize() (gas: 30387)
DN404MirrorTest:testTransferFrom(uint32) (runs: 256, μ: 342668, ~: 342661)
DN404MirrorTest:test__codesize() (gas: 29898)
DN404OnlyERC20Test:testApprove() (gas: 35912)
DN404OnlyERC20Test:testApprove(address,uint256) (runs: 256, μ: 30219, ~: 31463)
DN404OnlyERC20Test:testBurn() (gas: 49769)
DN404OnlyERC20Test:testBurn(address,uint256,uint256) (runs: 256, μ: 50858, ~: 50970)
DN404OnlyERC20Test:testBurnInsufficientBalanceReverts(address,uint256,uint256) (runs: 256, μ: 43805, ~: 43888)
DN404OnlyERC20Test:testBurn(address,uint256,uint256) (runs: 256, μ: 50847, ~: 50970)
DN404OnlyERC20Test:testBurnInsufficientBalanceReverts(address,uint256,uint256) (runs: 256, μ: 43813, ~: 43879)
DN404OnlyERC20Test:testInfiniteApproveTransferFrom() (gas: 102011)
DN404OnlyERC20Test:testMaxSupplyTrick(uint256) (runs: 256, μ: 541, ~: 541)
DN404OnlyERC20Test:testMetadata() (gas: 10111)
DN404OnlyERC20Test:testMint() (gas: 45320)
DN404OnlyERC20Test:testMintOverMaxLimitReverts() (gas: 40544)
DN404OnlyERC20Test:testMintz(address,uint256) (runs: 256, μ: 45818, ~: 45742)
DN404OnlyERC20Test:testMintz(address,uint256) (runs: 256, μ: 45815, ~: 45742)
DN404OnlyERC20Test:testTransfer() (gas: 74556)
DN404OnlyERC20Test:testTransfer(address,uint256) (runs: 256, μ: 74899, ~: 75013)
DN404OnlyERC20Test:testTransfer(address,uint256) (runs: 256, μ: 74912, ~: 75013)
DN404OnlyERC20Test:testTransferFrom() (gas: 84636)
DN404OnlyERC20Test:testTransferFrom(address,address,address,uint256,uint256) (runs: 256, μ: 105698, ~: 107617)
DN404OnlyERC20Test:testTransferFrom(address,address,address,uint256,uint256) (runs: 256, μ: 105391, ~: 107617)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts() (gas: 68086)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts(address,uint256,uint256) (runs: 256, μ: 68600, ~: 69187)
DN404OnlyERC20Test:testTransferFromInsufficientAllowanceReverts(address,uint256,uint256) (runs: 256, μ: 68607, ~: 69187)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts() (gas: 75030)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts(address,uint256,uint256) (runs: 256, μ: 76174, ~: 76160)
DN404OnlyERC20Test:testTransferFromInsufficientBalanceReverts(address,uint256,uint256) (runs: 256, μ: 76183, ~: 76160)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts() (gas: 66261)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts(address,uint256,uint256) (runs: 256, μ: 67396, ~: 67384)
DN404OnlyERC20Test:test__codesize() (gas: 29774)
DN404Test:testBatchNFTLog() (gas: 314471)
DN404Test:testBurnOnTransfer(uint32,address) (runs: 256, μ: 264026, ~: 264046)
DN404Test:testInitialize(uint32,address) (runs: 256, μ: 112902, ~: 116477)
DN404Test:testMintAndBurn() (gas: 339377)
DN404Test:testMintAndBurn2() (gas: 263133)
DN404Test:testMintOnTransfer(uint32,address) (runs: 256, μ: 262610, ~: 262620)
DN404Test:testMixed(uint256) (runs: 256, μ: 600208, ~: 572067)
DN404OnlyERC20Test:testTransferInsufficientBalanceReverts(address,uint256,uint256) (runs: 256, μ: 67302, ~: 67357)
DN404OnlyERC20Test:test__codesize() (gas: 29362)
DN404Test:testBatchNFTLog() (gas: 306241)
DN404Test:testBurnOnTransfer(uint32,address) (runs: 256, μ: 264116, ~: 264136)
DN404Test:testInitialize(uint32,address) (runs: 256, μ: 112826, ~: 116477)
DN404Test:testMintAndBurn() (gas: 336898)
DN404Test:testMintAndBurn2() (gas: 262914)
DN404Test:testMintOnTransfer(uint32,address) (runs: 256, μ: 262981, ~: 262991)
DN404Test:testMixed(uint256) (runs: 256, μ: 600098, ~: 565960)
DN404Test:testNameAndSymbol(string,string) (runs: 256, μ: 207282, ~: 207623)
DN404Test:testRegisterAndResolveAlias(address,address) (runs: 256, μ: 126873, ~: 127078)
DN404Test:testSetAndGetAux(address,uint88) (runs: 256, μ: 21968, ~: 22275)
DN404Test:testRegisterAndResolveAlias(address,address) (runs: 256, μ: 127068, ~: 127078)
DN404Test:testSetAndGetAux(address,uint88) (runs: 256, μ: 21933, ~: 22275)
DN404Test:testSetAndGetOperatorApprovals(address,address,bool) (runs: 256, μ: 129762, ~: 120828)
DN404Test:testSetAndGetSkipNFT() (gas: 89239)
DN404Test:testTokenURI(string,uint256) (runs: 256, μ: 158077, ~: 135776)
DN404Test:testTransfersAndBurns() (gas: 453395)
DN404Test:testWrapAround(uint32,uint256) (runs: 256, μ: 354173, ~: 347752)
DN404Test:test__codesize() (gas: 40891)
ERC20Invariants:invariantBalanceSum() (runs: 256, calls: 3840, reverts: 2639)
ERC20Invariants:test__codesize() (gas: 16961)
DN404Test:testTransfersAndBurns() (gas: 448770)
DN404Test:testWrapAround(uint32,uint256) (runs: 256, μ: 351673, ~: 344953)
DN404Test:test__codesize() (gas: 40402)
ERC20Invariants:invariantBalanceSum() (runs: 256, calls: 3840, reverts: 2677)
ERC20Invariants:test__codesize() (gas: 16549)
SimpleDN404Test:testMint() (gas: 45198)
SimpleDN404Test:testName() (gas: 9674)
SimpleDN404Test:testSetBaseURI() (gas: 38574)
SimpleDN404Test:testSymbol() (gas: 9716)
SimpleDN404Test:testWithdraw() (gas: 27356)
SimpleDN404Test:test__codesize() (gas: 19428)
SimpleDN404Test:test__codesize() (gas: 19041)
SoladyTest:test__codesize() (gas: 1102)
TestPlus:test__codesize() (gas: 406)
Loading

0 comments on commit c607d3d

Please sign in to comment.