-
Notifications
You must be signed in to change notification settings - Fork 6
/
.gas-snapshot
118 lines (118 loc) · 18 KB
/
.gas-snapshot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_revert_emptyBatch(uint48,uint48,uint48) (runs: 256, μ: 14186, ~: 14186)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_revert_invalidSignature(uint128,address,address,uint48,uint48,uint48,uint160,uint256,uint256) (runs: 256, μ: 76889, ~: 76905)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_revert_invalidSpendPermissionInBatch(address,address,uint48,uint48,uint48,uint160,uint256) (runs: 256, μ: 108980, ~: 108980)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_success_emitsEvents(address,address,uint48,uint48,uint48,uint160,uint160,uint256,uint256) (runs: 256, μ: 150318, ~: 150318)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_success_erc6492SignaturePredeploy(uint128,address,address,uint48,uint48,uint48,uint160) (runs: 256, μ: 256174, ~: 256174)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_success_isApproved(address,address,uint48,uint48,uint48,uint160,uint160,uint256,uint256) (runs: 256, μ: 130325, ~: 130325)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_success_returnsFalseIfAnyAlreadyRevoked(address,address,uint48,uint48,uint48,uint160,uint160,uint256,uint256) (runs: 256, μ: 137285, ~: 137285)
ApproveBatchWithSignatureTest:test_approveBatchWithSignature_success_returnsTrueIfAllApproved(address,address,uint48,uint48,uint48,uint160,uint160,uint256,uint256) (runs: 256, μ: 130652, ~: 130652)
ApproveTest:test_approve_revert_erc721Token(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 24264, ~: 24253)
ApproveTest:test_approve_revert_invalidSender(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 13677, ~: 13671)
ApproveTest:test_approve_revert_invalidSpenderZeroAddress(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 19284, ~: 19273)
ApproveTest:test_approve_revert_invalidStartEnd(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 16120, ~: 16111)
ApproveTest:test_approve_revert_invalidTokenZeroAddress(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 14914, ~: 14903)
ApproveTest:test_approve_revert_zeroAllowance(address,address,uint48,uint48,uint48,uint256,bytes) (runs: 256, μ: 15306, ~: 15296)
ApproveTest:test_approve_revert_zeroPeriod(address,address,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 14906, ~: 14896)
ApproveTest:test_approve_success_emitsEvent(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 53678, ~: 53294)
ApproveTest:test_approve_success_isAuthorized(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 49062, ~: 48857)
ApproveTest:test_approve_success_returnsFalseIfPermissionRevoked(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 52875, ~: 52659)
ApproveTest:test_approve_success_returnsTrue(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 49470, ~: 49265)
ApproveTest:test_approve_success_returnsTrueNoEventEmittedIfAlreadyApproved(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 55847, ~: 55631)
ApproveWithRevokeTest:test_approveWithRevoke_revert_invalidLastUpdatedPeriod_moreSpendSamePeriod(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 130062, ~: 130056)
ApproveWithRevokeTest:test_approveWithRevoke_revert_invalidLastUpdatedPeriod_sameSpendNewPeriod(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 186248, ~: 186241)
ApproveWithRevokeTest:test_approveWithRevoke_revert_invalidLastUpdatedPeriod_sameSpendSeveralElapsedPeriods(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 186391, ~: 186384)
ApproveWithRevokeTest:test_approveWithRevoke_revert_invalidSender(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 33768, ~: 33762)
ApproveWithRevokeTest:test_approveWithRevoke_revert_mismatchedAccounts(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 34415, ~: 34409)
ApproveWithRevokeTest:test_approveWithRevoke_success_emitsEvents(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 121158, ~: 120788)
ApproveWithRevokeTest:test_approveWithRevoke_success_nonZeroSpend(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 196557, ~: 196358)
ApproveWithRevokeTest:test_approveWithRevoke_success_oldRevokedNewApproved(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 111012, ~: 110813)
ApproveWithRevokeTest:test_approveWithRevoke_success_returnsFalseIfOldRevokedNewApprovedAfterBeingRevoked(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 127133, ~: 126925)
ApproveWithRevokeTest:test_approveWithRevoke_success_returnsTrueOldRevokedNewApproved(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 111283, ~: 111084)
ApproveWithRevokeTest:test_approveWithRevoke_success_severalPeriodsTimeElapsed(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 111933, ~: 111734)
ApproveWithSignatureTest:test_approveWithSignature_revert_invalidSignature(uint128,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 45571, ~: 45549)
ApproveWithSignatureTest:test_approveWithSignature_revert_invalidStartEnd(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 46140, ~: 46112)
ApproveWithSignatureTest:test_approveWithSignature_revert_zeroAllowance(address,uint48,uint48,uint48,uint256,bytes) (runs: 256, μ: 45398, ~: 45373)
ApproveWithSignatureTest:test_approveWithSignature_revert_zeroPeriod(address,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 45053, ~: 45040)
ApproveWithSignatureTest:test_approveWithSignature_success_emitsEvent(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 89541, ~: 89160)
ApproveWithSignatureTest:test_approveWithSignature_success_erc6492SignaturePreDeploy(uint128,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 253688, ~: 253463)
ApproveWithSignatureTest:test_approveWithSignature_success_isApproved(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 84778, ~: 84566)
ApproveWithSignatureTest:test_approveWithSignature_success_returnsFalseIfAlreadyRevoked(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 88909, ~: 88685)
ApproveWithSignatureTest:test_approveWithSignature_success_returnsTrue(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 85192, ~: 84980)
DrainWalletTest:test_exploitSpendWithSignature_erc6492(address,address,uint48,uint48,uint48,uint160) (runs: 256, μ: 102084, ~: 102084)
DrainWalletTest:test_exploitSpendWithSignature_erc6492_factory() (gas: 97877)
GetBatchHashTest:test_getBatchHash_reverts_emptyBatch(address,uint48,uint48,uint48,uint160) (runs: 256, μ: 11965, ~: 11965)
GetBatchHashTest:test_getBatchHash_success(address,address,address,uint48,uint48,uint48,uint160,uint128) (runs: 256, μ: 18613, ~: 18613)
GetBatchHashTest:test_getBatchHash_success_uniqueHashPerChain(address,address,address,uint48,uint48,uint48,uint160,uint128,uint64,uint64) (runs: 256, μ: 29213, ~: 29213)
GetBatchHashTest:test_getBatchHash_success_uniqueHashPerContract(address,address,address,uint48,uint48,uint48,uint160,uint256,uint256) (runs: 256, μ: 4163932, ~: 4163932)
GetCurrentPeriodTest:test_getCurrentPeriod_revert_afterSpendPermissionEnd(uint48) (runs: 256, μ: 19026, ~: 19026)
GetCurrentPeriodTest:test_getCurrentPeriod_revert_beforeSpendPermissionStart(uint48) (runs: 256, μ: 18670, ~: 18670)
GetCurrentPeriodTest:test_getCurrentPeriod_revert_equalSpendPermissionEnd(uint48) (runs: 256, μ: 18774, ~: 18774)
GetCurrentPeriodTest:test_getCurrentPeriod_succes_resetsAfterPeriod(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 90546, ~: 90358)
GetCurrentPeriodTest:test_getCurrentPeriod_success_endOfPeriod(address,uint48,uint48,uint48,uint160,uint160,uint256,bytes) (runs: 256, μ: 89424, ~: 89197)
GetCurrentPeriodTest:test_getCurrentPeriod_success_periodEndWithinPermissionEnd(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 21796, ~: 21783)
GetCurrentPeriodTest:test_getCurrentPeriod_success_periodEndWithinPermissionEnd_maxValue(address,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 21197, ~: 21198)
GetCurrentPeriodTest:test_getCurrentPeriod_success_startOfPeriod(address,uint48,uint48,uint48,uint160,uint160,uint256,bytes) (runs: 256, μ: 88092, ~: 87930)
GetCurrentPeriodTest:test_getCurrentPeriod_success_unusedAllowance(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 21877, ~: 21934)
GetHashTest:test_getHash_success(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 9751, ~: 9736)
GetHashTest:test_getHash_success_uniqueHashPerChain(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes,uint64,uint64) (runs: 256, μ: 18851, ~: 18825)
GetHashTest:test_getHash_success_uniqueHashPerContract(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 4153657, ~: 4153631)
GetLastUpdatedPeriod:test_getLastUpdatedPeriod_success_multipleSpends(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 225295, ~: 225180)
GetLastUpdatedPeriod:test_getLastUpdatedPeriod_success_noSpend(address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 91930, ~: 91739)
GetLastUpdatedPeriod:test_getLastUpdatedPeriod_success_someSpend(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 169334, ~: 169205)
GetLastUpdatedPeriod:test_getLastUpdatedPeriod_success_someSpend_elapsedTime(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 169971, ~: 169842)
IsApprovedTest:test_isApproved_false(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 22889, ~: 22864)
IsApprovedTest:test_isApproved_true(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 53243, ~: 53025)
IsRevokedTest:test_isRevoked_false(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 52691, ~: 52475)
IsRevokedTest:test_isRevoked_true(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 82744, ~: 82337)
IsValidSignatureNowAllowSideEffectsTest:test_isValidSignatureNowAllowSideEffects_revert_invalidERC6492Signature(uint256) (runs: 256, μ: 214309, ~: 214309)
IsValidSignatureNowAllowSideEffectsTest:test_isValidSignatureNowAllowSideEffects_revert_invalidSignature(uint256) (runs: 256, μ: 34235, ~: 34235)
IsValidSignatureNowAllowSideEffectsTest:test_isValidSignatureNowAllowSideEffects_success_deploysCounterfactualWallet() (gas: 198420)
IsValidSignatureNowAllowSideEffectsTest:test_isValidSignatureNowAllowSideEffects_success_multipleValidations() (gas: 207712)
IsValidSignatureNowAllowSideEffectsTest:test_isValidSignatureNowAllowSideEffects_success_preDeployedWallet() (gas: 30444)
IsValidTest:test_isValid_false_uninitialized(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 18630, ~: 18615)
IsValidTest:test_isValid_false_wasRevoked(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 87483, ~: 87085)
IsValidTest:test_isValid_true(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 53302, ~: 53102)
ReceiveTest:test_receive_revertsOnInsufficientTransferByUser(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 3180289, ~: 3180353)
ReceiveTest:test_receive_revertsOutsideSpendCall(uint256) (runs: 256, μ: 21545, ~: 21545)
ReceiveTest:test_receive_revertsOutsideSpendCallMultipleAttempts(uint256) (runs: 256, μ: 31679, ~: 31679)
ReceiveTest:test_receive_success_withinSpend(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 199035, ~: 198887)
RevokeAsSpenderTest:test_revokeAsSpender_revert_invalidSender(address,address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 57631, ~: 57353)
RevokeAsSpenderTest:test_revokeAsSpender_success_emitsEvent(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 92328, ~: 91759)
RevokeAsSpenderTest:test_revokeAsSpender_success_isNoLongerAuthorized(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 87605, ~: 87209)
RevokeTest:test_revoke_revert_invalidSender(address,address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 57632, ~: 57469)
RevokeTest:test_revoke_success_emitsEvent(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 91938, ~: 91395)
RevokeTest:test_revoke_success_isNoLongerAuthorized(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 87261, ~: 86887)
RevokeTest:test_revoke_success_returnsEarlyNoEventIfAlreadyRevoked(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 93777, ~: 93393)
SpendTest:test_spend_revert_invalidSender(address,address,address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 51198, ~: 51056)
SpendTest:test_spend_revert_unauthorizedSpendPermission(uint128,address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 24437, ~: 24423)
SpendTest:test_spend_revert_zeroValue(uint128,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 18364, ~: 18356)
SpendTest:test_spend_reverts_ERC20FailedTransfer_ERC20ReturnsFalse(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 97883, ~: 97714)
SpendTest:test_spend_reverts_ERC20FailedTransfer_ERC20Reverts(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 124794, ~: 124629)
SpendTest:test_spend_reverts_maliciousUserWalletDoesNotSendETH(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 170970, ~: 170779)
SpendTest:test_spend_reverts_undeployedToken(address,address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 96362, ~: 96212)
SpendTest:test_spend_success_ERC20LikeUSDT(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 208170, ~: 208022)
SpendTest:test_spend_success_ERC20NoReturn(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 186919, ~: 186783)
SpendTest:test_spend_success_ERC20ReturnsTrue(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 186880, ~: 186744)
SpendTest:test_spend_success_ERC20_approvalSetToZero(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 194071, ~: 193935)
SpendTest:test_spend_success_ether(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 199163, ~: 199002)
SpendTest:test_spend_success_ether_alreadyInitialized(address,uint48,uint48,uint48,uint160,uint256,bytes,uint160) (runs: 256, μ: 172602, ~: 172461)
SpendWithWithdrawTest:test_spendWithWithdraw_revert_erc20TokenWithdrawAssetMismatch((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),address,address) (runs: 256, μ: 36854, ~: 36834)
SpendWithWithdrawTest:test_spendWithWithdraw_revert_invalidEncodedSpendPermissionHash((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 99680, ~: 99458)
SpendWithWithdrawTest:test_spendWithWithdraw_revert_invalidSender((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),address,uint160) (runs: 256, μ: 62855, ~: 62670)
SpendWithWithdrawTest:test_spendWithWithdraw_revert_nativeTokenWithdrawAssetMismatch((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),address) (runs: 256, μ: 36489, ~: 36468)
SpendWithWithdrawTest:test_spendWithWithdraw_revert_spendLessThanWithdrawAmount((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 70648, ~: 70439)
SpendWithWithdrawTest:test_spendWithWithdraw_revert_unauthorizedSpendPermission((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint128,uint160) (runs: 256, μ: 43219, ~: 43192)
SpendWithWithdrawTest:test_spendWithWithdraw_reverts_magicSpendWithdrawFailed((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 133824, ~: 133694)
SpendWithWithdrawTest:test_spendWithWithdraw_success_combinedBalance_erc20((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 256344, ~: 256189)
SpendWithWithdrawTest:test_spendWithWithdraw_success_combinedBalance_ether((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 260594, ~: 260396)
SpendWithWithdrawTest:test_spendWithWithdraw_success_erc20((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 308200, ~: 308021)
SpendWithWithdrawTest:test_spendWithWithdraw_success_ether((address,uint48,uint48,uint48,uint160,uint256,bytes,uint128),uint160) (runs: 256, μ: 260392, ~: 260186)
UseSpendPermissionTest:test_useSpendPermission_revert_exceededSpendPermission(address,address,uint48,uint48,uint48,uint160,uint160,uint256,bytes) (runs: 256, μ: 55562, ~: 55398)
UseSpendPermissionTest:test_useSpendPermission_revert_exceededSpendPermission_accruedSpend(address,address,uint48,uint48,uint48,uint160,uint256,bytes,uint160,uint160) (runs: 256, μ: 88049, ~: 87946)
UseSpendPermissionTest:test_useSpendPermission_revert_spendValueOverflow(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 54982, ~: 54827)
UseSpendPermissionTest:test_useSpendPermission_revert_unauthorizedSpendPermission(address,address,uint48,uint48,uint48,uint160,uint160,uint256,bytes) (runs: 256, μ: 19606, ~: 19593)
UseSpendPermissionTest:test_useSpendPermission_revert_zeroValue() (gas: 50087)
UseSpendPermissionTest:test_useSpendPermission_success_emitsEvent((address,address,address,uint160,uint48,uint48,uint48,uint256,bytes),uint160) (runs: 256, μ: 87957, ~: 87853)
UseSpendPermissionTest:test_useSpendPermission_success_incrementalSpends(address,address,uint48,uint48,uint48,uint160,uint256,bytes,uint8) (runs: 256, μ: 1696987, ~: 1204362)
UseSpendPermissionTest:test_useSpendPermission_success_maxAllowance(address,address,uint48,uint48,uint48,uint160,uint256,bytes) (runs: 256, μ: 85223, ~: 85096)
UseSpendPermissionTest:test_useSpendPermission_success_setsState(address,address,uint48,uint48,uint48,uint160,uint160,uint256,bytes) (runs: 256, μ: 86124, ~: 85991)