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

js lib for contracts #170

Open
taitruong opened this issue Jul 24, 2024 · 1 comment
Open

js lib for contracts #170

taitruong opened this issue Jul 24, 2024 · 1 comment

Comments

@taitruong
Copy link
Collaborator

There's ts-codegen for easily creating js libs. But it wont solve different versions of cw721.

Like in v16 there is Minter query, whereas in v18 it is Ownership and in upcoming v19 it is GetMinterOwnership.

New lib may have a version for constructor. In case of v16 then GetMinterOwnership call does an actual Minter call.

@shanev @JakeHartnell wdyt?

@JakeHartnell
Copy link
Collaborator

cw721 is probably a case that warrants making a dedicate npm library for to handle the different versions (including sg721 NFTs). Could also add some helper methods for fetching token_uri, etc.

ts-codegen output could be a good start for this.

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

2 participants