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

Implement liveTx and min/max height search filters #102

Merged
merged 5 commits into from
Feb 18, 2020

Conversation

webmaster128
Copy link
Member

No description provided.

Copy link
Contributor

@ethanfrey ethanfrey left a comment

Choose a reason for hiding this comment

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

Nice

txs = await this.cosmWasmClient.searchTx({ sentFromOrTo: sentFromOrTo });
} else {
throw new Error("Unsupported query");
}

return txs.map(tx => this.parseAndPopulateTxResponseUnsigned(tx));
const filtered = txs.filter(tx => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Oof, filtering client side. "Fake it til you make it".

But yeah, I agree you can fulfill the API properly now, while not being blocked on the "proper" backend changes.

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly. But feel free to bring in CosmWasm/wasmd#73

throw new Error("Query by minHeight/maxHeight not supported together with ID");
}

// concat never() because we want non-completing streams consistently
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting

*
* @see https://cosmos.network/rpc/#/Transactions/post_txs
*/
export enum BroadcastMode {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good docs

@webmaster128 webmaster128 merged commit 2cbb6fe into master Feb 18, 2020
@webmaster128 webmaster128 deleted the search-min-max-height branch February 18, 2020 16:32
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.

2 participants