Skip to content
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

Feat/caveat test rebase #46

Merged
merged 7 commits into from
Nov 3, 2023
Merged

Feat/caveat test rebase #46

merged 7 commits into from
Nov 3, 2023

Conversation

0xgregthedev
Copy link
Contributor

No description provided.

0xgregthedev and others added 5 commits November 2, 2023 14:40
* update getAuctionStart to be a public helper, make an internal version that is more optimized(less calls/decoding), add tests

* coverage testing for AstariaV1Settlement handler complete

* coverage testing for AstariaV1Settlement handler complete

* fix test name
* update getAuctionStart to be a public helper, make an internal version that is more optimized(less calls/decoding), add tests

* coverage testing for AstariaV1Settlement handler complete

* coverage testing for AstariaV1Settlement handler complete

* fix test name

* Astaria V1 Hook testing complete(-withdraw), Conduit Helper Removed, ConduitTransfer => AdditionalTransfer

* remove commented code

* final comment removal
* update getAuctionStart to be a public helper, make an internal version that is more optimized(less calls/decoding), add tests

* coverage testing for AstariaV1Settlement handler complete

* coverage testing for AstariaV1Settlement handler complete

* fix test name

* Astaria V1 Hook testing complete(-withdraw), Conduit Helper Removed, ConduitTransfer => AdditionalTransfer

* remove commented code

* final comment removal

* additional tests for v1 hook as well as some cleanup/fixes

* update snaphot
@0xgregthedev 0xgregthedev force-pushed the feat/caveat-test-rebase branch from c453fe7 to b70045a Compare November 3, 2023 00:05
@0xgregthedev 0xgregthedev marked this pull request as ready for review November 3, 2023 00:13
src/LoanManager.sol Outdated Show resolved Hide resolved
@@ -469,6 +453,14 @@ contract LoanManager is Ownable, ERC721 {
);
}

function incrementCaveatNonce() external {
++caveatNonces[msg.sender];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in my change i did the seaport style nonce increment, but unsure if we care, also we need an event to both so that we can index them/invalidte things

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seaport style sounds good to me. Yeah probably should add the salt event to validateSalt as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok can just adopt my methods then they have events and the seaport style nonce update, will add events to the invalidate caveat salt

src/LoanManager.sol Outdated Show resolved Hide resolved
@0xgregthedev 0xgregthedev force-pushed the feat/caveat-test-rebase branch from fd33e72 to 114cce4 Compare November 3, 2023 00:44
@androolloyd androolloyd merged commit 675328b into main Nov 3, 2023
1 check passed
@justingreenberg justingreenberg deleted the feat/caveat-test-rebase branch November 20, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants