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

Query ContractInfo: add num_tokens and minter/owner #139

Open
taitruong opened this issue Nov 3, 2023 · 1 comment
Open

Query ContractInfo: add num_tokens and minter/owner #139

taitruong opened this issue Nov 3, 2023 · 1 comment

Comments

@taitruong
Copy link
Collaborator

By adding number of tokens and minter/owner, this may lead to less queries - at least in my case :).

@taitruong
Copy link
Collaborator Author

taitruong commented Nov 3, 2023

After looking into this: https://github.com/CosmWasm/cw-nfts/blob/main/packages/cw721/src/query.rs#L120-L123

I'd suggest extending these:

#[cw_serde]
pub struct ContractInfoResponse {
    pub name: String,
    pub symbol: String,
    pub num_tokens: u64,
    //optional props for backwards compatibility
    pub minter: Option<String>,
    pub description: Option<String>,
    pub uri: Option<String>, // uri or image
}

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