Skip to content

Commit f3c245d

Browse files
willpoteneutronmoderatorcaposselezeroecco
authored
BM-1603: Add povw/staking/delegation API (#1138)
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. --------- Co-authored-by: Sasha <[email protected]> Co-authored-by: Angelo Capossele <[email protected]> Co-authored-by: Richard Howard <[email protected]>
1 parent e61d55d commit f3c245d

File tree

95 files changed

+12919
-1389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+12919
-1389
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ jobs:
136136
env:
137137
DATABASE_URL: postgres://postgres:password@localhost:5432/postgres
138138
RISC0_DEV_MODE: true
139+
ETH_MAINNET_RPC_URL: ${{ secrets.ETH_MAINNET_RPC_URL_FREE_TIER }}
139140

140141
- name: sccache stats
141142
run: sccache --show-stats
142143

144+
143145
rust-pkg-check:
144146
runs-on: [ self-hosted, prod, "${{ matrix.os }}", "${{ matrix.device }}" ]
145147
strategy:

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ target/
3636
.idea
3737
.aider*
3838
.claude
39-
CLAUDE.md
39+
**/CLAUDE.md
40+
**/AGENTS.md
4041
.cursor
42+
.codex
4143

4244

4345
# Ignore generated files

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"./Cargo.toml",
1414
"./crates/distributor/Cargo.toml",
1515
"./bento/crates/workflow/Cargo.toml",
16-
"./crates/povw/mint-calculator/Cargo.toml",
17-
"./crates/povw/log-updater/Cargo.toml"
16+
"./crates/lambdas/indexer-api/Cargo.toml",
17+
"./crates/indexer/Cargo.toml",
1818
// "./crates/guest/assessor/assessor-guest/Cargo.toml",
1919
// "./crates/guest/util/echo/Cargo.toml",
2020
// "./crates/guest/util/identity/Cargo.toml",

0 commit comments

Comments
 (0)