Commit f3c245d
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- .github/workflows
- .vscode
- crates
- boundless-cli
- guest/assessor/assessor-guest
- indexer
- migrations
- src
- bin
- db
- market
- rewards
- tests
- market
- rewards
- common
- lambdas
- indexer-api
- src
- bin
- routes
- tests
- local_integration
- indexer-monitor
- src
- rewards
- src
- zkc
- src/contracts
- artifacts
- dockerfiles
- infra
- builder
- indexer
- components
- util
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| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
139 | 140 | | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments