mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
* scaffolding wallet * remove wallet db, add loader instead * wip * implement some wallet methods * signing and utxos * renaming * fee estimator * chain source options * config * application service * clark docker-compose * CLI refactor * v0 clark * v0.1 clark * fix SignTapscriptInput (btcwallet) * wallet.Broadcast, send via explora * fix ASP pubkey * Use lnd's btcwallet & Add rpc to get wallet staus * wip * unilateral exit * Fixes on watching for notifications and cli init * handle non-final BIP68 errors * Fixes * Fixes * Fix * a * fix onboard cosigners + revert tree validation * fix covenant e2e tests * fix covenantless e2e tests * fix container naming * fix lint error * update REAME.md * Add env var for wallet password --------- Co-authored-by: altafan <18440657+altafan@users.noreply.github.com>
19 lines
506 B
Go
19 lines
506 B
Go
package ports
|
|
|
|
import (
|
|
"github.com/ark-network/ark/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)
|
|
}
|