mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
* api-spec: move the api-spec to root and init go.mod * go mod tidy * move buf files in the root as well * gh action for api-spec changes only * gh action for api-spec on push and pr * introduce go.work and remove all replaces * solve dependencies and force btcd/btcec@v2.3.3 * go work sync * force btcd/btcec@v2.3.3 * go mod tidy
19 lines
513 B
Go
19 lines
513 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, blocktime int64, err error)
|
|
}
|