Get current round & Return spent vtxos for user (#139)

This commit is contained in:
Pietralberto Mazza
2024-04-23 16:14:35 +02:00
committed by GitHub
parent 740d4fb7b1
commit 7fc8d7d07d
10 changed files with 330 additions and 234 deletions

View File

@@ -3,7 +3,6 @@ package txbuilder_test
import (
"context"
"github.com/ark-network/ark/internal/core/domain"
"github.com/ark-network/ark/internal/core/ports"
"github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/stretchr/testify/mock"
@@ -159,12 +158,12 @@ func (m *mockedWallet) UnwatchScripts(
return args.Error(0)
}
func (m *mockedWallet) GetNotificationChannel(ctx context.Context) chan []domain.VtxoKey {
func (m *mockedWallet) GetNotificationChannel(ctx context.Context) <-chan map[string]ports.VtxoWithValue {
args := m.Called(ctx)
var res chan []domain.VtxoKey
var res <-chan map[string]ports.VtxoWithValue
if a := args.Get(0); a != nil {
res = a.(chan []domain.VtxoKey)
res = a.(<-chan map[string]ports.VtxoWithValue)
}
return res
}