more conversions.

This commit is contained in:
fiatjaf
2025-04-15 00:00:03 -03:00
parent f9e4a5efa3
commit 376834cbf9
117 changed files with 450 additions and 1019 deletions

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"strconv"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostr"
)
type HistoryEntry struct {

View File

@@ -9,7 +9,7 @@ import (
"github.com/elnosh/gonuts/cashu/nuts/nut02"
"github.com/elnosh/gonuts/cashu/nuts/nut04"
"github.com/elnosh/gonuts/cashu/nuts/nut05"
"fiatjaf.com/nostrlib/nip60/client"
"fiatjaf.com/nostr/nip60/client"
)
type lightningSwapStatus int

View File

@@ -7,8 +7,8 @@ import (
"github.com/elnosh/gonuts/cashu"
"github.com/elnosh/gonuts/cashu/nuts/nut05"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip60/client"
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/nip60/client"
)
func (w *Wallet) PayBolt11(ctx context.Context, invoice string, opts ...SendOption) (string, error) {

View File

@@ -7,8 +7,8 @@ import (
"github.com/elnosh/gonuts/cashu"
"github.com/elnosh/gonuts/cashu/nuts/nut10"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip60/client"
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/nip60/client"
)
type receiveSettings struct {

View File

@@ -6,7 +6,7 @@ import (
"github.com/elnosh/gonuts/cashu"
"github.com/elnosh/gonuts/cashu/nuts/nut04"
"fiatjaf.com/nostrlib/nip60/client"
"fiatjaf.com/nostr/nip60/client"
)
func (w *Wallet) SendExternal(

View File

@@ -11,8 +11,8 @@ import (
"github.com/elnosh/gonuts/cashu/nuts/nut02"
"github.com/elnosh/gonuts/cashu/nuts/nut10"
"github.com/elnosh/gonuts/cashu/nuts/nut11"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/nip60/client"
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/nip60/client"
)
type SendOption func(opts *sendSettings)

View File

@@ -10,7 +10,7 @@ import (
"github.com/elnosh/gonuts/cashu/nuts/nut02"
"github.com/elnosh/gonuts/cashu/nuts/nut03"
"github.com/elnosh/gonuts/cashu/nuts/nut10"
"fiatjaf.com/nostrlib/nip60/client"
"fiatjaf.com/nostr/nip60/client"
)
type swapSettings struct {

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"github.com/elnosh/gonuts/cashu"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostr"
)
type Token struct {

View File

@@ -11,7 +11,7 @@ import (
"github.com/btcsuite/btcd/btcec/v2"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostr"
)
type Wallet struct {

View File

@@ -10,8 +10,8 @@ import (
"github.com/btcsuite/btcd/btcec/v2"
"github.com/elnosh/gonuts/cashu"
"fiatjaf.com/nostrlib"
"fiatjaf.com/nostrlib/keyer"
"fiatjaf.com/nostr"
"fiatjaf.com/nostr/keyer"
"github.com/stretchr/testify/require"
"golang.org/x/exp/rand"
)