Skip to content

Protect against frontrunning and sandwich attacks on subscription charges#525

Open
Chidubemkingsley wants to merge 13 commits into
Smartdevs17:mainfrom
Chidubemkingsley:Protect-against-frontrunning-and-sandwich-attacks-on-subscription-charges
Open

Protect against frontrunning and sandwich attacks on subscription charges#525
Chidubemkingsley wants to merge 13 commits into
Smartdevs17:mainfrom
Chidubemkingsley:Protect-against-frontrunning-and-sandwich-attacks-on-subscription-charges

Conversation

@Chidubemkingsley
Copy link
Copy Markdown
Contributor

Pull Request Checklist

Quality Gates (All must pass before merge)

  • Lint: Code passes ESLint and Prettier checks
  • Type Check: TypeScript compilation succeeds
  • Tests: All tests pass
  • Build: Project builds successfully
  • Rust Format: Smart contract formatting is correct
  • Rust Clippy: Smart contract linting passes
  • Rust Tests: All smart contract tests pass
  • Rust Build: Smart contracts compile successfully

Additional Requirements

  • New code has appropriate TypeScript types
  • No hardcoded secrets or credentials
  • New features have corresponding tests
  • Documentation updated if needed

Reviewers

  • At least 1 approval required for merge
  • All CI checks must be green

--- closes #430

This PR will not be mergeable until all quality gates pass.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@Chidubemkingsley 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

@Chidubemkingsley Chidubemkingsley force-pushed the Protect-against-frontrunning-and-sandwich-attacks-on-subscription-charges branch from 7ecac7e to 1f30e8f Compare June 1, 2026 23:41
@Smartdevs17
Copy link
Copy Markdown
Owner

❌ This PR has merge conflicts.

Hi @Chidubemkingsley,

Please resolve the conflicts with main so this can be merged.


🤖 Drips Wave Merge Agent

- Replace #[contracttype] with #[contracttype(export = false)] on
  StorageKey enum to bypass XDR LengthExceedsMax limit.
- Remove 10 unused API/rate-limit StorageKey variants.
- Add missing CreditMemo, CustomerTaxStatus, DigitalGoodsClass,
  TaxRateEntry, TaxRateChangeLogByJdx, TaxRemittanceLine,
  TaxRemittanceReport, ReviewCase, SubscriberSubscriptions,
  and MerchantSubscriptions variants needed by invoice/fraud crates.
- Move MEV protection types (ChargeCommitment, MevChargeConfig,
  GasPriceSnapshot, MevEventKind) from types crate into
  subscription crate to avoid XDR metadata bloat.
Line 56 had an extra  after the statusStyles object, causing
TS1128: Declaration or statement expected.
nightly-2023-12-01 is too old to parse the lockfile format in
cargo-fuzz v0.13.1 (lock file version 4). Bump to nightly-2024-09-01.
…ary/react-native

- Replaced react-hooks import with react-native renderHook/act in ThemeContext.test.tsx
- Replaced react-hooks import with react-native renderHook/act in useFilteredSubscriptions.test.ts
- Updated ThemeContext test 'throws outside provider' to match new error handling behavior
- Removed @testing-library/react-hooks from package.json (incompatible with React 19 types)
- All tests passing after migration
@Chidubemkingsley Chidubemkingsley force-pushed the Protect-against-frontrunning-and-sandwich-attacks-on-subscription-charges branch from 9a8dbb6 to 3018db0 Compare June 2, 2026 14:20
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.

Protect against frontrunning and sandwich attacks on subscription charges

2 participants