-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add further fields to include approximate time #1425
Comments
In the state channel responses, I see the attribute name |
@janmichek that is correct |
@janmichek the value for |
Are you sure this naming is precise? I would expect https://mainnet.aeternity.io/mdw/v2/names/auctions?by=expiration&direction=forward&limit=10 |
@janmichek that's true, |
It seems to be missing (or some other similarly named value) in response |
seems to be missing https://mainnet.aeternity.io/mdw/v2/names/dragonflycaptain.chain |
ping |
@janmichek I forgot to reference this issue on the PR, but this is already implemented on #1573 and will be available on the next deploy |
Cool, thanks! |
There still seems to be 2 walues missing from initial requirements
Can you add it please? |
Hello, there does not seem to be Also, I got one new minor request to add Can you process it please? |
@janmichek these changes are part of v3, and present on a route like https://mainnet.aeternity.io/mdw/v3/names?state=active&by=activation&direction=backward&limit=4&expand=true&by=activation . I will now add the |
Excellent, thanks for clarification and further addition |
|
Thank you. I was checking that. Compared to V2 there is no name fee in V3 we have been using, so I cannot switch to V3 for that reason. How do you think you could fix it? |
@janmichek can you indicate where the name fee appears in v2? |
UPDATE:
|
@janmichek sorry, but I didn't see where the name fee is. can you indicate where the name fee appears in v2? |
|
@janmichek it's part of the first claim, not the top name object. In v3, we no longer return nested lists of things, this is not proper API design. Would you rather include |
@janmichek cool, I'll update the name so that it includes this information, that way you won't have to rely on nested lists of claims, or any list of anything, including pointers |
Hello, I can see now that nameFee has been exposed, but I still miss the pointers Side question: You mention that a nested list is an antipattern for API, but for the name in auction, I cab see a nested object. Why it's like that? (I don't have specific preference, just curious ) |
Nested lists are part of the old legacy API which was not properly designed. V3 shouldn't contain any of these lists, auctions currently doesn't: https://mainnet.aeternity.io/mdw/v3/names/auctions |
|
Pointers are already returned via the |
Should I daisy chain the call of |
We wouldn't want to return an unlimited list of things at any of the endpoints we have, but I just asked the node team and it looks like there's a limit of 32 pointers max. In this case we can add them to the names list like the node does @yaboiishere is working on that |
Pointers is now part of the names object on v3. Closing |
The fields and endpoints are the following:
approximate_last_updated_time
inchannels/{stateChannelId}
approximate_last_updated_time
inchannels
endpointapproximate_activated_time
innames
(with expand=true) endpointapproximate_auction_end_time
innames/auctions
endpointapproximate_expiration_time
andapproximate_auction_end_time
innames/{name}
endpointapproximate_created_time
inaccounts/{nameHash}/activities
(for cases ifmicro_time
is not available) endpointapproximate_created_time
incontracts/logs?contract_id={contractId}
endpointapproximate_activated_time
inoracles
endpointapproximate_registered_time
inoracles/{oracleId}
endpointrefs #831
The text was updated successfully, but these errors were encountered: