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

SPIKE: BigMapAbstraction enhancement #2802

Open
hui-an-yang opened this issue Jan 19, 2024 · 1 comment
Open

SPIKE: BigMapAbstraction enhancement #2802

hui-an-yang opened this issue Jan 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@hui-an-yang
Copy link
Collaborator

From user questions asked to taquitobot by far, we can see the some developer experience improvement to be make in BigMapAbstraction class.

user questions as follows

  • how to check if bigmap in storage is empty?
  • how do I get all the keys in a BigMap from the chain?
  • how do I convert the values of a BigMapAbstraction to an array of objects

Would be great to investigate some options to support developer pain point above

For example there is a rpc endpoint https://ghostnet.ecadinfra.com/chains/main/blocks/head/context/big_maps/196967 that will return the bigmaps value objects in array, that we can add a function to BigMapAbstraction to check if the returned array is empty to fix the first issue above.

@hui-an-yang hui-an-yang changed the title SPIKE: BigMapAbstraction enhancement SPIKE: BigMapAbstraction improvement Jan 19, 2024
@hui-an-yang hui-an-yang changed the title SPIKE: BigMapAbstraction improvement SPIKE: BigMapAbstraction enhancement Jan 19, 2024
@hui-an-yang
Copy link
Collaborator Author

related issue #222 that rpc endpoint solve second issue https://ghostnet.ecadinfra.com/chains/main/blocks/head/context/raw/json/big_maps/index/196967/contents will return a list of all the keys encoded as expression

@hui-an-yang hui-an-yang added the enhancement New feature or request label Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: High priority
Development

No branches or pull requests

1 participant