-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- correct error names - use tracing in lnurl-pay service
- Loading branch information
1 parent
44260a8
commit 2325f80
Showing
5 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { DomainError, ErrorLevel } from "@/domain/shared" | ||
|
||
export class LnurlError extends DomainError {} | ||
export class ErrorFetchingLnurlInvoice extends LnurlError {} | ||
export class UnknownLnurlError extends LnurlError { | ||
export class LnurlServiceError extends DomainError {} | ||
export class ErrorFetchingLnurlInvoice extends LnurlServiceError {} | ||
export class UnknownLnurlServiceError extends LnurlServiceError { | ||
level = ErrorLevel.Critical | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
type LnurlError = import("@/domain/bitcoin/lnurl/errors").LnurlError | ||
type LnurlServiceError = import("@/domain/bitcoin/lnurl/errors").LnurlServiceError | ||
interface ILnurlPayService { | ||
fetchInvoiceFromLnAddressOrLnurl(args: { | ||
amount: BtcPaymentAmount | ||
lnAddressOrLnurl: string | ||
}): Promise<string | LnurlError> | ||
}): Promise<string | LnurlServiceError> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters