Commit 7cc93de
authored
feat(core): add compat.rs re-export layer for platform SDK types (#19)
* feat(core): add compat.rs re-export layer for platform SDK types
Create new term-core crate with src/core/compat.rs providing:
- Re-exports of Hotkey, ChallengeId (UUID-based) from platform_core
- Re-exports of WeightAssignment, ChallengeRoute (HttpMethod enum),
RouteRequest, RouteResponse, ChallengeError, ServerChallenge from
platform_challenge_sdk
- ChallengeConfigMeta thin wrapper combining metadata + config
- Deprecated backward-compatible aliases (LegacyChallengeId,
LegacyWeightAssignment, LegacyRoute) with Into conversions
- Conversion utilities (weight_u16_to_f64, challenge_id_from_bytes,
method_str_to_enum, normalize_weights, etc.)
- Prelude submodule for convenient imports
- 153 tests (126 unit + 27 doc tests)
* fix: use git deps for core crate instead of local paths
* fix: resolve sled lock contention in chain storage test1 parent 5cd4756 commit 7cc93de
File tree
7 files changed
+2365
-9
lines changed- core
- src
- core
- storage/src
7 files changed
+2365
-9
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments