mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: explain better the 'toBeRedeemed' field
This commit is contained in:
parent
71fd6ef965
commit
36640dd400
1 changed files with 6 additions and 2 deletions
|
|
@ -119,8 +119,12 @@ async function getLastRedeemedNutzap(
|
|||
}
|
||||
|
||||
/**
|
||||
* toBeRedeemed are the nutzaps that will be redeemed and saved in the kind 7376 - https://github.com/nostr-protocol/nips/blob/master/60.md#spending-history-event
|
||||
* The tags format is: [ [ "e", "<event-id-of-created-token>", "", "redeemed" ] ]
|
||||
* toBeRedeemed are the nutzaps that will be redeemed into a kind 7375 and saved in the kind 7376 tags
|
||||
* The tags format is: [
|
||||
* [ "e", "<9321-event-id>", "<relay-hint>", "redeemed" ], // nutzap event that has been redeemed
|
||||
* [ "p", "<sender-pubkey>" ] // pubkey of the author of the 9321 event (nutzap sender)
|
||||
* ]
|
||||
* https://github.com/nostr-protocol/nips/blob/master/61.md#updating-nutzap-redemption-history
|
||||
*/
|
||||
type MintsToProofs = { [key: string]: { proofs: Proof[]; toBeRedeemed: string[][] } };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue