Skip to content

wXTZ wrapper improvements #347

Description

@anonymoussprocket

WrappedTezosHelper.listOvens should get the data more efficiently, something like the following:

let contentQuery = ConseilQueryBuilder.setLimit(ConseilQueryBuilder.blankQuery(), 1_000);
contentQuery = ConseilQueryBuilder.addFields(contentQuery, 'key');
contentQuery = ConseilQueryBuilder.addPredicate(contentQuery, 'value', ConseilOperator.EQ, [`0x${TezosMessageUtils.writeAddress(ovenOwner)}`], false);
contentQuery = ConseilQueryBuilder.addPredicate(contentQuery, 'big_map_id', ConseilOperator.EQ, [ovenListBigMapId], false);
const result = await ConseilDataClient.executeEntityQuery(serverInfo, 'tezos', serverInfo.network, 'big_map_contents', contentQuery);
return result.map(k => TezosMessageUtils.readAddress(k.replace(/\"/g, '').replace(/\n/, '').replace("0x", "")));

@StakerDAO

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions