Skip to content

Feature 224#247

Closed
mansory-01 wants to merge 19 commits into
Boxkit-Labs:mainfrom
mansory-01:feature_224
Closed

Feature 224#247
mansory-01 wants to merge 19 commits into
Boxkit-Labs:mainfrom
mansory-01:feature_224

Conversation

@mansory-01
Copy link
Copy Markdown

This PR addresses compilation errors caused by conflicting event names and incorrect import paths during the introduction of the new analysis panels.

Changes Made

  • Disambiguated Event Names: Renamed the AddressChanged event to SafeAddressChanged (in safe_bloc.dart) and UnsafeAddressChanged (in unsafe_bloc.dart) to resolve a naming collision, since both BLoCs are imported into unsafe_panel.dart.
  • Fixed Import Paths: Updated the relative import paths in app.dart and home_screen.dart to use absolute package imports (package:stellar_address_kit_demo/...) so the Dart analyzer correctly resolves SafeBloc, UnsafePanel, and SafePanel.
  • Updated Dispatchers: Updated unsafe_panel.dart and analyze_panel.dart to dispatch the newly renamed, BLoC-specific events.

closes #224

shogun444 and others added 19 commits April 26, 2026 17:20
Closes Boxkit-Labs#221

- Implement FilterDeposit function with proper warning-to-decision mapping
- Add 15 comprehensive table-driven test cases covering all scenarios:
  * Clean muxed routing
  * Clean memo routing
  * No routing source
  * Contract sender warning
  * Invalid destination warning
  * Memo ignored for muxed warning
  * Multiple warnings with severity prioritization
  * Edge cases (empty/invalid addresses)
- Use standard Go testing patterns with t.Run() subtests
- Test names describe scenarios, not expected results
- All tests pass with go test ./firewall/ -v
…-table-driven-tests

feat: Add comprehensive table-driven tests for FilterDeposit
…rruption-Comparision

feat(auditor): add single address precision comparison CLI
- Add Decision type: AutoCredit, ManualReview, Quarantine
- Implement FilterDeposit function with warning-to-decision mapping
- Add missing warning types: SMART_ACCOUNT_AMBIGUOUS_ROUTING, MUXED_DESTINATION_FROM_CONTRACT
- Map contract-sender and invalid-destination warnings to Quarantine
- Map memo-ignored and smart-account-ambiguous warnings to ManualReview
- Implement highest severity resolution for multiple warnings
- Add comprehensive test suite with 10 test cases
- Include inline security rationale comments for each mapping

Closes Boxkit-Labs#220
- Resolved merge conflicts in filter.go by keeping both FilterDeposit functions
- Added FilterDepositFromAddress helper function for address string input
- Resolved merge conflicts in tests by keeping both test approaches
- Fixed go.mod conflicts to maintain local package path
- All tests passing with comprehensive coverage
…tion-Sweep

feat(auditor): add batch ID precision sweep (Number vs BigInt)
…Corruption-Comparision

Feat/single address corruption comparision
Implement Routing Analysis for Exchange Withdrawal Validator
…-Labs#221)

- Remove filter_simple.go and consolidate into single filter.go
- Consolidate all test cases into single filter_test.go
- Remove duplicate test files (filter_demo_test.go, filter_mock_test.go, filter_standalone_test.go)
- Remove conflicting demo.go file
- Fix FilterDeposit function to use string parameter with routing extraction
- Add filterDepositFromResult helper function for core logic
- All tests now pass with consolidated implementation
- Clean up test structure and remove overlapping functionality

This addresses both issues Boxkit-Labs#220 and Boxkit-Labs#221 by eliminating duplicate implementations
and consolidating all test cases into a single, clean test file.
FilterDeposit implementation and tests
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@mansory-01 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

@mansory-01 mansory-01 closed this Apr 29, 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

Development

Successfully merging this pull request may close these issues.

Build an Unsafe Int Decoding Panel with BLoC

5 participants