mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 04:04:21 +01:00
* add "block" scheduler type + sweep integration test * increase timeout in integrationtests * remove config logs * rename scheduler package name * rename package * rename packages
19 lines
534 B
Go
19 lines
534 B
Go
package ports
|
|
|
|
import (
|
|
"github.com/ark-network/ark/server/internal/core/domain"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
type VtxoWithValue struct {
|
|
domain.VtxoKey
|
|
Value uint64
|
|
}
|
|
|
|
type BlockchainScanner interface {
|
|
WatchScripts(ctx context.Context, scripts []string) error
|
|
UnwatchScripts(ctx context.Context, scripts []string) error
|
|
GetNotificationChannel(ctx context.Context) <-chan map[string][]VtxoWithValue
|
|
IsTransactionConfirmed(ctx context.Context, txid string) (isConfirmed bool, blocknumber int64, blocktime int64, err error)
|
|
}
|