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

test: Darkpool.t.sol: Add tests for deposit and withdrawals #54

Merged
merged 4 commits into from
Mar 6, 2025

Conversation

joeykraut
Copy link
Member

Purpose

This PR adds tests for deposits and withdrawals via updateWallet.

For deposits, this PR adds helpers to generate permit2 signatures over the deposit witness -- in our case the previous root key of the wallet.

For withdrawals, this PR adds helpers to generate K256 signatures over the abi encoded transfer struct. This differs slightly from the stylus implementation which postcard serializes the transfer struct. This will need to be resolved client side.

Testing

  • All unit tests pass

@joeykraut joeykraut force-pushed the joey/transfer-tests branch from 231cf66 to da5608f Compare March 6, 2025 03:16
@joeykraut joeykraut merged commit fbbf0ec into main Mar 6, 2025
0 of 2 checks passed
@joeykraut joeykraut deleted the joey/transfer-tests branch March 6, 2025 03:17
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.

1 participant