Skip to content

fix: resolve compile drift and dead code in admin, storage, test_boun… - #331

Merged
shakurJJ merged 1 commit into
shakurJJ:mainfrom
k-deejah:fix/issues-214-216-219-220
Jul 30, 2026
Merged

fix: resolve compile drift and dead code in admin, storage, test_boun…#331
shakurJJ merged 1 commit into
shakurJJ:mainfrom
k-deejah:fix/issues-214-216-219-220

Conversation

@k-deejah

Copy link
Copy Markdown
Contributor

…daries, test_features

Closes #214 — test_boundaries.rs: update all create_shipment calls from the old positional API (&buyer, ..., &false, &holdback) to the current ShipmentOptions struct API (&buyers_vec, ..., &ShipmentOptions{...}). Added default_opts() and buyers() helpers. mod test_boundaries; was already uncommented; tests now compile and pass against current struct/enum shapes.

Closes #216 — test_features.rs: uncomment mod test_features; in lib.rs and expand default_opts() to include all ShipmentOptions fields added since the original draft (milestone_splits, deadlines, dispute_timeout_seconds, default_resolution, backup_arbiter, confirmation_cooldown_ledgers, arbiter_panel). The single_buyer() helper and ShipmentOptions spread syntax were already correct.

Closes #219 — admin.rs: delete dead file. No mod admin; declaration existed so the file was never compiled. All admin functions (init, pause, upgrade, multisig, fee config, blacklist, arbiter fee tiers, emergency recovery, etc.) already live in lib.rs. Wiring admin.rs in would have produced E0201 duplicate-definition errors due to duplicate #[contractimpl] method names; deletion is the correct fix.

Closes #220 — storage.rs: mod storage; is already declared and active in lib.rs. storage::get_arbiter_stats / set_arbiter_stats are called from lib.rs; the module IS the wired storage abstraction layer. Added a comprehensive module-level doc comment explaining the versioned-key design, TTL strategy, and migration path so the file's purpose is unambiguous.

…daries, test_features

Closes shakurJJ#214 — test_boundaries.rs: update all create_shipment calls from the old
positional API (&buyer, ..., &false, &holdback) to the current ShipmentOptions
struct API (&buyers_vec, ..., &ShipmentOptions{...}). Added default_opts() and
buyers() helpers. mod test_boundaries; was already uncommented; tests now compile
and pass against current struct/enum shapes.

Closes shakurJJ#216 — test_features.rs: uncomment mod test_features; in lib.rs and expand
default_opts() to include all ShipmentOptions fields added since the original draft
(milestone_splits, deadlines, dispute_timeout_seconds, default_resolution,
backup_arbiter, confirmation_cooldown_ledgers, arbiter_panel). The single_buyer()
helper and ShipmentOptions spread syntax were already correct.

Closes shakurJJ#219 — admin.rs: delete dead file. No mod admin; declaration existed so the
file was never compiled. All admin functions (init, pause, upgrade, multisig, fee
config, blacklist, arbiter fee tiers, emergency recovery, etc.) already live in
lib.rs. Wiring admin.rs in would have produced E0201 duplicate-definition errors
due to duplicate #[contractimpl] method names; deletion is the correct fix.

Closes shakurJJ#220 — storage.rs: mod storage; is already declared and active in lib.rs.
storage::get_arbiter_stats / set_arbiter_stats are called from lib.rs; the module
IS the wired storage abstraction layer. Added a comprehensive module-level doc
comment explaining the versioned-key design, TTL strategy, and migration path so
the file's purpose is unambiguous.
@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@k-deejah Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@shakurJJ
shakurJJ merged commit 8df3f62 into shakurJJ:main Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants