Skip to content

Commit

Permalink
Merge pull request #278 from getAlby/feat/nip-47-transaction-state
Browse files Browse the repository at this point in the history
feat: add state property to Nip47Transaction
  • Loading branch information
rolznz authored Dec 7, 2024
2 parents 6058e0c + 7a9a829 commit c8c6b5d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@getalby/sdk",
"version": "3.8.1",
"version": "3.8.2",
"description": "The SDK to integrate with Nostr Wallet Connect and the Alby API",
"repository": "https://github.com/getAlby/js-sdk.git",
"bugs": "https://github.com/getAlby/js-sdk/issues",
Expand Down
12 changes: 12 additions & 0 deletions src/NWCClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ export interface Nip47ListTransactionsRequest {
limit?: number;
offset?: number;
unpaid?: boolean;
/**
* NOTE: non-NIP-47 spec compliant
*/
unpaid_outgoing?: boolean;
/**
* NOTE: non-NIP-47 spec compliant
*/
unpaid_incoming?: boolean;
type?: "incoming" | "outgoing";
}

Expand All @@ -100,6 +108,10 @@ export type Nip47ListTransactionsResponse = {

export type Nip47Transaction = {
type: string;
/**
* NOTE: non-NIP-47 spec compliant
*/
state: "settled" | "pending" | "failed";
invoice: string;
description: string;
description_hash: string;
Expand Down

0 comments on commit c8c6b5d

Please sign in to comment.