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

Add sender hook and rename recipient's hook functions #781

Merged
merged 5 commits into from
Jan 11, 2024

Conversation

andreivladbrg
Copy link
Member

Closes #742 and #736

Depends on #779 to be merged on staging first.

Note: called getSender before the internal _withdraw function is called for security reason, in case the sender is changed when the assets are transffered.

refactor: rename recipient's hook functions
refactor: add getSender function in SablierV2Lockup
test: update tests accordingly
src/abstracts/SablierV2Lockup.sol Show resolved Hide resolved
src/abstracts/SablierV2Lockup.sol Outdated Show resolved Hide resolved
test/integration/concrete/lockup/withdraw/withdraw.t.sol Outdated Show resolved Hide resolved
Copy link
Member

@smol-ninja smol-ninja left a comment

Choose a reason for hiding this comment

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

LGTM!

@andreivladbrg andreivladbrg merged commit 866be7c into staging Jan 11, 2024
8 of 9 checks passed
@smol-ninja smol-ninja deleted the feat/add-sender-hook branch January 11, 2024 14:42
andreivladbrg added a commit that referenced this pull request Jan 21, 2024
* refactor: rename recipient's hook interface

refactor: rename recipient's hook functions

* feat: add hook for sender

refactor: add getSender function in SablierV2Lockup
test: update tests accordingly

* build: include ISablierV2Sender in prepare-artifacts

* test: update Precompiles bytecode

* refactor: use sender address to check the caller when calling the hook

test: correct function name
andreivladbrg added a commit that referenced this pull request Feb 12, 2024
* refactor: rename recipient's hook interface

refactor: rename recipient's hook functions

* feat: add hook for sender

refactor: add getSender function in SablierV2Lockup
test: update tests accordingly

* build: include ISablierV2Sender in prepare-artifacts

* test: update Precompiles bytecode

* refactor: use sender address to check the caller when calling the hook

test: correct function name
andreivladbrg added a commit that referenced this pull request Feb 15, 2024
* refactor: rename recipient's hook interface

refactor: rename recipient's hook functions

* feat: add hook for sender

refactor: add getSender function in SablierV2Lockup
test: update tests accordingly

* build: include ISablierV2Sender in prepare-artifacts

* test: update Precompiles bytecode

* refactor: use sender address to check the caller when calling the hook

test: correct function name
andreivladbrg added a commit that referenced this pull request Feb 17, 2024
* refactor: rename recipient's hook interface

refactor: rename recipient's hook functions

* feat: add hook for sender

refactor: add getSender function in SablierV2Lockup
test: update tests accordingly

* build: include ISablierV2Sender in prepare-artifacts

* test: update Precompiles bytecode

* refactor: use sender address to check the caller when calling the hook

test: correct function name
andreivladbrg added a commit that referenced this pull request Jul 3, 2024
* refactor: rename recipient's hook interface

refactor: rename recipient's hook functions

* feat: add hook for sender

refactor: add getSender function in SablierV2Lockup
test: update tests accordingly

* build: include ISablierV2Sender in prepare-artifacts

* test: update Precompiles bytecode

* refactor: use sender address to check the caller when calling the hook

test: correct function name
andreivladbrg added a commit that referenced this pull request Jul 3, 2024
* refactor: rename recipient's hook interface

refactor: rename recipient's hook functions

* feat: add hook for sender

refactor: add getSender function in SablierV2Lockup
test: update tests accordingly

* build: include ISablierV2Sender in prepare-artifacts

* test: update Precompiles bytecode

* refactor: use sender address to check the caller when calling the hook

test: correct function name
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.

3 participants