Events subcommand should allow for filtering and default to only contract events

Open
#1,614 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust
Domain
cli

Research direction

Start at the implementation of the stellar events subcommand and trace its call to the RPC getEvents method, using the linked API reference to understand the available filters. Done means users can filter by event type and contract ID, with contract events selected by default.

Written by the indexing model from the issue text.

Description

In my experience using the stellar events subcommand, the main thing I'm usually looking for are contract events.

However the subcommand outputs all events, including diagnostic events. There's no way to filter out diagnostic events.

The rpc getEvents function does have support for filtering on event type (e.g. contract, diagnostic):

At the very least filtering should be made possible on:

  • event type (diagnostic, contract, system)
  • contract ID
Dominant language
Rust
Stars
123
Forks
141
Avg merge
2d 21h
Merged PRs (30d)
17

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/stellar-cli

All issues in stellar/stellar-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.