-
Notifications
You must be signed in to change notification settings - Fork 35
feat: use json rpc apis for IOTA-Names reads #6617
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: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
c4fdae2
to
a3b9cb9
Compare
0108fd2
to
55a4d2f
Compare
a3b9cb9
to
5c3bd1b
Compare
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.
Maybe iota_names_find_all_registration_nfts
can be used as well?
How do you think I implemented |
I was thinking of using it in |
crates/iota/src/name_commands.rs
Outdated
} else { | ||
break; | ||
} | ||
} |
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.
Reminder to use GetAllPages
if merged before
let mut nfts = get_owned_nfts::<IotaNamesRegistration>(address, context).await?; | ||
let subdomain_nfts = | ||
get_owned_nfts::<SubdomainRegistration>(address, context).await?; | ||
nfts.extend(subdomain_nfts.into_iter().map(|nft| nft.into_inner())); |
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.
How come this wasn't creating duplicates btw?
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.
Not sure what you mean
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.
Why were we requesting both IotaNamesRegistration
and SubdomainRegistration
?
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.
Because they don't return the other one
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.
List currently does not return SubdomainRegistration
Description of change
Updates the CLI commands lookup, reverse-lookup, get-user-data, and list to use the new JSON RPC APIs.
Links to any relevant issues
#6394
Type of change
Choose a type of change, and delete any options that are not relevant.
How the change has been tested
The
config.rs
file was modified to load ENV vars for the package IDs and such, then a localnet was started, and the packages published. The ENV was set and the server was restarted. Then the client was run against the existing server.Release Notes