@@ -10,31 +10,32 @@ Named after both the premium grade of Kobe beef and in honor of basketball legen
1010## Architecture Overview
1111
1212```
13- ┌───────────────────────────────────────────────────────┐
14- │ Solana Network │
15- │ (Blockchain) │
16- └───────────────────────────────────────────────────────┘
17- ▲ │ │
18- │ │ (read on-chain data) │
19- │ ▼ ▼
20- (write │ ┌──────────────────┐ ┌──────────────────┐
21- transactions) │ │ Kobe Writer │ │ Steward Writer │
22- │ │ Service │ │ Service │
23- │ │ (Data Collection)│ │ (Steward Events) │
24- │ └──────────────────┘ └──────────────────┘
25- │ │ │
26- │ ▼ (write to db) ▼ (write to db)
27- ┌──────────────────┐ ┌─────────────────────────────────────────────┐
28- │ Kobe Cranker │ │ MongoDB │
29- │ (Pool Management)│ │ (Database) │
30- └──────────────────┘ └─────────────────────────────────────────────┘
31- │
32- │ (read from db + on-chain)
33- ▼
34- ┌─────────────────┐
35- │ Kobe API │
36- │ (Data Access) │
37- └─────────────────┘
13+ ┌────────────────────────────────────────────────────────────────────────────────────────┐ ┌─────────────┐
14+ │ Solana Network │ │ BAM API │
15+ │ (Blockchain) │ │ │
16+ └────────────────────────────────────────────────────────────────────────────────────────┘ └─────────────┘
17+ ▲ │ │ │ │
18+ │ │ (read on-chain data) │ (read on-chain data) │ │ (read bam data)
19+ │ ▼ ▼ ▼ ▼
20+ (write │ ┌──────────────────┐ ┌──────────────────┐ ┌────────────────────────────────────┐
21+ transactions) │ │ Kobe Writer │ │ Steward Writer │ │ BAM Writer │
22+ │ │ Service │ │ Service │ │ Service │
23+ │ │ (Data Collection)│ │ (Steward Events) │ │ │
24+ │ └──────────────────┘ └──────────────────┘ └────────────────────────────────────┘
25+ │ │ │ │ ▲
26+ │ ▼ (write to db) ▼ (write to db) ▼ (write to db) │
27+ ┌──────────────────┐ ┌──────────────────────────────────────────────────────────────────────┐ │
28+ │ Kobe Cranker │ │ MongoDB │ │
29+ │ (Pool Management)│ │ (Database) │ │
30+ └──────────────────┘ └──────────────────────────────────────────────────────────────────────┘ │ (read validators data)
31+ │ │
32+ │ (read from db + on-chain) │
33+ ▼ │
34+ ┌─────────────────┐ │
35+ │ Kobe API │ │
36+ │ (Data Access) │ ──────────────────────────────────────────────────
37+ │ │
38+ └─────────────────┘
3839```
3940
4041## JitoSOL APY Calculation
@@ -254,7 +255,24 @@ Therefore, users may see different APY values between real-time calculations and
254255- Risk management actions
255256- Stake rebalancing operations
256257
257- ** Use Cases:** Steward transparency, audit trails, performance analysis, regulatory compliance
258+ ---
259+
260+ ### [ Kobe BAM Writer Service] ( ./bam-writer-service/README.md )
261+ ** Specialized monitoring** service for Block Assembly Marketplace (BAM) delegation calculations, tracking network-wide BAM validator participation and computing available JitoSOL delegation based on JIP-28 specifications.
262+
263+ ** Capabilities:**
264+ - Real-time BAM validator stake tracking
265+ - JIP-28 tier-based delegation calculations
266+ - Network stakeweight monitoring
267+ - Epoch-based metrics collection and storage
268+
269+ ** Key Features:**
270+ - Automated epoch threshold detection (default: 90% epoch progress)
271+ - Integration with BAM API for validator discovery
272+ - Dynamic delegation allocation based on network participation tiers
273+ - Historical BAM metrics persistence in MongoDB
274+
275+ ** Use Cases:** Powers BAM delegation strategy, provides transparency into automated stake allocation decisions, enables historical analysis of BAM adoption trends
258276
259277## Quick Start
260278
@@ -310,7 +328,14 @@ RUST_LOG=info cargo r -p kobe-cranker -- \
310328#### Start Data Collection
311329
312330``` bash
313- cargo r --bin kobe-writer-service -- live
331+ RUST_LOG=info cargo r --bin kobe-writer-service -- \
332+ --rpc-url " " \
333+ --mongo-connection-uri " mongodb://localhost:27017/kobe" \
334+ --mongo-db-name " validators" \
335+ --solana-cluster " testnet" \
336+ --jito-steward-program-id " Stewardf95sJbmtcZsyagb2dg4Mo8eVQho8gpECvLx8" \
337+ --steward-config-pubkey " 5pZmpk3ktweGZW9xFknpEHhQoWeAKTzSGwnCUyVdiye" \
338+ live
314339```
315340
316341#### Start Steward Monitoring
@@ -325,6 +350,19 @@ RUST_LOG=info cargo r -p kobe-steward-writer-service -- \
325350 listen
326351```
327352
353+ #### Run BAM writer service
354+
355+ ``` bash
356+ RUST_LOG=info cargo r -p kobe-bam-writer-service -- \
357+ --mongo-connection-uri " mongodb://localhost:27017/kobe" \
358+ --mongo-db-name " validators" \
359+ --rpc-url " https://api.mainnet-beta.solana.com/" \
360+ --bam-api-base-url " " \
361+ --epoch-progress-threshold " 0.8" \
362+ --poll-interval-secs " 60" \
363+ run
364+ ```
365+
328366## Contributing
329367
3303681 . Fork the repository
0 commit comments