Skip to content

feat(contract): implement batch_pause_subscriptions emergency admin tool#546

Closed
TheCreatorNode wants to merge 11 commits into
SiLioLabs:masterfrom
TheCreatorNode:contract-53-batch-pause-subscriptions
Closed

feat(contract): implement batch_pause_subscriptions emergency admin tool#546
TheCreatorNode wants to merge 11 commits into
SiLioLabs:masterfrom
TheCreatorNode:contract-53-batch-pause-subscriptions

Conversation

@TheCreatorNode

Copy link
Copy Markdown
Contributor

Closes #508 [CONTRACT-53]

@drips-wave

drips-wave Bot commented Jun 27, 2026

Copy link
Copy Markdown

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

@TheCreatorNode TheCreatorNode force-pushed the contract-53-batch-pause-subscriptions branch from bd307c2 to 47f9b04 Compare June 27, 2026 00:36
…ib.rs

Restores publish_paused, publish_resumed,
publish_subscription_amount_updated, publish_subscription_interval_updated,
publish_merchant_withdrawal, publish_merchant_history_cleared,
publish_referred, publish_admin_transferred, publish_fee_proposed,
publish_fee_committed, publish_merchant_added/removed/frozen/unfrozen,
publish_grace_period_proposed/committed, and publish_min_interval_updated.

These were accidentally removed when adding publish_subscription_paused.
cargo check passes with 0 errors.
@TheCreatorNode TheCreatorNode force-pushed the contract-53-batch-pause-subscriptions branch from 876ebf0 to bd24349 Compare June 27, 2026 01:34
TheCreatorNode and others added 3 commits June 27, 2026 02:39
- Add batch_pause_subscriptions(env, users) admin-only function
- Add BatchSizeExceeded error variant (SiLioLabs#21)
- Add publish_subscription_paused event
- Max 25 items per batch to prevent ledger size issues
- Skip non-existent and already-paused entries without panic
- Extend TTL for already-paused entries for idempotency
- Fix redundant admin auth in propose_fee/commit_fee/propose_grace_period/commit_grace_period
- Fix pre-existing test syntax errors and event name assertions
- Add tests: mixed inputs, non-admin panic, max size panic
@TheCreatorNode TheCreatorNode force-pushed the contract-53-batch-pause-subscriptions branch from 198d684 to 586f8f0 Compare June 27, 2026 19:43
TheCreatorNode and others added 4 commits June 27, 2026 23:14
- Resolved all merge conflicts:
  - errors.rs: deduplicated error variants, kept BatchSizeExceeded=21
  - events.rs: merged publish_fee_cleared and publish_subscription_auto_resumed from master
  - lib.rs: kept HEAD's subscribe delegation pattern, added master's merchant-decrement logic
  - upgrade.rs: removed nested conflict markers, took master's propose_upgrade/commit_upgrade
  - test.rs: updated batch_size_panics error assertions from SiLioLabs#25 to SiLioLabs#21
  - stellar.ts: took master's robust nextCursor with latestLedger check
  - All other Rust source and snapshot files: resolved via appropriate ours/theirs
- All 184 contract tests passing
@TheCreatorNode TheCreatorNode deleted the contract-53-batch-pause-subscriptions branch June 30, 2026 23:45
@TheCreatorNode TheCreatorNode restored the contract-53-batch-pause-subscriptions branch June 30, 2026 23:46
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.

## [CONTRACT-53] Implement batch_pause_subscriptions Emergency Admin Tool

1 participant