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 sdk devnet usage #78

Open
thepiwo opened this issue Aug 5, 2024 · 5 comments
Open

js sdk devnet usage #78

thepiwo opened this issue Aug 5, 2024 · 5 comments

Comments

@thepiwo
Copy link

thepiwo commented Aug 5, 2024

Hello, I'm struggling to use the sdk on testnet, as getDomainKeysWithReverses, reverseLookupBatch and getAllDomains don't seem to be exported in devnet.bindings/utils but depend on mainnet constants in the sdk implementation.

Additionally when trying to use getFavoriteDomain I receive The favourite account does not exist for the same problem, but the devnet.constants don''t seem to offer any NAME_OFFERS_ID for me to rebind the devnet logic.

Would be happy to receive some guidance here or a link to the documentation in case I overlooked something.

@dr497
Copy link
Contributor

dr497 commented Aug 6, 2024

Thanks for opening this issue.

First off, I want to apologize for the current limitations with devnet support; we are aware of these gaps and are planning to improve it.

To help us prioritize and work on this as quickly as possible, could you please confirm if these are the only functions you're missing? If there are any other functions or issues you’ve encountered, sharing those would allow us to take a comprehensive approach to fixing them.

@thepiwo
Copy link
Author

thepiwo commented Aug 6, 2024

For my current usage, those are the only functions. But I think a comprehensive approach to devnet usage would be good, so all functions are compatible.

As the SNS website currently doesn't offer a way to register/manage names on devnet either, registration for those purposes probably has to be done with the sdk as well, I haven't checked those functions for devnet usage yet.

@thepiwo
Copy link
Author

thepiwo commented Aug 6, 2024

In order for me to implement temporary workarounds in my code it would be great for this repository to have a permissive licensing so I am fine to develop based on it.

@dr497
Copy link
Contributor

dr497 commented Aug 6, 2024

I have added an MIT license and will be working on adding the requested functions in the coming days. You are correct, you will need to use the SDK if you want to register devnet domains.

@thepiwo
Copy link
Author

thepiwo commented Aug 6, 2024

awesome, thank you! And thanks for being this responsive

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