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

ConseilJS 5.0.2-beta.3 #303

Merged
merged 7 commits into from
Jul 6, 2020
Merged

ConseilJS 5.0.2-beta.3 #303

merged 7 commits into from
Jul 6, 2020

Conversation

anonymoussprocket
Copy link
Contributor

@anonymoussprocket anonymoussprocket commented Jun 26, 2020

Changes

* Returns a value for a given key. The big map id is either provided as a paramter or the smallest of the possibly multiple big maps associated with the given contract address is used. Note that sometimes key values must be wrapped in quotes for key types that are non-numeric and not byte type.
*
* @param serverInfo Conseil server connection definition.
* @param key Key to query for.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should specify whether this is encoded or not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs were updated


let contentQuery = ConseilQueryBuilder.setLimit(ConseilQueryBuilder.blankQuery(), 1);
contentQuery = ConseilQueryBuilder.addFields(contentQuery, 'value');
contentQuery = ConseilQueryBuilder.addPredicate(contentQuery, 'key', ConseilOperator.EQ, [key], false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it not possible to automatically encode the key? I forget the details.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at this time, contract parser will need updates.

@anonymoussprocket anonymoussprocket changed the title added getBigMapValueForKey ConseilJS 5.0.2-beta.3 Jul 3, 2020
vishakh
vishakh previously approved these changes Jul 4, 2020
@anonymoussprocket anonymoussprocket merged commit f1672b4 into master Jul 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants