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

Integrate Transfer Guard program into WNS #107

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

sunguru98
Copy link
Contributor

No description provided.

@sunguru98 sunguru98 requested a review from kespinola June 25, 2024 09:59
@kespinola kespinola changed the title [DRAFT] feat: Integrate Transfer Guard program into WNS Integrate Transfer Guard program into WNS Jun 25, 2024
@kespinola
Copy link
Contributor

This branch updates WNS to use token group from token extension but the TE doesn't support it yet. It needs to be deployed before this can be released.

This does not include a migration script for existing collections using the token group shim from WNS.

Copy link
Contributor

@kespinola kespinola left a comment

Choose a reason for hiding this comment

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

This should fix up the dependency issue.

.additional_metadata
.iter()
.find(|(key, _)| key == ROYALTY_BASIS_POINTS_FIELD)
.map(|(_, value)| u64::from_str(value).unwrap())
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
.map(|(_, value)| u64::from_str(value).unwrap())
.map(|(_, value)| u64::from_str(value))?

maybe not quite this but should be able to handle the result without unwrap

@@ -28,3 +28,4 @@ anchor-spl.workspace = true
wen_royalty_distribution.workspace = true
spl-transfer-hook-interface.workspace = true
spl-tlv-account-resolution.workspace = true
spl-type-length-value.workspace = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
spl-type-length-value.workspace = true
spl-type-length-value.workspace = true
wen-royalties-interface.workspace = true

@@ -0,0 +1,12 @@
[package]
name = "royalties-interface"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name = "royalties-interface"
name = "wen-royalties-interface"

Comment on lines +3 to +4
version = "0.1.0"
edition = "2021"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
version = "0.1.0"
edition = "2021"
version.workspace = true
edition.workspace = true
repository.workspace = true
publish.workspace = true

Comment on lines +16 to +19
spl-transfer-hook-interface = "0.6.5"
spl-tlv-account-resolution = "0.6.5"
spl-pod = "0.2.5"
spl-type-length-value = "=0.3.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
spl-transfer-hook-interface = "0.6.5"
spl-tlv-account-resolution = "0.6.5"
spl-pod = "0.2.5"
spl-type-length-value = "=0.3.0"
spl-transfer-hook-interface = "0.6.5"
spl-tlv-account-resolution = "0.6.5"
spl-pod = "0.2.5"
spl-type-length-value = "=0.3.0"
wen-royalties-interface = { path = "libraries/royalties-interface" }

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