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
//! Arguments for the `decdn setup` onboarding wizard (ADR 019 Phases 1–2).
//!
//! `setup` is thin orchestration over the existing primitives — `key-gen`,
//! `node bond`, `node register` — gated by pre-flight checks that catch the
//! mis-ordered-step / under-funded-wallet failure class ADR 019 § Context
//! calls out, *before* any transaction is submitted. It introduces no new
//! on-chain logic of its own (#933).
use Args;
use ChainArgs;
/// `decdn setup --mbps <N> --region <CC>` — run the operator through Phase 1
/// pre-flight checks and Phase 2 on-chain setup, then print a go/no-go
/// readiness summary. The flattened [`ChainArgs`] supplies the same
/// `--rpc-url` / `--capacity-bond-address` / `--keystore` / `--dry-run` /
/// `--json` flags as `node bond` / `node register`.