-
Notifications
You must be signed in to change notification settings - Fork 21
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
base: main
Are you sure you want to change the base?
Integrate Transfer Guard program into WNS #107
Conversation
programs/wen_new_standard/src/instructions/mint/royalties/add.rs
Outdated
Show resolved
Hide resolved
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. |
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.
This should fix up the dependency issue.
.additional_metadata | ||
.iter() | ||
.find(|(key, _)| key == ROYALTY_BASIS_POINTS_FIELD) | ||
.map(|(_, value)| u64::from_str(value).unwrap()) |
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.
.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 |
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.
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" |
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.
name = "royalties-interface" | |
name = "wen-royalties-interface" |
version = "0.1.0" | ||
edition = "2021" |
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.
version = "0.1.0" | |
edition = "2021" | |
version.workspace = true | |
edition.workspace = true | |
repository.workspace = true | |
publish.workspace = true |
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" |
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.
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" } |
No description provided.