Introduce table
function API. Add getTableItemsData
and getTableItemsMetadata
queries
#385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR
decimal
prop back tocurrent_token_ownerships_v2.current_token_data
responsetable
related queries -getTableItemsData
andgetTableItemsMetadata
.Currently, PFN doesnt return the table item data or metadata (i.e
data
field is alwaysnull
, see https://fullnode.mainnet.aptoslabs.com/v1/transactions/by_version/563060087 ) and Indexer doesnt have a join query that can return all the data in one response.This PR adds the 2 different Indexer queries where one can fetch the decoded table item data.
For example, consider https://explorer.aptoslabs.com/txn/563060087/changes?network=mainnet (index 5) Indexer is able to get us the decoded values.
With this change, the SDK uses indexer to fetch the decoded values
Can compare with aptoscan.com
Test Plan
decimal
prop doesnt break queries (as happened in https://aptos-org.slack.com/archives/C05NLAKJM9U/p1709164127936519 )Related Links