1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//! Bee dev-mode wrapper. The dev-mode endpoint surface is a strict
//! subset of production Bee, so this is mostly a documentation /
//! discovery signal: callers can `let bee = DevClient::new(url)?;`
//! and use the same accessors they already know from [`Client`].
//!
//! Mirrors bee-js `BeeDev`. The endpoints currently exposed
//! (`addresses`, `topology`) accept a slimmer payload in dev mode but
//! the same accessors work; bee-rs avoids splitting the type system
//! here and reuses the regular debug handles.
//!
//! # Endpoints that work
//!
//! - Health / readiness / addresses / topology / node-info / status
//! (dev-shaped, simpler JSON — the existing parsers tolerate the
//! missing fields).
//! - File upload / download (`/bytes`, `/bzz`, `/chunks`, `/soc`,
//! `/feeds`).
//! - PSS send / subscribe; GSOC send / subscribe.
//! - Tags, pins, stewardship, grantees, envelopes.
//! - The `/stamps` endpoints behave as no-ops in dev mode but do not
//! 404.
//!
//! # Endpoints that return 404
//!
//! - Chequebook lifecycle: `chequebook_balance`, `deposit_tokens`,
//! `withdraw_tokens`, `last_cheques`, `get_last_cheques_for_peer`,
//! `get_last_cashout_action`, `cashout_last_cheque`.
//! - Settlements: `settlements`, `peer_settlement`.
//! - Stake: `get_stake`, `stake`, `deposit_stake`,
//! `withdraw_surplus_stake`, `migrate_stake`,
//! `get_withdrawable_stake`.
//! - Pending transactions: list, get, rebroadcast, cancel.
//! - Chain-state reads: `chain_state`, `reserve_state`,
//! `redistribution_state`, `rc_hash`.
//! - Per-peer accounting and balances.
//! - High-level helpers that internally call any of the above —
//! [`crate::storage::buy_storage`], `extend_storage_*`,
//! `get_storage_cost`.
use crateClient;
use crateError;
/// Thin newtype around [`Client`] for use against Bee in dev mode.
/// Cheap to clone.