Skip to content

Conversation

grod220
Copy link
Member

@grod220 grod220 commented Feb 27, 2025

If the mint has support for the TransferHooks extension, the program will now execute them upon a wrap or unwrap action.

Makes use of helpers exposed by token-2022 repo. However, there is a dependency on solana-program/token-2022#233 for multisig support.

New test-transfer-hook program created to test out new functionality.

@grod220 grod220 marked this pull request as ready for review February 27, 2025 20:24
@grod220 grod220 force-pushed the transfer-hooks branch 2 times, most recently from 9df4636 to d68d4f7 Compare March 3, 2025 14:49
@grod220 grod220 requested a review from buffalojoec March 3, 2025 14:58
@grod220 grod220 mentioned this pull request Mar 4, 2025
@grod220 grod220 changed the base branch from main to update-deps-2.1 March 4, 2025 16:29
Base automatically changed from update-deps-2.1 to main March 5, 2025 10:38
@grod220 grod220 requested a review from buffalojoec March 5, 2025 11:00
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

I didn't look at the tests, but wanted to comment on the logic and setup of the repo

@grod220 grod220 requested a review from joncinque March 6, 2025 11:05
Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks good to me! But do get an approval from Joe too

Copy link

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

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

Lgtm, left a few "take it or leave it" remarks. Nice work!!

"private": true,
"scripts": {
"programs:build": "zx ./scripts/rust/build-sbf.mjs program",
"programs:build": "cargo-build-sbf",

Choose a reason for hiding this comment

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

Yikes. I saw the discussion on this earlier, so I'm not going to make a stink here, but here's another situation where our CI is getting out of whack. Not your fault or within the scope of this PR, so you can disregard my griping. 🥴

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah... we should eventually pool all the updates to https://github.com/solana-program/create-solana-program and then update all the repos from that for consistency

@grod220 grod220 enabled auto-merge (squash) March 7, 2025 09:23
@grod220 grod220 merged commit 0841bd6 into main Mar 7, 2025
7 checks passed
@grod220 grod220 deleted the transfer-hooks branch March 7, 2025 09:24
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