From cedb045f3eecd51ce3b45933a004533d3ecff2d2 Mon Sep 17 00:00:00 2001 From: Sara Reynolds Date: Wed, 9 Nov 2022 14:05:07 -0500 Subject: [PATCH] gas --- ...permitBatchTransferFromMultipleTokens.snap | 2 +- .../permitBatchTransferFromSingleToken.snap | 2 +- .../permitTransferFromBatchTypedWitness.snap | 2 +- .../permitTransferFromCompactSig.snap | 2 +- .../permitTransferFromSingleToken.snap | 2 +- .../permitTransferFromTypedWitness.snap | 2 +- .../single recipient 2 tokens.snap | 2 +- .../single recipient many tokens.snap | 2 +- .gas-snapshot | 63 ++++++++++--------- 9 files changed, 40 insertions(+), 39 deletions(-) diff --git a/.forge-snapshots/permitBatchTransferFromMultipleTokens.snap b/.forge-snapshots/permitBatchTransferFromMultipleTokens.snap index 6c70c779..af42be96 100644 --- a/.forge-snapshots/permitBatchTransferFromMultipleTokens.snap +++ b/.forge-snapshots/permitBatchTransferFromMultipleTokens.snap @@ -1 +1 @@ -143347 \ No newline at end of file +146412 \ No newline at end of file diff --git a/.forge-snapshots/permitBatchTransferFromSingleToken.snap b/.forge-snapshots/permitBatchTransferFromSingleToken.snap index d2f1fc26..2013a242 100644 --- a/.forge-snapshots/permitBatchTransferFromSingleToken.snap +++ b/.forge-snapshots/permitBatchTransferFromSingleToken.snap @@ -1 +1 @@ -88797 \ No newline at end of file +91861 \ No newline at end of file diff --git a/.forge-snapshots/permitTransferFromBatchTypedWitness.snap b/.forge-snapshots/permitTransferFromBatchTypedWitness.snap index d1d7ff6c..2420f77a 100644 --- a/.forge-snapshots/permitTransferFromBatchTypedWitness.snap +++ b/.forge-snapshots/permitTransferFromBatchTypedWitness.snap @@ -1 +1 @@ -121164 \ No newline at end of file +124230 \ No newline at end of file diff --git a/.forge-snapshots/permitTransferFromCompactSig.snap b/.forge-snapshots/permitTransferFromCompactSig.snap index adf64bd3..c5d131b5 100644 --- a/.forge-snapshots/permitTransferFromCompactSig.snap +++ b/.forge-snapshots/permitTransferFromCompactSig.snap @@ -1 +1 @@ -88532 \ No newline at end of file +91597 \ No newline at end of file diff --git a/.forge-snapshots/permitTransferFromSingleToken.snap b/.forge-snapshots/permitTransferFromSingleToken.snap index d54c0afa..d69a6c74 100644 --- a/.forge-snapshots/permitTransferFromSingleToken.snap +++ b/.forge-snapshots/permitTransferFromSingleToken.snap @@ -1 +1 @@ -88584 \ No newline at end of file +91649 \ No newline at end of file diff --git a/.forge-snapshots/permitTransferFromTypedWitness.snap b/.forge-snapshots/permitTransferFromTypedWitness.snap index 9e71284b..cd2a611b 100644 --- a/.forge-snapshots/permitTransferFromTypedWitness.snap +++ b/.forge-snapshots/permitTransferFromTypedWitness.snap @@ -1 +1 @@ -91004 \ No newline at end of file +94069 \ No newline at end of file diff --git a/.forge-snapshots/single recipient 2 tokens.snap b/.forge-snapshots/single recipient 2 tokens.snap index 991dab52..769a445d 100644 --- a/.forge-snapshots/single recipient 2 tokens.snap +++ b/.forge-snapshots/single recipient 2 tokens.snap @@ -1 +1 @@ -118470 \ No newline at end of file +121535 \ No newline at end of file diff --git a/.forge-snapshots/single recipient many tokens.snap b/.forge-snapshots/single recipient many tokens.snap index 06e1e14e..cf5277fc 100644 --- a/.forge-snapshots/single recipient many tokens.snap +++ b/.forge-snapshots/single recipient many tokens.snap @@ -1 +1 @@ -133612 \ No newline at end of file +136679 \ No newline at end of file diff --git a/.gas-snapshot b/.gas-snapshot index a61ae5e1..b2185915 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -28,13 +28,14 @@ CompactSignature:testCompactSignature27() (gas: 253) CompactSignature:testCompactSignature28() (gas: 141) EIP712Test:testDomainSeparator() (gas: 5759) EIP712Test:testDomainSeparatorAfterFork() (gas: 10652) -NonceBitmapTest:testHighNonces() (gas: 35958) -NonceBitmapTest:testInvalidateFullWord() (gas: 62805) -NonceBitmapTest:testInvalidateNonzeroWord() (gas: 85285) -NonceBitmapTest:testLowNonces() (gas: 40671) -NonceBitmapTest:testNonceWordBoundary() (gas: 42042) -NonceBitmapTest:testUseTwoRandomNonces(uint256,uint256) (runs: 256, μ: 48832, ~: 51523) -NonceBitmapTest:testUsingNonceTwiceFails(uint256) (runs: 256, μ: 21775, ~: 21798) +NonceBitmapTest:testHighNonces() (gas: 40742) +NonceBitmapTest:testInvalidateFullWord() (gas: 78128) +NonceBitmapTest:testInvalidateNonzeroWord() (gas: 91181) +NonceBitmapTest:testLowNonces() (gas: 47153) +NonceBitmapTest:testNonceLLL() (gas: 24694) +NonceBitmapTest:testNonceWordBoundary() (gas: 45869) +NonceBitmapTest:testUseTwoRandomNonces(uint256,uint256) (runs: 256, μ: 52455, ~: 55157) +NonceBitmapTest:testUsingNonceTwiceFails(uint256) (runs: 256, μ: 24698, ~: 24720) Permit2LibTest:testOZSafePermit() (gas: 24311) Permit2LibTest:testOZSafePermitPlusOZSafeTransferFrom() (gas: 129066) Permit2LibTest:testOZSafeTransferFrom() (gas: 38787) @@ -50,28 +51,28 @@ Permit2LibTest:testTransferFrom2() (gas: 38404) Permit2LibTest:testTransferFrom2Full() (gas: 53437) Permit2LibTest:testTransferFrom2InvalidAmount() (gas: 12519) Permit2LibTest:testTransferFrom2NonPermitToken() (gas: 53305) -SignatureTransferTest:testGasMultiplePermitBatchTransferFrom() (gas: 270806) -SignatureTransferTest:testGasSinglePermitBatchTransferFrom() (gas: 186156) -SignatureTransferTest:testGasSinglePermitTransferFrom() (gas: 123942) -SignatureTransferTest:testInvalidateUnorderedNonces() (gas: 41090) -SignatureTransferTest:testPermitBatchTransferFrom() (gas: 161923) -SignatureTransferTest:testPermitBatchTransferFromSingleRecipient() (gas: 190202) -SignatureTransferTest:testPermitBatchTransferFromTypedWitness() (gas: 242340) -SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidType() (gas: 87187) -SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidTypeHash() (gas: 86650) -SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidTypeName() (gas: 88123) -SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidWitness() (gas: 88168) +SignatureTransferTest:testGasMultiplePermitBatchTransferFrom() (gas: 273871) +SignatureTransferTest:testGasSinglePermitBatchTransferFrom() (gas: 189220) +SignatureTransferTest:testGasSinglePermitTransferFrom() (gas: 127007) +SignatureTransferTest:testInvalidateUnorderedNonces() (gas: 43542) +SignatureTransferTest:testPermitBatchTransferFrom() (gas: 164988) +SignatureTransferTest:testPermitBatchTransferFromSingleRecipient() (gas: 193267) +SignatureTransferTest:testPermitBatchTransferFromTypedWitness() (gas: 245406) +SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidType() (gas: 90253) +SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidTypeHash() (gas: 89716) +SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidTypeName() (gas: 91189) +SignatureTransferTest:testPermitBatchTransferFromTypedWitnessInvalidWitness() (gas: 91234) SignatureTransferTest:testPermitBatchTransferInvalidAmountsLengthMismatch() (gas: 43738) -SignatureTransferTest:testPermitBatchTransferMultiAddr() (gas: 160297) -SignatureTransferTest:testPermitBatchTransferSingleRecipientManyTokens() (gas: 211821) -SignatureTransferTest:testPermitTransferFrom() (gas: 93055) -SignatureTransferTest:testPermitTransferFromCompactSig() (gas: 124006) -SignatureTransferTest:testPermitTransferFromIncorrectSigLength() (gas: 51277) -SignatureTransferTest:testPermitTransferFromInvalidNonce() (gas: 73250) -SignatureTransferTest:testPermitTransferFromRandomNonceAndAmount(uint256,uint128) (runs: 256, μ: 95689, ~: 96665) -SignatureTransferTest:testPermitTransferFromToSpender() (gas: 93341) -SignatureTransferTest:testPermitTransferFromTypedWitness() (gas: 127811) -SignatureTransferTest:testPermitTransferFromTypedWitnessInvalidType() (gas: 58515) -SignatureTransferTest:testPermitTransferFromTypedWitnessInvalidTypeName() (gas: 59569) -SignatureTransferTest:testPermitTransferFromTypedWitnessInvalidTypehash() (gas: 57505) -SignatureTransferTest:testPermitTransferSpendLessThanFull(uint256,uint128) (runs: 256, μ: 98024, ~: 99742) +SignatureTransferTest:testPermitBatchTransferMultiAddr() (gas: 163362) +SignatureTransferTest:testPermitBatchTransferSingleRecipientManyTokens() (gas: 214888) +SignatureTransferTest:testPermitTransferFrom() (gas: 96120) +SignatureTransferTest:testPermitTransferFromCompactSig() (gas: 127071) +SignatureTransferTest:testPermitTransferFromIncorrectSigLength() (gas: 54341) +SignatureTransferTest:testPermitTransferFromInvalidNonce() (gas: 76880) +SignatureTransferTest:testPermitTransferFromRandomNonceAndAmount(uint256,uint128) (runs: 256, μ: 98754, ~: 99730) +SignatureTransferTest:testPermitTransferFromToSpender() (gas: 96406) +SignatureTransferTest:testPermitTransferFromTypedWitness() (gas: 130876) +SignatureTransferTest:testPermitTransferFromTypedWitnessInvalidType() (gas: 61580) +SignatureTransferTest:testPermitTransferFromTypedWitnessInvalidTypeName() (gas: 62634) +SignatureTransferTest:testPermitTransferFromTypedWitnessInvalidTypehash() (gas: 60570) +SignatureTransferTest:testPermitTransferSpendLessThanFull(uint256,uint128) (runs: 256, μ: 101089, ~: 102807)