Skip to content

Add pauseInvoice and resumeInvoice methods with auto-resume support #866

Closed

Description

@Kingsman-99

Overview

Add pause and resume methods to StellarSplitClient wrapping the contract's pause_invoice and resume_invoice entry points, with full TypeScript typing for the auto-resume option.

Requirements

  • client.pauseInvoice(invoiceId, options?: { autoResumeAt?: Date }): Promise
  • client.resumeInvoice(invoiceId): Promise
  • client.isPaused(invoiceId): Promise
  • PauseStatus { paused: boolean, autoResumeAt?: Date } type
  • autoResumeAt converted from Date to Unix timestamp before submission
  • Tests: pause, resume, pause with auto-resume date, isPaused returns correct status

Acceptance Criteria

  • pauseInvoice and resumeInvoice implemented
  • isPaused returns correct PauseStatus
  • autoResumeAt Date conversion correct
  • npm test passes with zero failures
  • TypeScript compiles with zero errors
  • ESLint passes with zero errors

Definition of Done

All CI checks must pass before the PR is reviewed.

Activity

  1. samkay-ops commented on Sep 24, 2026

    @samkay-ops

    @samkay-ops has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    Please I beg you to assign me to this issue 🥺 🙏 😭
    I’ve gone through the requirements and I’m confident I can handle it cleanly and within the Wave timeframe. I have hands-on experience with similar problems in open-source projects and focus on writing clear, maintainable code with proper tests.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @samkay-ops to this issue.

  2. adeshi105 commented on Sep 24, 2026

    @adeshi105

    @adeshi105 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

    id like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @adeshi105 to this issue.

  3. drips-wave commented on Sep 24, 2026

    @drips-wave

    Congratulations, @adeshi105! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

    🧑‍💻 @adeshi105: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  4. added a commit that references this issue on Sep 28, 2026
    ae6f041
  5. grantfox-oss commented on Sep 28, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @adeshi105's PR #894 was approved and merged by @Kingsman-99.

    🏆 @adeshi105: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (376 total points). Track your full progress on GrantFox.

    👏 Great work, @adeshi105! Keep contributing to Stellar-split.

  6. drips-wave commented on Sep 28, 2026

    @drips-wave

    This issue has been completed by @adeshi105 as part of the Stellar Wave Program's 9th Wave 🥳

    😎 @adeshi105: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions