Skip to content

Conversation

@willpote
Copy link
Contributor

@willpote willpote commented Sep 15, 2025

Indexes rewards information and serves the data via an API. Will be integrated into the explorer and the CLI. To do this I:

  • Split the current indexer crate into two binaries-
    • market-indexer (the previously existing indexer code, which indexes Boundless Market)
    • reward-indexer (new, which indexes ZKC, staking, povw, etc)
  • Introduced a new crates "rewards" which contains logic for fetching all raw data from chain that relates to rewards. THe indexer uses this crate to fetch data, then stores it in the DB. This crate could also be re-used in other places (e.g. the CLI)
  • Refactored the indexer infra package to deploy both market-indexer and reward-indexer, conditionally based on the Pulumi config. E.g. on Eth Mainnet, we don't have a Boundless market, so we only deploy the reward-indexer in Pulumi.config.1.yaml

Originally this PR contained a summary command for the CLI, I have removed it as we are building a UI with the information, and we are about to refactor the CLI massively.

@github-actions github-actions bot changed the title Add experimental summary command to CLI BM-1603: Add experimental summary command to CLI Sep 15, 2025
pub use get_rewards_delegates::{get_rewards_delegates, ZkcGetRewardsDelegates};
pub use get_staked_amount::{get_staked_amount, ZkcGetStakedAmount};
pub use stake::ZkcStake;
pub use summary::ZkcSummary;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should maybe hide this one behind a experimental or unstable feature?

Copy link
Contributor

@neutronmoderator neutronmoderator Sep 17, 2025

Choose a reason for hiding this comment

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

This is a highly requested feature, and would be one of the most used commands (as it can be used multiple times an epoch across many epochs). I would recommend, if we can, to make this feature stable asap; see my comment below.

Choose a reason for hiding this comment

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

This is a highly requested feature, and would be one of the most used commands (as it can be used multiple times an epoch across many epochs). I would recommend, if we can, to make this feature stable asap; see my comment below.

Agree, looking forward to this, urgently needed.

@neutronmoderator
Copy link
Contributor

neutronmoderator commented Sep 17, 2025

This is really helpful @willpote; I have had exact feedback asking for this CLI feature many times over the past 48 hours. I would suggest we make this feature live as soon as we can; this will really help provers understand and therefore help faciliate participation in the market and PoVW.

I wouldn't mark it as experimental, the only other option really is a web UI where provers can connect various addresses to see this visually, which has also been requested. If we do decide to go that route, that would take some time, and regardless there are always provers who prefer CLI commands like this for scripting reasons etc.

@willpote
Copy link
Contributor Author

This is really helpful @willpote; I have had exact feedback asking for this CLI feature many times over the past 48 hours. I would suggest we make this feature live as soon as we can; this will really help provers understand and therefore help faciliate participation in the market and PoVW.

I wouldn't mark it as experimental, the only other option really is a web UI where provers can connect various addresses to see this visually, which has also been requested. If we do decide to go that route, that would take some time, and regardless there are always provers who prefer CLI commands like this for scripting reasons etc.

Sounds good. Will try and get it stable today.

@willpote willpote changed the title BM-1603: Add experimental summary command to CLI BM-1603: Add povw/staking/delegation API + summary command Sep 22, 2025
@willpote willpote changed the title BM-1603: Add povw/staking/delegation API + summary command BM-1603: Add povw/staking/delegation API Sep 24, 2025
{
Effect: 'Allow',
Action: ['logs:CreateLogStream', 'logs:PutLogEvents'],
Resource: '*',
Copy link
Contributor

Choose a reason for hiding this comment

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

we need to find a way to neck this down.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refactored so we create the Cloudwatch policy in the Market indexer + Reward indexer stack themselves, rather than this shared infra stack, so I can get the log group names

@willpote willpote requested a review from ec2 as a code owner October 1, 2025 19:46
@github-actions
Copy link

github-actions bot commented Oct 2, 2025

🚀 Documentation Preview

Deployment URL: https://boundless-documentation-1yku1157d-boundless-network.vercel.app

Updated at: 2025-10-02 18:06:48 UTC

@willpote willpote merged commit f3c245d into main Oct 2, 2025
22 checks passed
@willpote willpote deleted the willpote/cli-debug branch October 2, 2025 19:05
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.

6 participants