Files
ark/pkg/client-sdk/store/store.go
Louis Singer 2be78b0115 Add forfeit address in GetInfo (#326)
* keep track of forfeit transaction funds

* [btc-embedded] use p2wpkh address

* [sdk] fix clients

* use script as argument of BuildForfeitTxs
2024-09-25 13:15:44 +02:00

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
}