mirror of
https://github.com/aljazceru/ark.git
synced 2026-01-28 07:44:20 +01:00
* keep track of forfeit transaction funds * [btc-embedded] use p2wpkh address * [sdk] fix clients * use script as argument of BuildForfeitTxs
37 lines
860 B
Go
37 lines
860 B
Go
package store
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ark-network/ark/common"
|
|
"github.com/decred/dcrd/dcrec/secp256k1/v4"
|
|
)
|
|
|
|
const (
|
|
InMemoryStore = "inmemory"
|
|
FileStore = "file"
|
|
)
|
|
|
|
type StoreData struct {
|
|
AspUrl string
|
|
AspPubkey *secp256k1.PublicKey
|
|
WalletType string
|
|
ClientType string
|
|
Network common.Network
|
|
RoundLifetime int64
|
|
RoundInterval int64
|
|
UnilateralExitDelay int64
|
|
Dust uint64
|
|
BoardingDescriptorTemplate string
|
|
ExplorerURL string
|
|
ForfeitAddress string
|
|
}
|
|
|
|
type ConfigStore interface {
|
|
GetType() string
|
|
GetDatadir() string
|
|
AddData(ctx context.Context, data StoreData) error
|
|
GetData(ctx context.Context) (*StoreData, error)
|
|
CleanData(ctx context.Context) error
|
|
}
|