From 1e6141ad1f0e0c3cac4c504ba3fb5d1e17eaa377 Mon Sep 17 00:00:00 2001 From: JaredBorders Date: Thu, 14 Dec 2023 19:11:23 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=B8=20Update=20gas-snapshot/lcov?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gas-snapshot | 173 +++++++------- lcov.info | 631 ++++++++++++++++++++++++-------------------------- 2 files changed, 383 insertions(+), 421 deletions(-) diff --git a/.gas-snapshot b/.gas-snapshot index e20f58e7..0512c629 100644 --- a/.gas-snapshot +++ b/.gas-snapshot @@ -2,104 +2,93 @@ AccountDelegate:test_isAccountDelegate_account_doesnt_exist() (gas: 26492) AccountDelegate:test_isAccountDelegate_false() (gas: 391995) AccountDelegate:test_isAccountDelegate_true() (gas: 389942) AccountDelegate:test_isAccountDelegate_zero_address_caller() (gas: 23159) -AccountOwner:test_isAccountOwner_account_doesnt_exist() (gas: 25088) -AccountOwner:test_isAccountOwner_false() (gas: 229890) -AccountOwner:test_isAccountOwner_true() (gas: 229880) -AccountOwner:test_isAccountOwner_zero_address_caller() (gas: 10829) -Aggregate:test_aggregate_EIP7412Mock(bytes) (runs: 256, μ: 46915, ~: 46810) -Aggregate:test_aggregate_EIP7412MockRefund(bytes) (runs: 256, μ: 53026, ~: 52923) -Aggregate:test_aggregate_EIP7412MockRevert(bytes) (runs: 256, μ: 46046, ~: 45943) -Aggregate:test_aggregate_EIP7412Mock_fail(bytes) (runs: 256, μ: 25935, ~: 25832) -Aggregate:test_aggregate_EIP7412_multiple(bytes) (runs: 256, μ: 33894, ~: 33786) -Aggregate:test_aggregate_MismatchedValue_multiple() (gas: 52923) -Aggregate:test_aggregate_MismatchedValue_single() (gas: 32775) -Aggregate:test_aggregate_TargetNotTrusted() (gas: 17834) -Aggregate:test_aggregate_empty() (gas: 6605) -Aggregate:test_aggregate_multiple() (gas: 51400) -Aggregate:test_aggregate_refund() (gas: 38955) -Aggregate:test_aggregate_result() (gas: 55683) -Aggregate:test_aggregate_single() (gas: 15208) -Aggregate:test_aggregate_value_multiple() (gas: 51915) -Aggregate:test_aggregate_value_single(uint256) (runs: 256, μ: 24828, ~: 29186) -CanExecute:test_canExecute_false_insufficent_account_credit() (gas: 414818) -CanExecute:test_canExecute_false_invalid_signature() (gas: 446729) -CanExecute:test_canExecute_false_invalid_signer() (gas: 442013) -CanExecute:test_canExecute_false_maxExecutorFee_exceeded() (gas: 397486) -CanExecute:test_canExecute_false_nonce_used() (gas: 827209) -CanExecute:test_canExecute_false_require_verify_condition_not_met() (gas: 51501) -CanExecute:test_canExecute_false_trusted_executor() (gas: 439497) -CanExecute:test_canExecute_true() (gas: 439136) -CommitOrder:test_commitOrder() (gas: 383166) -CommitOrder:test_commitOrder_Unauthorized() (gas: 33210) -CommitOrder:test_commitOrder_insufficient_collateral() (gas: 441323) -CommitOrder:test_commitOrder_invalid_market() (gas: 38435) +AccountOwner:test_isAccountOwner_account_doesnt_exist() (gas: 25022) +AccountOwner:test_isAccountOwner_false() (gas: 229824) +AccountOwner:test_isAccountOwner_true() (gas: 229814) +AccountOwner:test_isAccountOwner_zero_address_caller() (gas: 10763) +CanExecute:test_canExecute_false_insufficent_account_credit() (gas: 414842) +CanExecute:test_canExecute_false_invalid_signature() (gas: 446773) +CanExecute:test_canExecute_false_invalid_signer() (gas: 442057) +CanExecute:test_canExecute_false_maxExecutorFee_exceeded() (gas: 397530) +CanExecute:test_canExecute_false_nonce_used() (gas: 825813) +CanExecute:test_canExecute_false_require_verify_condition_not_met() (gas: 532721) +CanExecute:test_canExecute_false_trusted_executor() (gas: 439323) +CanExecute:test_canExecute_true() (gas: 438962) +CommitOrder:test_commitOrder() (gas: 382970) +CommitOrder:test_commitOrder_Unauthorized() (gas: 33014) +CommitOrder:test_commitOrder_insufficient_collateral() (gas: 441127) +CommitOrder:test_commitOrder_invalid_market() (gas: 38239) Conditions:test_isMarketOpen() (gas: 26596) -Conditions:test_isOrderFeeBelow() (gas: 179894) +Conditions:test_isOrderFeeBelow() (gas: 179828) Conditions:test_isPositionSizeAbove() (gas: 18827) -Conditions:test_isPositionSizeBelow() (gas: 18732) -Conditions:test_isPriceAbove() (gas: 196191) -Conditions:test_isPriceBelow() (gas: 195969) -Conditions:test_isTimestampAfter() (gas: 7645) -Conditions:test_isTimestampBefore() (gas: 7579) -Context:test_context_trustedForwarder() (gas: 13142) -DeploymentTest:test_deploy() (gas: 3485101) -DeploymentTest:test_deploy_perps_market_proxy_zero_address() (gas: 422450) -DeploymentTest:test_deploy_spot_market_proxy_zero_address() (gas: 422517) -DeploymentTest:test_deploy_susd_proxy_zero_address() (gas: 422508) -Deposit:test_depositEth() (gas: 55243) -Deposit:test_depositEth_Account_Doesnt_Exist() (gas: 34248) -Deposit:test_depositEth_event() (gas: 56770) -Deposit:test_depositEth_fuzz(uint256,uint128) (runs: 256, μ: 36454, ~: 34866) -DepositCollateral:test_depositCollateral() (gas: 258627) -DepositCollateral:test_depositCollateral_availableMargin() (gas: 266195) -DepositCollateral:test_depositCollateral_collateralAmount() (gas: 259203) -DepositCollateral:test_depositCollateral_insufficient_balance() (gas: 56208) -DepositCollateral:test_depositCollateral_totalCollateralValue() (gas: 263557) -EIP7412Test:test_fulfillOracleQuery(bytes) (runs: 256, μ: 153304, ~: 153300) -EIP7412Test:test_fulfillOracleQuery_refund(bytes) (runs: 256, μ: 161879, ~: 161875) -EIP7412Test:test_fulfillOracleQuery_revert(bytes) (runs: 256, μ: 154920, ~: 154916) -Execute:test_execute_CannotExecuteOrder_invalid_acceptablePrice() (gas: 331736) -Execute:test_execute_CannotExecuteOrder_invalid_settlementStrategyId() (gas: 97657) -Execute:test_execute_CannotExecuteOrder_too_leveraged() (gas: 362331) -Execute:test_execute_event() (gas: 434764) -Execute:test_execute_order_committed() (gas: 431211) -Fee:test_fee_exceeds_account_credit() (gas: 67862) -Fee:test_fee_exceeds_maxExecutorFee() (gas: 67464) -Fee:test_fee_imposed() (gas: 469423) +Conditions:test_isPositionSizeBelow() (gas: 18798) +Conditions:test_isPriceAbove() (gas: 196011) +Conditions:test_isPriceBelow() (gas: 196233) +Conditions:test_isTimestampAfter() (gas: 7579) +Conditions:test_isTimestampBefore() (gas: 7645) +DeploymentTest:test_deploy() (gas: 3167931) +DeploymentTest:test_deploy_perps_market_proxy_zero_address() (gas: 42636) +DeploymentTest:test_deploy_spot_market_proxy_zero_address() (gas: 42703) +DeploymentTest:test_deploy_susd_proxy_zero_address() (gas: 42694) +Deposit:test_deposit(uint256) (runs: 256, μ: 277, ~: 277) +DepositCollateral:test_depositCollateral() (gas: 258418) +DepositCollateral:test_depositCollateral_availableMargin() (gas: 265986) +DepositCollateral:test_depositCollateral_collateralAmount() (gas: 258994) +DepositCollateral:test_depositCollateral_insufficient_balance() (gas: 56001) +DepositCollateral:test_depositCollateral_totalCollateralValue() (gas: 263348) +Execute:test_execute_CannotExecuteOrder_invalid_acceptablePrice() (gas: 330340) +Execute:test_execute_CannotExecuteOrder_invalid_settlementStrategyId() (gas: 96261) +Execute:test_execute_CannotExecuteOrder_too_leveraged() (gas: 360935) +Execute:test_execute_event() (gas: 433368) +Execute:test_execute_order_committed() (gas: 429815) +Fee:test_fee_exceeds_account_credit() (gas: 132986) +Fee:test_fee_exceeds_maxExecutorFee() (gas: 132567) +Fee:test_fee_imposed() (gas: 519270) +FulfillOracleQuery:test_fulfillOracleQuery(bytes) (runs: 256, μ: 26426, ~: 26422) +FulfillOracleQuery:test_fulfillOracleQuery_refund(bytes) (runs: 256, μ: 35063, ~: 35059) +FulfillOracleQuery:test_fulfillOracleQuery_revert(bytes) (runs: 256, μ: 28060, ~: 28056) MathLibTest:test_abs128() (gas: 425) MathLibTest:test_abs256() (gas: 480) MathLibTest:test_fuzz_abs128(int128) (runs: 256, μ: 577, ~: 603) MathLibTest:test_fuzz_abs256(int256) (runs: 256, μ: 472, ~: 458) MathLibTest:test_isSameSign() (gas: 999) -NonceBitmapTest:test_fuzz_invalidateUnorderedNonces(uint256) (runs: 256, μ: 52942, ~: 52942) -NonceBitmapTest:test_hasUnorderedNonceBeenUsed() (gas: 54209) -NonceBitmapTest:test_invalidateUnorderedNonces() (gas: 77468) -NonceBitmapTest:test_invalidateUnorderedNonces_Only_Owner_Delegate() (gas: 190668) -NonceBitmapTest:test_invalidateUnorderedNonces_Unauthorized() (gas: 30803) -NonceBitmapTest:test_invalidateUnorderedNonces_event() (gas: 53604) -ReduceOnly:test_reduce_only() (gas: 432946) -ReduceOnly:test_reduce_only_same_sign() (gas: 73941) -ReduceOnly:test_reduce_only_truncate_size_down() (gas: 433054) -ReduceOnly:test_reduce_only_truncate_size_up() (gas: 409803) -ReduceOnly:test_reduce_only_when_position_doesnt_exist() (gas: 163763) -ReduceOnly:test_reduce_only_zero_size_delta() (gas: 164392) -VerifyConditions:test_max_condition_size_exceeded() (gas: 45071) -VerifyConditions:test_verifyConditions_InvalidConditionSelector() (gas: 14081) -VerifyConditions:test_verify_conditions_not_verified() (gas: 129150) -VerifyConditions:test_verify_conditions_verified() (gas: 183733) -VerifySignature:test_verifySignature(uint256) (runs: 256, μ: 24992, ~: 24992) -VerifySignature:test_verifySignature_false_private_key() (gas: 24968) +MulticallFulfillOracleQuery:test_fulfillOracleQuery_multicall(bytes) (runs: 256, μ: 29293, ~: 29236) +MulticallFulfillOracleQuery:test_fulfillOracleQuery_multicall_double_spend(bytes) (runs: 256, μ: 41910, ~: 41800) +MulticallableTest:testMulticallableBenchmark() (gas: 29229) +MulticallableTest:testMulticallableOriginalBenchmark() (gas: 38407) +MulticallableTest:testMulticallablePreservesMsgSender() (gas: 11065) +MulticallableTest:testMulticallableReturnDataIsProperlyEncoded() (gas: 11548) +MulticallableTest:testMulticallableReturnDataIsProperlyEncoded(string,string,uint256) (runs: 256, μ: 9774, ~: 9386) +MulticallableTest:testMulticallableReturnDataIsProperlyEncoded(uint256,uint256,uint256,uint256) (runs: 256, μ: 11694, ~: 11694) +MulticallableTest:testMulticallableRevertWithCustomError() (gas: 11767) +MulticallableTest:testMulticallableRevertWithMessage() (gas: 13406) +MulticallableTest:testMulticallableRevertWithMessage(string) (runs: 256, μ: 14013, ~: 13861) +MulticallableTest:testMulticallableRevertWithNothing() (gas: 11633) +MulticallableTest:testMulticallableWithNoData() (gas: 6266) +NonceBitmapTest:test_fuzz_invalidateUnorderedNonces(uint256) (runs: 256, μ: 52734, ~: 52734) +NonceBitmapTest:test_hasUnorderedNonceBeenUsed() (gas: 54023) +NonceBitmapTest:test_invalidateUnorderedNonces() (gas: 77064) +NonceBitmapTest:test_invalidateUnorderedNonces_Only_Owner_Delegate() (gas: 190252) +NonceBitmapTest:test_invalidateUnorderedNonces_Unauthorized() (gas: 30585) +NonceBitmapTest:test_invalidateUnorderedNonces_event() (gas: 53374) +ReduceOnly:test_reduce_only() (gas: 431550) +ReduceOnly:test_reduce_only_same_sign() (gas: 72545) +ReduceOnly:test_reduce_only_truncate_size_down() (gas: 431658) +ReduceOnly:test_reduce_only_truncate_size_up() (gas: 408407) +ReduceOnly:test_reduce_only_when_position_doesnt_exist() (gas: 162367) +ReduceOnly:test_reduce_only_zero_size_delta() (gas: 162996) +VerifyConditions:test_max_condition_size_exceeded() (gas: 45049) +VerifyConditions:test_verifyConditions_InvalidConditionSelector() (gas: 14059) +VerifyConditions:test_verify_conditions_not_verified() (gas: 129149) +VerifyConditions:test_verify_conditions_verified() (gas: 183732) +VerifySignature:test_verifySignature(uint256) (runs: 256, μ: 25014, ~: 25014) +VerifySignature:test_verifySignature_false_private_key() (gas: 24990) VerifySigner:test_verifySigner() (gas: 25939) VerifySigner:test_verifySigner_false() (gas: 28647) -Withdraw:test_withdrawEth() (gas: 52652) -Withdraw:test_withdrawEth_EthTransferFailed() (gas: 93200) -Withdraw:test_withdrawEth_InsufficientEthBalance() (gas: 59867) -Withdraw:test_withdrawEth_Unauthorized() (gas: 59616) -Withdraw:test_withdrawEth_event() (gas: 51878) -Withdraw:test_withdrawEth_fuzz(uint256) (runs: 256, μ: 71114, ~: 71664) -WithdrawCollateral:test_withdrawCollateral() (gas: 353419) -WithdrawCollateral:test_withdrawCollateral_availableMargin() (gas: 354955) -WithdrawCollateral:test_withdrawCollateral_collateralAmount() (gas: 353929) -WithdrawCollateral:test_withdrawCollateral_insufficient_account_collateral_balance() (gas: 274470) -WithdrawCollateral:test_withdrawCollateral_totalCollateralValue() (gas: 354418) -WithdrawCollateral:test_withdrawCollateral_zero() (gas: 266428) \ No newline at end of file +Withdraw:test_withdraw(uint256) (runs: 256, μ: 257, ~: 257) +WithdrawCollateral:test_withdrawCollateral() (gas: 353084) +WithdrawCollateral:test_withdrawCollateral_availableMargin() (gas: 354620) +WithdrawCollateral:test_withdrawCollateral_collateralAmount() (gas: 353594) +WithdrawCollateral:test_withdrawCollateral_insufficient_account_collateral_balance() (gas: 274053) +WithdrawCollateral:test_withdrawCollateral_totalCollateralValue() (gas: 354083) +WithdrawCollateral:test_withdrawCollateral_zero() (gas: 266011) \ No newline at end of file diff --git a/lcov.info b/lcov.info index 67610f3b..89321c8a 100644 --- a/lcov.info +++ b/lcov.info @@ -1,20 +1,32 @@ TN: SF:script/Deploy.s.sol -FN:116,DeployOptimism_Synthetix.run -FNDA:0,DeployOptimism_Synthetix.run -DA:117,0 -DA:118,0 -DA:120,0 -DA:126,0 +FN:98,DeployBaseGoerli_Andromeda.run +FNDA:0,DeployBaseGoerli_Andromeda.run +DA:99,0 +DA:100,0 +DA:102,0 +DA:108,0 +FN:59,DeployBaseGoerli_Synthetix.run +FNDA:0,DeployBaseGoerli_Synthetix.run +DA:60,0 +DA:61,0 +DA:63,0 +DA:69,0 +FN:24,Setup.deploySystem +FNDA:4,Setup.deploySystem +DA:29,4 FN:134,DeployOptimismGoerli_Synthetix.run FNDA:0,DeployOptimismGoerli_Synthetix.run DA:135,0 DA:136,0 DA:138,0 DA:144,0 -FN:24,Setup.deploySystem -FNDA:4,Setup.deploySystem -DA:29,4 +FN:116,DeployOptimism_Synthetix.run +FNDA:0,DeployOptimism_Synthetix.run +DA:117,0 +DA:118,0 +DA:120,0 +DA:126,0 FN:41,DeployBase_Synthetix.run FNDA:0,DeployBase_Synthetix.run DA:42,0 @@ -27,18 +39,6 @@ DA:81,0 DA:82,0 DA:84,0 DA:90,0 -FN:98,DeployBaseGoerli_Andromeda.run -FNDA:0,DeployBaseGoerli_Andromeda.run -DA:99,0 -DA:100,0 -DA:102,0 -DA:108,0 -FN:59,DeployBaseGoerli_Synthetix.run -FNDA:0,DeployBaseGoerli_Synthetix.run -DA:60,0 -DA:61,0 -DA:63,0 -DA:69,0 FNF:7 FNH:1 LF:25 @@ -48,230 +48,225 @@ BRH:0 end_of_record TN: SF:src/Engine.sol -FN:115,Engine.trustedForwarder -FNDA:1,Engine.trustedForwarder -DA:116,1854 -FN:124,Engine.isAccountOwner +FN:95,Engine.isAccountOwner FNDA:4,Engine.isAccountOwner -DA:130,271 -DA:131,270 -FN:135,Engine.isAccountDelegate +DA:101,10 +DA:102,9 +FN:106,Engine.isAccountDelegate FNDA:3,Engine.isAccountDelegate -DA:141,3 -FN:146,Engine._isAccountOwnerOrDelegate +DA:112,3 +FN:117,Engine._isAccountOwnerOrDelegate FNDA:287,Engine._isAccountOwnerOrDelegate -DA:151,287 -DA:152,287 -FN:162,Engine.depositEth -FNDA:523,Engine.depositEth -DA:165,523 -BRDA:165,0,0,232 -BRDA:165,0,1,291 -DA:166,232 -DA:169,291 -DA:171,291 -FN:175,Engine.withdrawEth -FNDA:261,Engine.withdrawEth -DA:179,261 -DA:181,261 -BRDA:181,1,0,1 -BRDA:181,1,1,260 -DA:183,260 -DA:185,258 -FN:192,Engine._withdrawEth -FNDA:273,Engine._withdrawEth -DA:195,273 -BRDA:195,2,0,1 -BRDA:195,2,1,272 -DA:198,272 -DA:200,272 -DA:202,272 -BRDA:202,3,0,1 -BRDA:202,3,1,271 -FN:210,Engine.invalidateUnorderedNonces +DA:122,287 +DA:123,287 +FN:133,Engine.invalidateUnorderedNonces FNDA:262,Engine.invalidateUnorderedNonces -DA:215,262 -BRDA:215,4,0,261 -BRDA:215,4,1,1 -DA:221,261 -DA:223,261 -DA:225,1 -FN:230,Engine.hasUnorderedNonceBeenUsed +DA:138,262 +BRDA:138,0,0,261 +BRDA:138,0,1,1 +DA:144,261 +DA:146,261 +DA:148,1 +FN:153,Engine.hasUnorderedNonceBeenUsed FNDA:260,Engine.hasUnorderedNonceBeenUsed -DA:236,281 -DA:240,281 -DA:254,281 -FN:264,Engine._bitmapPositions +DA:159,281 +DA:163,281 +DA:177,281 +FN:187,Engine._bitmapPositions FNDA:294,Engine._bitmapPositions -DA:271,294 -DA:275,294 -FN:281,Engine._useUnorderedNonce +DA:194,294 +DA:198,294 +FN:204,Engine._useUnorderedNonce FNDA:13,Engine._useUnorderedNonce -DA:282,13 -DA:286,13 -DA:293,13 -DA:313,13 -BRDA:313,5,0,- -BRDA:313,5,1,13 -FN:321,Engine.modifyCollateral +DA:205,13 +DA:209,13 +DA:216,13 +DA:236,13 +BRDA:236,1,0,- +BRDA:236,1,1,13 +FN:244,Engine.modifyCollateral FNDA:17,Engine.modifyCollateral -DA:326,17 -DA:328,17 -DA:330,17 -BRDA:330,6,0,11 -BRDA:330,6,1,6 -DA:331,11 -DA:335,6 -BRDA:335,7,0,- -BRDA:335,7,1,6 -DA:336,6 -FN:342,Engine._depositCollateral +DA:249,17 +DA:251,17 +BRDA:251,2,0,11 +BRDA:251,2,1,6 +DA:252,11 +DA:256,6 +BRDA:256,3,0,- +BRDA:256,3,1,6 +DA:257,6 +FN:263,Engine._depositCollateral FNDA:11,Engine._depositCollateral -DA:350,11 -DA:352,10 -DA:354,10 -FN:357,Engine._withdrawCollateral +DA:271,11 +DA:273,10 +DA:275,10 +FN:278,Engine._withdrawCollateral FNDA:6,Engine._withdrawCollateral -DA:364,6 -DA:367,4 -FN:373,Engine._getSynthAddress +DA:285,6 +DA:288,4 +FN:294,Engine._getSynthAddress FNDA:17,Engine._getSynthAddress -DA:378,17 -FN:388,Engine.commitOrder +DA:299,17 +FN:309,Engine.commitOrder FNDA:4,Engine.commitOrder -DA:402,4 -BRDA:402,8,0,3 -BRDA:402,8,1,1 -DA:403,3 -DA:413,1 -FN:417,Engine._commitOrder +DA:323,4 +BRDA:323,4,0,3 +BRDA:323,4,1,1 +DA:324,3 +DA:334,1 +FN:338,Engine._commitOrder FNDA:13,Engine._commitOrder -DA:426,13 -FN:444,Engine.execute +DA:347,13 +FN:365,Engine.deposit +FNDA:3,Engine.deposit +DA:368,3 +BRDA:368,5,0,- +BRDA:368,5,1,3 +DA:369,0 +DA:373,3 +DA:375,3 +DA:377,3 +FN:381,Engine.withdraw +FNDA:0,Engine.withdraw +DA:382,0 +BRDA:382,6,0,- +BRDA:382,6,1,- +DA:384,0 +DA:386,0 +FN:393,Engine._withdraw +FNDA:1,Engine._withdraw +DA:396,1 +BRDA:396,7,0,- +BRDA:396,7,1,1 +DA:399,1 +DA:402,1 +FN:410,Engine.execute FNDA:15,Engine.execute -DA:459,15 -BRDA:459,9,0,2 -BRDA:459,9,1,13 -DA:462,13 -DA:468,13 -DA:471,13 -DA:474,13 -BRDA:474,10,0,2 -BRDA:474,10,1,3 -DA:475,6 -DA:480,6 -BRDA:480,11,0,2 -BRDA:480,11,1,4 -DA:481,2 -DA:486,4 -BRDA:486,12,0,1 -BRDA:486,12,1,3 -DA:487,1 -DA:493,3 -BRDA:493,13,0,2 -BRDA:493,13,1,3 -DA:503,2 -DA:508,10 -DA:518,7 -FN:526,Engine.canExecute +DA:425,15 +BRDA:425,8,0,2 +BRDA:425,8,1,13 +DA:428,13 +DA:434,13 +BRDA:434,9,0,1 +BRDA:434,9,1,13 +DA:437,13 +DA:440,13 +BRDA:440,10,0,2 +BRDA:440,10,1,3 +DA:441,6 +DA:446,6 +BRDA:446,11,0,2 +BRDA:446,11,1,4 +DA:447,2 +DA:452,4 +BRDA:452,12,0,1 +BRDA:452,12,1,3 +DA:453,1 +DA:459,3 +BRDA:459,13,0,2 +BRDA:459,13,1,3 +DA:469,2 +DA:474,10 +DA:484,7 +FN:492,Engine.canExecute FNDA:10,Engine.canExecute -DA:532,25 -BRDA:532,14,0,2 -BRDA:532,14,1,23 -DA:535,23 -BRDA:535,15,0,2 -BRDA:535,15,1,21 -DA:538,21 -BRDA:538,16,0,2 -BRDA:538,16,1,19 -DA:539,2 -DA:543,19 -BRDA:543,17,0,1 -BRDA:543,17,1,18 -DA:546,18 -BRDA:546,18,0,1 -BRDA:546,18,1,17 -DA:549,17 -BRDA:549,19,0,1 -BRDA:549,19,1,- -DA:552,1 -BRDA:552,20,0,1 -BRDA:552,20,1,- -DA:556,16 -BRDA:556,21,0,1 -BRDA:556,21,1,15 -DA:559,15 -FN:567,Engine.verifySigner +DA:498,25 +BRDA:498,14,0,2 +BRDA:498,14,1,23 +DA:501,23 +BRDA:501,15,0,2 +BRDA:501,15,1,21 +DA:504,21 +BRDA:504,16,0,2 +BRDA:504,16,1,19 +DA:505,2 +DA:509,19 +BRDA:509,17,0,1 +BRDA:509,17,1,18 +DA:512,18 +BRDA:512,18,0,1 +BRDA:512,18,1,17 +DA:515,17 +BRDA:515,19,0,1 +BRDA:515,19,1,- +DA:518,1 +BRDA:518,20,0,1 +BRDA:518,20,1,- +DA:522,16 +BRDA:522,21,0,1 +BRDA:522,21,1,15 +DA:525,15 +FN:533,Engine.verifySigner FNDA:2,Engine.verifySigner -DA:573,21 -FN:577,Engine.verifySignature +DA:539,21 +FN:543,Engine.verifySignature FNDA:257,Engine.verifySignature -DA:581,275 -FN:585,Engine.verifyConditions +DA:547,275 +FN:551,Engine.verifyConditions FNDA:4,Engine.verifyConditions -DA:591,5 -DA:592,5 -BRDA:592,22,0,1 -BRDA:592,22,1,4 -DA:593,1 -DA:596,4 -DA:597,14 -DA:598,14 -DA:601,14 -DA:606,14 -DA:607,11 -DA:608,9 -DA:609,7 -DA:610,5 -DA:611,4 -DA:612,3 -DA:613,2 -BRDA:605,23,0,2 -BRDA:605,23,1,11 -DA:616,13 -DA:619,13 -BRDA:619,24,0,2 -BRDA:619,24,1,11 -DA:622,11 -DA:625,1 -DA:629,1 -FN:637,Engine.isTimestampAfter +DA:557,5 +DA:558,5 +BRDA:558,22,0,1 +BRDA:558,22,1,4 +DA:559,1 +DA:562,4 +DA:563,14 +DA:564,14 +DA:567,14 +DA:572,14 +DA:573,12 +DA:574,10 +DA:575,7 +DA:576,5 +DA:577,4 +DA:578,3 +DA:579,2 +BRDA:571,23,0,2 +BRDA:571,23,1,11 +DA:582,13 +DA:585,13 +BRDA:585,24,0,2 +BRDA:585,24,1,11 +DA:588,11 +DA:591,1 +DA:595,1 +FN:603,Engine.isTimestampAfter FNDA:6,Engine.isTimestampAfter -DA:643,6 -FN:647,Engine.isTimestampBefore +DA:609,6 +FN:613,Engine.isTimestampBefore FNDA:5,Engine.isTimestampBefore -DA:653,5 -FN:657,Engine.isPriceAbove +DA:619,5 +FN:623,Engine.isPriceAbove FNDA:6,Engine.isPriceAbove -DA:663,6 -DA:668,6 -FN:672,Engine.isPriceBelow +DA:629,6 +DA:634,6 +FN:638,Engine.isPriceBelow FNDA:6,Engine.isPriceBelow -DA:678,6 -DA:683,6 -FN:687,Engine.isMarketOpen +DA:644,6 +DA:649,6 +FN:653,Engine.isMarketOpen FNDA:3,Engine.isMarketOpen -DA:693,3 -FN:697,Engine.isPositionSizeAbove +DA:659,3 +FN:663,Engine.isPositionSizeAbove FNDA:4,Engine.isPositionSizeAbove -DA:702,4 -DA:703,4 -DA:705,4 -FN:709,Engine.isPositionSizeBelow +DA:668,4 +DA:669,4 +DA:671,4 +FN:675,Engine.isPositionSizeBelow FNDA:4,Engine.isPositionSizeBelow -DA:714,4 -DA:715,4 -DA:717,4 -FN:721,Engine.isOrderFeeBelow +DA:680,4 +DA:681,4 +DA:683,4 +FN:687,Engine.isOrderFeeBelow FNDA:4,Engine.isOrderFeeBelow -DA:727,4 -DA:732,4 -FNF:30 -FNH:30 -LF:108 -LH:108 +DA:693,4 +DA:698,4 +FNF:29 +FNH:28 +LF:105 +LH:101 BRF:50 -BRH:46 +BRH:42 end_of_record TN: SF:src/libraries/ConditionalOrderHashLib.sol @@ -420,8 +415,8 @@ end_of_record TN: SF:src/utils/EIP7412.sol FN:15,EIP7412.fulfillOracleQuery -FNDA:2048,EIP7412.fulfillOracleQuery -DA:21,2048 +FNDA:1536,EIP7412.fulfillOracleQuery +DA:21,1536 FNF:1 FNH:1 LF:1 @@ -430,50 +425,18 @@ BRF:0 BRH:0 end_of_record TN: -SF:src/utils/TrustedForwarder.sol -FN:30,TrustedForwarder.aggregate -FNDA:1452,TrustedForwarder.aggregate -DA:35,1452 -DA:36,1452 -DA:38,1452 -DA:39,1452 -DA:41,1452 -DA:43,1459 -DA:47,1459 -BRDA:47,0,0,1 -BRDA:47,0,1,1458 -DA:48,1 -DA:52,1458 -DA:57,1458 -DA:60,1458 -DA:67,1458 -BRDA:67,1,0,1026 -BRDA:67,1,1,432 -DA:68,1026 -DA:69,1026 -DA:75,432 -DA:78,432 -DA:83,425 -BRDA:83,2,0,2 -BRDA:83,2,1,423 -DA:84,2 -FN:91,TrustedForwarder._isTrustedByTarget -FNDA:1459,TrustedForwarder._isTrustedByTarget -DA:92,1459 -DA:93,1459 -DA:95,1459 -DA:96,1459 -DA:97,1459 -DA:105,1459 -DA:114,1459 -DA:115,1459 -DA:118,1459 -FNF:2 -FNH:2 -LF:27 -LH:27 -BRF:6 -BRH:6 +SF:src/utils/Multicallable.sol +FN:24,Multicallable.multicall +FNDA:1287,Multicallable.multicall +DA:33,1287 +BRDA:33,0,0,130 +DA:43,1157 +FNF:1 +FNH:1 +LF:2 +LH:2 +BRF:1 +BRH:1 end_of_record TN: SF:test/AsyncOrder.t.sol @@ -543,11 +506,11 @@ BRF:0 BRH:0 end_of_record TN: -SF:test/EthManagement.t.sol -FN:11,EthManagementTest.setUp -FNDA:0,EthManagementTest.setUp -DA:12,0 -DA:13,0 +SF:test/Credit.t.sol +FN:7,CreditTest.setUp +FNDA:0,CreditTest.setUp +DA:8,0 +DA:9,0 FNF:1 FNH:0 LF:2 @@ -556,21 +519,17 @@ BRF:0 BRH:0 end_of_record TN: -SF:test/TrustedForwarder.t.sol -FN:28,TrustedForwarderTest.setUp -FNDA:0,TrustedForwarderTest.setUp -DA:29,0 -DA:30,0 -DA:32,0 -DA:34,0 -DA:35,0 -DA:38,0 -DA:39,0 -DA:40,0 -DA:42,0 +SF:test/EIP7412.t.sol +FN:17,EIP7412Test.setUp +FNDA:0,EIP7412Test.setUp +DA:18,0 +DA:19,0 +DA:21,0 +DA:22,0 +DA:23,0 FNF:1 FNH:0 -LF:9 +LF:5 LH:0 BRF:0 BRH:0 @@ -611,16 +570,16 @@ DA:85,0 DA:86,0 DA:91,0 DA:93,0 -FN:98,BootstrapOptimism.init -FNDA:0,BootstrapOptimism.init -DA:102,0 -DA:108,0 -DA:114,0 FN:125,BootstrapOptimismGoerli.init FNDA:0,BootstrapOptimismGoerli.init DA:129,0 DA:135,0 DA:141,0 +FN:98,BootstrapOptimism.init +FNDA:0,BootstrapOptimism.init +DA:102,0 +DA:108,0 +DA:114,0 FNF:4 FNH:0 LF:36 @@ -713,60 +672,74 @@ end_of_record TN: SF:test/utils/mocks/EIP7412Mock.sol FN:15,EIP7412MockRefund.fulfillOracleQuery -FNDA:512,EIP7412MockRefund.fulfillOracleQuery -DA:16,512 +FNDA:256,EIP7412MockRefund.fulfillOracleQuery +DA:16,256 BRDA:16,0,0,- -BRDA:16,0,1,512 -DA:17,512 -DA:18,512 -BRDA:18,1,0,512 +BRDA:16,0,1,256 +DA:17,256 +DA:18,256 +BRDA:18,1,0,256 BRDA:18,1,1,- FN:7,EIP7412Mock.fulfillOracleQuery -FNDA:1024,EIP7412Mock.fulfillOracleQuery -DA:8,1024 -BRDA:8,0,0,512 -BRDA:8,0,1,512 -DA:10,512 +FNDA:768,EIP7412Mock.fulfillOracleQuery +DA:8,768 +BRDA:8,0,0,- +BRDA:8,0,1,768 +DA:10,768 FN:23,EIP7412MockRevert.fulfillOracleQuery -FNDA:512,EIP7412MockRevert.fulfillOracleQuery -DA:24,512 +FNDA:256,EIP7412MockRevert.fulfillOracleQuery +DA:24,256 FNF:3 FNH:3 LF:6 LH:6 BRF:6 -BRH:4 +BRH:3 end_of_record TN: -SF:test/utils/mocks/MockCallee.sol -FN:16,MockCalleeWithContext.thisMethodSucceeds -FNDA:2,MockCalleeWithContext.thisMethodSucceeds -FN:18,MockCalleeWithContext.thisMethodReverts -FNDA:0,MockCalleeWithContext.thisMethodReverts -DA:19,0 -FN:22,MockCalleeWithContext.sendEthValueTo -FNDA:1,MockCalleeWithContext.sendEthValueTo -DA:23,1 -DA:24,1 -BRDA:24,0,0,- -BRDA:24,0,1,1 -FN:27,MockCalleeWithContext.sendEthBack -FNDA:1,MockCalleeWithContext.sendEthBack -DA:28,1 -DA:29,1 -BRDA:29,1,0,1 -BRDA:29,1,1,- -FN:32,MockCalleeWithContext.lockEth -FNDA:173,MockCalleeWithContext.lockEth -DA:34,173 -FN:8,MockCallee.thisMethodSucceeds -FNDA:0,MockCallee.thisMethodSucceeds -FNF:6 -FNH:4 -LF:6 -LH:5 +SF:test/utils/mocks/MockMulticallable.sol +FN:16,MockMulticallable.revertsWithString +FNDA:257,MockMulticallable.revertsWithString +DA:17,257 +FN:20,MockMulticallable.revertsWithCustomError +FNDA:1,MockMulticallable.revertsWithCustomError +DA:21,1 +FN:24,MockMulticallable.revertsWithNothing +FNDA:1,MockMulticallable.revertsWithNothing +DA:25,1 +FN:28,MockMulticallable.returnsTuple +FNDA:534,MockMulticallable.returnsTuple +DA:33,534 +FN:36,MockMulticallable.returnsString +FNDA:127,MockMulticallable.returnsString +DA:41,127 +FN:46,MockMulticallable.pay +FNDA:0,MockMulticallable.pay +DA:47,0 +FN:50,MockMulticallable.returnsSender +FNDA:1,MockMulticallable.returnsSender +DA:51,1 +FN:54,MockMulticallable.multicallOriginal +FNDA:1,MockMulticallable.multicallOriginal +DA:60,1 +DA:61,1 +DA:62,10 +DA:63,10 +DA:64,10 +BRDA:64,0,0,- +BRDA:64,0,1,- +DA:66,0 +BRDA:66,1,0,- +BRDA:66,1,1,- +DA:69,0 +DA:71,0 +DA:73,10 +FNF:8 +FNH:7 +LF:16 +LH:12 BRF:4 -BRH:2 +BRH:0 end_of_record TN: SF:test/utils/mocks/SynthetixMock.sol