-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Add support for IOTA-Names #170
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
base: sdk-bindings
Are you sure you want to change the base?
Conversation
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.
Default name: name.iota
🎉
from lib.iota_sdk_ffi import *
import asyncio
async def main():
client = GraphQlClient.new_devnet()
name = await client.iota_names_default_name(Address.from_hex("0x0000a4984bd495d4346fa208ddff4f5d5e5ad48c21dec631ddebc99809f16900"), None)
print("Default name:", name.format(NameFormat.DOT))
if __name__ == "__main__":
asyncio.run(main())
9327aa5
to
e9fa39f
Compare
#[error("Name must include only one separator")] | ||
InvalidSeparator, |
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.
tbh this error is a bit confusing since we actually have two separators and it's not clear that this error and its message make only sense for the @
separator.
Can we be more explicit here?
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.
sure, done
Descriptions
Adds three graphql queries and types to support IOTA-Names.