-
Notifications
You must be signed in to change notification settings - Fork 18
make progress on stack depth issues when running coverage #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a893e2c
make progress on stack depth issues when running coverage
0age b6b49b6
snapshot run
0age b3cf2e2
chore: improve permit2-based deposit interface
ccashwell 6d3572e
chore: fix formatting
ccashwell dc60a68
fix compiler warning
0age 1ee8953
chore: test suite cleanup and deduplication
ccashwell d293258
snapshot
0age 69d599d
get about halfway through stack refactor of tests
0age 389b101
more progress on a few particularly gnarly ones
0age d8c2ac2
get it all working
0age 86645c7
add coverage step to CI
0age 92f404b
push to codecov
0age 9742b2b
use v5
0age File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Compiler files | ||
cache/ | ||
out/ | ||
lcov.info | ||
|
||
# Ignores development broadcast logs | ||
!/broadcast | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
|
||
> :warning: This is an early-stage contract under active development; it has not yet been properly tested, reviewed, or audited. | ||
|
||
> NOTE: this README is based on Version 0 of The Compact; it still needs to be updated for Version 1, which is currently under active development. | ||
|
||
## Summary | ||
The Compact is an ownerless ERC6909 contract that facilitates the voluntary formation (and, if necessary, eventual dissolution) of reusable resource locks. | ||
|
||
|
@@ -35,8 +37,11 @@ $ git clone [email protected]:Uniswap/the-compact.git && cd the-compact | |
# install dependencies & libraries | ||
$ forge install | ||
|
||
# run basic tests | ||
# run basic tests & gas snapshots | ||
$ forge test | ||
|
||
# run coverage & generate report | ||
$ forge coverage --report lcov | ||
``` | ||
|
||
## Usage | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
codecov: | ||
require_ci_to_pass: yes | ||
|
||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "70...100" | ||
status: | ||
project: | ||
default: | ||
# basic | ||
target: auto | ||
threshold: 0% | ||
base: auto | ||
# advanced | ||
branches: null | ||
if_no_uploads: error | ||
if_not_found: success | ||
if_ci_failed: error | ||
only_pulls: false | ||
flags: null | ||
paths: null | ||
patch: | ||
default: | ||
# basic | ||
target: auto | ||
threshold: 0% | ||
base: auto | ||
# advanced | ||
branches: null | ||
if_no_uploads: error | ||
if_not_found: success | ||
if_ci_failed: error | ||
only_pulls: false | ||
flags: null | ||
paths: null | ||
|
||
parsers: | ||
gcov: | ||
branch_detection: | ||
conditional: yes | ||
loop: yes | ||
method: no | ||
macro: no | ||
|
||
comment: | ||
layout: "reach,diff,flags,files,footer" | ||
behavior: default | ||
require_changes: no | ||
require_base: no | ||
require_head: yes | ||
branches: null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
{ | ||
"batchClaimRegisteredWithDepositWithWitness": "145160", | ||
"batchDepositAndRegisterWithWitnessViaPermit2": "219004", | ||
"claim": "86514", | ||
"claimAndWithdraw": "114496", | ||
"depositAndRegisterViaPermit2": "123247", | ||
"depositBatchSingleERC20": "66450", | ||
"depositBatchSingleNative": "26935", | ||
"depositBatchViaPermit2NativeAndERC20": "127573", | ||
"depositBatchViaPermit2SingleERC20": "102735", | ||
"depositERC20AndURI": "65883", | ||
"depositERC20Basic": "65883", | ||
"depositERC20ViaPermit2AndURI": "98371", | ||
"depositETHAndURI": "25953", | ||
"batchClaimRegisteredWithDepositWithWitness": "145278", | ||
"batchDepositAndRegisterWithWitnessViaPermit2": "218447", | ||
"claim": "86555", | ||
"claimAndWithdraw": "114537", | ||
"depositAndRegisterViaPermit2": "122980", | ||
"depositBatchSingleERC20": "66488", | ||
"depositBatchSingleNative": "26957", | ||
"depositBatchViaPermit2NativeAndERC20": "127465", | ||
"depositBatchViaPermit2SingleERC20": "102627", | ||
"depositERC20AndURI": "65965", | ||
"depositERC20Basic": "65965", | ||
"depositERC20ViaPermit2AndURI": "97718", | ||
"depositETHAndURI": "26019", | ||
"depositETHBasic": "26177", | ||
"depositRegisterFor": "78131", | ||
"exogenousSplitBatchMultichainClaimWithWitness": "119870", | ||
"exogenousSplitMultichainClaimWithWitness": "91532", | ||
"qualified_basicTransfer": "59816", | ||
"register": "24458", | ||
"splitBatchClaimWithWitness": "145154", | ||
"splitBatchMultichainClaimWithWitness": "92127", | ||
"splitBatchTransfer": "117228", | ||
"splitBatchWithdrawal": "146028", | ||
"splitClaimWithWitness": "89649", | ||
"splitMultichainClaimWithWitness": "90333", | ||
"splitTransfer": "86967", | ||
"splitWithdrawal": "95819" | ||
"depositRegisterFor": "78197", | ||
"exogenousSplitBatchMultichainClaimWithWitness": "120030", | ||
"exogenousSplitMultichainClaimWithWitness": "91645", | ||
"qualified_basicTransfer": "59904", | ||
"register": "24502", | ||
"splitBatchClaimWithWitness": "145278", | ||
"splitBatchMultichainClaimWithWitness": "92279", | ||
"splitBatchTransfer": "117294", | ||
"splitBatchWithdrawal": "146094", | ||
"splitClaimWithWitness": "89690", | ||
"splitMultichainClaimWithWitness": "90402", | ||
"splitTransfer": "87055", | ||
"splitWithdrawal": "95907" | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: We may be looping over idsAndAmounts twice in this function. Once in
_enforceConsistentAllocators
and once in.hasValidSponsor
if the emissary is checked. Because of stack issues, I don't believe we want to fix.