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

Cleanup cw2981-royalties #158

Closed
taitruong opened this issue Mar 8, 2024 · 1 comment
Closed

Cleanup cw2981-royalties #158

taitruong opened this issue Mar 8, 2024 · 1 comment

Comments

@taitruong
Copy link
Collaborator

With new CollectionInfo with RoyaltyInfo this should be cleanup. It may even be covered optionally covered in cw721 - TBD.

// see: https://docs.opensea.io/docs/metadata-standards
#[cw_serde]
#[derive(Default)]
pub struct Metadata {
pub image: Option<String>,
pub image_data: Option<String>,
pub external_url: Option<String>,
pub description: Option<String>,
pub name: Option<String>,
pub attributes: Option<Vec<Trait>>,
pub background_color: Option<String>,
pub animation_url: Option<String>,
pub youtube_url: Option<String>,
/// This is how much the minter takes as a cut when sold
/// royalties are owed on this token if it is Some
pub royalty_percentage: Option<u64>,
/// The payment address, may be different to or the same
/// as the minter addr
/// question: how do we validate this?
pub royalty_payment_address: Option<String>,
}

@taitruong
Copy link
Collaborator Author

removed contract and solved in #156

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

No branches or pull requests

1 participant