it never ends.

This commit is contained in:
fiatjaf
2025-04-16 02:59:47 -03:00
parent cb0dd45a32
commit 5b8954461f
53 changed files with 396 additions and 673 deletions

View File

@@ -5,14 +5,14 @@ import (
"encoding/json"
"fmt"
"github.com/elnosh/gonuts/cashu"
"fiatjaf.com/nostr"
"github.com/elnosh/gonuts/cashu"
)
type Token struct {
Mint string `json:"mint"`
Proofs cashu.Proofs `json:"proofs"`
Deleted []string `json:"del,omitempty"`
Deleted []nostr.ID `json:"del,omitempty"`
mintedAt nostr.Timestamp
event *nostr.Event
@@ -20,7 +20,7 @@ type Token struct {
func (t Token) ID() string {
if t.event != nil {
return t.event.ID
return t.event.ID.Hex()
}
return "<not-published>"