-
Notifications
You must be signed in to change notification settings - Fork 56
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(contracts/core): add additional actions to inbox #2360
Conversation
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.
Can we change pr title (which will be commit message) to a feat(contracts/core): ...
We are adding to Inbox, not just adding tests
- Let's make all methods
nonReentrant
. But definitely cancel. Otherwise we could have some malicious cancellations while opening a request. - Thinking we actually do keep requests around for now, and just change status (see my comment below). Think the view function will be helpful. We can switch later if we don't need it
Also, can you move the function tests cases to their own files.
Inbox_accept.t.sol
Inbox_reject.t.sol
Inbox_cancel.t.sol
Hlps keeps tests files a bit smaller
Sol artifacts changed because adding solady import changed metadata
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.
Approving.
Let's switch to new state names tho from adr Open -> Pending
and Cancelled -> Reverted
Replaced OpenZeppelin libs with gas-optimized Solady alternatives. Expanded solve Inbox to include accept, reject, and cancel logic. Also implemented tests for these flows.
issue: #2355